8.0
general documentation
cs_cdo_main.c File Reference
#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"
+ Include dependency graph for cs_cdo_main.c:

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_tcs_dt_pty = NULL
 
static bool _initialized_setup = false
 
static bool _initialized_structures = false
 

Function Documentation

◆ _compute_steady_user_equations()

static void _compute_steady_user_equations ( cs_domain_t domain)
static

Compute equations which user-defined and steady-state.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ _compute_unsteady_user_equations()

static void _compute_unsteady_user_equations ( cs_domain_t domain,
int  nt_cur 
)
static

Compute user-defined equation which are time-dependent.

Parameters
[in,out]domainpointer to a cs_domain_t structure
[in]nt_curcurrent number of iteration done

◆ _define_current_time_step()

static void _define_current_time_step ( cs_time_step_t ts,
cs_time_step_options_t ts_opt 
)
static

Set the current time step for this new time iteration.

Parameters
[in,out]tspointer to a cs_time_step_t structure
[in,out]ts_optpointer to a cs_time_step_options_t structure

◆ _is_last_iter()

static bool _is_last_iter ( const cs_time_step_t ts)
inlinestatic

Check if this is the last iteration.

Parameters
[in]tspointer to a cs_time_step_t structure
Returns
true or false

◆ _log_setup()

static void _log_setup ( const cs_domain_t domain)
static

Summary of the setup of all major structures: cs_domain_t structure, all equations and all properties.

Parameters
[in]domainpointer to the cs_domain_t structure to summarize

◆ _needs_solving_steady_state_thermal()

static bool _needs_solving_steady_state_thermal ( void  )
inlinestatic

Check if one needs to solve the steady-state thermal equation.

Returns
true or false

◆ _needs_solving_thermal()

static bool _needs_solving_thermal ( void  )
inlinestatic

Check if one needs to solve the thermal equation.

Returns
true or false

◆ _performance_log_monitoring()

static void _performance_log_monitoring ( const cs_domain_t domain)
static

Summary of the performance monitoring for the major steps.

Parameters
[in]domainpointer to the cs_domain_t structure to summarize

◆ _solve_domain()

static void _solve_domain ( cs_domain_t domain)
static

Solve all the equations of a computational domain for one time step.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ _solve_steady_state_domain()

static void _solve_steady_state_domain ( cs_domain_t domain)
static

Solve only steady-state equations.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_cdo_finalize()

void cs_cdo_finalize ( cs_domain_t domain)

Free all structures allocated during the resolution of CDO/HHO schemes.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_cdo_initialize_setup()

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.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_cdo_initialize_structures()

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.

Parameters
[in,out]domainpointer to a cs_domain_t structure
[in,out]mpointer to a cs_mesh_t struct.
[in]mqpointer to a cs_quantities_t struct.

◆ cs_cdo_is_initialized()

void cs_cdo_is_initialized ( bool *  setup,
bool *  structures 
)

Check if CDO has been initialized.

Parameters
[in,out]setupindicator if setup has been initialized, or NULL if not queried
[in,out]structuresindicator if structures have been initialized, or NULL if not queried

◆ cs_cdo_main()

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.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_f_cdo_solve_steady_state_domain()

void cs_f_cdo_solve_steady_state_domain ( void  )

Solve only steady-state equations.

◆ cs_f_cdo_solve_unsteady_state_domain()

void cs_f_cdo_solve_unsteady_state_domain ( void  )

Solve all the equations of a computational domain for one time step.

Variable Documentation

◆ _cdo_ts_id

int _cdo_ts_id = -1
static

◆ _initialized_setup

bool _initialized_setup = false
static

◆ _initialized_structures

bool _initialized_structures = false
static

◆ cs_cdo_setup_time

long long cs_cdo_setup_time = 0.
static

◆ cs_dt_pty

cs_property_t* cs_dt_pty = NULL
static