Bsoft 2.1.4
Bernard's software package
model_mol.cpp File Reference

Library routines for processing molecular models. More...

#include "model_mol.h"
#include "linked_list.h"
#include "utilities.h"

Functions

string component_element (Bcomponent *comp)
 Determines the element from the component description. More...
 
string component_element (Bcomponent *comp, map< string, Bcomptype > &atompar)
 Determines the element from the type identifier. More...
 
JSvalue model_elements (Bmodel *model, map< string, Bcomptype > &atompar)
 Calculates the elemental composition. More...
 

Variables

int verbose
 

Detailed Description

Library routines for processing molecular models.

Author
Bernard Heymann
Date
Created: 20220215
Modified: 20220514

Function Documentation

◆ component_element() [1/2]

string component_element ( Bcomponent comp)

Determines the element from the component description.

Parameters
*compcomponent.
Returns
string element.

◆ component_element() [2/2]

string component_element ( Bcomponent comp,
map< string, Bcomptype > &  atompar 
)

Determines the element from the type identifier.

Parameters
*compcomponent.
atomparatom type parameters.
Returns
string element, empty if not found.

◆ model_elements()

JSvalue model_elements ( Bmodel model,
map< string, Bcomptype > &  atompar 
)

Calculates the elemental composition.

Parameters
*modelmodel.
atomparatom type parameters.
Returns
JSvalue composition.

Variable Documentation

◆ verbose

int verbose
extern