g3d.defs.world package
Subpackages
- g3d.defs.world.numerics package
- Submodules
- g3d.defs.world.numerics.irsm module
- g3d.defs.world.numerics.limiters module
- g3d.defs.world.numerics.num module
- g3d.defs.world.numerics.scheme module
G3DSchemeG3DScheme.coef_1G3DScheme.coef_2G3DScheme.coef_3G3DScheme.coef_4G3DScheme.convective_schemeG3DScheme.entropy_damp_coefG3DScheme.get_coefs()G3DScheme.numerical_scheme_report()G3DScheme.set_coefs()G3DScheme.shock_damp_coefG3DScheme.shock_damping_modeG3DScheme.use_density_tvd_limiterG3DScheme.use_turbulence_model_tvd_limiter
- g3d.defs.world.numerics.time module
- Module contents
G3DIRSMG3DLimitersG3DNumG3DSchemeG3DScheme.coef_1G3DScheme.coef_2G3DScheme.coef_3G3DScheme.coef_4G3DScheme.convective_schemeG3DScheme.entropy_damp_coefG3DScheme.get_coefs()G3DScheme.numerical_scheme_report()G3DScheme.set_coefs()G3DScheme.shock_damp_coefG3DScheme.shock_damping_modeG3DScheme.use_density_tvd_limiterG3DScheme.use_turbulence_model_tvd_limiter
G3DTime
Submodules
g3d.defs.world.display module
G3DDisplay static class
- class g3d.defs.world.display.G3DDisplay[source]
Bases:
objectG3D display placeholder
- Attributes:
plot_edgesplot_edges = True => mesh block edges will be printed on
print_iterationsprint_iterations = True => residuals will be printed every
print_splashprint_splash = True => code splash (logo) will be printed
progress_barprogress_bar = True => progress bar will be printed to std out
scrwscreen width (default value = 80)
silentsilent = True => limited solver output (default value = False)
verboseverbose = True => more printed output (default value = False)
Methods
author()prints author/developer information to std out input: no input example: author()
header(*args, **kwargs)prints header to std out input: args, kwargs args: info (header text (string)), dashes (default = '='), scrw (default = 80 or earlier specified scrw value) kwargs: 'info', 'dashes', 'scrw' example: header(args, kwargs)
hline(*args, **kwargs)prints horizontal line on screen input: args, kwargs args: dash (default = '-'), scrw (default = 80 or earlier specified scrw value) kwargs: 'dashes', 'scrw' example: hline(args, kwargs)
logo()prints logo to std out logos defined for CFLOW, G3DMESH & G3DFLOW input: no input example: logo()
splash()prints code splash to std out logo (code specific), code version & author information input: no input example: splash()
- static author()[source]
prints author/developer information to std out input: no input example: author()
- header(*args: Any, **kwargs: Any) None[source]
prints header to std out input: args, kwargs args: info (header text (string)), dashes (default = ‘=’), scrw (default = 80 or earlier specified scrw value) kwargs: ‘info’, ‘dashes’, ‘scrw’ example: header(args, kwargs)
- hline(*args: Any, **kwargs: Any) None[source]
prints horizontal line on screen input: args, kwargs args: dash (default = ‘-‘), scrw (default = 80 or earlier specified scrw value) kwargs: ‘dashes’, ‘scrw’ example: hline(args, kwargs)
- static logo() None[source]
prints logo to std out logos defined for CFLOW, G3DMESH & G3DFLOW input: no input example: logo()
- property plot_edges: bool
plot_edges = True => mesh block edges will be printed on mesh plot (default value = False)
- property print_iterations: bool
print_iterations = True => residuals will be printed every iteration (default value = False)
- property print_splash: bool
print_splash = True => code splash (logo) will be printed on solver start (default value = True)
- property progress_bar: bool
progress_bar = True => progress bar will be printed to std out (default value = False)
- property scrw: int
screen width (default value = 80)
- property silent: bool
silent = True => limited solver output (default value = False)
- splash() None[source]
prints code splash to std out logo (code specific), code version & author information input: no input example: splash()
- property verbose: bool
verbose = True => more printed output (default value = False)
g3d.defs.world.info module
G3DInfo static class
- class g3d.defs.world.info.G3DInfo[source]
Bases:
objectG3D code information placeholder
- Attributes:
authorcode author information
code_descriptionshort code description
code_namecode name
code_sub_descriptionadditional code description
code_typecode type (default value = CodeType.G3D_SOLVER)
datedate of latest code release
info_strcode information string
versioncode version
- property author: list[str]
code author information
- property code_description: str
short code description
- property code_name: str
code name
- property code_sub_description: str
additional code description
- property code_type: Any
code type (default value = CodeType.G3D_SOLVER)
- property date: str
date of latest code release
- property info_str: str
code information string code name, code version, date of latest release
- property version: str
code version
g3d.defs.world.io module
G3DIOSettings static class
- class g3d.defs.world.io.G3DIOSettings[source]
Bases:
objectG3D I/O placeholder
- Attributes:
jobnamejobname (default value = g3dflow)
mshmesh file name (default value = ‘g3d.msh’)
prev_solution_foldername of folder where the previous solver state (solution files) was stored
save_all_filessave_all_files = True => old files will not be replaced by new files
sol_dirsolution files directory (default value = ‘’)
topotopology file name (default value = ‘g3d.topo’)
wdworking directory (default value = ./WD)
working_directorysame as wd
- property jobname: str
- property msh: str
mesh file name (default value = ‘g3d.msh’)
- property prev_solution_folder: str
name of folder where the previous solver state (solution files) was stored
- property save_all_files: bool
save_all_files = True => old files will not be replaced by new files (default value = False)
- property sol_dir: str
solution files directory (default value = ‘’)
- property topo: str
topology file name (default value = ‘g3d.topo’)
- property wd: str
working directory (default value = ./WD)
- property working_directory: str
same as wd
g3d.defs.world.models module
G3DModels static class
- class g3d.defs.world.models.G3DModels[source]
Bases:
objectG3D model settings placeholder
- Attributes:
turbulence_modelturbulence model type (Enum, default value = TurbulenceModelMode.NO_TURBULENCE_MODEL)
- property turbulence_model: Any
turbulence model type (Enum, default value = TurbulenceModelMode.NO_TURBULENCE_MODEL)
g3d.defs.world.options module
G3DRunOptions static class
- class g3d.defs.world.options.G3DRunOptions[source]
Bases:
objectG3D run options placeholder
- Attributes:
attach_profilerattach_profiler = True => profiler will be deployed on execution
auto_plot_residualsauto_plot_residuals = True => residual plots will be generated
break_residualtarget residual value for which the solver execution will be stopped
dim_modesolver dimension mode (Enum, default value = DIMMode.G3D)
eqn_modesolver equation mode (Enum, default value = EQNMode.DNS)
long_optlong option string (descriptive options)
nstepnumber of solver iterations
nstep_savenumber of solver iterations between each save of solver state (flow field)
q3d_source_factorsource term factor used for the quasi-three-dimensional (Q3D) solver
restartrestart = True => solver will start from previously stored flow state if applicable
short_optshort option string (one letter options)
use_irsmuse_irsm = True => implicit residual smoothing will be applied
use_residual_breakuse_residual_break = True => solver execution will be stopped if reaching the target residual
use_velocity_gradientsuse_velocity_gradients = True => velocity gradients will be calculated as part of flux evaluation
- property attach_profiler: bool
attach_profiler = True => profiler will be deployed on execution (default value = False)
- property auto_plot_residuals: bool
auto_plot_residuals = True => residual plots will be generated automatically (default value = False)
- property break_residual: float
target residual value for which the solver execution will be stopped (default value = 1.e-7)
- property dim_mode: Any
solver dimension mode (Enum, default value = DIMMode.G3D) valid options: Q1D, G2D, G2D_AXISYMM, G3D, Q3D
- property eqn_mode: Any
solver equation mode (Enum, default value = EQNMode.DNS) valid options: EULER, NAVIER_STOKES, DNS, RANS, URANS, LES, DES, DDES
- property long_opt: list[str]
long option string (descriptive options)
- property nstep: int
number of solver iterations
- property nstep_save: int
number of solver iterations between each save of solver state (flow field)
- property q3d_source_factor: float
source term factor used for the quasi-three-dimensional (Q3D) solver (default value = 0.95)
- property restart: bool
restart = True => solver will start from previously stored flow state if applicable (default value = True)
- property short_opt: str
short option string (one letter options)
- property use_irsm: bool
use_irsm = True => implicit residual smoothing will be applied (default value = False, can be triggered by, for example, setting a CFL number greater than 1.0)
- property use_residual_break: bool
use_residual_break = True => solver execution will be stopped if reaching the target residual (default value = False)
- property use_velocity_gradients: bool
use_velocity_gradients = True => velocity gradients will be calculated as part of flux evaluation (default value = False - depending on solver settings)
g3d.defs.world.sizes module
G3DSizes static class
- class g3d.defs.world.sizes.G3DSizes[source]
Bases:
objectG3D sizes placeholder
- Attributes:
n_block_facestotal number of block cell faces
n_boundary_facestotal number of boundary cell faces
n_cellstotal number of cells
n_connectivity_facestotal number of block connectivity cell faces
n_facestotal number of cell faces
n_ghost_cellstotal number of ghost cells
n_ghost_nodestotal number of ghost nodes
n_internal_facestotal number of internal cell faces
n_internal_faces_itotal number of internal i-direction cell faces
n_internal_faces_jtotal number of internal j-direction cell faces
n_internal_faces_ktotal number of internal k-direction cell faces
n_nodestotal number of nodes
n_vartotal number of solver variables
Methods
adds faces to total block face count input: n (number of faces to be added) example: add_block_faces(n)
adds faces to total boundary face count input: n (number of faces to be added) example: add_boundary_faces(n)
add_cells(n)adds cells to total cell count input: n (number of cells to be added) example: add_cells(n)
adds faces to total connectivity face count input: n (number of faces to be added) example: add_connectivity_faces(n)
add_faces(n)adds faces to total face count input: n (number of faces to be added) example: add_faces(n)
adds cells to total ghost cell count input: n (number of cells to be added) example: add_ghost_cells(n)
adds nodes to total ghost node count input: n (number of nodes to be added) example: add_ghost_nodes(n)
adds faces to total internal face count input: n (number of faces to be added) example: add_internal_faces(n)
adds faces to total i-direction internal face count input: n (number of faces to be added) example: add_internal_faces_i(n)
adds faces to total j-direction internal face count input: n (number of faces to be added) example: add_internal_faces_j(n)
adds faces to total k-direction internal face count input: n (number of faces to be added) example: add_internal_faces_k(n)
add_nodes(n)adds nodes to total node count input: n (number of nodes to be added) example: add_nodes(n)
subtracts faces to total block face count input: n (number of faces to be subtracted) example: add_block_faces(n)
subtracts faces to total boundary face count input: n (number of faces to be subtracted) example: add_boundary_faces(n)
subtracts cells to total cell count input: n (number of cells to be subtracted) example: add_cells(n)
subtracts faces to total connectivity face count input: n (number of faces to be subtracted) example: add_connectivity_faces(n)
subtracts faces to total face count input: n (number of faces to be subtracted) example: add_faces(n)
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
subtracts faces to total internal face count input: n (number of faces to be subtracted) example: add_internal_faces(n)
subtracts faces to total i-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_i(n)
subtracts faces to total j-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_j(n)
subtracts faces to total k-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_k(n)
subtract nodes to total node count input: n (number of nodes to be subtracted) example: subtract_nodes(n)
- add_block_faces(n: int) None[source]
adds faces to total block face count input: n (number of faces to be added) example: add_block_faces(n)
- add_boundary_faces(n: int) None[source]
adds faces to total boundary face count input: n (number of faces to be added) example: add_boundary_faces(n)
- add_cells(n: int) None[source]
adds cells to total cell count input: n (number of cells to be added) example: add_cells(n)
- add_connectivity_faces(n: int) None[source]
adds faces to total connectivity face count input: n (number of faces to be added) example: add_connectivity_faces(n)
- add_faces(n: int) None[source]
adds faces to total face count input: n (number of faces to be added) example: add_faces(n)
- add_ghost_cells(n: int) None[source]
adds cells to total ghost cell count input: n (number of cells to be added) example: add_ghost_cells(n)
- add_ghost_nodes(n: int) None[source]
adds nodes to total ghost node count input: n (number of nodes to be added) example: add_ghost_nodes(n)
- add_internal_faces(n: int) None[source]
adds faces to total internal face count input: n (number of faces to be added) example: add_internal_faces(n)
- add_internal_faces_i(n: int) None[source]
adds faces to total i-direction internal face count input: n (number of faces to be added) example: add_internal_faces_i(n)
- add_internal_faces_j(n: int) None[source]
adds faces to total j-direction internal face count input: n (number of faces to be added) example: add_internal_faces_j(n)
- add_internal_faces_k(n: int) None[source]
adds faces to total k-direction internal face count input: n (number of faces to be added) example: add_internal_faces_k(n)
- add_nodes(n: int) None[source]
adds nodes to total node count input: n (number of nodes to be added) example: add_nodes(n)
- property n_block_faces: int
total number of block cell faces
- property n_boundary_faces: int
total number of boundary cell faces
- property n_cells: int
total number of cells
- property n_connectivity_faces: int
total number of block connectivity cell faces
- property n_faces: int
total number of cell faces
- property n_ghost_cells: int
total number of ghost cells
- property n_ghost_nodes: int
total number of ghost nodes
- property n_internal_faces: int
total number of internal cell faces
- property n_internal_faces_i: int
total number of internal i-direction cell faces
- property n_internal_faces_j: int
total number of internal j-direction cell faces
- property n_internal_faces_k: int
total number of internal k-direction cell faces
- property n_nodes: int
total number of nodes
- property n_var: int
total number of solver variables
- subtract_block_faces(n: int) None[source]
subtracts faces to total block face count input: n (number of faces to be subtracted) example: add_block_faces(n)
- subtract_boundary_faces(n: int) None[source]
subtracts faces to total boundary face count input: n (number of faces to be subtracted) example: add_boundary_faces(n)
- subtract_cells(n: int) None[source]
subtracts cells to total cell count input: n (number of cells to be subtracted) example: add_cells(n)
- subtract_connectivity_faces(n: int) None[source]
subtracts faces to total connectivity face count input: n (number of faces to be subtracted) example: add_connectivity_faces(n)
- subtract_faces(n: int) None[source]
subtracts faces to total face count input: n (number of faces to be subtracted) example: add_faces(n)
- subtract_ghost_cells(n: int) None[source]
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
- subtract_ghost_nodes(n: int) None[source]
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
- subtract_internal_faces(n: int) None[source]
subtracts faces to total internal face count input: n (number of faces to be subtracted) example: add_internal_faces(n)
- subtract_internal_faces_i(n: int) None[source]
subtracts faces to total i-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_i(n)
- subtract_internal_faces_j(n: int) None[source]
subtracts faces to total j-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_j(n)
g3d.defs.world.status module
G3DSolverStatus static class
- class g3d.defs.world.status.G3DSolverStatus[source]
Bases:
objectG3D solver status placeholder
- Attributes:
curitercompleted iterations at last solver state save
istepnumber of iterations since start
istep_savenumber of iterations since last solver state save
residualsolver residual
timesimulated time
- property curiter: int
completed iterations at last solver state save
- property istep: int
number of iterations since start
- property istep_save: int
number of iterations since last solver state save
- property residual: float
solver residual
- property time: float
simulated time
g3d.defs.world.world module
G3DWorld static class
- class g3d.defs.world.world.G3DWorld[source]
Bases:
objectG3D World placeholder
- Attributes:
displayinstance of G3D display placeholder
infoinstance of G3D info placeholder
ioinstance of G3D I/O placeholder
modelsinstance of G3D models placeholder
numinstance of G3D numerics placeholder
optionsinstance of G3D options placeholder
sizesinstance of G3D sizes placeholder
statusinstance of G3D status placeholder
- property display: G3DDisplay
instance of G3D display placeholder
- property io: G3DIOSettings
instance of G3D I/O placeholder
- property options: G3DRunOptions
instance of G3D options placeholder
- property status: G3DSolverStatus
instance of G3D status placeholder
Module contents
g3d/defs/world sub library
- class g3d.defs.world.G3DDisplay[source]
Bases:
objectG3D display placeholder
- Attributes:
plot_edgesplot_edges = True => mesh block edges will be printed on
print_iterationsprint_iterations = True => residuals will be printed every
print_splashprint_splash = True => code splash (logo) will be printed
progress_barprogress_bar = True => progress bar will be printed to std out
scrwscreen width (default value = 80)
silentsilent = True => limited solver output (default value = False)
verboseverbose = True => more printed output (default value = False)
Methods
author()prints author/developer information to std out input: no input example: author()
header(*args, **kwargs)prints header to std out input: args, kwargs args: info (header text (string)), dashes (default = '='), scrw (default = 80 or earlier specified scrw value) kwargs: 'info', 'dashes', 'scrw' example: header(args, kwargs)
hline(*args, **kwargs)prints horizontal line on screen input: args, kwargs args: dash (default = '-'), scrw (default = 80 or earlier specified scrw value) kwargs: 'dashes', 'scrw' example: hline(args, kwargs)
logo()prints logo to std out logos defined for CFLOW, G3DMESH & G3DFLOW input: no input example: logo()
splash()prints code splash to std out logo (code specific), code version & author information input: no input example: splash()
- static author()[source]
prints author/developer information to std out input: no input example: author()
- header(*args: Any, **kwargs: Any) None[source]
prints header to std out input: args, kwargs args: info (header text (string)), dashes (default = ‘=’), scrw (default = 80 or earlier specified scrw value) kwargs: ‘info’, ‘dashes’, ‘scrw’ example: header(args, kwargs)
- hline(*args: Any, **kwargs: Any) None[source]
prints horizontal line on screen input: args, kwargs args: dash (default = ‘-‘), scrw (default = 80 or earlier specified scrw value) kwargs: ‘dashes’, ‘scrw’ example: hline(args, kwargs)
- static logo() None[source]
prints logo to std out logos defined for CFLOW, G3DMESH & G3DFLOW input: no input example: logo()
- property plot_edges: bool
plot_edges = True => mesh block edges will be printed on mesh plot (default value = False)
- property print_iterations: bool
print_iterations = True => residuals will be printed every iteration (default value = False)
- property print_splash: bool
print_splash = True => code splash (logo) will be printed on solver start (default value = True)
- property progress_bar: bool
progress_bar = True => progress bar will be printed to std out (default value = False)
- property scrw: int
screen width (default value = 80)
- property silent: bool
silent = True => limited solver output (default value = False)
- splash() None[source]
prints code splash to std out logo (code specific), code version & author information input: no input example: splash()
- property verbose: bool
verbose = True => more printed output (default value = False)
- class g3d.defs.world.G3DIOSettings[source]
Bases:
objectG3D I/O placeholder
- Attributes:
jobnamejobname (default value = g3dflow)
mshmesh file name (default value = ‘g3d.msh’)
prev_solution_foldername of folder where the previous solver state (solution files) was stored
save_all_filessave_all_files = True => old files will not be replaced by new files
sol_dirsolution files directory (default value = ‘’)
topotopology file name (default value = ‘g3d.topo’)
wdworking directory (default value = ./WD)
working_directorysame as wd
- property jobname: str
- property msh: str
mesh file name (default value = ‘g3d.msh’)
- property prev_solution_folder: str
name of folder where the previous solver state (solution files) was stored
- property save_all_files: bool
save_all_files = True => old files will not be replaced by new files (default value = False)
- property sol_dir: str
solution files directory (default value = ‘’)
- property topo: str
topology file name (default value = ‘g3d.topo’)
- property wd: str
working directory (default value = ./WD)
- property working_directory: str
same as wd
- class g3d.defs.world.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.G3DInfo[source]
Bases:
objectG3D code information placeholder
- Attributes:
authorcode author information
code_descriptionshort code description
code_namecode name
code_sub_descriptionadditional code description
code_typecode type (default value = CodeType.G3D_SOLVER)
datedate of latest code release
info_strcode information string
versioncode version
- property author: list[str]
code author information
- property code_description: str
short code description
- property code_name: str
code name
- property code_sub_description: str
additional code description
- property code_type: Any
code type (default value = CodeType.G3D_SOLVER)
- property date: str
date of latest code release
- property info_str: str
code information string code name, code version, date of latest release
- property version: str
code version
- class g3d.defs.world.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.G3DNum[source]
Bases:
objectG3D numerics placeholder
- Attributes:
- property limiters: G3DLimiters
instance of G3D limiters placeholder
- class g3d.defs.world.G3DRunOptions[source]
Bases:
objectG3D run options placeholder
- Attributes:
attach_profilerattach_profiler = True => profiler will be deployed on execution
auto_plot_residualsauto_plot_residuals = True => residual plots will be generated
break_residualtarget residual value for which the solver execution will be stopped
dim_modesolver dimension mode (Enum, default value = DIMMode.G3D)
eqn_modesolver equation mode (Enum, default value = EQNMode.DNS)
long_optlong option string (descriptive options)
nstepnumber of solver iterations
nstep_savenumber of solver iterations between each save of solver state (flow field)
q3d_source_factorsource term factor used for the quasi-three-dimensional (Q3D) solver
restartrestart = True => solver will start from previously stored flow state if applicable
short_optshort option string (one letter options)
use_irsmuse_irsm = True => implicit residual smoothing will be applied
use_residual_breakuse_residual_break = True => solver execution will be stopped if reaching the target residual
use_velocity_gradientsuse_velocity_gradients = True => velocity gradients will be calculated as part of flux evaluation
- property attach_profiler: bool
attach_profiler = True => profiler will be deployed on execution (default value = False)
- property auto_plot_residuals: bool
auto_plot_residuals = True => residual plots will be generated automatically (default value = False)
- property break_residual: float
target residual value for which the solver execution will be stopped (default value = 1.e-7)
- property dim_mode: Any
solver dimension mode (Enum, default value = DIMMode.G3D) valid options: Q1D, G2D, G2D_AXISYMM, G3D, Q3D
- property eqn_mode: Any
solver equation mode (Enum, default value = EQNMode.DNS) valid options: EULER, NAVIER_STOKES, DNS, RANS, URANS, LES, DES, DDES
- property long_opt: list[str]
long option string (descriptive options)
- property nstep: int
number of solver iterations
- property nstep_save: int
number of solver iterations between each save of solver state (flow field)
- property q3d_source_factor: float
source term factor used for the quasi-three-dimensional (Q3D) solver (default value = 0.95)
- property restart: bool
restart = True => solver will start from previously stored flow state if applicable (default value = True)
- property short_opt: str
short option string (one letter options)
- property use_irsm: bool
use_irsm = True => implicit residual smoothing will be applied (default value = False, can be triggered by, for example, setting a CFL number greater than 1.0)
- property use_residual_break: bool
use_residual_break = True => solver execution will be stopped if reaching the target residual (default value = False)
- property use_velocity_gradients: bool
use_velocity_gradients = True => velocity gradients will be calculated as part of flux evaluation (default value = False - depending on solver settings)
- class g3d.defs.world.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.G3DSizes[source]
Bases:
objectG3D sizes placeholder
- Attributes:
n_block_facestotal number of block cell faces
n_boundary_facestotal number of boundary cell faces
n_cellstotal number of cells
n_connectivity_facestotal number of block connectivity cell faces
n_facestotal number of cell faces
n_ghost_cellstotal number of ghost cells
n_ghost_nodestotal number of ghost nodes
n_internal_facestotal number of internal cell faces
n_internal_faces_itotal number of internal i-direction cell faces
n_internal_faces_jtotal number of internal j-direction cell faces
n_internal_faces_ktotal number of internal k-direction cell faces
n_nodestotal number of nodes
n_vartotal number of solver variables
Methods
adds faces to total block face count input: n (number of faces to be added) example: add_block_faces(n)
adds faces to total boundary face count input: n (number of faces to be added) example: add_boundary_faces(n)
add_cells(n)adds cells to total cell count input: n (number of cells to be added) example: add_cells(n)
adds faces to total connectivity face count input: n (number of faces to be added) example: add_connectivity_faces(n)
add_faces(n)adds faces to total face count input: n (number of faces to be added) example: add_faces(n)
adds cells to total ghost cell count input: n (number of cells to be added) example: add_ghost_cells(n)
adds nodes to total ghost node count input: n (number of nodes to be added) example: add_ghost_nodes(n)
adds faces to total internal face count input: n (number of faces to be added) example: add_internal_faces(n)
adds faces to total i-direction internal face count input: n (number of faces to be added) example: add_internal_faces_i(n)
adds faces to total j-direction internal face count input: n (number of faces to be added) example: add_internal_faces_j(n)
adds faces to total k-direction internal face count input: n (number of faces to be added) example: add_internal_faces_k(n)
add_nodes(n)adds nodes to total node count input: n (number of nodes to be added) example: add_nodes(n)
subtracts faces to total block face count input: n (number of faces to be subtracted) example: add_block_faces(n)
subtracts faces to total boundary face count input: n (number of faces to be subtracted) example: add_boundary_faces(n)
subtracts cells to total cell count input: n (number of cells to be subtracted) example: add_cells(n)
subtracts faces to total connectivity face count input: n (number of faces to be subtracted) example: add_connectivity_faces(n)
subtracts faces to total face count input: n (number of faces to be subtracted) example: add_faces(n)
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
subtracts faces to total internal face count input: n (number of faces to be subtracted) example: add_internal_faces(n)
subtracts faces to total i-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_i(n)
subtracts faces to total j-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_j(n)
subtracts faces to total k-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_k(n)
subtract nodes to total node count input: n (number of nodes to be subtracted) example: subtract_nodes(n)
- add_block_faces(n: int) None[source]
adds faces to total block face count input: n (number of faces to be added) example: add_block_faces(n)
- add_boundary_faces(n: int) None[source]
adds faces to total boundary face count input: n (number of faces to be added) example: add_boundary_faces(n)
- add_cells(n: int) None[source]
adds cells to total cell count input: n (number of cells to be added) example: add_cells(n)
- add_connectivity_faces(n: int) None[source]
adds faces to total connectivity face count input: n (number of faces to be added) example: add_connectivity_faces(n)
- add_faces(n: int) None[source]
adds faces to total face count input: n (number of faces to be added) example: add_faces(n)
- add_ghost_cells(n: int) None[source]
adds cells to total ghost cell count input: n (number of cells to be added) example: add_ghost_cells(n)
- add_ghost_nodes(n: int) None[source]
adds nodes to total ghost node count input: n (number of nodes to be added) example: add_ghost_nodes(n)
- add_internal_faces(n: int) None[source]
adds faces to total internal face count input: n (number of faces to be added) example: add_internal_faces(n)
- add_internal_faces_i(n: int) None[source]
adds faces to total i-direction internal face count input: n (number of faces to be added) example: add_internal_faces_i(n)
- add_internal_faces_j(n: int) None[source]
adds faces to total j-direction internal face count input: n (number of faces to be added) example: add_internal_faces_j(n)
- add_internal_faces_k(n: int) None[source]
adds faces to total k-direction internal face count input: n (number of faces to be added) example: add_internal_faces_k(n)
- add_nodes(n: int) None[source]
adds nodes to total node count input: n (number of nodes to be added) example: add_nodes(n)
- property n_block_faces: int
total number of block cell faces
- property n_boundary_faces: int
total number of boundary cell faces
- property n_cells: int
total number of cells
- property n_connectivity_faces: int
total number of block connectivity cell faces
- property n_faces: int
total number of cell faces
- property n_ghost_cells: int
total number of ghost cells
- property n_ghost_nodes: int
total number of ghost nodes
- property n_internal_faces: int
total number of internal cell faces
- property n_internal_faces_i: int
total number of internal i-direction cell faces
- property n_internal_faces_j: int
total number of internal j-direction cell faces
- property n_internal_faces_k: int
total number of internal k-direction cell faces
- property n_nodes: int
total number of nodes
- property n_var: int
total number of solver variables
- subtract_block_faces(n: int) None[source]
subtracts faces to total block face count input: n (number of faces to be subtracted) example: add_block_faces(n)
- subtract_boundary_faces(n: int) None[source]
subtracts faces to total boundary face count input: n (number of faces to be subtracted) example: add_boundary_faces(n)
- subtract_cells(n: int) None[source]
subtracts cells to total cell count input: n (number of cells to be subtracted) example: add_cells(n)
- subtract_connectivity_faces(n: int) None[source]
subtracts faces to total connectivity face count input: n (number of faces to be subtracted) example: add_connectivity_faces(n)
- subtract_faces(n: int) None[source]
subtracts faces to total face count input: n (number of faces to be subtracted) example: add_faces(n)
- subtract_ghost_cells(n: int) None[source]
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
- subtract_ghost_nodes(n: int) None[source]
subtracts cells to total ghost cell count input: n (number of cells to be subtracted) example: add_ghost_cells(n)
- subtract_internal_faces(n: int) None[source]
subtracts faces to total internal face count input: n (number of faces to be subtracted) example: add_internal_faces(n)
- subtract_internal_faces_i(n: int) None[source]
subtracts faces to total i-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_i(n)
- subtract_internal_faces_j(n: int) None[source]
subtracts faces to total j-direction internal face count input: n (number of faces to be subtracted) example: add_internal_faces_j(n)
- class g3d.defs.world.G3DSolverStatus[source]
Bases:
objectG3D solver status placeholder
- Attributes:
curitercompleted iterations at last solver state save
istepnumber of iterations since start
istep_savenumber of iterations since last solver state save
residualsolver residual
timesimulated time
- property curiter: int
completed iterations at last solver state save
- property istep: int
number of iterations since start
- property istep_save: int
number of iterations since last solver state save
- property residual: float
solver residual
- property time: float
simulated time
- class g3d.defs.world.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
- class g3d.defs.world.G3DWorld[source]
Bases:
objectG3D World placeholder
- Attributes:
displayinstance of G3D display placeholder
infoinstance of G3D info placeholder
ioinstance of G3D I/O placeholder
modelsinstance of G3D models placeholder
numinstance of G3D numerics placeholder
optionsinstance of G3D options placeholder
sizesinstance of G3D sizes placeholder
statusinstance of G3D status placeholder
- property display: G3DDisplay
instance of G3D display placeholder
- property io: G3DIOSettings
instance of G3D I/O placeholder
- property options: G3DRunOptions
instance of G3D options placeholder
- property status: G3DSolverStatus
instance of G3D status placeholder