Commit 9692a52e authored by sergio's avatar sergio
Browse files

ENH: Update tutorials using coordinate systems for porosity models

parent 52eb4f89
......@@ -33,12 +33,18 @@ porosity1
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
}
************************************************************************* //
//************************************************************************* //
......@@ -10,29 +10,41 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object porosityProperties;
location "system";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
porosity1
{
type DarcyForchheimer;
active yes;
type explicitPorositySource;
active true;
selectionMode cellZone;
cellZone porosity;
DarcyForchheimerCoeffs
explicitPorositySourceCoeffs
{
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
type DarcyForchheimer;
coordinateSystem
DarcyForchheimerCoeffs
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
}
// ************************************************************************* //
//************************************************************************* //
......@@ -57,7 +57,7 @@ PIMPLE
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.5;
rhoMax rhoMax [ 1 -3 0 0 0 ] 2.0;
rhoMax rhoMax [ 1 -3 0 0 0 ] 1.5;
residualControl
{
......@@ -76,7 +76,7 @@ relaxationFactors
fields
{
"p.*" 0.3;
"rho.*" 1;
"rho.*" 0.01;
}
equations
{
......
......@@ -28,8 +28,14 @@ porosity1
coordinateSystem
{
e1 (1 0 0);
e2 (0 1 0);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
}
}
}
......
......@@ -10,28 +10,41 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object porosityProperties;
location "system";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
porosity1
{
type DarcyForchheimer;
active yes;
type explicitPorositySource;
active false;
selectionMode cellZone;
cellZone porosity;
DarcyForchheimerCoeffs
explicitPorositySourceCoeffs
{
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
type DarcyForchheimer;
coordinateSystem
DarcyForchheimerCoeffs
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
d d [0 -2 0 0 0 0 0] (5e5 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
}
// ************************************************************************* //
//************************************************************************* //
......@@ -28,8 +28,14 @@ porosity1
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
......
......@@ -51,12 +51,18 @@ porosity1
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
}
************************************************************************* //
//************************************************************************* //
......@@ -28,8 +28,14 @@ porosity1
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}
}
......
......@@ -28,8 +28,14 @@ filter1
coordinateSystem
{
e1 (1 0 0);
e2 (0 1 0);
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment