Code_Saturne
CFD tool
Data Structures | Macros | Typedefs | Functions | Variables
cs_les_inflow.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_prototypes.h"
#include "cs_timer.h"
#include "cs_mesh_location.h"
#include "cs_restart.h"
#include "cs_les_inflow.h"

Data Structures

struct  _cs_inlet_t
 
struct  _cs_inflow_batten_t
 
struct  _cs_inflow_sem_t
 
struct  _mpi_double_int_t
 

Macros

#define EPZERO   1.E-12
 
#define RINFIN   1.E+30
 
#define HUGE_VAL   1.E+12
 
#define _MODULE_3D(module_u, u)   ( module_u = sqrt((u)[0]*(u)[0] + (u)[1]*(u)[1] + (u)[2]*(u)[2]) )
 
#define _DOT_PRODUCT_3D(dot_u_v, u, v)   ( dot_u_v = (u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2] )
 
#define _CROSS_PRODUCT_3D(cross_u_v, u, v)
 
#define _TENSOR_TRACE_3D(trace_t, t)   ( trace_t = (t)[0] + (t)[1] + (t)[2] )
 
#define _INNER_PRODUCT_3D(inner_u_t_v, u, t, v)
 

Typedefs

typedef struct _cs_inflow_batten_t cs_inflow_batten_t
 
typedef struct _cs_inflow_sem_t cs_inflow_sem_t
 

Functions

void _cs_inflow_add_inlet (cs_inflow_type_t type, const cs_int_t n_faces, const cs_int_t *num_face, const int n_entities, const int verbosity, const cs_real_t *mean_velocity, const cs_real_t kinetic_energy, const cs_real_t dissipation_rate)
 
void defsyn (cs_int_t *n_inlets CS_ARGF_SUPP_CHAINE)
 
void synthe (const cs_int_t *const nvar, const cs_int_t *const nscal, const cs_int_t *const iu, const cs_int_t *const iv, const cs_int_t *const iw, const cs_real_t *const ttcabs, const cs_real_t dt[], const cs_real_t rtpa[], const cs_real_t rtp[], const cs_real_t propce[], const cs_real_t propfa[], const cs_real_t propfb[], const cs_real_t coefa[], const cs_real_t coefb[], cs_real_t rcodcl[] CS_ARGF_SUPP_CHAINE)
 
void lecsyn (const char *const filnam, const cs_int_t *const lngnam CS_ARGF_SUPP_CHAINE)
 
void ecrsyn (const char *const filnam, const cs_int_t *const lngnam CS_ARGF_SUPP_CHAINE)
 
void cs_inflow_finalize (void)
 

Variables

const char * cs_inflow_type_name []
 

Macro Definition Documentation

◆ _CROSS_PRODUCT_3D

#define _CROSS_PRODUCT_3D (   cross_u_v,
  u,
 
)
Value:
( (cross_u_v)[0] = (u)[1]*(v)[2] - (u)[2]*(v)[1], \
(cross_u_v)[1] = (u)[2]*(v)[0] - (u)[0]*(v)[2], \
(cross_u_v)[2] = (u)[0]*(v)[1] - (u)[1]*(v)[0] )

◆ _DOT_PRODUCT_3D

#define _DOT_PRODUCT_3D (   dot_u_v,
  u,
 
)    ( dot_u_v = (u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2] )

◆ _INNER_PRODUCT_3D

#define _INNER_PRODUCT_3D (   inner_u_t_v,
  u,
  t,
 
)
Value:
( inner_u_t_v = \
(u)[0]*(t)[0]*(v)[0] + (u)[0]*(t)[3]*(v)[1] + (u)[0]*(t)[4]*(v)[2] \
+ (u)[1]*(t)[3]*(v)[0] + (u)[1]*(t)[1]*(v)[1] + (u)[1]*(t)[5]*(v)[2] \
+ (u)[2]*(t)[4]*(v)[0] + (u)[2]*(t)[5]*(v)[1] + (u)[2]*(t)[2]*(v)[2] )

◆ _MODULE_3D

#define _MODULE_3D (   module_u,
 
)    ( module_u = sqrt((u)[0]*(u)[0] + (u)[1]*(u)[1] + (u)[2]*(u)[2]) )

◆ _TENSOR_TRACE_3D

#define _TENSOR_TRACE_3D (   trace_t,
 
)    ( trace_t = (t)[0] + (t)[1] + (t)[2] )

◆ EPZERO

#define EPZERO   1.E-12

◆ HUGE_VAL

#define HUGE_VAL   1.E+12

◆ RINFIN

#define RINFIN   1.E+30

Typedef Documentation

◆ cs_inflow_batten_t

◆ cs_inflow_sem_t

Function Documentation

◆ _cs_inflow_add_inlet()

void _cs_inflow_add_inlet ( cs_inflow_type_t  type,
const cs_int_t  n_faces,
const cs_int_t num_face,
const int  n_entities,
const int  verbosity,
const cs_real_t mean_velocity,
const cs_real_t  kinetic_energy,
const cs_real_t  dissipation_rate 
)

◆ cs_inflow_finalize()

void cs_inflow_finalize ( void  )

◆ defsyn()

void defsyn ( cs_int_t *n_inlets  CS_ARGF_SUPP_CHAINE)
Here is the call graph for this function:

◆ ecrsyn()

void ecrsyn ( const char *const  filnam,
const cs_int_t *const lngnam  CS_ARGF_SUPP_CHAINE 
)

◆ lecsyn()

void lecsyn ( const char *const  filnam,
const cs_int_t *const lngnam  CS_ARGF_SUPP_CHAINE 
)
Here is the call graph for this function:

◆ synthe()

void synthe ( const cs_int_t *const  nvar,
const cs_int_t *const  nscal,
const cs_int_t *const  iu,
const cs_int_t *const  iv,
const cs_int_t *const  iw,
const cs_real_t *const  ttcabs,
const cs_real_t  dt[],
const cs_real_t  rtpa[],
const cs_real_t  rtp[],
const cs_real_t  propce[],
const cs_real_t  propfa[],
const cs_real_t  propfb[],
const cs_real_t  coefa[],
const cs_real_t  coefb[],
cs_real_t rcodcl []  CS_ARGF_SUPP_CHAINE 
)

Variable Documentation

◆ cs_inflow_type_name

const char* cs_inflow_type_name[]
Initial value:
= {"Laminar",
"Random",
"Batten",
"SEM"}