CADETProcess.simulator.Cadet#
- class CADETProcess.simulator.Cadet(timeout, use_dll, time_resolution, resolution_cutoff, n_cycles, evaluate_stationarity, n_cycles_min, n_cycles_batch, n_cycles_max, raise_exception_on_max_cycles)[source]#
CADET class for running a simulation for given process objects.
- Attributes:
- install_path: str
Path to the root of the CADET installation
- time_outUnsignedFloat
Maximum duration for simulations
- model_solver_parametersModelSolverParameters
Container for solver parameters
- unit_discretization_parametersUnitDiscretizationParameters
Container for unit discretization parameters
- discretization_weno_parametersDiscretizationWenoParameters
Container for weno discretization parameters in units
- adsorption_consistency_solver_parametersConsistencySolverParameters
Container for consistency solver parameters
- solver_parametersSolverParameters
Container for general solver settings
- time_integrator_parametersSolverTimeIntegratorParameters
Container for time integrator parameters
- return_parametersReturnParameters
Container for return information of the system
- ..todo::
Implement method for loading CADET file that have not been generated with CADETProcess and create Process
Methods
__call__(process[, previous_results])Simulate the process.
add_inlet_section(model_units, sec_index, ...)Add piecewise cubic polynomial section to inlet.
add_parameter_section(model_units, ...)Add section value to parameter branch.
cadet_connections(flow_rates, flow_sheet)list: Connections matrix for flow_rates state.
Check if CADET installation can run a basic LWE example.
Verify if all required parameters are set.
create_lwe([file_path])Create basic LWE example and loads the configuration into self.
evaluate(process[, previous_results])Simulate the process.
get_adsorption_config(binding)Config branch /input/model/unit_xxx/adsorption for individual unit.
Get version and branch name of the currently instanced CADET build.
get_input_model(process)Config branch /input/model/.
get_input_return(process)Config branch /input/return.
get_input_sensitivity(process)Config branch /input/sensitivity.
get_input_solver(process)Config branch /input/solver/.
get_model_connections(process)Config branch /input/model/connections.
get_model_units(process)Config branches for all units `/input/model/unit_000 .
Return new CadetAPI instance.
get_parameter_sensitivities(process)Config branches for all parameter sensitivities `/input/sensitivity/param_000 .
get_port_index(flow_sheet, unit, port)Return port index in CADET format xxx.
get_process_config(process)Create the CADET config.
get_reaction_config(reaction)Config branch /input/model/unit_xxx/reaction for individual unit.
get_section_times_complete(process)Get the section times for multiple cycles of a process.
get_sensitivity_config(process, sens)Return sensitivity config.
get_simulation_results(process, cadet[, ...])Read simulation results from CADET configuration.
get_solution_time(process[, cycle])Get the time vector for one cycle of a process.
get_solution_time_complete(process)Get the time vector for multiple cycles of a process.
get_solver_sections(process)Config branch /input/solver/sections.
Return name of tempfile.
get_unit_config(unit)Config branch /input/model/unit_xxx for individual unit.
get_unit_index(process, unit)Return unit index in CADET format unit_xxx.
get_unit_return_parameters(process)Config branches for all units `/input/return/unit_000 .
load_from_h5(file_path)Load data from HDF5 file.
load_simulation_results(process, file_path)Load simulation results.
Lock process to enable caching.
run_h5(file_path)Load and run h5 file.
save_to_h5(process, file_path)Save process config as h5 file.
Add time dependent model parameters to units.
set_state_from_results(process, results)Set the process state from the simulation results.
simulate(process[, previous_results])Simulate the process.
simulate_n_cycles(process, n_cyc[, ...])Simulate the process for a given number of cycles.
simulate_to_stationarity(process[, results])Simulate the process until stationarity is reached.
See also
ReturnParametersModelSolverParametersSolverParametersSolverTimeIntegratorParametersCadetAPI