|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_PROTOTYPES_H__
2 #define __CS_PROTOTYPES_H__
809 const char *field_name,
810 const char *condition);
839 const char *field_name);
859 const char *source_type);
void cs_user_source_terms(cs_domain_t *domain, int f_id, cs_real_t *st_exp, cs_real_t *st_imp)
Additional user-defined source terms for variable equations (momentum, scalars, turbulence....
Definition: cs_user_source_terms.c:182
void cs_user_internal_coupling_add_volumes(cs_mesh_t *mesh)
Define volumes as internal coupling zones.
Definition: cs_internal_coupling.c:3027
void cs_user_numbering(void)
Define advanced mesh numbering options.
Definition: cs_user_performance_tuning.c:90
void const int * f_id
Definition: cs_gui.h:292
cs_real_t * cs_meg_source_terms(const cs_zone_t *zone, const char *name, const char *source_type)
Definition: cs_meg_source_terms.c:70
void cs_user_solver(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities)
Main call to user solver.
Definition: cs_user_solver.c:105
void cs_user_initialization(cs_domain_t *domain)
This function is called one time step to initialize problem.
Definition: cs_user_initialization.c:115
Definition: cs_field_pointer.h:189
Structure storing the main features of the computational domain and pointers to the main geometrical ...
Definition: cs_domain.h:87
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t cs_real_t cs_real_t trafbr[]
Definition: cs_prototypes.h:104
void cs_user_hgn_thermo_relax_time(const cs_mesh_t *mesh, const cs_real_t *alpha_eq, const cs_real_t *y_eq, const cs_real_t *z_eq, const cs_real_t *ei, const cs_real_t *v, cs_real_t *relax_tau)
Computation of the relaxation time-scale.
Definition: cs_user_hgn.c:93
void cs_real_t cs_real_t * xesp
Definition: cs_prototypes.h:70
void cs_user_physical_properties(cs_domain_t *domain)
This function is called each time step to define physical properties.
Definition: cs_user_physical_properties.c:80
void const int const int const int const int int int int int int int int int int int int int * itypfb
Definition: cs_gui_boundary_conditions.h:64
void cs_user_turbomachinery_rotor(void)
Define rotor axes, associated cells, and rotor/stator faces.
Definition: cs_user_turbomachinery.c:101
void cs_user_turbomachinery_set_rotation_velocity(void)
Define rotation velocity of rotor.
Definition: cs_user_turbomachinery.c:113
void const cs_lnum_t const cs_real_t cs_real_t * h_b
Definition: cs_prototypes.h:225
void cs_user_finalize_setup(cs_domain_t *domain)
Define or modify output user parameters. For CDO schemes, specify the elements such as properties,...
Definition: cs_user_parameters.c:167
void cs_real_t * t
Definition: cs_prototypes.h:239
void cs_user_radiative_transfer_bcs(int nvar, const int bc_type[], int icodcl[], int isothp[], cs_real_t *tmin, cs_real_t *tmax, cs_real_t *tx, const cs_real_t dt[], cs_real_t rcodcl[], const cs_real_t thwall[], const cs_real_t qincid[], cs_real_t hfcnvp[], cs_real_t flcnvp[], cs_real_t xlamp[], cs_real_t epap[], cs_real_t epsp[], cs_real_t textp[], cs_real_t tintp[])
User definition of radiative transfer boundary conditions.
Definition: cs_user_radiative_transfer_bcs.c:190
void cs_user_mesh_save(cs_mesh_t *mesh)
Enable or disable mesh saving.
Definition: cs_user_mesh.c:181
void cs_user_model(void)
Select physical model options, including user fields.
Definition: cs_user_parameters.c:128
void cs_user_postprocess_probes(void)
Define monitoring probes and profiles.
Definition: cs_user_postprocess.c:123
void cs_user_saturne_coupling(void)
Define couplings with other instances of Code_Saturne.
Definition: cs_user_coupling.c:117
#define END_C_DECLS
Definition: cs_defs.h:468
void cs_user_mesh_input(void)
Define mesh files to read and optional associated transformations.
Definition: cs_user_mesh.c:87
void cs_user_mesh_boundary(cs_mesh_t *mesh)
Insert boundaries into a mesh.
Definition: cs_user_mesh.c:137
subroutine haltyp(ivoset)
Definition: haltyp.f90:27
void cs_user_internal_coupling_from_disjoint_meshes(cs_mesh_t *mesh)
Define volumesi from separated meshes as internal coupling zones.
Definition: cs_internal_coupling.c:3046
void cs_user_join(void)
Define mesh joinings.
Definition: cs_user_mesh.c:99
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
void const cs_int_t * numtyp
Definition: cs_prototypes.h:104
void cs_user_turbomachinery(void)
Define rotor/stator model.
Definition: cs_user_turbomachinery.c:89
int cs_add_model_field_indexes(int f_id)
void const int const int const int const int int int int int int int int int int int int int int int * icodcl
Definition: cs_gui_boundary_conditions.h:64
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t * nfbrps
Definition: cs_prototypes.h:104
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t *const cs_real_3_t cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t cofbfp[]
Definition: cs_convection_diffusion.h:5386
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t lstfbr[]
Definition: cs_prototypes.h:104
void cs_real_t * eh
Definition: cs_prototypes.h:70
void cs_user_internal_coupling(void)
Define internal coupling options.
Definition: cs_user_parameters.c:219
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
int cs_user_solver_set(void)
Set user solver.
Definition: cs_user_solver.c:89
subroutine b_t_to_h(nlst, lstfac, t_b, h_b)
Definition: b_t_to_h.f90:51
void cs_user_postprocess_meshes(void)
Define post-processing meshes.
Definition: cs_user_postprocess.c:109
subroutine findpt(ncelet, ncel, xyzcen, xx, yy, zz, node, ndrang)
Definition: findpt.f90:57
void const cs_int_t const cs_int_t * nvar
Definition: cs_prototypes.h:104
void cs_user_mesh_smoothe(cs_mesh_t *mesh)
Mesh smoothing.
Definition: cs_user_mesh.c:165
Definition: cs_field_pointer.h:190
Definition: cs_mesh_quantities.h:90
void cs_real_t cs_real_t cs_real_t * f1mc
Definition: cs_prototypes.h:70
void cs_user_partition(void)
Define advanced partitioning options.
Definition: cs_user_performance_tuning.c:102
void cs_lagr_status(int *model_flag, int *restart_flag, int *frozen_flag)
void cs_real_t * distpa
Definition: cs_prototypes.h:95
void cs_user_boundary_conditions(int nvar, int icodcl[], int bc_type[], cs_real_t rcodcl[])
User definition of boundary conditions.
Definition: cs_user_boundary_conditions.c:101
void cs_real_t cs_real_t cs_real_t cs_real_t * f2mc
Definition: cs_prototypes.h:70
void cs_user_mesh_warping(void)
Set options for cutting of warped faces.
Definition: cs_user_mesh.c:123
void cs_user_head_losses(const cs_zone_t *zone, cs_real_t cku[][6])
Compute GUI-defined head losses for a given volume zone.
Definition: cs_user_head_losses.c:116
void cs_user_time_moments(void)
Define time moments.
Definition: cs_user_parameters.c:205
void const cs_int_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t cs_int_t cs_int_t * ndrang
Definition: cs_prototypes.h:122
void cs_user_scaling_elec(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, cs_real_t *dt)
Define scaling parameter for electric model.
Definition: cs_user_electric_scaling.c:90
void cs_user_extra_operations_initialize(cs_domain_t *domain)
Initialize variables.
Definition: cs_user_extra_operations.c:96
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t *const cs_real_3_t cs_real_t const cs_real_t coefap[]
Definition: cs_convection_diffusion.h:5386
integer, save isuit1
Definition: optcal.f90:328
Definition: cs_field_pointer.h:71
void cs_real_t cs_real_t * temper
Definition: cs_prototypes.h:170
void const cs_int_t * nrgpar
Definition: cs_prototypes.h:85
void const cs_int_t * ncel
Definition: cs_prototypes.h:122
subroutine dvvpst(nummai, numtyp, nvar, ncelps, nfbrps, lstcel, lstfbr, tracel, trafbr)
Definition: dvvpst.f90:54
subroutine cpthp1(mode, eh, xesp, f1mc, f2mc, tp)
Definition: cpthp1.f90:28
void cs_user_mesh_modify(cs_mesh_t *mesh)
Modify geometry and mesh.
Definition: cs_user_mesh.c:151
void cs_real_t * enthal
Definition: cs_prototypes.h:170
void cs_user_1d_wall_thermal(int iappel, int isuit1)
Definition: cs_user_1d_wall_thermal.c:117
void cs_user_radiative_transfer_parameters(void)
User function for input of radiative transfer module options.
Definition: cs_user_radiative_transfer.c:112
void const cs_int_t * mode
Definition: cs_syr_coupling.h:132
integer, save ncelet
Definition: mesh.f90:46
time step descriptor
Definition: cs_time_step.h:51
void cs_user_rad_transfer_absorption(const int bc_type[], const cs_real_t dt[], cs_real_t ck[])
Absorption coefficient for radiative module.
Definition: cs_user_radiative_transfer.c:140
void cs_user_rad_transfer_net_flux(const int itypfb[], const cs_real_t dt[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t twall[], const cs_real_t qincid[], const cs_real_t xlam[], const cs_real_t epa[], const cs_real_t eps[], const cs_real_t ck[], cs_real_t net_flux[])
Compute the net radiation flux.
Definition: cs_user_radiative_transfer.c:178
void cs_int_t cs_int_t cs_int_t cs_real_t * ts
Definition: cs_at_plugin.h:63
subroutine initi1
Definition: initi1.f90:29
void cs_user_periodicity(void)
Define periodic faces.
Definition: cs_user_mesh.c:111
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t *const cs_real_3_t cs_real_t const cs_real_t const cs_real_t coefbp[]
Definition: cs_convection_diffusion.h:5386
void const cs_int_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t * zz
Definition: cs_prototypes.h:122
void cs_user_extra_operations_finalize(cs_domain_t *domain)
This function is called at the end of the calculation.
Definition: cs_user_extra_operations.c:130
void cs_user_syrthes_coupling(void)
Define couplings with SYRTHES code.
Definition: cs_user_coupling.c:102
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
struct _cs_probe_set_t cs_probe_set_t
Definition: cs_probe.h:53
subroutine usthht(mode, enthal, temper)
Definition: usthht.f90:39
void const cs_int_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t cs_int_t * node
Definition: cs_prototypes.h:122
subroutine csinit(irgpar, nrgpar)
Definition: csinit.f90:25
void cs_real_t cs_real_t cs_real_t cs_real_t cs_real_t * tp
Definition: cs_prototypes.h:70
void cs_user_matrix_tuning(void)
Define sparse matrix tuning options.
Definition: cs_user_performance_tuning.c:126
void cs_user_porosity(void)
Compute the porosity (volume factor when the porosity model is activated. (cs_glob_porous_model > 0)...
Definition: cs_user_porosity.c:78
void cs_user_extra_operations(cs_domain_t *domain)
This function is called at the end of each time step.
Definition: cs_user_extra_operations.c:113
void const cs_int_t const cs_real_t * xyzcen
Definition: cs_prototypes.h:122
void cs_user_postprocess_writers(void)
Define post-processing writers.
Definition: cs_user_postprocess.c:93
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t *const cs_real_3_t cs_real_t const cs_real_t const cs_real_t const cs_real_t cofafp[]
Definition: cs_convection_diffusion.h:5386
void cs_user_parallel_io(void)
Define parallel IO settings.
Definition: cs_user_performance_tuning.c:114
subroutine caltri
Definition: caltri.f90:36
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:301
void cs_user_coupling(void)
Define global options for couplings.
Definition: cs_user_coupling.c:87
void cs_user_parameters(cs_domain_t *domain)
Define or modify general numerical and physical user parameters.
Definition: cs_user_parameters.c:150
subroutine c_h_to_t(h, t)
Definition: c_h_to_t.f90:46
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t lstcel[]
Definition: cs_prototypes.h:104
void const cs_int_t const cs_real_t const cs_real_t const cs_real_t * yy
Definition: cs_prototypes.h:122
Definition: cs_field_pointer.h:65
void cs_user_postprocess_activate(int nt_max_abs, int nt_cur_abs, double t_cur_abs)
Definition: cs_user_postprocess.c:185
void cs_meg_volume_function(const cs_zone_t *zone, cs_field_t *f[])
This function is used to compute user defined values for fields over a given volume zone.
Definition: cs_meg_volume_function.c:67
cs_real_t * cs_meg_boundary_function(const cs_zone_t *zone, const char *field_name, const char *condition)
Definition: cs_meg_boundary_function.c:70
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t const cs_int_t cs_real_t tracel[]
Definition: cs_prototypes.h:104
void const cs_int_t const cs_int_t const cs_int_t * ncelps
Definition: cs_prototypes.h:104
subroutine distpr(itypfb)
Definition: distpr.f90:47
void cs_user_zones(void)
Define volume and surface zones.
Definition: cs_user_zones.c:82
void cs_user_linear_solvers(void)
Define linear solver options.
Definition: cs_user_parameters.c:189
void cs_user_postprocess_values(const char *mesh_name, int mesh_id, int cat_id, cs_probe_set_t *probes, cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, cs_lnum_t n_vertices, const cs_lnum_t cell_list[], const cs_lnum_t i_face_list[], const cs_lnum_t b_face_list[], const cs_lnum_t vertex_list[], const cs_time_step_t *ts)
User function for output of values on a post-processing mesh.
Definition: cs_user_postprocess.c:155
Definition: cs_field_pointer.h:97
void const cs_int_t const cs_real_t const cs_real_t * xx
Definition: cs_prototypes.h:122
Field descriptor.
Definition: cs_field.h:124
void const cs_lnum_t const cs_real_t * t_b
Definition: cs_prototypes.h:225
void cs_user_mesh_bad_cells_tag(cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Tag bad cells within the mesh based on user-defined geometric criteria.
Definition: cs_user_mesh.c:196
void const cs_lnum_t * lstfac
Definition: cs_prototypes.h:225
subroutine set_cdo_mode(icdoval)
Definition: cdomod.f90:88
void const int const int const int const int int int int int int int int int int int int int int int double double double double double double double double double double int double * rcodcl
Definition: cs_gui_boundary_conditions.h:64
void CS_PROCF(caltri, CALTRI)(void)
void cs_user_gwf_setup(cs_domain_t *domain)
Specify for each soil and tracer how is defined each term of the the tracer equation....
Definition: cs_user_gwf.c:96
cs_real_t * cs_meg_initialization(const cs_zone_t *zone, const char *field_name)
Evaluate GUI defined mathematical expressions over volume zones for initialization.
Definition: cs_meg_initialization.c:71