programmer's documentation
cs_gui.h
Go to the documentation of this file.
1 #ifndef __CS_GUI_H__
2 #define __CS_GUI_H__
3 
4 /*============================================================================
5  * Management of the GUI parameters file: main parameters
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2015 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 /*----------------------------------------------------------------------------
31  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_base.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Type definitions
42  *============================================================================*/
43 
44 /*============================================================================
45  * Public function prototypes for Fortran API
46  *============================================================================*/
47 
48 /*----------------------------------------------------------------------------
49  * Thermal model.
50  *
51  * Fortran Interface:
52  *
53  * SUBROUTINE CSTHER (ITHERM)
54  * *****************
55  *
56  * INTEGER ITHERM --> thermal model
57  * integer itpscl --> temperature scale if itherm = 1
58  *----------------------------------------------------------------------------*/
59 
60 
61 void CS_PROCF (csther, CSTHER) (int *itherm,
62  int *itpscl);
63 
64 /*----------------------------------------------------------------------------
65  * Turbulence model.
66  *
67  * Fortran Interface:
68  *
69  * SUBROUTINE CSTURB
70  * *****************
71  *
72  * INTEGER ITURB --> turbulence model
73  * INTEGER IWALLF --> wall law treatment
74  * INTEGER IGRAKE --> k-eps gravity effects
75  * INTEGER IGRAKI --> Rij-eps gravity effects
76  * DOUBLE PRECISION XLOMLG --> mixing_length_scale
77  *----------------------------------------------------------------------------*/
78 
79 void CS_PROCF (csturb, CSTURB) (int *iturb,
80  int *iwallf,
81  int *igrake,
82  int *igrari,
83  double *xlomlg);
84 
85 /*----------------------------------------------------------------------------
86  * Specific heat variable or constant indicator.
87  *
88  * Fortran Interface:
89  *
90  * SUBROUTINE CSCPVA
91  * *****************
92  *
93  * INTEGER ICP --> Specific heat variable or constant indicator
94  *----------------------------------------------------------------------------*/
95 
96 void CS_PROCF (cscpva, CSCPVA) (int *icp);
97 
98 /*----------------------------------------------------------------------------
99  * Volumic viscosity variable or constant indicator.
100  *
101  * Fortran Interface:
102  *
103  * SUBROUTINE CSCVVVA (ICP)
104  * *****************
105  *
106  * INTEGER IVISCV --> specific heat variable or constant indicator
107  *----------------------------------------------------------------------------*/
108 
109 void CS_PROCF (csvvva, CSVVVA) (int *iviscv);
110 
111 /*----------------------------------------------------------------------------
112  * User thermal scalar.
113  *
114  * Fortran Interface:
115  *
116  * SUBROUTINE UITHSC
117  * *****************
118  *----------------------------------------------------------------------------*/
119 
120 void CS_PROCF (uithsc, UITHSC) (void);
121 
122 /*----------------------------------------------------------------------------
123  * Constant or variable indicator for the user scalar laminar viscosity.
124  *
125  * Fortran Interface:
126  *
127  * subroutine csivis
128  * *****************
129  *----------------------------------------------------------------------------*/
130 
131 void CS_PROCF (csivis, CSIVIS) (void);
132 
133 /*----------------------------------------------------------------------------
134  * Time passing parameter.
135  *
136  * Fortran Interface:
137  *
138  * SUBROUTINE CSIDTV (IDTVAR)
139  * *****************
140  *
141  * INTEGER IDTVAR --> fixed or variable time step
142  *----------------------------------------------------------------------------*/
143 
144 void CS_PROCF(csidtv, CSIDTV) (int *idtvar);
145 
146 /*----------------------------------------------------------------------------
147  * Hydrostatic pressure parameter.
148  *
149  * Fortran Interface:
150  *
151  * SUBROUTINE CSIPHY (IPHYDR)
152  * *****************
153  *
154  * INTEGER IPHYDR --> hydrostatic pressure
155  *----------------------------------------------------------------------------*/
156 
157 void CS_PROCF (csiphy, CSIPHY) (int *iphydr);
158 
159 /*----------------------------------------------------------------------------
160  * Hydrostatic equilibrium parameter.
161  *
162  * Fortran Interface:
163  *
164  * SUBROUTINE CSCFGP (ICFGRP)
165  * *****************
166  *
167  * INTEGER ICFGRP --> hydrostatic equilibrium
168  *----------------------------------------------------------------------------*/
169 
170 void CS_PROCF (cscfgp, CSCFGP) (int *icfgrp);
171 
172 /*----------------------------------------------------------------------------
173  * Restart parameters.
174  *
175  * Fortran Interface:
176  *
177  * SUBROUTINE CSISUI
178  * *****************
179  *
180  * INTEGER NTSUIT --> checkpoint frequency
181  * INTEGER ILEAUX --> restart with auxiliary
182  * INTEGER ICCFVG --> restart with frozen field
183  *----------------------------------------------------------------------------*/
184 
185 
186 void CS_PROCF (csisui, CSISUI) (int *ntsuit,
187  int *ileaux,
188  int *iccvfg);
189 
190 /*----------------------------------------------------------------------------
191  * Time passing parameters.
192  *
193  * Fortran Interface:
194  *
195  * SUBROUTINE CSTIME
196  * *****************
197  *
198  * INTEGER INPDT0 --> zero tim step
199  * INTEGER IPTLTO --> thermal time step control
200  * INTEGER NTMABS --> iterations numbers
201  * INTEGER IDTVAR --> time step's options
202  * DOUBLE PRECISION DTREF --> time step
203  * DOUBLE PRECISION DTMIN --> minimal time step
204  * DOUBLE PRECISION DTMAX --> maximal time step
205  * DOUBLE PRECISION COUMAX --> maximal courant number
206  * DOUBLE PRECISION FOUMAX --> maximal fournier number
207  * DOUBLE PRECISION VARRDT --> max time step variation between 2 iterations
208  * DOUBLE PRECISION RELXST --> relaxation coefficient if idtvar = -1
209  *----------------------------------------------------------------------------*/
210 
211 void CS_PROCF (cstime, CSTIME) (int *inpdt0,
212  int *iptlro,
213  int *ntmabs,
214  int *idtvar,
215  double *dtref,
216  double *dtmin,
217  double *dtmax,
218  double *coumax,
219  double *foumax,
220  double *varrdt,
221  double *relxst);
222 
223 /*----------------------------------------------------------------------------
224  *
225  * Fortran Interface:
226  *
227  * SUBROUTINE UINUM1
228  * *****************
229  *
230  *----------------------------------------------------------------------------*/
231 
232 void CS_PROCF (uinum1, UINUM1) (double *blencv,
233  int *ischcv,
234  int *isstpc,
235  int *ircflu,
236  double *cdtvar,
237  double *epsilo,
238  int *nswrsm);
239 
240 /*----------------------------------------------------------------------------
241  * Global numerical parameters.
242  *
243  * Fortran Interface:
244  *
245  * SUBROUTINE CSNUM2
246  * *****************
247  *
248  * INTEGER IVISSE --> gradient transpose
249  * INTEGER RELAXP --> pressure relaxation
250  * INTEGER IPUCOU --> velocity pressure coupling
251  * INTEGER EXTRAG --> wall pressure extrapolation
252  * INTEGER IMRGRA --> gradient reconstruction
253  * INTEGER NTERUP --> piso sweep number
254  *----------------------------------------------------------------------------*/
255 
256 void CS_PROCF (csnum2, CSNUM2) ( int *ivisse,
257  double *relaxp,
258  int *ipucou,
259  double *extrag,
260  int *imrgra,
261  int *nterup);
262 
263 void CS_PROCF (csphys, CSPHYS) (const int *nmodpp,
264  int *irovar,
265  int *ivivar,
266  int *icorio,
267  double *gx,
268  double *gy,
269  double *gz,
270  double *ro0,
271  double *viscl0,
272  double *viscv0,
273  double *visls0,
274  double *cp0,
275  double *t0,
276  double *p0,
277  double *xmasmr,
278  int *itempk);
279 
280 /*----------------------------------------------------------------------------
281  * User scalar min and max values for clipping.
282  *
283  * Fortran Interface:
284  *
285  * subroutine cssca2
286  * *****************
287  *
288  * integer iturb <-- turbulence model
289  * integer iturt --> turbulent flux model
290  *----------------------------------------------------------------------------*/
291 
292 void CS_PROCF (cssca2, CSSCA2) (const int *iturb,
293  int *iturt);
294 
295 void CS_PROCF (cssca3, CSSCA3) (double *visls0,
296  double *t0,
297  double *p0,
298  double *cp0);
299 
300 /*----------------------------------------------------------------------------
301  * Turbulence initialization parameters.
302  *
303  * Fortran Interface:
304  *
305  * SUBROUTINE CSTINI
306  * *****************
307  *
308  * INTEGER UREF --> reference velocity
309  * INTEGER ALMAX --> reference length
310  *----------------------------------------------------------------------------*/
311 
312 void CS_PROCF (cstini, CSTINI) (double *uref,
313  double *almax);
314 
315 /*----------------------------------------------------------------------------
316  * Solver taking a scalar porosity into account
317  *
318  * Fortran Interface:
319  *
320  * SUBROUTINE UIIPSU
321  * *****************
322  *
323  * INTEGER IPOROS --> porosity
324  *----------------------------------------------------------------------------*/
325 
326 void CS_PROCF (uiipsu, UIIPSU) (int *iporos);
327 
328 /*----------------------------------------------------------------------------
329  * Define porosity.
330  *
331  * Fortran Interface:
332  *
333  * SUBROUTINE UIPORO
334  * *****************
335  *
336  * INTEGER IPOROS <-- porosity
337  *----------------------------------------------------------------------------*/
338 
339 void CS_PROCF (uiporo, UIPORO) (const int *ncelet,
340  const int *iporos);
341 
342 /*----------------------------------------------------------------------------
343  * User momentum source terms.
344  *
345  * Fortran Interface:
346  *
347  * subroutine uitsnv (ncelet, vel, tsexp, tsimp)
348  * *****************
349  *
350  * integer ncelet <-- number of cells with halo
351  * double precision vel <-- fluid velocity
352  * double precision tsexp --> explicit source terms
353  * double precision tsimp --> implicit source terms
354  *----------------------------------------------------------------------------*/
355 
356 void CS_PROCF(uitsnv, UITSNV)(const cs_real_3_t *restrict vel,
357  cs_real_3_t *restrict tsexp,
358  cs_real_33_t *restrict tsimp);
359 
360 /*----------------------------------------------------------------------------
361  * User scalar source terms.
362  *
363  * Fortran Interface:
364  *
365  * subroutine uitssc (f_id, pvar, tsexp, tsimp)
366  * *****************
367  *
368  * integer f_id <-- field id
369  * double precision pvar <-- scalar
370  * double precision tsexp --> explicit source terms
371  * double precision tsimp --> implicit source terms
372  *----------------------------------------------------------------------------*/
373 
374 void CS_PROCF(uitssc, UITSSC)(const int *f_id,
375  const cs_real_t *restrict pvar,
376  cs_real_t *restrict tsexp,
377  cs_real_t *restrict tsimp);
378 
379 /*----------------------------------------------------------------------------
380  * Thermal scalar source terms.
381  *
382  * Fortran Interface:
383  *
384  * subroutine uitsth (f_id, pvar, tsexp, tsimp)
385  * *****************
386  *
387  * integer f_id <-- field id
388  * double precision pvar <-- scalar
389  * double precision tsexp --> explicit source terms
390  * double precision tsimp --> implicit source terms
391  *----------------------------------------------------------------------------*/
392 
393 void CS_PROCF(uitsth, UITSTH)(const int *f_id,
394  const cs_real_t *restrict pvar,
395  cs_real_t *restrict tsexp,
396  cs_real_t *restrict tsimp);
397 
398 /*----------------------------------------------------------------------------
399  * Variables and user scalars initialization.
400  *
401  * Fortran Interface:
402  *
403  * subroutine uiiniv
404  * *****************
405  *
406  * integer ncelet <-- number of cells with halo
407  * integer isuite <-- restart indicator
408  * integer idarcy <-- darcy module activation
409  * integer iccfth <-- type of initialization (compressible model)
410  * double precision ro0 <-- value of density if IROVAR=0
411  * double precision cp0 <-- value of specific heat if ICP=0
412  * double precision viscl0 <-- value of viscosity if IVIVAR=0
413  * double precision uref <-- value of reference velocity
414  * double precision almax <-- value of reference length
415  * double precision xyzcen <-- cell's gravity center
416  *----------------------------------------------------------------------------*/
417 
418 void CS_PROCF(uiiniv, UIINIV)(const int *ncelet,
419  const int *isuite,
420  const int *idarcy,
421  int *iccfth,
422  const cs_real_t *ro0,
423  const cs_real_t *cp0,
424  const cs_real_t *viscl0,
425  const cs_real_t *uref,
426  const cs_real_t *almax,
427  const double *xyzcen);
428 
429 /*----------------------------------------------------------------------------
430  * User law for material Properties
431  *
432  * Fortran Interface:
433  *
434  * subroutine uiphyv
435  * *****************
436  *
437  * integer ncel <-- number of cells whithout halo
438  * integer ncelet <-- number of cells whith halo
439  * integer icp <-- pointer for specific heat Cp
440  * integer irovar <-- =1 if rho variable, =0 if rho constant
441  * integer ivivar <-- =1 if mu variable, =0 if mu constant
442  * integer iviscv <-- pointer for volumic viscosity viscv
443  * integer itempk <-- pointer for temperature (in K)
444  * double precision p0 <-- pressure reference value
445  * double precision t0 <-- temperature reference value
446  * double precision ro0 <-- density reference value
447  * double precision cp0 <-- specific heat reference value
448  * double precision viscl0 <-- dynamic viscosity reference value
449  * double precision visls0 <-- diffusion coefficient of the scalars
450  * double precision viscv0 <-- volumic viscosity
451  *----------------------------------------------------------------------------*/
452 
453 void CS_PROCF(uiphyv, UIPHYV)(const cs_int_t *ncel,
454  const cs_int_t *ncelet,
455  const cs_int_t *icp,
456  const cs_int_t *irovar,
457  const cs_int_t *ivivar,
458  const cs_int_t *iviscv,
459  const cs_int_t *itempk,
460  const cs_real_t *p0,
461  const cs_real_t *t0,
462  const cs_real_t *ro0,
463  const cs_real_t *cp0,
464  const cs_real_t *viscl0,
465  const cs_real_t *visls0,
466  const cs_real_t *viscv0);
467 
468 /*----------------------------------------------------------------------------
469  * Head losses definition
470  *
471  * Fortran Interface:
472  *
473  * subroutine uikpdc
474  * *****************
475  *
476  * integer iappel <-- number of calls during a time step
477  * integer ncelet <-- number of cells with halo
478  * integer ncepdp --> number of cells with head losses
479  * integer icepdc --> ncepdp cells number with head losses
480  * double precision ckupdc --> head losses matrix
481  *----------------------------------------------------------------------------*/
482 
483 void CS_PROCF(uikpdc, UIKPDC)(const int* iappel,
484  const int* ncelet,
485  int* ncepdp,
486  int icepdc[],
487  double ckupdc[]);
488 
489 /*----------------------------------------------------------------------------
490  * 1D profile postprocessing
491  *
492  * Fortran Interface:
493  *
494  * SUBROUTINE UIPROF
495  * *****************
496  *
497  * INTEGER NCELET <-- number of cells with halo
498  * INTEGER NCEL <-- number of cells without halo
499  * INTEGER NTMABS <-- max iterations numbers
500  * INTEGER NTCABS <-- current iteration number
501  * DOUBLE PRECISION TTCABS <-- current physical time
502  * DOUBLE PRECISION TTMABS <-- max physical time
503  * DOUBLE PRECISION TTPABS <-- physical time at calculation beginning
504  * DOUBLE PRECISION XYZCEN <-- cell's gravity center
505  *----------------------------------------------------------------------------*/
506 
507 void CS_PROCF (uiprof, UIPROF)(const int *ncelet,
508  const int *ncel,
509  const int *ntmabs,
510  const int *ntcabs,
511  const double *ttcabs,
512  const double *ttmabs,
513  const double *ttpabs,
514  const double *xyzcen);
515 
516 /*----------------------------------------------------------------------------
517  * darcy model : read laws for capacity, saturation and permeability
518  *
519  * Fortran Interface:
520  *
521  * subroutine uidapp
522  * *****************
523  * integer permeability <-- permeability type
524  * integer diffusion <-- diffusion type
525  * integer gravity <-- check if gravity is taken into account
526  * double gravity_x <-- x component for gravity vector
527  * double gravity_y <-- y component for gravity vector
528  * double gravity_z <-- z component for gravity vector
529  *----------------------------------------------------------------------------*/
530 
531 void CS_PROCF (uidapp, UIDAPP) (const cs_int_t *permeability,
532  const cs_int_t *diffusion,
533  const cs_int_t *gravity,
534  const double *gravity_x,
535  const double *gravity_y,
536  const double *gravity_z);
537 
538 /*----------------------------------------------------------------------------
539  * Free memory: clean global private variables and libxml2 variables.
540  *
541  * Fortran Interface:
542  *
543  * SUBROUTINE MEMUI1
544  * *****************
545  *
546  * INTEGER NCHARB <-- number of coal
547  *----------------------------------------------------------------------------*/
548 
549 void CS_PROCF (memui1, MEMUI1) (const int *ncharb);
550 
551 /*=============================================================================
552  * Public function prototypes
553  *============================================================================*/
554 
555 /*----------------------------------------------------------------------------
556  * Initialize GUI reader structures.
557  *----------------------------------------------------------------------------*/
558 
559 void
560 cs_gui_init(void);
561 
562 /*-----------------------------------------------------------------------------
563  * Free memory: clean global private variables and libxml2 variables
564  *----------------------------------------------------------------------------*/
565 
566 void
567 cs_gui_finalize(void);
568 
569 /*-----------------------------------------------------------------------------
570  * Selection of linear solvers.
571  *----------------------------------------------------------------------------*/
572 
573 void
575 
576 /*-----------------------------------------------------------------------------
577  * Define parallel IO settings.
578  *----------------------------------------------------------------------------*/
579 
580 void
581 cs_gui_parallel_io(void);
582 
583 /*-----------------------------------------------------------------------------
584  * Set partitioning options.
585  *----------------------------------------------------------------------------*/
586 
587 void
588 cs_gui_partition(void);
589 
590 /*-----------------------------------------------------------------------------
591  * Get initial value from property markup.
592  *
593  * parameters:
594  * property_name <-- name of the property
595  * value --> new initial value of the property
596  *----------------------------------------------------------------------------*/
597 
598 void
599 cs_gui_properties_value(const char *property_name,
600  double *value);
601 
602 /*-----------------------------------------------------------------------------
603  * Initialization choice of the reference variables parameters.
604  *
605  * parameters:
606  * name <-- parameter name
607  * value --> parameter value
608  *----------------------------------------------------------------------------*/
609 
610 void
611 cs_gui_reference_initialization(const char *param,
612  double *value);
613 
614 /*----------------------------------------------------------------------------
615  * Get thermal scalar model.
616  *
617  * return:
618  * value of itherm
619  *----------------------------------------------------------------------------*/
620 
621 int
623 
624 /*----------------------------------------------------------------------------
625  * Time moments definition
626  *----------------------------------------------------------------------------*/
627 
628 void
629 cs_gui_time_moments(void);
630 
631 /*-----------------------------------------------------------------------------
632  * Set turbomachinery model
633  *----------------------------------------------------------------------------*/
634 
635 void
637 
638 /*-----------------------------------------------------------------------------
639  * Set turbomachinery options.
640  *----------------------------------------------------------------------------*/
641 
642 void
644 
645 /*----------------------------------------------------------------------------
646  * Logging output for MEI usage.
647  *----------------------------------------------------------------------------*/
648 
649 void
650 cs_gui_usage_log(void);
651 
652 /*----------------------------------------------------------------------------
653  * Set GUI-defined user scalar labels.
654  *----------------------------------------------------------------------------*/
655 
656 void
658 
659 /*----------------------------------------------------------------------------
660  * Define user variables through the GUI.
661  *----------------------------------------------------------------------------*/
662 
663 void
665 
666 /*----------------------------------------------------------------------------*/
667 
669 
670 #endif /* __CS_GUI_H__ */
void uiphyv(const cs_int_t *ncel, const cs_int_t *ncelet, const cs_int_t *icp, const cs_int_t *irovar, const cs_int_t *ivivar, const cs_int_t *iviscv, const cs_int_t *itempk, const cs_real_t *p0, const cs_real_t *t0, const cs_real_t *ro0, const cs_real_t *cp0, const cs_real_t *viscl0, const cs_real_t *visls0, const cs_real_t *viscv0)
Definition: cs_gui.c:4540
real(c_double), pointer, save gy
Definition: cstphy.f90:68
void cs_gui_reference_initialization(const char *param, double *value)
Definition: cs_gui.c:5987
double precision, save viscv0
reference volume viscosity (noted in the equation expressing in the paragraph dedicated to iviscv) ...
Definition: ppincl.f90:701
void uiporo(const int *ncelet, const int *iporos)
Definition: cs_gui.c:3192
integer, save ncel
Definition: mesh.f90:50
#define restrict
Definition: cs_defs.h:122
void cs_gui_user_variables(void)
Definition: cs_gui.c:6326
void uiipsu(int *iporos)
Definition: cs_gui.c:3140
integer(c_int), pointer, save ivisse
take into account in the momentum equation
Definition: optcal.f90:672
void uikpdc(const int *iappel, const int *ncelet, int *ncepdp, int icepdc[], double ckupdc[])
integer(c_int), pointer, save iphydr
improve hydrostatic pressure algorithm
Definition: optcal.f90:739
void uiprof(const int *ncelet, const int *ncel, const int *ntmabs, const int *ntcabs, const double *ttcabs, const double *ttmabs, const double *ttpabs, const double *xyzcen)
Definition: cs_gui.c:4811
integer, save iporos
take the porosity fomulation into account
Definition: optcal.f90:853
void csturb(int *iturb, int *iwallf, int *igrake, int *igrari, double *xlomlg)
Definition: cs_gui.c:2194
void cscfgp(int *icfgrp)
Definition: cs_gui.c:2509
real(c_double), pointer, save dtref
reference time step
Definition: optcal.f90:440
void csisui(int *ntsuit, int *ileaux, int *iccvfg)
Definition: cs_gui.c:2542
integer(c_int), pointer, save ntmabs
Maximum absolute time step number.
Definition: optcal.f90:401
void cssca3(double *visls0, double *t0, double *p0, double *cp0)
Definition: cs_gui.c:3019
integer, save ntsuit
saving period of the restart filesy5
Definition: entsor.f90:78
real(c_double), pointer, save ttpabs
Absolute time value for previous calculation.
Definition: optcal.f90:407
real(c_double), pointer, save uref
the characteristic flow velocity, used for the initialization of the turbulence. Negative value: not ...
Definition: cstphy.f90:548
integer, dimension(:), allocatable icepdc
number of the ncepdc cells in which a pressure drop is imposed. See {iicepd} and the user subroutine ...
Definition: pointe.f90:262
#define BEGIN_C_DECLS
Definition: cs_defs.h:419
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
void cs_gui_turbomachinery(void)
Definition: cs_gui.c:6131
void cs_gui_parallel_io(void)
Definition: cs_gui.c:5717
integer idarcy
pointer to specify richards model
Definition: ppincl.f90:243
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:437
real(c_double), pointer, save gz
Definition: cstphy.f90:68
void csphys(const int *nmodpp, int *irovar, int *ivivar, int *icorio, double *gx, double *gy, double *gz, double *ro0, double *viscl0, double *viscv0, double *visls0, double *cp0, double *t0, double *p0, double *xmasmr, int *itempk)
Definition: cs_gui.c:2786
int cs_gui_thermal_model(void)
Definition: cs_gui.c:6013
void uinum1(double *blencv, int *ischcv, int *isstpc, int *ircflu, double *cdtvar, double *epsilo, int *nswrsm)
Definition: cs_gui.c:2658
real(c_double), pointer, save foumax
maximum Fourier number (when idtvar is different from 0)
Definition: optcal.f90:449
integer, dimension(nvarmx), save ischcv
type of convective scheme
Definition: optcal.f90:252
integer, dimension(nvarmx), save isstpc
switch off the slope test:
Definition: optcal.f90:257
integer, save ivivar
variable viscosity field :
Definition: optcal.f90:86
void csnum2(int *ivisse, double *relaxp, int *ipucou, double *extrag, int *imrgra, int *nterup)
Definition: cs_gui.c:2756
real(c_double), pointer, save xmasmr
Molar mass of the perfect gas in (if ieos=1)
Definition: cstphy.f90:209
integer(c_int), pointer, save igrake
buoyant term in
Definition: optcal.f90:582
real(c_double), pointer, save cp0
reference specific heat.
Definition: cstphy.f90:191
integer, save isuite
Definition: optcal.f90:381
void cs_gui_usage_log(void)
Definition: cs_gui.c:6277
real(c_double), pointer, save ttmabs
Maximum absolute time.
Definition: optcal.f90:414
integer, save ncelet
Definition: mesh.f90:46
integer, save ncharb
Number of coals.
Definition: cpincl.f90:49
void cs_gui_partition(void)
Definition: cs_gui.c:5809
integer(c_int), pointer, save nterup
number of interations on the pressure-velocity coupling on Navier-Stokes (for the PISO algorithm) ...
Definition: optcal.f90:112
real(c_double), pointer, save ttcabs
Current absolute time. In case of restart, this is equal to ttpabs + additional computed time...
Definition: optcal.f90:411
void cs_gui_turbomachinery_rotor(void)
Definition: cs_gui.c:6166
real(c_double), pointer, save dtmin
minimum value of dt (when idtvar is different from 0). Take dtmin = min (ld/ud, sqrt(lt/(gdelta rho/r...
Definition: optcal.f90:456
double precision, dimension(:,:), pointer xyzcen
Definition: mesh.f90:114
double precision, dimension(nvarmx), save blencv
percentage of upwind:
Definition: optcal.f90:247
integer(c_int), pointer, save iccvfg
Definition: optcal.f90:703
real(c_double), pointer, save xlomlg
mixing length for the mixing length model
Definition: cstphy.f90:553
void csivis(void)
Definition: cs_gui.c:2366
integer(c_int), pointer, save itherm
thermal model
Definition: optcal.f90:490
void cscpva(int *icp)
Definition: cs_gui.c:2281
real(c_double), pointer, save p0
reference pressure for the total pressure. except with the compressible module, the total pressure i...
Definition: cstphy.f90:130
double precision, dimension(nscamx), save visls0
visls0 : viscosity of scalars if constant
Definition: optcal.f90:969
integer, save icfgrp
indicates if the boundary conditions should take into account (=1) or not (=0) the hydrostatic balanc...
Definition: ppincl.f90:741
integer(c_int), pointer, save iturb
Definition: optcal.f90:529
real(c_double), pointer, save dtmax
maximum value of dt (when idtvar is different from 0). Take dtmax = max (ld/ud, sqrt(lt/(gdelta rho/r...
Definition: optcal.f90:460
void csidtv(int *idtvar)
Definition: cs_gui.c:2441
integer(c_int), pointer, save itpscl
temperature scale
Definition: optcal.f90:496
real(c_double), pointer, save t0
reference temperature.
Definition: cstphy.f90:176
integer, save irovar
variable density field :
Definition: optcal.f90:81
real(c_double), pointer, save gx
Gravity.
Definition: cstphy.f90:68
double precision, dimension(:,:), allocatable ckupdc
value of the coefficients of the pressure drop tensor of the ncepdc cells in which a pressure drop is...
Definition: pointe.f90:271
integer(c_int), pointer, save ipucou
Pseudo coupled pressure-velocity solver.
Definition: optcal.f90:697
integer(c_int), pointer, save iwallf
Wall functions.
Definition: optcal.f90:557
void csiphy(int *iphydr)
Definition: cs_gui.c:2477
integer, save itempk
temperature deduced from the specific total energy
Definition: ppincl.f90:657
void uiiniv(const int *ncelet, const int *isuite, const int *idarcy, int *iccfth, const cs_real_t *ro0, const cs_real_t *cp0, const cs_real_t *viscl0, const cs_real_t *uref, const cs_real_t *almax, const double *xyzcen)
Definition: cs_gui.c:3721
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
integer(c_int), pointer, save icorio
Coriolis effects.
Definition: cstphy.f90:71
void cstime(int *inpdt0, int *iptlro, int *ntmabs, int *idtvar, double *dtref, double *dtmin, double *dtmax, double *coumax, double *foumax, double *varrdt, double *relxst)
Definition: cs_gui.c:2579
void uitssc(const int *f_id, const cs_real_t *restrict pvar, cs_real_t *restrict tsexp, cs_real_t *restrict tsimp)
Definition: cs_gui.c:3497
double precision, dimension(nvarmx), save cdtvar
multiplicator coefficient for the time step of each variable
Definition: optcal.f90:466
void cssca2(const int *iturb, int *iturt)
Definition: cs_gui.c:2940
integer(c_int), pointer, save icp
isobaric specific heat
Definition: cstphy.f90:84
void cs_gui_properties_value(const char *property_name, double *value)
Definition: cs_gui.c:5960
void cstini(double *uref, double *almax)
Definition: cs_gui.c:3105
real(c_double), pointer, save relxst
relaxation coefficient for the steady algorithm
Definition: optcal.f90:472
void uitsth(const int *f_id, const cs_real_t *restrict pvar, cs_real_t *restrict tsexp, cs_real_t *restrict tsimp)
Definition: cs_gui.c:3606
#define END_C_DECLS
Definition: cs_defs.h:420
void cs_gui_finalize(void)
Definition: cs_gui.c:5557
integer, save ileaux
Definition: optcal.f90:381
double cs_real_t
Definition: cs_defs.h:296
integer(c_int), pointer, save ntcabs
Current absolute time step number. In case of restart, this is equal to ntpabs + number of new iterat...
Definition: optcal.f90:398
real(c_double), pointer, save varrdt
relative allowed variation of dt (when idtvar is different from 0)
Definition: optcal.f90:452
integer(c_int), pointer, save inpdt0
indicator "zero time step"
Definition: optcal.f90:425
void uidapp(const cs_int_t *permeability, const cs_int_t *diffusion, const cs_int_t *gravity, const double *gravity_x, const double *gravity_y, const double *gravity_z)
Definition: cs_gui.c:5106
void cs_gui_user_scalar_labels(void)
Definition: cs_gui.c:6305
void csther(int *itherm, int *itpscl)
Definition: cs_gui.c:2144
#define CS_PROCF(x, y)
Definition: cs_defs.h:443
real(c_double), pointer, save coumax
maximum Courant number (when idtvar is different from 0)
Definition: optcal.f90:443
void uitsnv(const cs_real_3_t *restrict vel, cs_real_3_t *restrict tsexp, cs_real_33_t *restrict tsimp)
Definition: cs_gui.c:3348
real(c_double), pointer, save ro0
reference density. Negative value: not initialized. Its value is not used in gas or coal combustion m...
Definition: cstphy.f90:114
void memui1(const int *ncharb)
Definition: cs_gui.c:5527
double precision, dimension(nvarmx), save epsilo
relative precision of the linear solver
Definition: optcal.f90:352
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:311
void csvvva(int *iviscv)
Definition: cs_gui.c:2305
real(c_double), pointer, save viscl0
reference molecular dynamic viscosity. Negative value: not initialized.
Definition: cstphy.f90:121
void cs_gui_init(void)
Definition: cs_gui.c:5542
integer, dimension(nscamx), save iturt
turbulent flux model for for any scalar , iturt(isca)
Definition: optcal.f90:642
void cs_gui_time_moments(void)
Definition: cs_gui.c:6050
integer, dimension(nvarmx), save nswrsm
max number of iteration for the iterative process used to solved the convection diffusion equations ...
Definition: optcal.f90:333
integer(c_int), pointer, save iptlro
Clip the time step with respect to the buoyant effects.
Definition: optcal.f90:430
real(c_double), pointer, save almax
is a characteristic macroscopic length of the domain, used for the initialization of the turbulence a...
Definition: cstphy.f90:539
integer(c_int), pointer, save igrari
buoyant term in
Definition: optcal.f90:587
integer, save iviscv
additional property:
Definition: ppincl.f90:678
double precision, dimension(nvarmx), save extrag
gradient extrapolation at the boundary
Definition: optcal.f90:301
void uithsc(void)
Definition: cs_gui.c:2327
integer(c_int), pointer, save imrgra
type of gradient reconstruction
Definition: optcal.f90:276
void cs_gui_linear_solvers(void)
Definition: cs_gui.c:5586
integer, dimension(nvarmx), save ircflu
face flux reconstruction:
Definition: optcal.f90:317