#include <math.h>
#include <assert.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "fvm_defs.h"
#include "cs_ale.h"
#include "cs_base.h"
#include "cs_boundary.h"
#include "cs_boundary_zone.h"
#include "cs_cdo_assembly.h"
#include "cs_cdo_toolbox.h"
#include "cs_cdo_system.h"
#include "cs_control.h"
#include "cs_defs.h"
#include "cs_domain.h"
#include "cs_domain_op.h"
#include "cs_domain_setup.h"
#include "cs_equation.h"
#include "cs_equation_system.h"
#include "cs_gwf.h"
#include "cs_log.h"
#include "cs_log_iteration.h"
#include "cs_maxwell.h"
#include "cs_navsto_system.h"
#include "cs_parall.h"
#include "cs_post.h"
#include "cs_pressure_correction.h"
#include "cs_prototypes.h"
#include "cs_solid_selection.h"
#include "cs_solidification.h"
#include "cs_thermal_system.h"
#include "cs_timer.h"
#include "cs_timer_stats.h"
#include "cs_volume_zone.h"
#include "cs_walldistance.h"
#include "cs_cdo_main.h"
Functions | |
void | cs_f_cdo_solve_steady_state_domain (void) |
Solve only steady-state equations. More... | |
void | cs_f_cdo_solve_unsteady_state_domain (void) |
Solve all the equations of a computational domain for one time step. More... | |
static bool | _is_last_iter (const cs_time_step_t *ts) |
Check if this is the last iteration. More... | |
static bool | _needs_solving_steady_state_thermal (void) |
Check if one needs to solve the steady-state thermal equation. More... | |
static bool | _needs_solving_thermal (void) |
Check if one needs to solve the thermal equation. More... | |
static void | _compute_steady_user_equations (cs_domain_t *domain) |
Compute equations which user-defined and steady-state. More... | |
static void | _compute_unsteady_user_equations (cs_domain_t *domain, int nt_cur) |
Compute user-defined equation which are time-dependent. More... | |
static void | _solve_steady_state_domain (cs_domain_t *domain) |
Solve only steady-state equations. More... | |
static void | _define_current_time_step (cs_time_step_t *ts, cs_time_step_options_t *ts_opt) |
Set the current time step for this new time iteration. More... | |
static void | _solve_domain (cs_domain_t *domain) |
Solve all the equations of a computational domain for one time step. More... | |
static void | _log_setup (const cs_domain_t *domain) |
Summary of the setup of all major structures: cs_domain_t structure, all equations and all properties. More... | |
static void | _performance_log_monitoring (const cs_domain_t *domain) |
Summary of the performance monitoring for the major steps. More... | |
void | cs_cdo_initialize_setup (cs_domain_t *domain) |
Initialize the computational domain when CDO/HHO schemes are activated and cs_user_model() has been called. At this stage of the settings, mesh quantities and adjacencies are not defined. Only the major moddeling options are set. The related equations and main properties have been added. More... | |
void | cs_cdo_initialize_structures (cs_domain_t *domain, cs_mesh_t *m, cs_mesh_quantities_t *mq) |
Build additional connectivities and quantities when CDO/HHO schemes are activated. Finalize the setup and from the settings, define the structures related to equations and modules. More... | |
void | cs_cdo_finalize (cs_domain_t *domain) |
Free all structures allocated during the resolution of CDO/HHO schemes. More... | |
void | cs_cdo_is_initialized (bool *setup, bool *structures) |
Check if CDO has been initialized. More... | |
void | cs_cdo_main (cs_domain_t *domain) |
Main program for running a simulation with CDO kernel. More... | |
Variables | |
static int | _cdo_ts_id = -1 |
static long long | cs_cdo_setup_time = 0. |
static cs_property_t * | cs_dt_pty = NULL |
static bool | _initialized_setup = false |
static bool | _initialized_structures = false |
|
static |
Compute equations which user-defined and steady-state.
[in,out] | domain | pointer to a cs_domain_t structure |
|
static |
Compute user-defined equation which are time-dependent.
[in,out] | domain | pointer to a cs_domain_t structure |
[in] | nt_cur | current number of iteration done |
|
static |
Set the current time step for this new time iteration.
[in,out] | ts | pointer to a cs_time_step_t structure |
[in,out] | ts_opt | pointer to a cs_time_step_options_t structure |
|
inlinestatic |
Check if this is the last iteration.
[in] | ts | pointer to a cs_time_step_t structure |
|
static |
Summary of the setup of all major structures: cs_domain_t structure, all equations and all properties.
[in] | domain | pointer to the cs_domain_t structure to summarize |
|
inlinestatic |
Check if one needs to solve the steady-state thermal equation.
|
inlinestatic |
Check if one needs to solve the thermal equation.
|
static |
Summary of the performance monitoring for the major steps.
[in] | domain | pointer to the cs_domain_t structure to summarize |
|
static |
Solve all the equations of a computational domain for one time step.
[in,out] | domain | pointer to a cs_domain_t structure |
|
static |
Solve only steady-state equations.
[in,out] | domain | pointer to a cs_domain_t structure |
void cs_cdo_finalize | ( | cs_domain_t * | domain | ) |
Free all structures allocated during the resolution of CDO/HHO schemes.
[in,out] | domain | pointer to a cs_domain_t structure |
void cs_cdo_initialize_setup | ( | cs_domain_t * | domain | ) |
Initialize the computational domain when CDO/HHO schemes are activated and cs_user_model() has been called. At this stage of the settings, mesh quantities and adjacencies are not defined. Only the major moddeling options are set. The related equations and main properties have been added.
Initialize the computational domain when CDO/HHO schemes are activated and cs_user_model() has been called At this stage of the settings, mesh quantities and adjacencies are not defined. Only the major moddeling options are set. The related equations and main properties have been added.
[in,out] | domain | pointer to a cs_domain_t structure |
void cs_cdo_initialize_structures | ( | cs_domain_t * | domain, |
cs_mesh_t * | m, | ||
cs_mesh_quantities_t * | mq | ||
) |
Build additional connectivities and quantities when CDO/HHO schemes are activated. Finalize the setup and from the settings, define the structures related to equations and modules.
[in,out] | domain | pointer to a cs_domain_t structure |
[in,out] | m | pointer to a cs_mesh_t struct. |
[in] | mq | pointer to a cs_quantities_t struct. |
void cs_cdo_is_initialized | ( | bool * | setup, |
bool * | structures | ||
) |
Check if CDO has been initialized.
[in,out] | setup | indicator if setup has been initialized, or NULL if not queried |
[in,out] | structures | indicator if structures have been initialized, or NULL if not queried |
void cs_cdo_main | ( | cs_domain_t * | domain | ) |
Main program for running a simulation with CDO kernel.
Main program for running a simulation with the CDO kernel.
[in,out] | domain | pointer to a cs_domain_t structure |
void cs_f_cdo_solve_steady_state_domain | ( | void | ) |
Solve only steady-state equations.
void cs_f_cdo_solve_unsteady_state_domain | ( | void | ) |
Solve all the equations of a computational domain for one time step.
|
static |
|
static |
|
static |
|
static |
|
static |