Functions to handle the setup of a computational domain High level interface for handling the computation. More...
#include "cs_defs.h"#include <assert.h>#include "bft_mem.h"#include "cs_ale.h"#include "cs_boundary_zone.h"#include "cs_cdo_blas.h"#include "cs_cdo_system.h"#include "cs_equation.h"#include "cs_equation_param.h"#include "cs_evaluate.h"#include "cs_gwf.h"#include "cs_hodge.h"#include "cs_log.h"#include "cs_log_iteration.h"#include "cs_maxwell.h"#include "cs_mesh_deform.h"#include "cs_mesh_location.h"#include "cs_navsto_system.h"#include "cs_parall.h"#include "cs_pressure_correction.h"#include "cs_prototypes.h"#include "cs_solidification.h"#include "cs_source_term.h"#include "cs_thermal_system.h"#include "cs_time_step.h"#include "cs_walldistance.h"#include "cs_domain_setup.h" Include dependency graph for cs_domain_setup.c:
 Include dependency graph for cs_domain_setup.c:| Functions | |
| static void | _set_scheme_flags (cs_domain_t *domain) | 
| Define the scheme flags for the current computational domain Requirement: domain->cdo_context is alloctated.  More... | |
| void | cs_f_domain_setup_init_model_context (void) | 
| When the models have been activated, continue to allocate, add and define structures related to those models This function is called after the user function cs_user_model and before the user function cs_user_parameters.  More... | |
| void | cs_f_domain_initialize_cdo_systems (void) | 
| Initialize CDO systems.  More... | |
| void | cs_domain_set_time_param (cs_domain_t *domain, int nt_max, double t_max) | 
| Set parameters for unsteady computations: the max number of time steps or the final physical time of the simulation.  More... | |
| void | cs_domain_automatic_time_step_settings (cs_domain_t *domain) | 
| Set time step parameters for unsteady computations when this is not already done. This situation should occur when the GUI is used to set a constant time step.  More... | |
| cs_xdef_t * | cs_domain_def_time_step_by_function (cs_domain_t *domain, cs_time_func_t *func, void *func_input) | 
| Define the value of the time step thanks to a predefined function.  More... | |
| void | cs_domain_def_time_step_by_value (cs_domain_t *domain, double dt) | 
| Define the value of the time step.  More... | |
| void | cs_domain_initialize_setup (cs_domain_t *domain) | 
| First setup stage of the cs_domain_t structure Define extra domain boundaries Setup predefined equations Create fields (already done in the FV part) Define cs_sles_t structures for variable fields.  More... | |
| void | cs_domain_init_cdo_structures (cs_domain_t *domain) | 
| After having read the mesh and the first setup stage build the connectivities and mesh quantities related to CDO/HHO schemes.  More... | |
| void | cs_domain_finalize_user_setup (cs_domain_t *domain) | 
| Last user setup stage of the cs_domain_t structure.  More... | |
| void | cs_domain_finalize_module_setup (cs_domain_t *domain) | 
| Last user setup stage of the cs_domain_t structure.  More... | |
| void | cs_domain_initialize_systems (cs_domain_t *domain) | 
| Initialize systems of equations and their related field values according to the user settings.  More... | |
| void | cs_domain_setup_log (const cs_domain_t *domain) | 
| Summary of the main domain settings.  More... | |
Functions to handle the setup of a computational domain High level interface for handling the computation.
| 
 | static | 
Define the scheme flags for the current computational domain Requirement: domain->cdo_context is alloctated.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| void cs_domain_automatic_time_step_settings | ( | cs_domain_t * | domain | ) | 
Set time step parameters for unsteady computations when this is not already done. This situation should occur when the GUI is used to set a constant time step.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| cs_xdef_t* cs_domain_def_time_step_by_function | ( | cs_domain_t * | domain, | 
| cs_time_func_t * | func, | ||
| void * | func_input | ||
| ) | 
Define the value of the time step thanks to a predefined function.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| [in] | func | pointer to a cs_time_func_t function | 
| [in] | func_input | pointer to a structure cast on-the-fly | 
| void cs_domain_def_time_step_by_value | ( | cs_domain_t * | domain, | 
| double | dt | ||
| ) | 
Define the value of the time step.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| [in] | dt | value of the constant time step | 
| void cs_domain_finalize_module_setup | ( | cs_domain_t * | domain | ) | 
Last user setup stage of the cs_domain_t structure.
Last setup stage of the cs_domain_t structure.
| [in,out] | domain | pointer to a cs_domain_t struct. | 
| void cs_domain_finalize_user_setup | ( | cs_domain_t * | domain | ) | 
Last user setup stage of the cs_domain_t structure.
| [in,out] | domain | pointer to a cs_domain_t struct. | 
| void cs_domain_init_cdo_structures | ( | cs_domain_t * | domain | ) | 
After having read the mesh and the first setup stage build the connectivities and mesh quantities related to CDO/HHO schemes.
| [in,out] | domain | pointer to a cs_domain_t struct. | 
| void cs_domain_initialize_setup | ( | cs_domain_t * | domain | ) | 
First setup stage of the cs_domain_t structure Define extra domain boundaries Setup predefined equations Create fields (already done in the FV part) Define cs_sles_t structures for variable fields.
| [in,out] | domain | pointer to a cs_domain_t struct. | 
| void cs_domain_initialize_systems | ( | cs_domain_t * | domain | ) | 
Initialize systems of equations and their related field values according to the user settings.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| void cs_domain_set_time_param | ( | cs_domain_t * | domain, | 
| int | nt_max, | ||
| double | t_max | ||
| ) | 
Set parameters for unsteady computations: the max number of time steps or the final physical time of the simulation.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| [in] | nt_max | max. number of time step iterations | 
| [in] | t_max | final physical time of the simulation | 
| void cs_domain_setup_log | ( | const cs_domain_t * | domain | ) | 
Summary of the main domain settings.
| [in] | domain | pointer to the cs_domain_t structure to summarize | 
| void cs_f_domain_initialize_cdo_systems | ( | void | ) | 
Initialize CDO systems.
| void cs_f_domain_setup_init_model_context | ( | void | ) | 
When the models have been activated, continue to allocate, add and define structures related to those models This function is called after the user function cs_user_model and before the user function cs_user_parameters.