mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects::surfaceInterpolateFields: Derive from fvMeshFunctionObject
This commit is contained in:
@ -54,22 +54,9 @@ Foam::functionObjects::surfaceInterpolateFields::surfaceInterpolateFields
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
functionObject(name),
|
fvMeshFunctionObject(name, runTime, dict),
|
||||||
obr_
|
|
||||||
(
|
|
||||||
runTime.lookupObject<objectRegistry>
|
|
||||||
(
|
|
||||||
dict.lookupOrDefault("region", polyMesh::defaultRegion)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
fieldSet_()
|
fieldSet_()
|
||||||
{
|
{
|
||||||
if (!isA<fvMesh>(obr_))
|
|
||||||
{
|
|
||||||
FatalErrorInFunction
|
|
||||||
<< "objectRegistry is not an fvMesh" << exit(FatalError);
|
|
||||||
}
|
|
||||||
|
|
||||||
read(dict);
|
read(dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ Description
|
|||||||
|
|
||||||
|
|
||||||
SeeAlso
|
SeeAlso
|
||||||
Foam::functionObject
|
Foam::functionObjects::fvMeshFunctionObject
|
||||||
Foam::functionObjects::timeControl
|
Foam::functionObjects::timeControl
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
@ -69,7 +69,7 @@ SourceFiles
|
|||||||
#ifndef functionObjects_surfaceInterpolateFields_H
|
#ifndef functionObjects_surfaceInterpolateFields_H
|
||||||
#define functionObjects_surfaceInterpolateFields_H
|
#define functionObjects_surfaceInterpolateFields_H
|
||||||
|
|
||||||
#include "functionObject.H"
|
#include "fvMeshFunctionObject.H"
|
||||||
#include "surfaceFieldsFwd.H"
|
#include "surfaceFieldsFwd.H"
|
||||||
#include "Tuple2.H"
|
#include "Tuple2.H"
|
||||||
|
|
||||||
@ -92,15 +92,12 @@ namespace functionObjects
|
|||||||
|
|
||||||
class surfaceInterpolateFields
|
class surfaceInterpolateFields
|
||||||
:
|
:
|
||||||
public functionObject
|
public fvMeshFunctionObject
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
//- Reference to the objectRegistry
|
|
||||||
const objectRegistry& obr_;
|
|
||||||
|
|
||||||
//- Fields to process
|
//- Fields to process
|
||||||
List<Tuple2<word, word>> fieldSet_;
|
List<Tuple2<word, word>> fieldSet_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user