8.2
general documentation
cs_user_initialization.c File Reference

Initialization prior to solving time steps. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <ple_coupling.h>
#include "cs_headers.h"
+ Include dependency graph for cs_user_initialization.c:

Functions

void cs_user_initial_conditions (cs_domain_t *domain)
 This function is called at startup and allows overloading the GUI defined initialization functions. More...
 
void cs_user_initialization (cs_domain_t *domain)
 This function is called one time step to initialize problem. More...
 

Detailed Description

Initialization prior to solving time steps.

Initialize variables.

Define initial conditions for variables.

This function is called before the beginning of the computation allowing an overload of the GUI defined initialization (called just after cs_gui_initial_conditions).

Parameters
[in,out]domainpointer to a cs_domain_t structure

This function is called at beginning of the computation (restart or not) before the time step loop.

This is intended to initialize or modify (when restarted) variable and time step values.

Parameters
[in,out]domainpointer to a cs_domain_t structure

Function Documentation

◆ cs_user_initial_conditions()

void cs_user_initial_conditions ( cs_domain_t domain)

This function is called at startup and allows overloading the GUI defined initialization functions.

This function is called before the beginning of the computation allowing an overload of the GUI defined initialization (called just after cs_gui_initial_conditions).

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_user_initialization()

void cs_user_initialization ( cs_domain_t domain)

This function is called one time step to initialize problem.

Parameters
[in,out]domainpointer to a cs_domain_t structure