CELIA3D  1.0
Fluid-structure interaction using cut-cells
Functions | Variables
parametres.hpp File Reference

Parameters of the problem. The parameters specific to coupling are preceded by a "warning" sign. More...

#include <cstdlib>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <sstream>

Go to the source code of this file.

Functions

double Rho (double x=0., double y=0., double z=0.)
 
double U (double x=0., double y=0., double z=0.)
 
double V (double x=0., double y=0., double z=0.)
 
double W (double x=0., double y=0., double z=0.)
 
double P (double x=0., double y=0., double z=0., double dx=deltax, double dy=deltay, double dz=deltaz)
 

Variables

int rep = false
 Flag for a potential restart from a previous recovery file: false if the simulation is not restarted, true if it is. rep indicates whether initial conditions (false) are used or a certain time output is used to restart the simulation (true). In the latter case, the index of the recovery file is given by numrep. More...
 
int numrep = 18
 Index of the recovery file. More...
 
bool explicite = true
 Flag for the type of scheme used: true for an explicit coupling and false for a semi-implicit coupling. More...
 
bool flag_2d = false
 
bool couplage1d =false
 
const bool exact_swap =false
 
const double gam = 1.4
 Perfect gas constant. More...
 
const double eps = 0.00000000000001
 Numerical stabilization. More...
 
const double epsa = 0.5
 Limit of the size of small cut-cells. More...
 
const int ordremax = 11
 Maximal order of the scheme. More...
 
const int marge = 6
 Margin of cells on each side of the grid. More...
 
const double eps_vide = 0.0000000001
 
const int N_dim =3
 
const double X0 = 0
 Position of the origin of the grid. More...
 
const double Y0 = 0
 
const double Z0 = 0
 
const int Nx =18
 Number of fluid cells in x. More...
 
const int Ny =18
 Number of fluid cells in y. More...
 
const int Nz =18
 Number of fluid cells in z. More...
 
const double domainex = 0.3
 Fluid domain size in x. More...
 
const double domainey = 0.3
 Fluid domain size in y. More...
 
const double domainez = 0.3
 Fluid domain size in z. More...
 
const double deltax = domainex/Nx
 Spatial discretization step in x. More...
 
const double deltay = domainey/Ny
 Spatial discretization step in y. More...
 
const double deltaz = domainez/Nz
 Spatial discretization step in z. More...
 
const double rhos = 2698.9
 Solid density. More...
 
const double nu = 0.
 Poisson's ratio. More...
 
const double E = 5.
 Young's modulus. More...
 
const double k_max = 0.01
 Elongation at break. More...
 
const double T = 0.1
 Total simulation time. More...
 
const double cfl = 0.5
 Fluid CFL condition. More...
 
const double cfls = 0.5
 Solid CFL condition. More...
 
const int nimp = 10
 Number of outputs. More...
 
const double dtimp = T/nimp
 Time-step between two consecutive outputs. More...
 
const int Nmax = 1000000
 Maximal number of time iterations. More...
 
const int BC_x_in = 2
 Inner Boundary Condition for x. More...
 
const int BC_x_out = 2
 Outer Boundary Condition for x. More...
 
const int BC_y_in = 2
 Inner Boundary Condition for y. More...
 
const int BC_y_out = 2
 Outer Boundary Condition for y. More...
 
const int BC_z_in = 2
 Inner Boundary Condition for z. More...
 
const int BC_z_out = 2
 Outer Boundary Condition for z. More...
 

Detailed Description

Parameters of the problem. The parameters specific to coupling are preceded by a "warning" sign.

Authors
Laurent Monasse and Maria Adela Puscas

Function Documentation

double P ( double  x = 0.,
double  y = 0.,
double  z = 0.,
double  dx = deltax,
double  dy = deltay,
double  dz = deltaz 
)
double Rho ( double  x = 0.,
double  y = 0.,
double  z = 0. 
)
double U ( double  x = 0.,
double  y = 0.,
double  z = 0. 
)
double V ( double  x = 0.,
double  y = 0.,
double  z = 0. 
)
double W ( double  x = 0.,
double  y = 0.,
double  z = 0. 
)

Variable Documentation

const int BC_x_in = 2

Inner Boundary Condition for x.

Boundary conditions Types of BC: 1 = reflecting; 2 = periodic; 3= outflow;

const int BC_x_out = 2

Outer Boundary Condition for x.

const int BC_y_in = 2

Inner Boundary Condition for y.

const int BC_y_out = 2

Outer Boundary Condition for y.

const int BC_z_in = 2

Inner Boundary Condition for z.

const int BC_z_out = 2

Outer Boundary Condition for z.

const double cfl = 0.5

Fluid CFL condition.

const double cfls = 0.5

Solid CFL condition.

bool couplage1d =false
const double deltax = domainex/Nx

Spatial discretization step in x.

const double deltay = domainey/Ny

Spatial discretization step in y.

const double deltaz = domainez/Nz

Spatial discretization step in z.

const double domainex = 0.3

Fluid domain size in x.

const double domainey = 0.3

Fluid domain size in y.

const double domainez = 0.3

Fluid domain size in z.

const double dtimp = T/nimp

Time-step between two consecutive outputs.

const double E = 5.

Young's modulus.

const double eps = 0.00000000000001

Numerical stabilization.

const double eps_vide = 0.0000000001
const double epsa = 0.5

Limit of the size of small cut-cells.

const bool exact_swap =false
bool explicite = true

Flag for the type of scheme used: true for an explicit coupling and false for a semi-implicit coupling.

Warning
Specific coupling parameter !
bool flag_2d = false
Warning
Specific coupling parameter !
const double gam = 1.4

Perfect gas constant.

const double k_max = 0.01

Elongation at break.

const int marge = 6

Margin of cells on each side of the grid.

const int N_dim =3
const int nimp = 10

Number of outputs.

const int Nmax = 1000000

Maximal number of time iterations.

const double nu = 0.

Poisson's ratio.

int numrep = 18

Index of the recovery file.

const int Nx =18

Number of fluid cells in x.

const int Ny =18

Number of fluid cells in y.

const int Nz =18

Number of fluid cells in z.

const int ordremax = 11

Maximal order of the scheme.

int rep = false

Flag for a potential restart from a previous recovery file: false if the simulation is not restarted, true if it is. rep indicates whether initial conditions (false) are used or a certain time output is used to restart the simulation (true). In the latter case, the index of the recovery file is given by numrep.

const double rhos = 2698.9

Solid density.

const double T = 0.1

Total simulation time.

const double X0 = 0

Position of the origin of the grid.

const double Y0 = 0
const double Z0 = 0