g3d.defs.world.numerics package
Submodules
g3d.defs.world.numerics.irsm module
G3DIRSM static class
- class g3d.defs.world.numerics.irsm.G3DIRSM[source]
Bases:
objectG3D Implicit Residual Smoothing (IRSM) placeholder
- Attributes:
cfl_activateIRSM activation CFL value (default 1.0)
cfl_critIRSM critical CFL value (default 1.2)
cfl_maxIRSM critical CFL max (default 0.0)
irsm_lambdaIRMS lambda value (default lambda = 1.0)
lambda_factorIRSM lambda factor (default 0.25)
lambda_maxIRSM lambda max value (default 0.0)
lambda_minIRSM lambda min value (default 1.0)
lambda_specified_by_userIRSM lambda has been specified by user (default = False)
relaxIRSM under relaxation factor (default 0.9)
Methods
update IRSM lambda value input: no input needed example: update_lambda()
- property cfl_activate: float
IRSM activation CFL value (default 1.0)
- property cfl_crit: float
IRSM critical CFL value (default 1.2)
- property cfl_max: float
IRSM critical CFL max (default 0.0)
- property irsm_lambda: float
IRMS lambda value (default lambda = 1.0)
- property lambda_factor: float
IRSM lambda factor (default 0.25)
- property lambda_max: float
IRSM lambda max value (default 0.0)
- property lambda_min: float
IRSM lambda min value (default 1.0)
- property lambda_specified_by_user: bool
IRSM lambda has been specified by user (default = False)
- property relax: float
IRSM under relaxation factor (default 0.9)
g3d.defs.world.numerics.limiters module
G3DLimiters static class
- class g3d.defs.world.numerics.limiters.G3DLimiters[source]
Bases:
objectG3D limiters placeholder
- Attributes:
- property p_max: float
maximum pressure (default None)
- property p_min: float
minimum pressure (default None)
- property t_max: float
maximum temperature (default None)
- property t_min: float
minimum temperature (default None)
g3d.defs.world.numerics.num module
G3DNum static class
- class g3d.defs.world.numerics.num.G3DNum[source]
Bases:
objectG3D numerics placeholder
- Attributes:
- property limiters: G3DLimiters
instance of G3D limiters placeholder
g3d.defs.world.numerics.scheme module
G3DScheme static class
- class g3d.defs.world.numerics.scheme.G3DScheme[source]
Bases:
objectG3D numerical scheme placeholder
- Attributes:
coef_1convective scheme coefficient 1 (of four coefficients defining the scheme)
coef_2convective scheme coefficient 2 (of four coefficients defining the scheme)
coef_3convective scheme coefficient 3 (of four coefficients defining the scheme)
coef_4convective scheme coefficient 4 (of four coefficients defining the scheme)
convective_schemeconvective scheme of G3DFlow cfd solver
entropy_damp_coefentropy damping coefficient (default value = 0.0)
shock_damp_coefshock damping coefficient (default value = 0.0)
shock_damping_modeshock damping mode (Enum, default value = ShockDampingMode.JAMESON)
use_density_tvd_limiteruse density TVD limiter (default value = False)
use_turbulence_model_tvd_limiteruse turbulence model TVD limiter (default value = False)
Methods
returns an array with coefficients of the convective scheme input: no input example: [c1, c2, c3, c4] = get_coefs()
prints solver convective scheme input: no input
set_coefs(c1, c2, c3, c4)defining convective scheme by specifying four coefficients input: coefficients (c1, c2, c3, c4)
- property coef_1: float
convective scheme coefficient 1 (of four coefficients defining the scheme)
- property coef_2: float
convective scheme coefficient 2 (of four coefficients defining the scheme)
- property coef_3: float
convective scheme coefficient 3 (of four coefficients defining the scheme)
- property coef_4: float
convective scheme coefficient 4 (of four coefficients defining the scheme)
- property convective_scheme: Any
convective scheme of G3DFlow cfd solver
- property entropy_damp_coef: float
entropy damping coefficient (default value = 0.0)
- get_coefs() ndarray[source]
returns an array with coefficients of the convective scheme input: no input example: [c1, c2, c3, c4] = get_coefs()
- set_coefs(c1: float, c2: float, c3: float, c4: float) None[source]
defining convective scheme by specifying four coefficients input: coefficients (c1, c2, c3, c4)
- property shock_damp_coef: float
shock damping coefficient (default value = 0.0)
- property shock_damping_mode: Any
shock damping mode (Enum, default value = ShockDampingMode.JAMESON) valid options: JAMESON, DUCROSS_FACE_GRADIENTS, DUCROSS_CELL_GRADIENTS
- property use_density_tvd_limiter: bool
use density TVD limiter (default value = False)
- property use_turbulence_model_tvd_limiter: bool
use turbulence model TVD limiter (default value = False)
g3d.defs.world.numerics.time module
G3DTime static class
- class g3d.defs.world.numerics.time.G3DTime[source]
Bases:
objectG3D time placeholder
- Attributes:
cflsolver CFL number (default value = 0.9)
dtimesolver time step (used in combination with time-accurate time mode)
n_sub_itermaximum number of subiterations (used in combination with dual time stepping time mode)
time_modesolver time mode (Enum, default value = TIMESTEPTypes.LOCAL_TIME_STEPPING)
time_stepper_modesolver time stepper mode (Enum, default value = TimeStepperMode.EXPLICIT_RUNGE_KUTTA)
- property cfl: float
solver CFL number (default value = 0.9)
- property dtime: float
solver time step (used in combination with time-accurate time mode)
- property n_sub_iter: int
maximum number of subiterations (used in combination with dual time stepping time mode)
- property time_mode: Any
solver time mode (Enum, default value = TIMESTEPTypes.LOCAL_TIME_STEPPING) valid options: LOCAL_TIME_STEPPING, TIME_ACCURATE_CFL, TIME_ACCURATE_CONSTANT_TIME_STEP
- property time_stepper_mode: Any
solver time stepper mode (Enum, default value = TimeStepperMode.EXPLICIT_RUNGE_KUTTA) valid options: EXPLICIT_RUNGE_KUTTA, BACKWARD_EULER_DUAL_TIME_STEPPER, CRANK_NICOLSON_DUAL_TIME_STEPPER, TURKEL_BACKWARD_EULER_DUAL_TIME_STEPPER
Module contents
g3d/defs/world/numerics sub library
- class g3d.defs.world.numerics.G3DIRSM[source]
Bases:
objectG3D Implicit Residual Smoothing (IRSM) placeholder
- Attributes:
cfl_activateIRSM activation CFL value (default 1.0)
cfl_critIRSM critical CFL value (default 1.2)
cfl_maxIRSM critical CFL max (default 0.0)
irsm_lambdaIRMS lambda value (default lambda = 1.0)
lambda_factorIRSM lambda factor (default 0.25)
lambda_maxIRSM lambda max value (default 0.0)
lambda_minIRSM lambda min value (default 1.0)
lambda_specified_by_userIRSM lambda has been specified by user (default = False)
relaxIRSM under relaxation factor (default 0.9)
Methods
update IRSM lambda value input: no input needed example: update_lambda()
- property cfl_activate: float
IRSM activation CFL value (default 1.0)
- property cfl_crit: float
IRSM critical CFL value (default 1.2)
- property cfl_max: float
IRSM critical CFL max (default 0.0)
- property irsm_lambda: float
IRMS lambda value (default lambda = 1.0)
- property lambda_factor: float
IRSM lambda factor (default 0.25)
- property lambda_max: float
IRSM lambda max value (default 0.0)
- property lambda_min: float
IRSM lambda min value (default 1.0)
- property lambda_specified_by_user: bool
IRSM lambda has been specified by user (default = False)
- property relax: float
IRSM under relaxation factor (default 0.9)
- class g3d.defs.world.numerics.G3DLimiters[source]
Bases:
objectG3D limiters placeholder
- Attributes:
- property p_max: float
maximum pressure (default None)
- property p_min: float
minimum pressure (default None)
- property t_max: float
maximum temperature (default None)
- property t_min: float
minimum temperature (default None)
- class g3d.defs.world.numerics.G3DNum[source]
Bases:
objectG3D numerics placeholder
- Attributes:
- property limiters: G3DLimiters
instance of G3D limiters placeholder
- class g3d.defs.world.numerics.G3DScheme[source]
Bases:
objectG3D numerical scheme placeholder
- Attributes:
coef_1convective scheme coefficient 1 (of four coefficients defining the scheme)
coef_2convective scheme coefficient 2 (of four coefficients defining the scheme)
coef_3convective scheme coefficient 3 (of four coefficients defining the scheme)
coef_4convective scheme coefficient 4 (of four coefficients defining the scheme)
convective_schemeconvective scheme of G3DFlow cfd solver
entropy_damp_coefentropy damping coefficient (default value = 0.0)
shock_damp_coefshock damping coefficient (default value = 0.0)
shock_damping_modeshock damping mode (Enum, default value = ShockDampingMode.JAMESON)
use_density_tvd_limiteruse density TVD limiter (default value = False)
use_turbulence_model_tvd_limiteruse turbulence model TVD limiter (default value = False)
Methods
returns an array with coefficients of the convective scheme input: no input example: [c1, c2, c3, c4] = get_coefs()
prints solver convective scheme input: no input
set_coefs(c1, c2, c3, c4)defining convective scheme by specifying four coefficients input: coefficients (c1, c2, c3, c4)
- property coef_1: float
convective scheme coefficient 1 (of four coefficients defining the scheme)
- property coef_2: float
convective scheme coefficient 2 (of four coefficients defining the scheme)
- property coef_3: float
convective scheme coefficient 3 (of four coefficients defining the scheme)
- property coef_4: float
convective scheme coefficient 4 (of four coefficients defining the scheme)
- property convective_scheme: Any
convective scheme of G3DFlow cfd solver
- property entropy_damp_coef: float
entropy damping coefficient (default value = 0.0)
- get_coefs() ndarray[source]
returns an array with coefficients of the convective scheme input: no input example: [c1, c2, c3, c4] = get_coefs()
- set_coefs(c1: float, c2: float, c3: float, c4: float) None[source]
defining convective scheme by specifying four coefficients input: coefficients (c1, c2, c3, c4)
- property shock_damp_coef: float
shock damping coefficient (default value = 0.0)
- property shock_damping_mode: Any
shock damping mode (Enum, default value = ShockDampingMode.JAMESON) valid options: JAMESON, DUCROSS_FACE_GRADIENTS, DUCROSS_CELL_GRADIENTS
- property use_density_tvd_limiter: bool
use density TVD limiter (default value = False)
- property use_turbulence_model_tvd_limiter: bool
use turbulence model TVD limiter (default value = False)
- class g3d.defs.world.numerics.G3DTime[source]
Bases:
objectG3D time placeholder
- Attributes:
cflsolver CFL number (default value = 0.9)
dtimesolver time step (used in combination with time-accurate time mode)
n_sub_itermaximum number of subiterations (used in combination with dual time stepping time mode)
time_modesolver time mode (Enum, default value = TIMESTEPTypes.LOCAL_TIME_STEPPING)
time_stepper_modesolver time stepper mode (Enum, default value = TimeStepperMode.EXPLICIT_RUNGE_KUTTA)
- property cfl: float
solver CFL number (default value = 0.9)
- property dtime: float
solver time step (used in combination with time-accurate time mode)
- property n_sub_iter: int
maximum number of subiterations (used in combination with dual time stepping time mode)
- property time_mode: Any
solver time mode (Enum, default value = TIMESTEPTypes.LOCAL_TIME_STEPPING) valid options: LOCAL_TIME_STEPPING, TIME_ACCURATE_CFL, TIME_ACCURATE_CONSTANT_TIME_STEP
- property time_stepper_mode: Any
solver time stepper mode (Enum, default value = TimeStepperMode.EXPLICIT_RUNGE_KUTTA) valid options: EXPLICIT_RUNGE_KUTTA, BACKWARD_EULER_DUAL_TIME_STEPPER, CRANK_NICOLSON_DUAL_TIME_STEPPER, TURKEL_BACKWARD_EULER_DUAL_TIME_STEPPER