|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Functions to adjust an openCARP parameter file to be included in a bundle. More...
Classes | |
| class | _OCParam |
| An object of this class represents an openCARP parameter. More... | |
Functions | |
| def | get_param (param_str) |
| Query openCARP for the parameter named 'param_str' and return an _OCParam describing it. More... | |
| def | standardize_param_str (s) |
| Computes the standardized string representing a parameter. More... | |
| def | is_file_param (param) |
| Tells whether an _OCParam is a file parameter (read/write file or write directory) that requires path adjustment in a bundle. More... | |
Variables | |
| list | MESH_EXTENSIONS = ['.elem', '.pts', '.lon', '.belem', '.bpts', '.blon', '.surf'] |
| StringFileParam = namedtuple('StringFileParam', 'name type separator') | |
| list | STRING_FILEPARAMS |
| dictionary | FILE_TYPE_MAP |
Functions to adjust an openCARP parameter file to be included in a bundle.
| def carputils.bundle.parfileadjustment.get_param | ( | param_str | ) |
Query openCARP for the parameter named 'param_str' and return an _OCParam describing it.
The information is obtained from the 'openCARP +Help <name>' output, so it does not rely on the global parameter listing (whose format is not guaranteed to be stable across openCARP versions).
| param_str | str String representing a parameter (e.g. as found in a .par file). |
| def carputils.bundle.parfileadjustment.is_file_param | ( | param | ) |
| def carputils.bundle.parfileadjustment.standardize_param_str | ( | s | ) |
Computes the standardized string representing a parameter.
| dictionary carputils.bundle.parfileadjustment.FILE_TYPE_MAP |
| list carputils.bundle.parfileadjustment.MESH_EXTENSIONS = ['.elem', '.pts', '.lon', '.belem', '.bpts', '.blon', '.surf'] |
| list carputils.bundle.parfileadjustment.STRING_FILEPARAMS |
| carputils.bundle.parfileadjustment.StringFileParam = namedtuple('StringFileParam', 'name type separator') |