CModel#

class CModel(self: CModel, arg0: str)#

Bases: pybind11_object

See sansmic.model.Scenario.

Summary

close_outfiles(self)

Close the C-library model output files.

configure(self, scenario)

Initialize the model object.

generate_out_file(self, use_file)

Generate and output an .OUT file

generate_tst_file(self, use_file)

Generate and output a .TST file

is_running(self)

int: Is the model in the middle of a stage.

num_stages(self)

int : Get the number of model stages.

open_outfiles(self, append)

Open output files, optionally in append mode, by default append=false.

run_next_step(self)

Run the next step in stage istage of the model.

run_sim(self)

Run complete sansmic simulation.

set_verbosity_level(self, verb)

Set the console verbosity level

Details

close_outfiles(self: CModel) None#

Close the C-library model output files.

configure(self: CModel, scenario: CScenario) None#

Initialize the model object.

generate_out_file(self: CModel, use_file: bool) None#

Generate and output an .OUT file

generate_tst_file(self: CModel, use_file: bool) None#

Generate and output a .TST file

is_running(self: CModel) bool#

int: Is the model in the middle of a stage.

num_stages(self: CModel) int#

int : Get the number of model stages.

open_outfiles(self: CModel, append: bool) int#

Open output files, optionally in append mode, by default append=false.

run_next_step(self: CModel) int#

Run the next step in stage istage of the model.

run_sim(self: CModel) None#

Run complete sansmic simulation.

set_verbosity_level(self: CModel, verb: int) None#

Set the console verbosity level