mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: expression versions of Function1 and PatchFunction1 (#1709)
This commit is contained in:
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object function1Properties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// The 'x' values for evaluation
|
||||
x
|
||||
(
|
||||
0
|
||||
0.25
|
||||
0.5
|
||||
0.75
|
||||
1
|
||||
);
|
||||
|
||||
|
||||
function1 table
|
||||
(
|
||||
(0 0)(10 1)
|
||||
);
|
||||
|
||||
function2
|
||||
{
|
||||
type expression;
|
||||
expression #{ sqr(arg()) #};
|
||||
}
|
||||
|
||||
function2b expression;
|
||||
|
||||
function2bCoeffs
|
||||
{
|
||||
type expression;
|
||||
expression #{ sqr(arg()) #};
|
||||
}
|
||||
|
||||
|
||||
stepf1
|
||||
{
|
||||
type step;
|
||||
start 0.24;
|
||||
duration 0.5;
|
||||
}
|
||||
|
||||
rampf1
|
||||
{
|
||||
type linearRamp;
|
||||
start 0.24;
|
||||
duration 0.5;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
26
applications/test/Function1/case1/system/controlDict
Normal file
26
applications/test/Function1/case1/system/controlDict
Normal file
@ -0,0 +1,26 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1912 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application none;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 10;
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user