mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
codedFvOption: Added cellSet support
Patch provided by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=2240
This commit is contained in:
@ -104,7 +104,7 @@ ${typeName}FvOption${SourceType}
|
||||
const fvMesh& mesh
|
||||
)
|
||||
:
|
||||
option(name, modelType, dict, mesh)
|
||||
cellSetOption(name, modelType, dict, mesh)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
{
|
||||
|
||||
@ -105,7 +105,7 @@ SourceFiles
|
||||
#ifndef codedFvOptionTemplate_H
|
||||
#define codedFvOptionTemplate_H
|
||||
|
||||
#include "fvOption.H"
|
||||
#include "cellSetOption.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -121,7 +121,7 @@ namespace fv
|
||||
|
||||
class ${typeName}FvOption${SourceType}
|
||||
:
|
||||
public option
|
||||
public cellSetOption
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@ -68,6 +68,7 @@ void Foam::fv::CodedSource<Type>::prepare
|
||||
"-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
|
||||
"-I$(LIB_SRC)/meshTools/lnInclude \\\n"
|
||||
"-I$(LIB_SRC)/sampling/lnInclude \\\n"
|
||||
"-I$(LIB_SRC)/fvOptions/lnInclude \\\n"
|
||||
+ context.options()
|
||||
+ "\n\nLIB_LIBS = \\\n"
|
||||
+ " -lmeshTools \\\n"
|
||||
|
||||
@ -57,14 +57,12 @@ Usage
|
||||
{
|
||||
type scalarCodedSource;
|
||||
|
||||
active yes;
|
||||
|
||||
scalarCodedSourceCoeffs
|
||||
{
|
||||
selectionMode all;
|
||||
|
||||
fieldNames (h);
|
||||
name sourceTime;
|
||||
fields (h);
|
||||
name sourceTime;
|
||||
|
||||
codeInclude
|
||||
#{
|
||||
|
||||
Reference in New Issue
Block a user