ENH: Update tutorials using coordinate systems for porosity models

This commit is contained in:
sergio
2013-01-21 12:37:54 +00:00
parent 52eb4f8924
commit 9692a52e3a
9 changed files with 99 additions and 38 deletions

View File

@ -33,12 +33,18 @@ porosity1
coordinateSystem coordinateSystem
{ {
e1 (0.70710678 0.70710678 0); type cartesian;
e2 (0 0 1); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
} }
} }
} }
} }
************************************************************************* // //************************************************************************* //

View File

@ -10,29 +10,41 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant"; location "system";
object porosityProperties; object fvOptions;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
porosity1 porosity1
{ {
type DarcyForchheimer; type explicitPorositySource;
active yes; active true;
selectionMode cellZone;
cellZone porosity; cellZone porosity;
DarcyForchheimerCoeffs explicitPorositySourceCoeffs
{ {
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000); type DarcyForchheimer;
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem DarcyForchheimerCoeffs
{ {
e1 (0.70710678 0.70710678 0); d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
e2 (0 0 1); 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);
}
}
} }
} }
} }
// ************************************************************************* // //************************************************************************* //

View File

@ -57,7 +57,7 @@ PIMPLE
nCorrectors 1; nCorrectors 1;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.5; 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 residualControl
{ {
@ -76,7 +76,7 @@ relaxationFactors
fields fields
{ {
"p.*" 0.3; "p.*" 0.3;
"rho.*" 1; "rho.*" 0.01;
} }
equations equations
{ {

View File

@ -28,8 +28,14 @@ porosity1
coordinateSystem coordinateSystem
{ {
e1 (1 0 0); type cartesian;
e2 (0 1 0); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
} }
} }
} }

View File

@ -10,28 +10,41 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant"; location "system";
object porosityProperties; object fvOptions;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
porosity1 porosity1
{ {
type DarcyForchheimer; type explicitPorositySource;
active yes; active false;
selectionMode cellZone;
cellZone porosity; cellZone porosity;
DarcyForchheimerCoeffs explicitPorositySourceCoeffs
{ {
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000); type DarcyForchheimer;
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem DarcyForchheimerCoeffs
{ {
e1 (0.70710678 0.70710678 0); d d [0 -2 0 0 0 0 0] (5e5 -1000 -1000);
e2 (0 0 1); 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);
}
}
} }
} }
} }
// ************************************************************************* //
//************************************************************************* //

View File

@ -28,8 +28,14 @@ porosity1
coordinateSystem coordinateSystem
{ {
e1 (0.70710678 0.70710678 0); type cartesian;
e2 (0 0 1); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
} }
} }
} }

View File

@ -51,12 +51,18 @@ porosity1
coordinateSystem coordinateSystem
{ {
e1 (0.70710678 0.70710678 0); type cartesian;
e2 (0 0 1); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
} }
} }
} }
} }
************************************************************************* // //************************************************************************* //

View File

@ -28,8 +28,14 @@ porosity1
coordinateSystem coordinateSystem
{ {
e1 (0.70710678 0.70710678 0); type cartesian;
e2 (0 0 1); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
} }
} }
} }

View File

@ -28,8 +28,14 @@ filter1
coordinateSystem coordinateSystem
{ {
e1 (1 0 0); type cartesian;
e2 (0 1 0); origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0);
e2 (0 1 0);
}
} }
} }
} }