CELIA3D  1.0
Fluid-structure interaction using cut-cells
parametres.hpp
Go to the documentation of this file.
1 //Copyright 2017 Laurent Monasse
2 
3 /*
4  This file is part of CELIA3D.
5 
6  CELIA3D is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  CELIA3D is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with CELIA3D. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #include <cstdlib>
21 #include <iostream>
22 #include <fstream>
23 #include <stdio.h>
24 #include <sstream>
25 #ifndef PARAMETRES_H
26 #define PARAMETRES_H
27 
34 using std::string;
35 
38 int rep = false;
39 int numrep = 18;
40 
41 
45 
47 bool explicite = true;
52 bool flag_2d = false;
53 bool couplage1d=false;
54 const bool exact_swap=false;
55 
56 //Fluid parameters
57 const double gam = 1.4;
58 const double eps = 0.00000000000001;
59 const double epsa = 0.5;
60 const int ordremax = 11;
61 const int marge = 6;
62 const double eps_vide = 0.0000000001;
63 const int N_dim=3;
64 
65 const double X0 = 0;
66 const double Y0 = 0;
67 const double Z0 = 0;
68 
69 const int Nx =18;
70 const int Ny =18;
71 const int Nz =18;
72 
73 const double domainex = 0.3;
74 const double domainey = 0.3;
75 const double domainez = 0.3;
76 
77 const double deltax = domainex/Nx;
78 const double deltay = domainey/Ny;
79 const double deltaz = domainez/Nz;
80 
81 //Solid parameters
82 const double rhos = 2698.9;
83 const double nu = 0.;
84 const double E = 5.;
85 const double k_max = 0.01;
86 
87 //Parametres temprels
88 const double T = 0.1;
89 const double cfl = 0.5;
90 const double cfls = 0.5;
91 const int nimp = 10;
92 const double dtimp = T/nimp;
93 const int Nmax = 1000000;
94 
97 
98 const int BC_x_in = 2;
99 const int BC_x_out = 2;
100 const int BC_y_in = 2;
101 const int BC_y_out = 2;
102 const int BC_z_in = 2;
103 const int BC_z_out = 2;
104 
105 double Rho(double x = 0.,double y = 0., double z = 0.);
106 
107 double U(double x = 0.,double y = 0., double z = 0.);
108 
109 double V(double x = 0.,double y = 0., double z = 0.);
110 
111 double W(double x = 0.,double y = 0., double z = 0.);
112 
113 double P(double x = 0.,double y = 0., double z = 0., double dx = deltax, double dy = deltay, double dz = deltaz);
114 
115 #endif
const double nu
Poisson&#39;s ratio.
Definition: parametres.hpp:83
const int BC_x_out
Outer Boundary Condition for x.
Definition: parametres.hpp:99
const double domainex
Fluid domain size in x.
Definition: parametres.hpp:73
bool explicite
Flag for the type of scheme used: true for an explicit coupling and false for a semi-implicit couplin...
Definition: parametres.hpp:47
const int BC_x_in
Inner Boundary Condition for x.
Definition: parametres.hpp:98
const double deltay
Spatial discretization step in y.
Definition: parametres.hpp:78
const double domainey
Fluid domain size in y.
Definition: parametres.hpp:74
const double epsa
Limit of the size of small cut-cells.
Definition: parametres.hpp:59
int numrep
Index of the recovery file.
Definition: parametres.hpp:39
const double deltaz
Spatial discretization step in z.
Definition: parametres.hpp:79
const int BC_y_in
Inner Boundary Condition for y.
Definition: parametres.hpp:100
const double domainez
Fluid domain size in z.
Definition: parametres.hpp:75
const int BC_y_out
Outer Boundary Condition for y.
Definition: parametres.hpp:101
const int Nmax
Maximal number of time iterations.
Definition: parametres.hpp:93
const double eps_vide
Definition: parametres.hpp:62
const bool exact_swap
Definition: parametres.hpp:54
const double cfls
Solid CFL condition.
Definition: parametres.hpp:90
const int marge
Margin of cells on each side of the grid.
Definition: parametres.hpp:61
const double X0
Position of the origin of the grid.
Definition: parametres.hpp:65
const double E
Young&#39;s modulus.
Definition: parametres.hpp:84
bool flag_2d
Definition: parametres.hpp:52
const int BC_z_in
Inner Boundary Condition for z.
Definition: parametres.hpp:102
const double rhos
Solid density.
Definition: parametres.hpp:82
const int Nz
Number of fluid cells in z.
Definition: parametres.hpp:71
const int nimp
Number of outputs.
Definition: parametres.hpp:91
bool couplage1d
Definition: parametres.hpp:53
const double eps
Numerical stabilization.
Definition: parametres.hpp:58
const double dtimp
Time-step between two consecutive outputs.
Definition: parametres.hpp:92
const double Y0
Definition: parametres.hpp:66
double U(double x=0., double y=0., double z=0.)
Definition: parametres.cpp:268
const int Ny
Number of fluid cells in y.
Definition: parametres.hpp:70
int rep
Flag for a potential restart from a previous recovery file: false if the simulation is not restarted...
Definition: parametres.hpp:38
const double deltax
Spatial discretization step in x.
Definition: parametres.hpp:77
const double Z0
Definition: parametres.hpp:67
const int ordremax
Maximal order of the scheme.
Definition: parametres.hpp:60
const int N_dim
Definition: parametres.hpp:63
double W(double x=0., double y=0., double z=0.)
Definition: parametres.cpp:296
const double cfl
Fluid CFL condition.
Definition: parametres.hpp:89
double P(double x=0., double y=0., double z=0., double dx=deltax, double dy=deltay, double dz=deltaz)
Definition: parametres.cpp:310
double V(double x=0., double y=0., double z=0.)
Definition: parametres.cpp:282
const int BC_z_out
Outer Boundary Condition for z.
Definition: parametres.hpp:103
double Rho(double x=0., double y=0., double z=0.)
Definition: parametres.cpp:247
const double T
Total simulation time.
Definition: parametres.hpp:88
const double k_max
Elongation at break.
Definition: parametres.hpp:85
const int Nx
Number of fluid cells in x.
Definition: parametres.hpp:69
const double gam
Perfect gas constant.
Definition: parametres.hpp:57