fvOptions::damping: Replaced the unused cellSetOption base-class with option
Resolves the bug-report https://bugs.openfoam.org/view.php?id=3631
This commit is contained in:
@ -179,7 +179,7 @@ Foam::fv::damping::damping
|
||||
const fvMesh& mesh
|
||||
)
|
||||
:
|
||||
cellSetOption(name, modelType, dict, mesh),
|
||||
option(name, modelType, dict, mesh),
|
||||
UName_(word::null),
|
||||
lambda_("lambda", dimless/dimTime, NaN),
|
||||
scale_(nullptr),
|
||||
@ -200,7 +200,7 @@ Foam::wordList Foam::fv::damping::addSupFields() const
|
||||
|
||||
bool Foam::fv::damping::read(const dictionary& dict)
|
||||
{
|
||||
if (cellSetOption::read(dict))
|
||||
if (option::read(dict))
|
||||
{
|
||||
readCoeffs();
|
||||
return true;
|
||||
|
||||
@ -39,7 +39,7 @@ SourceFiles
|
||||
#ifndef damping_H
|
||||
#define damping_H
|
||||
|
||||
#include "cellSetOption.H"
|
||||
#include "fvOption.H"
|
||||
#include "Function1.H"
|
||||
#include "volFields.H"
|
||||
|
||||
@ -56,7 +56,7 @@ namespace fv
|
||||
|
||||
class damping
|
||||
:
|
||||
public cellSetOption
|
||||
public option
|
||||
{
|
||||
protected:
|
||||
|
||||
|
||||
@ -44,21 +44,6 @@ Usage
|
||||
{
|
||||
type isotropicDamping;
|
||||
|
||||
selectionMode cellZone;
|
||||
cellZone nearOutlet;
|
||||
|
||||
value (2 0 0); // Value towards which the field it relaxed
|
||||
lambda [0 0 -1 0 0 0 0] 1; // Damping coefficient
|
||||
}
|
||||
\endverbatim
|
||||
Example usage with graduated onset:
|
||||
\verbatim
|
||||
isotropicDamping1
|
||||
{
|
||||
type isotropicDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
// Define the line along which to apply the graduation
|
||||
origin (1200 0 0);
|
||||
direction (1 0 0);
|
||||
|
||||
@ -57,23 +57,6 @@ Usage
|
||||
{
|
||||
type verticalDamping;
|
||||
|
||||
selectionMode cellZone;
|
||||
cellZone nearOutlet;
|
||||
|
||||
lambda [0 0 -1 0 0 0 0] 1; // Damping coefficient
|
||||
|
||||
timeStart 0;
|
||||
duration 1e6;
|
||||
}
|
||||
\endverbatim
|
||||
Example usage with graduated onset:
|
||||
\verbatim
|
||||
verticalDamping1
|
||||
{
|
||||
type verticalDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
// Define the line along which to apply the graduation
|
||||
origin (1200 0 0);
|
||||
direction (1 0 0);
|
||||
|
||||
@ -19,8 +19,6 @@ option1
|
||||
{
|
||||
type isotropicDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
origin (1200 0 0);
|
||||
direction (1 0 0);
|
||||
scale
|
||||
|
||||
@ -19,8 +19,6 @@ option1
|
||||
{
|
||||
type verticalDamping;
|
||||
|
||||
selectionMode all;
|
||||
|
||||
origin (1200 0 0);
|
||||
direction (1 0 0);
|
||||
scale
|
||||
|
||||
Reference in New Issue
Block a user