reducer module
Python wrapper for the native Fedem FE part reducer. Used for convenience in order to hide native type convertions.
- class reducer.FedemReducer(lib_path, solver_options=None)[source]
Bases:
object
This class mirrors the functionality of the Fedem FE part reducer library (libfedem_reducer_core.so on Linux, fedem_reducer_core.dll on Windows).
- Parameters:
- lib_pathstr
Absolute path to the reducer shared object library
- solver_optionslist of str, default=None
List of command-line arguments passed to the reducer
Methods
solver_init:
Initializes the command-line handler of the reducer
run:
Invokes the reducer
- run(options=None)[source]
This function invokes the reducer.
- Parameters:
- optionslist of str, default=None
List of command-line arguments passed to the reducer
- Returns:
- int
Zero on success, a negative value indicates some error condition
- solver_init(options)[source]
This function initializes the command-line handler of the reducer.
See the Fedem R7.5 Users Guide, Appendix C.2 for a complete list of all command-line arguments that may be specified and their default values.
- Parameters:
- optionslist of str
List of command-line arguments passed to the reducer
- Returns:
- int
Zero on success, a negative value indicates some error condition