mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: support use of 'vector' in #calc directive (fixes #2039)
This commit is contained in:
@ -32,7 +32,7 @@ vertices
|
|||||||
(
|
(
|
||||||
(0.0 0.0 0) //0
|
(0.0 0.0 0) //0
|
||||||
(10 0.0 0)
|
(10 0.0 0)
|
||||||
(10 0.0 0) //2
|
#calc #{ vector(10, 0, 0) #} //2
|
||||||
(0.0 0.0 0)
|
(0.0 0.0 0)
|
||||||
|
|
||||||
(0.0 $minY $z) //4
|
(0.0 $minY $z) //4
|
||||||
|
|||||||
@ -32,7 +32,7 @@ vertices
|
|||||||
(
|
(
|
||||||
(0.0 0.0 0) //0
|
(0.0 0.0 0) //0
|
||||||
(10 0.0 0)
|
(10 0.0 0)
|
||||||
(10 0.0 0) //2
|
#eval{ vector(10, 0, 0) } //2
|
||||||
(0.0 0.0 0)
|
(0.0 0.0 0)
|
||||||
|
|
||||||
(0.0 $minY $z) //4
|
(0.0 $minY $z) //4
|
||||||
|
|||||||
@ -31,6 +31,8 @@ Description
|
|||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
#include "Ostream.H"
|
#include "Ostream.H"
|
||||||
#include "Pstream.H"
|
#include "Pstream.H"
|
||||||
|
#include "pointField.H"
|
||||||
|
#include "tensor.H"
|
||||||
#include "unitConversion.H"
|
#include "unitConversion.H"
|
||||||
|
|
||||||
//{{{ begin codeInclude
|
//{{{ begin codeInclude
|
||||||
@ -51,7 +53,7 @@ ${localCode}
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
extern "C" void ${typeName}(Ostream& os, const dictionary& dict)
|
extern "C" void ${typeName}(Foam::Ostream& os, const Foam::dictionary& dict)
|
||||||
{
|
{
|
||||||
//{{{ begin code
|
//{{{ begin code
|
||||||
${code}
|
${code}
|
||||||
|
|||||||
Reference in New Issue
Block a user