mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: adjustments for Function1/PatchFunction1
- additional debug information - improve support for dictionary specification of constant, polynomial and table entries. These previously only worked properly for primitiveEntry, which causes confusion. - extend table Function1 to include TableFile functionality. Simplifies switching and modifying content.
This commit is contained in:
@ -1,15 +1,6 @@
|
||||
EXE_INC = \
|
||||
-DFULLDEBUG -g -O0 \
|
||||
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-DFULLDEBUG -g \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-llagrangianIntermediate \
|
||||
-lradiationModels \
|
||||
-lregionModels \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools \
|
||||
-lsampling
|
||||
-lmeshTools
|
||||
|
||||
@ -32,7 +32,8 @@ Description
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fvCFD.H"
|
||||
#include "argList.H"
|
||||
#include "IOstreams.H"
|
||||
#include "Function1.H"
|
||||
#include "scalarIndList.H"
|
||||
#include "scalarField.H"
|
||||
@ -40,6 +41,8 @@ Description
|
||||
#include "linearInterpolationWeights.H"
|
||||
#include "splineInterpolationWeights.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@ -26,11 +26,44 @@ x
|
||||
);
|
||||
|
||||
|
||||
function1 table
|
||||
constant1 constant 100;
|
||||
|
||||
table1 table
|
||||
(
|
||||
(0 0)(10 1)
|
||||
);
|
||||
|
||||
table2
|
||||
{
|
||||
type table;
|
||||
values
|
||||
(
|
||||
(0 0)(10 1)
|
||||
);
|
||||
}
|
||||
|
||||
table3
|
||||
{
|
||||
type table;
|
||||
file "<constant>/table-values";
|
||||
}
|
||||
|
||||
poly1 polynomial
|
||||
(
|
||||
(0 1)
|
||||
(1 1)
|
||||
);
|
||||
|
||||
poly2
|
||||
{
|
||||
type polynomial;
|
||||
coeffs
|
||||
(
|
||||
(0 1)
|
||||
(1 1)
|
||||
);
|
||||
}
|
||||
|
||||
function2
|
||||
{
|
||||
type expression;
|
||||
|
||||
9
applications/test/Function1/case1/constant/table-values
Normal file
9
applications/test/Function1/case1/constant/table-values
Normal file
@ -0,0 +1,9 @@
|
||||
// -*- C++ -*-
|
||||
// Some table values
|
||||
|
||||
(
|
||||
(0 0)
|
||||
(20 1)
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user