by introducing rational base-classes rather than using the hideous 'switch' statement. Further rationalization of the cell-selection mechanism will be implemented via an appropriate class hierarchy to replace the remaining 'switch' statement. Mesh-motion is currently handled very inefficiently for cellSets and not at all for inter-region coupling. The former will be improved when the cell-selection classes are written and the latter by making the meshToMesh class a MeshObject after it has been corrected for mapFields.
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object fvOptions;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
porosity1
|
|
{
|
|
type explicitPorositySource;
|
|
active yes;
|
|
|
|
explicitPorositySourceCoeffs
|
|
{
|
|
selectionMode cellZone;
|
|
cellZone porosity;
|
|
|
|
type DarcyForchheimer;
|
|
|
|
DarcyForchheimerCoeffs
|
|
{
|
|
d d [0 -2 0 0 0 0 0] (2e8 -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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//************************************************************************* //
|