xso.backendcomps
Module Contents
Classes
Xarray-simlab process initializing and storing model backend and solver. |
|
Inherited by all other model components to access backend. |
|
Inherits model backend from context and defines initializes stage, |
|
Inherits model backend from context and defines initializes stage, |
|
Inherits model backend from context and defines initializes stage, |
|
Inherits model backend from context and defines initializes stage, |
|
Inherits model backend from context and defines initializes stage, |
|
Inherits model backend from context and calls solver to run |
|
Process defining model time and registering it in model backend. |
Functions
|
Helper function to create a Time component with a custom unit registered through the backend. |
- class xso.backendcomps.Backend[source]
Xarray-simlab process initializing and storing model backend and solver.
This is the interface between the solver and model backend of XSO and the model processes, that are decorated as XSO components. As for all Xarray-simlab processes, we can define an initialize and finalize method to execute at different stages of model runtime.
- solver_type
a string argument passed at model setup, that defines which solver is used
- Type:
xarray-simlab variable
- core
stores the XSOCore class initialized with passed solver_type
- Type:
xarray-simlab any_object
- m
store for math function wrappers supplied with Solver contained in XSOCore
- Type:
xarray-simlab any_object
- solver_type
- core
- m
- class xso.backendcomps.Context[source]
Inherited by all other model components to access backend.
- core
Link to core object defined in Backend class
- Type:
xarray-simlab foreign variable
- m
Link to math functions wrapper in Backend class
- Type:
xarray-simlab foreign variable
- label
Stores label supplied at model setup
- Type:
xarray-simlab variable
- core
- m
- label
- class xso.backendcomps.FirstInit[source]
Bases:
ContextInherits model backend from context and defines initializes stage, given to init_stage argument in xso.component decorator.
This is a hack using xsimlab’s group variables to force component initialization order.
- group
- class xso.backendcomps.SecondInit[source]
Bases:
ContextInherits model backend from context and defines initializes stage, given to init_stage argument in xso.component decorator.
- firstinit
- group
- class xso.backendcomps.ThirdInit[source]
Bases:
ContextInherits model backend from context and defines initializes stage, given to init_stage argument in xso.component decorator.
- firstinit
- secondinit
- group
- class xso.backendcomps.FourthInit[source]
Bases:
ContextInherits model backend from context and defines initializes stage, given to init_stage argument in xso.component decorator.
- firstinit
- secondinit
- thirdinit
- group
- class xso.backendcomps.FifthInit[source]
Bases:
ContextInherits model backend from context and defines initializes stage, given to init_stage argument in xso.component decorator.
- firstinit
- secondinit
- thirdinit
- fourthinit
- group
- class xso.backendcomps.RunSolver[source]
Bases:
ContextInherits model backend from context and calls solver to run as final initialization stage of model runtime.
- firstinit
- secondinit
- thirdinit
- fourthinit
- fifthinit