mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
For example the actuationDiskSource fvOption may now be specified
disk1
{
type actuationDiskSource;
fields (U);
selectionMode cellSet;
cellSet actuationDisk1;
diskDir (1 0 0); // Orientation of the disk
Cp 0.386;
Ct 0.58;
diskArea 40;
upstreamPoint (581849 4785810 1065);
}
rather than
disk1
{
type actuationDiskSource;
active on;
actuationDiskSourceCoeffs
{
fields (U);
selectionMode cellSet;
cellSet actuationDisk1;
diskDir (1 0 0); // Orientation of the disk
Cp 0.386;
Ct 0.58;
diskArea 40;
upstreamPoint (581849 4785810 1065);
}
}
but this form is supported for backward compatibility.
73 lines
1.7 KiB
C++
73 lines
1.7 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;
|
|
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
thermo:rho.air (1e-3 0); // kg/s
|
|
}
|
|
}
|
|
|
|
momentumSource1
|
|
{
|
|
type vectorSemiImplicitSource;
|
|
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
U.air ((0 -1e-2 0) 0); // kg*m/s^2
|
|
}
|
|
}
|
|
|
|
energySource1
|
|
{
|
|
type scalarSemiImplicitSource;
|
|
|
|
$injector1;
|
|
|
|
volumeMode absolute;
|
|
injectionRateSuSp
|
|
{
|
|
e.air (500 0); // kg*m^2/s^3
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|