mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve codeTemplates
- meshTools include/library for many (most) coded items - add PatchFunction1 include for coded BCs to provide ready access to Function1 and PatchFunction1
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2021 OpenCFD Ltd.
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -37,6 +38,7 @@ License
|
||||
${codeInclude}
|
||||
//}}} end codeInclude
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
@ -96,11 +98,11 @@ ${typeName}PatchFunction1${FieldType}
|
||||
const bool faceValues
|
||||
)
|
||||
:
|
||||
PatchFunction1<${TemplateType}>(pp, entryName, dict, faceValues)
|
||||
parent_bctype(pp, entryName, dict, faceValues)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
{
|
||||
printMessage("Construct ${typeName} from components");
|
||||
printMessage("Construct ${typeName} PatchFunction1 from dictionary");
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,7 +113,7 @@ ${typeName}PatchFunction1${FieldType}
|
||||
const ${typeName}PatchFunction1${FieldType}& rhs
|
||||
)
|
||||
:
|
||||
PatchFunction1<${TemplateType}>(rhs)
|
||||
parent_bctype(rhs)
|
||||
{}
|
||||
|
||||
|
||||
@ -122,13 +124,13 @@ ${typeName}PatchFunction1${FieldType}
|
||||
const polyPatch& pp
|
||||
)
|
||||
:
|
||||
PatchFunction1<${TemplateType}>(rhs, pp)
|
||||
parent_bctype(rhs, pp)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
tmp<Field<${TemplateType}>>
|
||||
Foam::tmp<Foam::Field<Foam::${TemplateType}>>
|
||||
${typeName}PatchFunction1${FieldType}::value
|
||||
(
|
||||
const scalar x
|
||||
|
||||
Reference in New Issue
Block a user