1#ifndef __CS_GWF_TPF_H__
2#define __CS_GWF_TPF_H__
#define BEGIN_C_DECLS
Definition cs_defs.h:542
#define END_C_DECLS
Definition cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:335
unsigned short int cs_flag_t
Definition cs_defs.h:344
cs_gwf_model_type_t
Type of system of equation(s) to consider for the physical modelling.
Definition cs_gwf_param.h:127
void cs_gwf_tpf_update(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, double time_eval, cs_flag_t option_flag, cs_gwf_tpf_t *tpf)
Perform the update step in the case of a two-phase flow model in porous media (miscible or immiscible...
Definition cs_gwf_tpf.cpp:3246
cs_xdef_t * cs_gwf_tpf_define_relax_pty_by_time_func(cs_gwf_tpf_t *tpf, cs_time_func_t *func, void *func_context)
Define the relaxation property by value and set this value.
Definition cs_gwf_tpf.cpp:2533
void cs_gwf_tpf_finalize_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_flag_t flag, cs_gwf_tpf_t *tpf)
Last setup stage in the case of two-phase flows in a porous media (miscible or immiscible case)
Definition cs_gwf_tpf.cpp:2967
void cs_gwf_tpf_free(cs_gwf_tpf_t **p_tpf)
Free the context structure associated to the modelling of two-phase flows in a porous media.
Definition cs_gwf_tpf.cpp:2466
void cs_gwf_tpf_define_relax_pty_by_value(cs_gwf_tpf_t *tpf, double val)
Define the relaxation property by value and set this value.
Definition cs_gwf_tpf.cpp:2506
void cs_gwf_tpf_extra_post(int mesh_id, cs_lnum_t n_cells, const cs_lnum_t cell_ids[], cs_flag_t post_flag, const cs_property_t *abs_perm, const cs_gwf_tpf_t *tpf, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_time_step_t *time_step)
Predefined post-processing output for the groundwater flow module in case of saturated two-phase flow...
Definition cs_gwf_tpf.cpp:3436
void cs_gwf_tpf_compute(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_time_step_t *time_step, cs_flag_t option_flag, cs_gwf_tpf_t *tpf)
Compute the new state for the groundwater flows module. Case of two-phase flows in porous media.
Definition cs_gwf_tpf.cpp:3123
void cs_gwf_tpf_init_values(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_gwf_tpf_t *tpf)
Last setup stage in the case of two-phase flows in a porous media (miscible or immiscible case)
Definition cs_gwf_tpf.cpp:3064
void cs_gwf_tpf_init_setup(cs_flag_t post_flag, cs_gwf_tpf_t *tpf)
Initial setup stage for two-phase flows in porous media. At this stage, all soils have been defined a...
Definition cs_gwf_tpf.cpp:2773
void cs_gwf_tpf_current_to_previous(const cs_cdo_connect_t *connect, cs_gwf_tpf_t *tpf)
Operate a "current to previous" step on fields or arrays which have at least a storage of the previou...
Definition cs_gwf_tpf.cpp:3205
void cs_gwf_tpf_extra_op(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_time_step_t *ts, cs_flag_t post_flag, cs_gwf_tpf_t *tpf)
Predefined extra-operations for the groundwater flow module in case of miscible or immiscible two-pha...
Definition cs_gwf_tpf.cpp:3296
void cs_gwf_tpf_init(cs_gwf_tpf_t *tpf, cs_property_type_t perm_type)
Initialize the model context according to the settings done inside the function cs_user_model() Case ...
Definition cs_gwf_tpf.cpp:2696
void cs_gwf_tpf_log_setup(cs_gwf_tpf_t *tpf)
Log the setup related to the model context of two-phase flows. Common to the different sub-models rel...
Definition cs_gwf_tpf.cpp:2563
cs_gwf_tpf_t * cs_gwf_tpf_create(cs_gwf_model_type_t model)
Allocate and initialize the model context structure for two-phase flows in a porous media.
Definition cs_gwf_tpf.cpp:2330
void cs_time_func_t(double time, void *input, cs_real_t *retval)
Function which defines the evolution of a quantity according to the current time and any structure gi...
Definition cs_param_types.h:172
cs_flag_t cs_property_type_t
Definition cs_property.h:123
Definition cs_cdo_connect.h:61
Definition cs_cdo_quantities.h:145
Structure to handle the modelling of miscible or immiscible two-phase flows in a porous media.
Definition cs_gwf_hydraulic_model.h:310
Structure associated to the definition of a property relying on the cs_xdef_t structure.
time step descriptor
Definition cs_time_step.h:64
Structure storing medata for defining a quantity in a very flexible way.
Definition cs_xdef.h:160