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:
parent
648c777dd0
commit
52323f8dd1
4 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
#{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue