mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: option consistency for acousticDampingSource
- accept origin or centre, as per other geometric entities
This commit is contained in:
@ -189,7 +189,7 @@ bool Foam::fv::acousticDampingSource::read(const dictionary& dict)
|
||||
|
||||
coeffs_.readEntry("frequency", frequency_.value());
|
||||
coeffs_.readEntry("URef", URefName_);
|
||||
coeffs_.readEntry("centre", x0_);
|
||||
coeffs_.readCompat<vector>("origin", {{"centre", -1806}}, x0_);
|
||||
coeffs_.readEntry("radius1", r1_);
|
||||
coeffs_.readEntry("radius2", r2_);
|
||||
|
||||
|
||||
@ -36,6 +36,14 @@ Description
|
||||
\verbatim
|
||||
acousticDampingSourceCoeffs
|
||||
{
|
||||
timeStart 0.004;
|
||||
duration 1000.0;
|
||||
selectionMode all;
|
||||
origin (-1.25 0 0);
|
||||
radius1 1.2;
|
||||
radius2 1.65;
|
||||
frequency 3000;
|
||||
URef UMean;
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
|
||||
Reference in New Issue
Block a user