My Project
programmer's documentation
Functions
cs_time_step.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_log.h"
#include "cs_map.h"
#include "cs_parall.h"
#include "cs_mesh_location.h"
#include "cs_stokes_model.h"
#include "cs_time_step.h"
Include dependency graph for cs_time_step.c:

Functions

cs_time_step_tcs_get_glob_time_step (void)
 Provide acces to cs_glob_time_step. More...
 
cs_time_step_options_tcs_get_glob_time_step_options (void)
 Provide acces to cs_glob_time_step_options. More...
 
void cs_time_step_define_variable (int is_variable)
 Define whether time step is variable or not. More...
 
void cs_time_step_define_local (int is_local)
 Define whether time step is local in space or not. More...
 
void cs_time_step_define_nt_max (int nt_max)
 Define maximum time step number. More...
 
void cs_time_step_define_t_max (double t_max)
 Define maximum time value. More...
 
void cs_time_step_define_prev (int nt_prev, double t_prev)
 Set time values from previous (usually restarted) calculations. More...
 
void cs_time_step_increment (double dt)
 Increment the global time step. More...
 
void cs_time_step_redefine_cur (int nt_cur, double t_cur)
 Redefine the current time values. More...
 
void cs_time_step_log_setup (void)
 Print the time stepping options to setup.log. More...
 

Detailed Description

base time step data.

Function Documentation

◆ cs_get_glob_time_step()

cs_time_step_t* cs_get_glob_time_step ( void  )

Provide acces to cs_glob_time_step.

needed to initialize structure with GUI

◆ cs_get_glob_time_step_options()

cs_time_step_options_t* cs_get_glob_time_step_options ( void  )

Provide acces to cs_glob_time_step_options.

needed to initialize structure with GUI

◆ cs_time_step_define_local()

void cs_time_step_define_local ( int  is_local)

Define whether time step is local in space or not.

Parameters
[in]is_local0 if time step is uniform in space, 1 if it is local

◆ cs_time_step_define_nt_max()

void cs_time_step_define_nt_max ( int  nt_max)

Define maximum time step number.

Parameters
[in]nt_maxmaximum time step number (unlimited if negative)

◆ cs_time_step_define_prev()

void cs_time_step_define_prev ( int  nt_prev,
double  t_prev 
)

Set time values from previous (usually restarted) calculations.

Parameters
[in]nt_prevprevious time step number
[in]t_prevprevious physical time

◆ cs_time_step_define_t_max()

void cs_time_step_define_t_max ( double  t_max)

Define maximum time value.

Parameters
[in]t_maxmaximum time value (unlimited if negative)

◆ cs_time_step_define_variable()

void cs_time_step_define_variable ( int  is_variable)

Define whether time step is variable or not.

Parameters
[in]is_variable0 if time step is variable in time, 1 if it is fixed

◆ cs_time_step_increment()

void cs_time_step_increment ( double  dt)

Increment the global time step.

Parameters
[in]dttime step value to increment

◆ cs_time_step_log_setup()

void cs_time_step_log_setup ( void  )

Print the time stepping options to setup.log.

◆ cs_time_step_redefine_cur()

void cs_time_step_redefine_cur ( int  nt_cur,
double  t_cur 
)

Redefine the current time values.

Remarks
Using cs_time_step_increment is preferred, but this function may be required for reverting to a previous time step.
Parameters
[in]nt_curcurrent time step number
[in]t_curcurrent physical time