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.
|
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) |
|
|
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...
|
|
Parameters of the problem. The parameters specific to coupling are preceded by a "warning" sign.
- Authors
- Laurent Monasse and Maria Adela Puscas
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. |
|
) |
| |
Inner Boundary Condition for x.
Boundary conditions Types of BC: 1 = reflecting; 2 = periodic; 3= outflow;
Outer Boundary Condition for x.
Inner Boundary Condition for y.
Outer Boundary Condition for y.
Inner Boundary Condition for z.
Outer Boundary Condition for z.
Spatial discretization step in x.
Spatial discretization step in y.
Spatial discretization step in z.
const double domainex = 0.3 |
const double domainey = 0.3 |
const double domainez = 0.3 |
const double dtimp = T/nimp |
Time-step between two consecutive outputs.
const double eps = 0.00000000000001 |
const double eps_vide = 0.0000000001 |
Limit of the size of small cut-cells.
const bool exact_swap =false |
Flag for the type of scheme used: true for an explicit coupling and false for a semi-implicit coupling.
- Warning
- Specific coupling parameter !
- Warning
- Specific coupling parameter !
const double k_max = 0.01 |
Margin of cells on each side of the grid.
Maximal number of time iterations.
Index of the recovery file.
Number of fluid cells in x.
Number of fluid cells in y.
Number of fluid cells in z.
Maximal order of the scheme.
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 |
Position of the origin of the grid.