mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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.
82 lines
1.9 KiB
C++
82 lines
1.9 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;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
injector1
|
|
{
|
|
timeStart 0.1;
|
|
duration 5;
|
|
selectionMode points;
|
|
points
|
|
(
|
|
(0.075 0.2 0.05)
|
|
);
|
|
}
|
|
|
|
options
|
|
{
|
|
massSource1
|
|
{
|
|
type scalarSemiImplicitSource;
|
|
|
|
scalarSemiImplicitSourceCoeffs
|
|
{
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
thermo:rho.air (1e-3 0); // kg/s
|
|
}
|
|
}
|
|
}
|
|
|
|
momentumSource1
|
|
{
|
|
type vectorSemiImplicitSource;
|
|
|
|
vectorSemiImplicitSourceCoeffs
|
|
{
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
U.air ((0 -1e-2 0) 0); // kg*m/s^2
|
|
}
|
|
}
|
|
}
|
|
|
|
energySource1
|
|
{
|
|
type scalarSemiImplicitSource;
|
|
|
|
scalarSemiImplicitSourceCoeffs
|
|
{
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
e.air (500 0); // kg*m^2/s^3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|