ModelSettings#
- class fridom.nonhydro.model_settings.ModelSettings(grid: GridBase, **kwargs: any)[source]#
Bases:
ModelSettingsBaseModel settings for the 3D non-hydrostatic model.
Parameters#
- gridGrid
The grid object.
Methods
__init__(grid, **kwargs)Construct the diagnostic state vector from this model settings.
set_attributes(**kwargs)Set model settings attributes from keyword arguments.
setup([setup_mode])Set the model settings up.
setup_grid([setup_mode])Set the grid object up.
Set the model settings parameters up.
Construct the state vector from this model settings.
Attributes
The stratification N².
The stratification N² field.
The Rossby number.
The beta term of the Coriolis parameter (f=f0 + beta*y).
custom_diagnostic_fieldsList of custom diagnostic fields.
custom_state_fieldsList of custom state fields.
diagnosticsThe module container for all diagnostics.
The aspect ratio.
The constant term of the Coriolis parameter (f=f0 + beta*y).
The Coriolis parameter (f=f0 + beta*y).
gridThe spatial grid.
haloReturn the halo size of the model.
is_setupReturn whether the model settings are set up.
nan_checkerThe NaN checker object (default: NaNChecker).
Return a dictionary with all parameters of the model settings.
progress_barThe progress bar object (default: ProgressBar).
raise_error_when_something_goes_wrongRaise an error when something goes wrong.
restart_moduleThe restart module.
tendenciesThe module container for all tendencies.
time_stepperThe time stepper object (default: AdamBashforth).
timerThe timing module.
Examples using
fridom.nonhydro.ModelSettings#- model_name = '3D - Nonhydrostatic model'#
- diagnostic_state_constructor() DiagnosticState[source]#
Construct the diagnostic state vector from this model settings.
- property parameters: dict#
Return a dictionary with all parameters of the model settings.
Description#
This method should be overridden by the child class to return a dictionary with all parameters of the model settings. This dictionary is used to print the model settings in the __repr__ method.
- property f0: float#
The constant term of the Coriolis parameter (f=f0 + beta*y).
- property beta: float#
The beta term of the Coriolis parameter (f=f0 + beta*y).
- property f_coriolis: ScalarField#
The Coriolis parameter (f=f0 + beta*y).
- property N2: float#
The stratification N².
- property N2_field: ScalarField#
The stratification N² field.
- property Ro: float#
The Rossby number.
- property dsqr: float#
The aspect ratio. \(\delta^2\).