mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -198,7 +198,7 @@
|
|||||||
{
|
{
|
||||||
type codedFixedValue;
|
type codedFixedValue;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
redirectType fixedValue10;
|
redirectType ramped;
|
||||||
|
|
||||||
code
|
code
|
||||||
#{
|
#{
|
||||||
@ -277,6 +277,26 @@
|
|||||||
triSurfaceMesh).
|
triSurfaceMesh).
|
||||||
+ =nearWallFields=: constructs field with on selected patches interpolated
|
+ =nearWallFields=: constructs field with on selected patches interpolated
|
||||||
internal field for further postprocessing.
|
internal field for further postprocessing.
|
||||||
|
+ =coded=: uses the dynamic code compilation from =#codeStream=
|
||||||
|
to provide an in-line functionObject. E.g.
|
||||||
|
#+BEGIN_SRC c++
|
||||||
|
functions
|
||||||
|
(
|
||||||
|
pAverage
|
||||||
|
{
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
type coded;
|
||||||
|
redirectType average;
|
||||||
|
code
|
||||||
|
#{
|
||||||
|
const volScalarField& p = mesh().lookupObject<volScalarField>("p");
|
||||||
|
Info<<"p avg:" << average(p) << endl;
|
||||||
|
#};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
#+END_SRC
|
||||||
|
See also [[./doc/changes/dynamicCode.org]]
|
||||||
|
|
||||||
|
|
||||||
* New tutorials
|
* New tutorials
|
||||||
There is a large number of new tutorials for existing and new solvers in the
|
There is a large number of new tutorials for existing and new solvers in the
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -43,6 +43,8 @@ int main(int argc, char *argv[])
|
|||||||
" $HOME kjhkjhkjh \" \\$HOME/tyetyery $; ${FOAM_RUN} \n $; hkjh;"
|
" $HOME kjhkjhkjh \" \\$HOME/tyetyery $; ${FOAM_RUN} \n $; hkjh;"
|
||||||
" $(DONOTSUBST) some other <${USER}> with '${__UNKNOWN:-some default}'"
|
" $(DONOTSUBST) some other <${USER}> with '${__UNKNOWN:-some default}'"
|
||||||
" value "
|
" value "
|
||||||
|
" or with '${HOME:+Home was set}' via :+ alternative"
|
||||||
|
" or with '${__UNKNOWN:+unknown}' empty"
|
||||||
);
|
);
|
||||||
|
|
||||||
dictionary dict;
|
dictionary dict;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ cleanTimeDirectories()
|
|||||||
rm -rf ./${timeDir} ./-${timeDir} > /dev/null 2>&1
|
rm -rf ./${timeDir} ./-${timeDir} > /dev/null 2>&1
|
||||||
zeros="0$zeros"
|
zeros="0$zeros"
|
||||||
done
|
done
|
||||||
rm -rf ./[1-9]* ./-[1-9]* ./log ./log.* ./log-* ./logSummary.* ./.fxLock ./*.xml ./ParaView* ./paraFoam* ./*.OpenFOAM > /dev/null 2>&1
|
rm -rf ./[1-9]* ./-[1-9]* ./log ./log.* ./log-* ./logSummary.* ./.fxLock ./*.xml ./ParaView* ./paraFoam* ./*.OpenFOAM ./.setSet > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
# Copyright (c) 2011 OpenCFD Ltd.
|
# Copyright (c) 2011 OpenCFD Ltd.
|
||||||
|
|
||||||
* Dictionary preprocessing directive: =#codeStream=
|
* Dictionary preprocessing directive: =#codeStream=
|
||||||
This is a dictionary preprocessing directive ('=functionEntry=') which
|
This is a dictionary preprocessing directive (=functionEntry=) which
|
||||||
provides a snippet of OpenFOAM C++ code which gets compiled and executed to
|
provides a snippet of OpenFOAM C++ code which gets compiled and executed to
|
||||||
provide the actual dictionary entry. The snippet gets provided as three
|
provide the actual dictionary entry. The snippet gets provided as three
|
||||||
sections of C++ code which just gets inserted into a template:
|
sections of C++ code which just gets inserted into a template:
|
||||||
@ -17,8 +17,11 @@
|
|||||||
=dict.lookup= to find current dictionary values.
|
=dict.lookup= to find current dictionary values.
|
||||||
- optional =codeInclude= section: any #include statements to include OpenFOAM
|
- optional =codeInclude= section: any #include statements to include OpenFOAM
|
||||||
files.
|
files.
|
||||||
- optional 'codeOptions' section: any extra compilation flags to be added to
|
- optional =codeOptions= section: any extra compilation flags to be added to
|
||||||
=EXE_INC= in =Make/options=
|
=EXE_INC= in =Make/options=. These usually are =-I= include directory
|
||||||
|
options.
|
||||||
|
- optional =codeLibs= section: any extra compilation flags to be added to
|
||||||
|
=LIB_LIBS= in =Make/options=.
|
||||||
|
|
||||||
To ease inputting mulit-line code there is the =#{ #}= syntax. Anything in
|
To ease inputting mulit-line code there is the =#{ #}= syntax. Anything in
|
||||||
between these two delimiters becomes a string with all newlines, quotes etc
|
between these two delimiters becomes a string with all newlines, quotes etc
|
||||||
@ -26,6 +29,7 @@
|
|||||||
|
|
||||||
Example: Look up dictionary entries and do some calculation
|
Example: Look up dictionary entries and do some calculation
|
||||||
#+BEGIN_SRC c++
|
#+BEGIN_SRC c++
|
||||||
|
|
||||||
startTime 0;
|
startTime 0;
|
||||||
endTime 100;
|
endTime 100;
|
||||||
..
|
..
|
||||||
@ -43,30 +47,30 @@
|
|||||||
|
|
||||||
* Implementation
|
* Implementation
|
||||||
- the =#codeStream= entry reads the dictionary following it, extracts the
|
- the =#codeStream= entry reads the dictionary following it, extracts the
|
||||||
=code=, =codeInclude=, =codeOptions= sections (these are just strings) and
|
=code=, =codeInclude=, =codeOptions=, =codeLibs= sections (these are just strings) and
|
||||||
calculates the SHA1 checksum of the contents.
|
calculates the SHA1 checksum of the contents.
|
||||||
- it copies a template file
|
- it copies a template file
|
||||||
=(~OpenFOAM/codeTemplates/dynamicCode/codeStreamTemplate.C)= or
|
=(etc/codeTemplates/dynamicCode/codeStreamTemplate.C)= or
|
||||||
=($FOAM_CODE_TEMPLATES/codeStreamTemplate.C)=, substituting all
|
=($FOAM_CODE_TEMPLATES/codeStreamTemplate.C)=, substituting all
|
||||||
occurences of =code=, =codeInclude=, =codeOptions=.
|
occurences of =code=, =codeInclude=, =codeOptions=, =codeLibs=.
|
||||||
- it writes library source files to =dynamicCode/<SHA1>= and compiles
|
- it writes library source files to =dynamicCode/<SHA1>= and compiles
|
||||||
it using =wmake libso=.
|
it using =wmake libso=.
|
||||||
- the resulting library is generated under
|
- the resulting library is generated under
|
||||||
=dynamicCode/platforms/$WM_OPTIONS/lib= and is loaded (=dlopen=, =dlsym=)
|
=dynamicCode/platforms/$WM_OPTIONS/lib= and is loaded (=dlopen=, =dlsym=)
|
||||||
and the function executed
|
and the function executed.
|
||||||
- the function will have written its output into the Ostream which then gets
|
- the function will have written its output into the Ostream which then gets
|
||||||
used to construct the entry to replace the whole =#codeStream= section.
|
used to construct the entry to replace the whole =#codeStream= section.
|
||||||
- using the SHA1 means that same code will only be compiled and loaded once.
|
- using the SHA1 means that same code will only be compiled and loaded once.
|
||||||
|
|
||||||
* Boundary condition: =codedFixedValue=
|
* Boundary condition: =codedFixedValue=
|
||||||
This uses the code from codeStream to have an in-line specialised
|
This uses the same framework as codeStream to have an in-line specialised
|
||||||
=fixedValueFvPatchScalarField=. For now only for scalars:
|
=fixedValueFvPatchField=.
|
||||||
#+BEGIN_SRC c++
|
#+BEGIN_SRC c++
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type codedFixedValue;
|
type codedFixedValue;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
redirectType fixedValue10;
|
redirectType ramp;
|
||||||
|
|
||||||
code
|
code
|
||||||
#{
|
#{
|
||||||
@ -75,13 +79,16 @@
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
It by default always includes =fvCFD.H= and adds the =finiteVolume= library to
|
It by default always includes =fvCFD.H= and adds the =finiteVolume= library to
|
||||||
the include search path.
|
the include search path and the linked libraries. Any other libraries will
|
||||||
|
need
|
||||||
|
to be added using the =codeInclude=, =codeLibs=, =codeOptions= section or provided through
|
||||||
|
the =libs= entry in the =system/controlDict=.
|
||||||
|
|
||||||
A special form is where the code is not supplied in-line but instead comes
|
A special form is where the code is not supplied in-line but instead comes
|
||||||
from the =codeDict= dictionary in the =system= directory. It should contain
|
from the =codeDict= dictionary in the =system= directory. It should contain
|
||||||
a =fixedValue10= entry:
|
a =ramp= entry:
|
||||||
#+BEGIN_SRC c++
|
#+BEGIN_SRC c++
|
||||||
fixedValue10
|
ramp
|
||||||
{
|
{
|
||||||
code
|
code
|
||||||
#{
|
#{
|
||||||
@ -90,7 +97,49 @@
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
The advantage of using this indirect way is that it supports
|
The advantage of using this indirect way is that it supports
|
||||||
runTimeModifiable so any change of the code will be picked up next iteration.
|
=runTimeModifiable= so any change of the code will be picked up next iteration.
|
||||||
|
|
||||||
|
* Function object: =coded=
|
||||||
|
This uses the same framework as codeStream to have an in-line specialised
|
||||||
|
=functionObject=.
|
||||||
|
#+BEGIN_SRC c++
|
||||||
|
functions
|
||||||
|
(
|
||||||
|
pAverage
|
||||||
|
{
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
type coded;
|
||||||
|
redirectType average;
|
||||||
|
outputControl outputTime;
|
||||||
|
code
|
||||||
|
#{
|
||||||
|
const volScalarField& p = mesh().lookupObject<volScalarField>("p");
|
||||||
|
Info<<"p avg:" << average(p) << endl;
|
||||||
|
#};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
#+END_SRC
|
||||||
|
This dynamic code framework uses the following entries
|
||||||
|
+ =codeData=: declaration (in .H file) of local (null-constructable) data
|
||||||
|
+ =codeInclude=: (.C file) usual include section
|
||||||
|
+ =codeRead=: (.C file) executed upon dictionary read
|
||||||
|
+ =codeExecute=: (.C file) executed upon functionObject execute
|
||||||
|
+ =codeEnd=: (.C file) executed upon functionObject end
|
||||||
|
+ =code=: (.C file) executed upon functionObject write. This is the usual place
|
||||||
|
for simple functionObject.
|
||||||
|
+ =codeLibs=, =codeOptions=: usual
|
||||||
|
|
||||||
|
=coded= by default always includes =fvCFD.H= and adds the =finiteVolume= library to
|
||||||
|
the include search path and the linked libraries. Any other libraries will
|
||||||
|
need to be added explicitly (see =codeInclude=, =codeLibs=, =codeOptions= sections) or provided through
|
||||||
|
the =libs= entry in the =system/controlDict=.
|
||||||
|
|
||||||
|
=coded= is an =OutputFilter= type =functionObject= so supports the usual
|
||||||
|
+ =region=: non-default region
|
||||||
|
+ =enabled=: enable/disable
|
||||||
|
+ =outputControl=: =timeStep= or =outputTime=
|
||||||
|
+ =outputInterval=: in case of =timeStep=
|
||||||
|
entries.
|
||||||
|
|
||||||
* Security
|
* Security
|
||||||
Allowing the case to execute C++ code does introduce security risks. A
|
Allowing the case to execute C++ code does introduce security risks. A
|
||||||
@ -128,6 +177,11 @@
|
|||||||
#{
|
#{
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||||
#};
|
#};
|
||||||
|
|
||||||
|
codeLibs
|
||||||
|
#{
|
||||||
|
-lfiniteVolume
|
||||||
|
#};
|
||||||
};
|
};
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@ -144,7 +198,7 @@
|
|||||||
prints 'uniform 12.34;'. Note the ';' at the end. It is advised to use the
|
prints 'uniform 12.34;'. Note the ';' at the end. It is advised to use the
|
||||||
=writeEntry= as above to handle this and also e.g. binary streams (=codeStream=
|
=writeEntry= as above to handle this and also e.g. binary streams (=codeStream=
|
||||||
inherits the stream type from the dictionary)
|
inherits the stream type from the dictionary)
|
||||||
+ the =code=, =codeInclude=, =codeOptions= entries are just like any other
|
+ the =code=, =codeInclude=, =codeOptions=, =codeLibs= entries are just like any other
|
||||||
dictionary string entry so there has to be a ';' after the string
|
dictionary string entry so there has to be a ';' after the string
|
||||||
+ the =#codeStream= entry (itself a dictionary) has to end in a ';'
|
+ the =#codeStream= entry (itself a dictionary) has to end in a ';'
|
||||||
|
|
||||||
@ -153,14 +207,33 @@
|
|||||||
Following applications read
|
Following applications read
|
||||||
the field as a dictionary, not as an =IOdictionary=:
|
the field as a dictionary, not as an =IOdictionary=:
|
||||||
- =foamFormatConvert=
|
- =foamFormatConvert=
|
||||||
- =changeDictionaryDict=
|
- =changeDictionary=
|
||||||
- =foamUpgradeCyclics=
|
- =foamUpgradeCyclics=
|
||||||
These applications will usually switch off all '#' processing which
|
These applications will usually switch off all '#' processing which
|
||||||
just preserves the entries as strings (including all formatting).
|
just preserves the entries as strings (including all
|
||||||
|
formatting). =changeDictionary= has the =-enableFunctionEntries= option for if
|
||||||
|
one does want to evaluate any preprocessing in the changeDictionaryDict.
|
||||||
|
|
||||||
* Other
|
* Other
|
||||||
|
- paraFoam: paraview currently does not export symbols on loaded libraries
|
||||||
|
(more specific : it does not add 'RTLD_GLOBAL' to the dlopen flags) so
|
||||||
|
one will have to add the used additional libraries (libfiniteVolume,
|
||||||
|
lib..) either to the =codeLibs= linkage section (preferred) or to the 'libs' entry in system/controlDict to prevent getting
|
||||||
|
an error of the form
|
||||||
|
|
||||||
|
--> FOAM FATAL IO ERROR:
|
||||||
|
Failed loading library "libcodeStream_3cd388ceb070a2f8b0ae61782adbc21c5687ce6f.so"
|
||||||
|
|
||||||
|
By default =#codeStream= links in =libOpenFOAM= and =codedFixedValue= and =coded=
|
||||||
|
functionObject link in both =libOpenFOAM= and =libfiniteVolume=.
|
||||||
|
|
||||||
- parallel running not tested a lot. What about distributed data
|
- parallel running not tested a lot. What about distributed data
|
||||||
(i.e. non-=NFS=) parallel?
|
(i.e. non-=NFS=) parallel?
|
||||||
- paraview has been patched so it will pass in RTLD_GLOBAL when loading
|
|
||||||
the OpenFOAM reader module. This is necessary for above dictionary
|
- codedFixedValue could be extended to provide local data however
|
||||||
processing to work.
|
in terms of complexity this is not really worthwhile.
|
||||||
|
|
||||||
|
- all templates come from
|
||||||
|
=etc/codeTemplates/dynamicCode=
|
||||||
|
=~/.OpenFOAM/dev/codeTemplates/dynamicCode=
|
||||||
|
=FOAM_TEMPLATE_DIR=
|
||||||
|
|||||||
65
etc/codeTemplates/dynamicCode/FilterFunctionObjectTemplate.C
Normal file
65
etc/codeTemplates/dynamicCode/FilterFunctionObjectTemplate.C
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "FilterFunctionObjectTemplate.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
// dynamicCode:
|
||||||
|
// SHA1 = ${SHA1sum}
|
||||||
|
//
|
||||||
|
// unique function name that can be checked if the correct library version
|
||||||
|
// has been loaded
|
||||||
|
void ${typeName}_${SHA1sum}(bool load)
|
||||||
|
{
|
||||||
|
if (load)
|
||||||
|
{
|
||||||
|
// code that can be explicitly executed after loading
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// code that can be explicitly executed before unloading
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineNamedTemplateTypeNameAndDebug(${typeName}FilterFunctionObject, 0);
|
||||||
|
|
||||||
|
//addToRunTimeSelectionTable
|
||||||
|
addRemovableToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
functionObject,
|
||||||
|
${typeName}FilterFunctionObject,
|
||||||
|
dictionary
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
51
etc/codeTemplates/dynamicCode/FilterFunctionObjectTemplate.H
Normal file
51
etc/codeTemplates/dynamicCode/FilterFunctionObjectTemplate.H
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Description
|
||||||
|
FunctionObject wrapper around functionObjectTemplate to allow them
|
||||||
|
to be created via the functions entry within controlDict.
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
FilterFunctionObject.C
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef FilterFunctionObject_H
|
||||||
|
#define FilterFunctionObject_H
|
||||||
|
|
||||||
|
#include "functionObjectTemplate.H"
|
||||||
|
#include "OutputFilterFunctionObject.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
typedef OutputFilterFunctionObject<${typeName}FunctionObject>
|
||||||
|
${typeName}FilterFunctionObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
50
etc/codeTemplates/dynamicCode/IOfunctionObjectTemplate.H
Normal file
50
etc/codeTemplates/dynamicCode/IOfunctionObjectTemplate.H
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::IOfunctionObjectTemplate
|
||||||
|
|
||||||
|
Description
|
||||||
|
Instance of the generic IOOutputFilter for ${typeName}FunctionObject.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef IOfunctionObjectTemplate_H
|
||||||
|
#define IOfunctionObjectTemplate_H
|
||||||
|
|
||||||
|
#include "functionObjectTemplate.H"
|
||||||
|
#include "IOOutputFilter.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
typedef IOOutputFilter<${typeName}FunctionObject>
|
||||||
|
IO${typeName}FunctionObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
146
etc/codeTemplates/dynamicCode/functionObjectTemplate.C
Normal file
146
etc/codeTemplates/dynamicCode/functionObjectTemplate.C
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "functionObjectTemplate.H"
|
||||||
|
#include "Time.H"
|
||||||
|
#include "fvCFD.H"
|
||||||
|
|
||||||
|
//{{{ begin codeInclude
|
||||||
|
${codeInclude}
|
||||||
|
//}}} end codeInclude
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
defineTypeNameAndDebug(${typeName}FunctionObject, 0);
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
//{{{ begin localCode
|
||||||
|
${localCode}
|
||||||
|
//}}} end localCode
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
const objectRegistry& ${typeName}FunctionObject::obr() const
|
||||||
|
{
|
||||||
|
return obr_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const fvMesh& ${typeName}FunctionObject::mesh() const
|
||||||
|
{
|
||||||
|
return refCast<const fvMesh>(obr_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
${typeName}FunctionObject::${typeName}FunctionObject
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const objectRegistry& obr,
|
||||||
|
const dictionary& dict,
|
||||||
|
const bool
|
||||||
|
)
|
||||||
|
:
|
||||||
|
name_(name),
|
||||||
|
obr_(obr)
|
||||||
|
{
|
||||||
|
read(dict);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
${typeName}FunctionObject::~${typeName}FunctionObject()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void ${typeName}FunctionObject::read(const dictionary& dict)
|
||||||
|
{
|
||||||
|
if (${verbose:-false})
|
||||||
|
{
|
||||||
|
Info<<"read ${typeName} sha1: ${SHA1sum}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
//{{{ begin code
|
||||||
|
${codeRead}
|
||||||
|
//}}} end code
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ${typeName}FunctionObject::execute()
|
||||||
|
{
|
||||||
|
if (${verbose:-false})
|
||||||
|
{
|
||||||
|
Info<<"execute ${typeName} sha1: ${SHA1sum}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
//{{{ begin code
|
||||||
|
${codeExecute}
|
||||||
|
//}}} end code
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ${typeName}FunctionObject::end()
|
||||||
|
{
|
||||||
|
if (${verbose:-false})
|
||||||
|
{
|
||||||
|
Info<<"end ${typeName} sha1: ${SHA1sum}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
//{{{ begin code
|
||||||
|
${codeEnd}
|
||||||
|
//}}} end code
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ${typeName}FunctionObject::write()
|
||||||
|
{
|
||||||
|
if (${verbose:-false})
|
||||||
|
{
|
||||||
|
Info<<"write ${typeName} sha1: ${SHA1sum}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
//{{{ begin code
|
||||||
|
${code}
|
||||||
|
//}}} end code
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
143
etc/codeTemplates/dynamicCode/functionObjectTemplate.H
Normal file
143
etc/codeTemplates/dynamicCode/functionObjectTemplate.H
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Description
|
||||||
|
Template for use with dynamic code generation of a
|
||||||
|
OutputFilter functionObject.
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
functionObjectTemplate.C
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef functionObjectTemplate_H
|
||||||
|
#define functionObjectTemplate_H
|
||||||
|
|
||||||
|
#include "stringList.H"
|
||||||
|
#include "pointField.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
// Forward declaration of classes
|
||||||
|
class objectRegistry;
|
||||||
|
class dictionary;
|
||||||
|
class mapPolyMesh;
|
||||||
|
class fvMesh;
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
A templated functionObject
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
class ${typeName}FunctionObject
|
||||||
|
{
|
||||||
|
// Private data
|
||||||
|
|
||||||
|
//- Name of this set of system calls
|
||||||
|
word name_;
|
||||||
|
|
||||||
|
//- Registry
|
||||||
|
const objectRegistry& obr_;
|
||||||
|
|
||||||
|
//{{{ begin codeData
|
||||||
|
${codeData}
|
||||||
|
//}}} end codeData
|
||||||
|
|
||||||
|
|
||||||
|
// Private Member Functions
|
||||||
|
|
||||||
|
const objectRegistry& obr() const;
|
||||||
|
|
||||||
|
const fvMesh& mesh() const;
|
||||||
|
|
||||||
|
//- Disallow default bitwise copy construct
|
||||||
|
${typeName}FunctionObject(const ${typeName}FunctionObject&);
|
||||||
|
|
||||||
|
//- Disallow default bitwise assignment
|
||||||
|
void operator=(const ${typeName}FunctionObject&);
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
//- Runtime type information
|
||||||
|
TypeName("${typeName}");
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct for given objectRegistry and dictionary.
|
||||||
|
// Allow the possibility to load fields from files
|
||||||
|
${typeName}FunctionObject
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const objectRegistry& unused,
|
||||||
|
const dictionary&,
|
||||||
|
const bool loadFromFilesUnused = false
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//- Destructor
|
||||||
|
virtual ~${typeName}FunctionObject();
|
||||||
|
|
||||||
|
|
||||||
|
// Member Functions
|
||||||
|
|
||||||
|
//- Return name of the system call set
|
||||||
|
virtual const word& name() const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Read the system calls
|
||||||
|
virtual void read(const dictionary&);
|
||||||
|
|
||||||
|
//- Execute the "executeCalls" at each time-step
|
||||||
|
virtual void execute();
|
||||||
|
|
||||||
|
//- Execute the "endCalls" at the final time-loop
|
||||||
|
virtual void end();
|
||||||
|
|
||||||
|
//- Write, execute the "writeCalls"
|
||||||
|
virtual void write();
|
||||||
|
|
||||||
|
//- Update for changes of mesh
|
||||||
|
virtual void updateMesh(const mapPolyMesh&)
|
||||||
|
{}
|
||||||
|
|
||||||
|
//- Update for changes of mesh
|
||||||
|
virtual void movePoints(const pointField&)
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -37,6 +37,7 @@ Description
|
|||||||
#include "fileStat.H"
|
#include "fileStat.H"
|
||||||
#include "timer.H"
|
#include "timer.H"
|
||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
|
#include "DynamicList.H"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
@ -52,6 +53,7 @@ Description
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
#include <link.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
@ -1107,10 +1109,20 @@ void* Foam::dlOpen(const fileName& lib)
|
|||||||
{
|
{
|
||||||
if (POSIX::debug)
|
if (POSIX::debug)
|
||||||
{
|
{
|
||||||
Info<< "dlOpen(const fileName&)"
|
std::cout<< "dlOpen(const fileName&)"
|
||||||
<< " : dlopen of " << lib << endl;
|
<< " : dlopen of " << lib << std::endl;
|
||||||
}
|
}
|
||||||
return ::dlopen(lib.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
void* handle = ::dlopen(lib.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
|
|
||||||
|
if (POSIX::debug)
|
||||||
|
{
|
||||||
|
std::cout
|
||||||
|
<< "dlOpen(const fileName&)"
|
||||||
|
<< " : dlopen of " << lib
|
||||||
|
<< " handle " << handle << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1118,8 +1130,9 @@ bool Foam::dlClose(void* handle)
|
|||||||
{
|
{
|
||||||
if (POSIX::debug)
|
if (POSIX::debug)
|
||||||
{
|
{
|
||||||
Info<< "dlClose(void*)"
|
std::cout
|
||||||
<< " : dlclose" << endl;
|
<< "dlClose(void*)"
|
||||||
|
<< " : dlclose of handle " << handle << std::endl;
|
||||||
}
|
}
|
||||||
return ::dlclose(handle) == 0;
|
return ::dlclose(handle) == 0;
|
||||||
}
|
}
|
||||||
@ -1129,8 +1142,9 @@ void* Foam::dlSym(void* handle, const std::string& symbol)
|
|||||||
{
|
{
|
||||||
if (POSIX::debug)
|
if (POSIX::debug)
|
||||||
{
|
{
|
||||||
Info<< "dlSym(void*, const std::string&)"
|
std::cout
|
||||||
<< " : dlsym of " << symbol << endl;
|
<< "dlSym(void*, const std::string&)"
|
||||||
|
<< " : dlsym of " << symbol << std::endl;
|
||||||
}
|
}
|
||||||
// clear any old errors - see manpage dlopen
|
// clear any old errors - see manpage dlopen
|
||||||
(void) ::dlerror();
|
(void) ::dlerror();
|
||||||
@ -1158,8 +1172,9 @@ bool Foam::dlSymFound(void* handle, const std::string& symbol)
|
|||||||
{
|
{
|
||||||
if (POSIX::debug)
|
if (POSIX::debug)
|
||||||
{
|
{
|
||||||
Info<< "dlSymFound(void*, const std::string&)"
|
std::cout
|
||||||
<< " : dlsym of " << symbol << endl;
|
<< "dlSymFound(void*, const std::string&)"
|
||||||
|
<< " : dlsym of " << symbol << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear any old errors - see manpage dlopen
|
// clear any old errors - see manpage dlopen
|
||||||
@ -1178,4 +1193,32 @@ bool Foam::dlSymFound(void* handle, const std::string& symbol)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int collectLibsCallback
|
||||||
|
(
|
||||||
|
struct dl_phdr_info *info,
|
||||||
|
size_t size,
|
||||||
|
void *data
|
||||||
|
)
|
||||||
|
{
|
||||||
|
Foam::DynamicList<Foam::fileName>* ptr =
|
||||||
|
reinterpret_cast<Foam::DynamicList<Foam::fileName>*>(data);
|
||||||
|
ptr->append(info->dlpi_name);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::fileNameList Foam::dlLoaded()
|
||||||
|
{
|
||||||
|
DynamicList<fileName> libs;
|
||||||
|
dl_iterate_phdr(collectLibsCallback, &libs);
|
||||||
|
if (POSIX::debug)
|
||||||
|
{
|
||||||
|
std::cout
|
||||||
|
<< "dlLoaded()"
|
||||||
|
<< " : determined loaded libraries :" << libs.size() << endl;
|
||||||
|
}
|
||||||
|
return libs;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -136,7 +136,9 @@ bool Foam::functionEntries::codeStream::execute
|
|||||||
(
|
(
|
||||||
"EXE_INC = -g \\\n"
|
"EXE_INC = -g \\\n"
|
||||||
+ context.options()
|
+ context.options()
|
||||||
+ "\n\nLIB_LIBS ="
|
+ "\n\nLIB_LIBS = \\\n"
|
||||||
|
+ " -lOpenFOAM \\\n"
|
||||||
|
+ context.libs()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!dynCode.copyOrCreateFiles(true))
|
if (!dynCode.copyOrCreateFiles(true))
|
||||||
@ -172,6 +174,8 @@ bool Foam::functionEntries::codeStream::execute
|
|||||||
"functionEntries::codeStream::execute(..)",
|
"functionEntries::codeStream::execute(..)",
|
||||||
parentDict
|
parentDict
|
||||||
) << "Failed loading library " << libPath << nl
|
) << "Failed loading library " << libPath << nl
|
||||||
|
<< "Did you add all libraries to the 'libs' entry"
|
||||||
|
<< " in system/controlDict?"
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -31,8 +31,6 @@ License
|
|||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "OSspecific.H"
|
#include "OSspecific.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
#include "dlLibraryTable.H"
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -557,22 +555,4 @@ bool Foam::dynamicCode::upToDate(const dynamicCodeContext& context) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// bool Foam::dynamicCode::openLibrary() const
|
|
||||||
// {
|
|
||||||
// return dlLibraryTable::openLibrary(this->libPath(), false);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// bool Foam::dynamicCode::closeLibrary() const
|
|
||||||
// {
|
|
||||||
// return dlLibraryTable::closeLibrary(this->libPath(), false);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// void* Foam::dynamicCode::findLibrary() const
|
|
||||||
// {
|
|
||||||
// return dlLibraryTable::findLibrary(this->libPath());
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -37,10 +37,8 @@ SourceFiles
|
|||||||
#define dynamicCode_H
|
#define dynamicCode_H
|
||||||
|
|
||||||
#include "Tuple2.H"
|
#include "Tuple2.H"
|
||||||
#include "SHA1Digest.H"
|
|
||||||
#include "HashTable.H"
|
#include "HashTable.H"
|
||||||
#include "DynamicList.H"
|
#include "DynamicList.H"
|
||||||
#include "dlLibraryTable.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -51,6 +49,7 @@ namespace Foam
|
|||||||
class dynamicCodeContext;
|
class dynamicCodeContext;
|
||||||
class ISstream;
|
class ISstream;
|
||||||
class OSstream;
|
class OSstream;
|
||||||
|
class SHA1Digest;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class dynamicCode Declaration
|
Class dynamicCode Declaration
|
||||||
@ -283,16 +282,6 @@ public:
|
|||||||
//- Compile a libso
|
//- Compile a libso
|
||||||
bool wmakeLibso() const;
|
bool wmakeLibso() const;
|
||||||
|
|
||||||
// //- Open the libPath() library
|
|
||||||
// bool openLibrary() const;
|
|
||||||
//
|
|
||||||
// //- Close the libPath() library
|
|
||||||
// bool closeLibrary() const;
|
|
||||||
//
|
|
||||||
// //- Find the handle of the libPath() library
|
|
||||||
// void* findLibrary() const;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,8 @@ Foam::dynamicCodeContext::dynamicCodeContext(const dictionary& dict)
|
|||||||
code_(stringOps::trim(dict["code"])),
|
code_(stringOps::trim(dict["code"])),
|
||||||
localCode_(),
|
localCode_(),
|
||||||
include_(),
|
include_(),
|
||||||
options_()
|
options_(),
|
||||||
|
libs_()
|
||||||
{
|
{
|
||||||
// expand dictionary entries
|
// expand dictionary entries
|
||||||
stringOps::inplaceExpand(code_, dict);
|
stringOps::inplaceExpand(code_, dict);
|
||||||
@ -67,9 +68,16 @@ Foam::dynamicCodeContext::dynamicCodeContext(const dictionary& dict)
|
|||||||
stringOps::inplaceExpand(options_, dict);
|
stringOps::inplaceExpand(options_, dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional
|
||||||
|
if (dict.found("codeLibs"))
|
||||||
|
{
|
||||||
|
libs_ = stringOps::trim(dict["codeLibs"]);
|
||||||
|
stringOps::inplaceExpand(libs_, dict);
|
||||||
|
}
|
||||||
|
|
||||||
// calculate SHA1 digest from include, options, localCode, code
|
// calculate SHA1 digest from include, options, localCode, code
|
||||||
OSHA1stream os;
|
OSHA1stream os;
|
||||||
os << include_ << options_ << localCode_ << code_;
|
os << include_ << options_ << libs_ << localCode_ << code_;
|
||||||
sha1_ = os.digest();
|
sha1_ = os.digest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -66,6 +66,9 @@ class dynamicCodeContext
|
|||||||
//- Optional "codeOptions" entry
|
//- Optional "codeOptions" entry
|
||||||
string options_;
|
string options_;
|
||||||
|
|
||||||
|
//- Optional "codeLib" entry
|
||||||
|
string libs_;
|
||||||
|
|
||||||
//- Calculated SHA1Digest
|
//- Calculated SHA1Digest
|
||||||
SHA1Digest sha1_;
|
SHA1Digest sha1_;
|
||||||
|
|
||||||
@ -96,6 +99,12 @@ public:
|
|||||||
return options_;
|
return options_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Return the code-libs
|
||||||
|
const string& libs() const
|
||||||
|
{
|
||||||
|
return libs_;
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the code
|
//- Return the code
|
||||||
const string& code() const
|
const string& code() const
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -39,6 +39,7 @@ void Foam::OutputFilterFunctionObject<OutputFilter>::readDict()
|
|||||||
dict_.readIfPresent("storeFilter", storeFilter_);
|
dict_.readIfPresent("storeFilter", storeFilter_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class OutputFilter>
|
template<class OutputFilter>
|
||||||
void Foam::OutputFilterFunctionObject<OutputFilter>::allocateFilter()
|
void Foam::OutputFilterFunctionObject<OutputFilter>::allocateFilter()
|
||||||
{
|
{
|
||||||
@ -68,12 +69,14 @@ void Foam::OutputFilterFunctionObject<OutputFilter>::allocateFilter()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class OutputFilter>
|
template<class OutputFilter>
|
||||||
void Foam::OutputFilterFunctionObject<OutputFilter>::destroyFilter()
|
void Foam::OutputFilterFunctionObject<OutputFilter>::destroyFilter()
|
||||||
{
|
{
|
||||||
ptr_.reset();
|
ptr_.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class OutputFilter>
|
template<class OutputFilter>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -51,7 +51,7 @@ void Foam::DimensionedField<Type, GeoMesh>::readIfPresent
|
|||||||
{
|
{
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
(this->headerOk() && this->readOpt() == IOobject::READ_IF_PRESENT)
|
(this->readOpt() == IOobject::READ_IF_PRESENT && this->headerOk())
|
||||||
|| this->readOpt() == IOobject::MUST_READ
|
|| this->readOpt() == IOobject::MUST_READ
|
||||||
|| this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
|
|| this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
|
||||||
)
|
)
|
||||||
|
|||||||
@ -196,6 +196,9 @@ void* dlSym(void* handle, const std::string& symbol);
|
|||||||
//- Report if symbol in a dlopened library could be found
|
//- Report if symbol in a dlopened library could be found
|
||||||
bool dlSymFound(void* handle, const std::string& symbol);
|
bool dlSymFound(void* handle, const std::string& symbol);
|
||||||
|
|
||||||
|
//- Return all loaded libraries
|
||||||
|
fileNameList dlLoaded();
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,45 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
//! \cond fileScope
|
||||||
|
// Find the type/position of the ":-" or ":+" alternative values
|
||||||
|
//
|
||||||
|
static inline int findParameterAlternative
|
||||||
|
(
|
||||||
|
const std::string& s,
|
||||||
|
std::string::size_type& pos,
|
||||||
|
std::string::size_type endPos
|
||||||
|
)
|
||||||
|
{
|
||||||
|
while (pos != std::string::npos)
|
||||||
|
{
|
||||||
|
pos = s.find(':', pos);
|
||||||
|
if (pos != std::string::npos)
|
||||||
|
{
|
||||||
|
if (pos < endPos)
|
||||||
|
{
|
||||||
|
// in-range: check for '+' or '-' following the ':'
|
||||||
|
const int altType = s[pos+1];
|
||||||
|
if (altType == '+' || altType == '-')
|
||||||
|
{
|
||||||
|
return altType;
|
||||||
|
}
|
||||||
|
|
||||||
|
++pos; // unknown/unsupported - continue at next position
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// out-of-range: abort
|
||||||
|
pos = std::string::npos;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
//! \endcond
|
||||||
|
|
||||||
|
|
||||||
Foam::string Foam::stringOps::expand
|
Foam::string Foam::stringOps::expand
|
||||||
(
|
(
|
||||||
const string& original,
|
const string& original,
|
||||||
@ -66,7 +105,8 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
string::size_type endVar = begVar;
|
string::size_type endVar = begVar;
|
||||||
string::size_type delim = 0;
|
string::size_type delim = 0;
|
||||||
|
|
||||||
// The position of the ":-" default value
|
// The type/position of the ":-" or ":+" alternative values
|
||||||
|
int altType = 0;
|
||||||
string::size_type altPos = string::npos;
|
string::size_type altPos = string::npos;
|
||||||
|
|
||||||
if (s[begVar+1] == '{')
|
if (s[begVar+1] == '{')
|
||||||
@ -74,14 +114,11 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
endVar = s.find('}', begVar);
|
endVar = s.find('}', begVar);
|
||||||
delim = 1;
|
delim = 1;
|
||||||
|
|
||||||
// looks like ${parameter:-word}
|
// check for ${parameter:-word} or ${parameter:+word}
|
||||||
if (endVar != string::npos)
|
if (endVar != string::npos)
|
||||||
{
|
{
|
||||||
altPos = s.find(":-", begVar);
|
altPos = begVar;
|
||||||
if (altPos != string::npos && altPos > endVar)
|
altType = findParameterAlternative(s, altPos, endVar);
|
||||||
{
|
|
||||||
altPos = string::npos;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -134,7 +171,7 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
std::string altValue;
|
std::string altValue;
|
||||||
if (altPos != string::npos)
|
if (altPos != string::npos)
|
||||||
{
|
{
|
||||||
// had ":-" default value
|
// had ":-" or ":+" alternative value
|
||||||
altValue = s.substr
|
altValue = s.substr
|
||||||
(
|
(
|
||||||
altPos + 2,
|
altPos + 2,
|
||||||
@ -148,17 +185,9 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
|
|
||||||
if (fnd != HashTable<string, word, string::hash>::end())
|
if (fnd != HashTable<string, word, string::hash>::end())
|
||||||
{
|
{
|
||||||
s.std::string::replace
|
if (altPos != string::npos && altType == '+')
|
||||||
(
|
|
||||||
begVar,
|
|
||||||
endVar - begVar + 1,
|
|
||||||
*fnd
|
|
||||||
);
|
|
||||||
begVar += (*fnd).size();
|
|
||||||
}
|
|
||||||
else if (altPos != string::npos)
|
|
||||||
{
|
{
|
||||||
// use alternative provided
|
// was found, use ":+" alternative
|
||||||
s.std::string::replace
|
s.std::string::replace
|
||||||
(
|
(
|
||||||
begVar,
|
begVar,
|
||||||
@ -169,12 +198,31 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// was found, use value
|
||||||
s.std::string::replace
|
s.std::string::replace
|
||||||
(
|
(
|
||||||
begVar,
|
begVar,
|
||||||
endVar - begVar + 1,
|
endVar - begVar + 1,
|
||||||
""
|
*fnd
|
||||||
);
|
);
|
||||||
|
begVar += (*fnd).size();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (altPos != string::npos && altType == '-')
|
||||||
|
{
|
||||||
|
// was not found, use ":-" alternative
|
||||||
|
s.std::string::replace
|
||||||
|
(
|
||||||
|
begVar,
|
||||||
|
endVar - begVar + 1,
|
||||||
|
altValue
|
||||||
|
);
|
||||||
|
begVar += altValue.size();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// substitute with nothing, also for ":+" alternative
|
||||||
|
s.std::string::erase(begVar, endVar - begVar + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -351,7 +399,8 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
string::size_type endVar = begVar;
|
string::size_type endVar = begVar;
|
||||||
string::size_type delim = 0;
|
string::size_type delim = 0;
|
||||||
|
|
||||||
// The position of the ":-" default value
|
// The type/position of the ":-" or ":+" alternative values
|
||||||
|
int altType = 0;
|
||||||
string::size_type altPos = string::npos;
|
string::size_type altPos = string::npos;
|
||||||
|
|
||||||
if (s[begVar+1] == '{')
|
if (s[begVar+1] == '{')
|
||||||
@ -359,14 +408,11 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
endVar = s.find('}', begVar);
|
endVar = s.find('}', begVar);
|
||||||
delim = 1;
|
delim = 1;
|
||||||
|
|
||||||
// looks like ${parameter:-word}
|
// check for ${parameter:-word} or ${parameter:+word}
|
||||||
if (endVar != string::npos)
|
if (endVar != string::npos)
|
||||||
{
|
{
|
||||||
altPos = s.find(":-", begVar);
|
altPos = begVar;
|
||||||
if (altPos != string::npos && altPos > endVar)
|
altType = findParameterAlternative(s, altPos, endVar);
|
||||||
{
|
|
||||||
altPos = string::npos;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -413,7 +459,7 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
std::string altValue;
|
std::string altValue;
|
||||||
if (altPos != string::npos)
|
if (altPos != string::npos)
|
||||||
{
|
{
|
||||||
// had ":-" default value
|
// had ":-" or ":+" alternative value
|
||||||
altValue = s.substr
|
altValue = s.substr
|
||||||
(
|
(
|
||||||
altPos + 2,
|
altPos + 2,
|
||||||
@ -424,18 +470,9 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
const string varValue = getEnv(varName);
|
const string varValue = getEnv(varName);
|
||||||
if (varValue.size())
|
if (varValue.size())
|
||||||
{
|
{
|
||||||
// direct replacement
|
if (altPos != string::npos && altType == '+')
|
||||||
s.std::string::replace
|
|
||||||
(
|
|
||||||
begVar,
|
|
||||||
endVar - begVar + 1,
|
|
||||||
varValue
|
|
||||||
);
|
|
||||||
begVar += varValue.size();
|
|
||||||
}
|
|
||||||
else if (altPos != string::npos)
|
|
||||||
{
|
{
|
||||||
// use alternative provided
|
// was found, use ":+" alternative
|
||||||
s.std::string::replace
|
s.std::string::replace
|
||||||
(
|
(
|
||||||
begVar,
|
begVar,
|
||||||
@ -444,14 +481,42 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
);
|
);
|
||||||
begVar += altValue.size();
|
begVar += altValue.size();
|
||||||
}
|
}
|
||||||
else if (allowEmpty)
|
else
|
||||||
{
|
{
|
||||||
|
// was found, use value
|
||||||
s.std::string::replace
|
s.std::string::replace
|
||||||
(
|
(
|
||||||
begVar,
|
begVar,
|
||||||
endVar - begVar + 1,
|
endVar - begVar + 1,
|
||||||
""
|
varValue
|
||||||
);
|
);
|
||||||
|
begVar += varValue.size();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (altPos != string::npos)
|
||||||
|
{
|
||||||
|
// use ":-" or ":+" alternative values
|
||||||
|
if (altType == '-')
|
||||||
|
{
|
||||||
|
// was not found, use ":-" alternative
|
||||||
|
s.std::string::replace
|
||||||
|
(
|
||||||
|
begVar,
|
||||||
|
endVar - begVar + 1,
|
||||||
|
altValue
|
||||||
|
);
|
||||||
|
begVar += altValue.size();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// was not found, ":+" alternative implies
|
||||||
|
// substitute with nothing
|
||||||
|
s.std::string::erase(begVar, endVar - begVar + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (allowEmpty)
|
||||||
|
{
|
||||||
|
s.std::string::erase(begVar, endVar - begVar + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -459,7 +524,7 @@ Foam::string& Foam::stringOps::inplaceExpand
|
|||||||
(
|
(
|
||||||
"stringOps::inplaceExpand(string&, const bool)"
|
"stringOps::inplaceExpand(string&, const bool)"
|
||||||
)
|
)
|
||||||
<< "Unknown variable name " << varName << '.'
|
<< "Unknown variable name '" << varName << "'"
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,6 +62,13 @@ namespace stringOps
|
|||||||
// If parameter is unset or null, the \c defValue is substituted.
|
// If parameter is unset or null, the \c defValue is substituted.
|
||||||
// Otherwise, the value of parameter is substituted.
|
// Otherwise, the value of parameter is substituted.
|
||||||
//
|
//
|
||||||
|
// Supports alternative values as per the Bourne/Korn shell.
|
||||||
|
// \code
|
||||||
|
// "${parameter:+altValue}"
|
||||||
|
// \endcode
|
||||||
|
// If parameter is unset or null, nothing is substituted.
|
||||||
|
// Otherwise the \c altValue is substituted.
|
||||||
|
//
|
||||||
// Any unknown entries are removed silently.
|
// Any unknown entries are removed silently.
|
||||||
//
|
//
|
||||||
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
||||||
@ -89,6 +96,13 @@ namespace stringOps
|
|||||||
// If parameter is unset or null, the \c defValue is substituted.
|
// If parameter is unset or null, the \c defValue is substituted.
|
||||||
// Otherwise, the value of parameter is substituted.
|
// Otherwise, the value of parameter is substituted.
|
||||||
//
|
//
|
||||||
|
// Supports alternative values as per the Bourne/Korn shell.
|
||||||
|
// \code
|
||||||
|
// "${parameter:+altValue}"
|
||||||
|
// \endcode
|
||||||
|
// If parameter is unset or null, nothing is substituted.
|
||||||
|
// Otherwise the \c altValue is substituted.
|
||||||
|
//
|
||||||
// Any unknown entries are removed silently.
|
// Any unknown entries are removed silently.
|
||||||
//
|
//
|
||||||
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
||||||
@ -155,6 +169,13 @@ namespace stringOps
|
|||||||
// If parameter is unset or null, the \c defValue is substituted.
|
// If parameter is unset or null, the \c defValue is substituted.
|
||||||
// Otherwise, the value of parameter is substituted.
|
// Otherwise, the value of parameter is substituted.
|
||||||
//
|
//
|
||||||
|
// Supports alternative values as per the Bourne/Korn shell.
|
||||||
|
// \code
|
||||||
|
// "${parameter:+altValue}"
|
||||||
|
// \endcode
|
||||||
|
// If parameter is unset or null, nothing is substituted.
|
||||||
|
// Otherwise the \c altValue is substituted.
|
||||||
|
//
|
||||||
// Any unknown entries are removed silently, if allowEmpty is true.
|
// Any unknown entries are removed silently, if allowEmpty is true.
|
||||||
//
|
//
|
||||||
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
||||||
@ -187,6 +208,13 @@ namespace stringOps
|
|||||||
// If parameter is unset or null, the \c defValue is substituted.
|
// If parameter is unset or null, the \c defValue is substituted.
|
||||||
// Otherwise, the value of parameter is substituted.
|
// Otherwise, the value of parameter is substituted.
|
||||||
//
|
//
|
||||||
|
// Supports alternative values as per the Bourne/Korn shell.
|
||||||
|
// \code
|
||||||
|
// "${parameter:+altValue}"
|
||||||
|
// \endcode
|
||||||
|
// If parameter is unset or null, nothing is substituted.
|
||||||
|
// Otherwise the \c altValue is substituted.
|
||||||
|
//
|
||||||
// Any unknown entries are removed silently, if allowEmpty is true.
|
// Any unknown entries are removed silently, if allowEmpty is true.
|
||||||
//
|
//
|
||||||
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
// Malformed entries (eg, brace mismatch, sigil followed by bad character)
|
||||||
|
|||||||
@ -37,6 +37,9 @@ License
|
|||||||
#include "stringOps.H"
|
#include "stringOps.H"
|
||||||
#include "IOdictionary.H"
|
#include "IOdictionary.H"
|
||||||
|
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#include <link.h>
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -270,7 +273,10 @@ void Foam::codedFixedValueFvPatchField<Type>::createLibrary
|
|||||||
"EXE_INC = -g \\\n"
|
"EXE_INC = -g \\\n"
|
||||||
"-I$(LIB_SRC)/finiteVolume/lnInclude\\\n"
|
"-I$(LIB_SRC)/finiteVolume/lnInclude\\\n"
|
||||||
+ context.options()
|
+ context.options()
|
||||||
+ "\n\nLIB_LIBS = "
|
+ "\n\nLIB_LIBS = \\\n"
|
||||||
|
+ " -lOpenFOAM \\\n"
|
||||||
|
+ " -lfiniteVolume \\\n"
|
||||||
|
+ context.libs()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!dynCode.copyOrCreateFiles(true))
|
if (!dynCode.copyOrCreateFiles(true))
|
||||||
|
|||||||
@ -80,6 +80,9 @@ SourceFiles
|
|||||||
|
|
||||||
#include "fixedValueFvPatchFields.H"
|
#include "fixedValueFvPatchFields.H"
|
||||||
|
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#include <link.h>
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
@ -119,6 +122,13 @@ class codedFixedValueFvPatchField
|
|||||||
//- Global loader/unloader function type
|
//- Global loader/unloader function type
|
||||||
typedef void (*loaderFunctionType)(bool);
|
typedef void (*loaderFunctionType)(bool);
|
||||||
|
|
||||||
|
static int collectLibsCallback
|
||||||
|
(
|
||||||
|
struct dl_phdr_info *info,
|
||||||
|
size_t size,
|
||||||
|
void *data
|
||||||
|
);
|
||||||
|
|
||||||
//- Load specified library and execute globalFuncName(true)
|
//- Load specified library and execute globalFuncName(true)
|
||||||
static void* loadLibrary
|
static void* loadLibrary
|
||||||
(
|
(
|
||||||
|
|||||||
@ -332,7 +332,19 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::readSamplePoints()
|
|||||||
(
|
(
|
||||||
referenceCS().localPosition(samplePoints)
|
referenceCS().localPosition(samplePoints)
|
||||||
);
|
);
|
||||||
const vectorField& localVertices = tlocalVertices();
|
vectorField& localVertices = tlocalVertices();
|
||||||
|
|
||||||
|
// Shear to avoid degenerate cases
|
||||||
|
forAll(localVertices, i)
|
||||||
|
{
|
||||||
|
point& pt = localVertices[i];
|
||||||
|
const scalar magPt = mag(pt);
|
||||||
|
const point nptDir = pt/magPt;
|
||||||
|
if (magPt > ROOTVSMALL)
|
||||||
|
{
|
||||||
|
pt += pow(magPt, 1.1 + Foam::sqrt(SMALL))*nptDir;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Determine triangulation
|
// Determine triangulation
|
||||||
List<vector2D> localVertices2D(localVertices.size());
|
List<vector2D> localVertices2D(localVertices.size());
|
||||||
@ -342,7 +354,7 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::readSamplePoints()
|
|||||||
localVertices2D[i][1] = localVertices[i][1];
|
localVertices2D[i][1] = localVertices[i][1];
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp<pointField> localFaceCentres
|
tmp<pointField> tlocalFaceCentres
|
||||||
(
|
(
|
||||||
referenceCS().localPosition
|
referenceCS().localPosition
|
||||||
(
|
(
|
||||||
@ -350,6 +362,20 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::readSamplePoints()
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pointField& localFaceCentres = tlocalFaceCentres();
|
||||||
|
|
||||||
|
// Shear to avoid degenerate cases
|
||||||
|
forAll(localFaceCentres, i)
|
||||||
|
{
|
||||||
|
point& pt = localFaceCentres[i];
|
||||||
|
const scalar magPt = mag(pt);
|
||||||
|
const point nptDir = pt/magPt;
|
||||||
|
if (magPt > ROOTVSMALL)
|
||||||
|
{
|
||||||
|
pt += pow(magPt, 1.1 + Foam::sqrt(SMALL))*nptDir;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
OFstream str
|
OFstream str
|
||||||
@ -360,9 +386,9 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::readSamplePoints()
|
|||||||
Pout<< "readSamplePoints :"
|
Pout<< "readSamplePoints :"
|
||||||
<< " Dumping face centres to " << str.name() << endl;
|
<< " Dumping face centres to " << str.name() << endl;
|
||||||
|
|
||||||
forAll(localFaceCentres(), i)
|
forAll(localFaceCentres, i)
|
||||||
{
|
{
|
||||||
const point& p = localFaceCentres()[i];
|
const point& p = localFaceCentres[i];
|
||||||
str<< "v " << p.x() << ' ' << p.y() << ' ' << p.z() << nl;
|
str<< "v " << p.x() << ' ' << p.y() << ' ' << p.z() << nl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -380,9 +406,9 @@ void timeVaryingMappedFixedValueFvPatchField<Type>::readSamplePoints()
|
|||||||
Pout<< "readSamplePoints :"
|
Pout<< "readSamplePoints :"
|
||||||
<< " Dumping face centres to " << str.name() << endl;
|
<< " Dumping face centres to " << str.name() << endl;
|
||||||
|
|
||||||
forAll(localFaceCentres(), i)
|
forAll(localFaceCentres, i)
|
||||||
{
|
{
|
||||||
const point& p = localFaceCentres()[i];
|
const point& p = localFaceCentres[i];
|
||||||
str<< "v " << p.x() << ' ' << p.y() << ' ' << p.z() << nl;
|
str<< "v " << p.x() << ' ' << p.y() << ' ' << p.z() << nl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -91,7 +91,24 @@ Foam::pointIndexHit Foam::searchableCylinder::findNearest
|
|||||||
// distance to cylinder wall: magV-radius_
|
// distance to cylinder wall: magV-radius_
|
||||||
|
|
||||||
// Nearest cylinder point
|
// Nearest cylinder point
|
||||||
point cylPt = sample + (radius_-magV)*v;
|
point cylPt;
|
||||||
|
if (magV < ROOTVSMALL)
|
||||||
|
{
|
||||||
|
// Point exactly on centre line. Take any point on wall.
|
||||||
|
vector e1 = point(1,0,0) ^ unitDir_;
|
||||||
|
scalar magE1 = mag(e1);
|
||||||
|
if (magE1 < SMALL)
|
||||||
|
{
|
||||||
|
e1 = point(0,1,0) ^ unitDir_;
|
||||||
|
magE1 = mag(e1);
|
||||||
|
}
|
||||||
|
e1 /= magE1;
|
||||||
|
cylPt = sample + radius_*e1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cylPt = sample + (radius_-magV)*v;
|
||||||
|
}
|
||||||
|
|
||||||
if (parallel < 0.5*magDir_)
|
if (parallel < 0.5*magDir_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
codedFunctionObject/codedFunctionObject.C
|
||||||
|
|
||||||
staticPressure/staticPressure.C
|
staticPressure/staticPressure.C
|
||||||
staticPressure/staticPressureFunctionObject.C
|
staticPressure/staticPressureFunctionObject.C
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,398 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "codedFunctionObject.H"
|
||||||
|
#include "volFields.H"
|
||||||
|
#include "dictionary.H"
|
||||||
|
#include "Time.H"
|
||||||
|
#include "SHA1Digest.H"
|
||||||
|
#include "dynamicCode.H"
|
||||||
|
#include "dynamicCodeContext.H"
|
||||||
|
#include "stringOps.H"
|
||||||
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineTypeNameAndDebug(codedFunctionObject, 0);
|
||||||
|
|
||||||
|
addToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
functionObject,
|
||||||
|
codedFunctionObject,
|
||||||
|
dictionary
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void* Foam::codedFunctionObject::loadLibrary
|
||||||
|
(
|
||||||
|
const fileName& libPath,
|
||||||
|
const string& globalFuncName,
|
||||||
|
const dictionary& contextDict
|
||||||
|
)
|
||||||
|
{
|
||||||
|
void* lib = 0;
|
||||||
|
|
||||||
|
// avoid compilation by loading an existing library
|
||||||
|
if (!libPath.empty() && dlLibraryTable::open(libPath, false))
|
||||||
|
{
|
||||||
|
lib = dlLibraryTable::findLibrary(libPath);
|
||||||
|
|
||||||
|
// verify the loaded version and unload if needed
|
||||||
|
if (lib)
|
||||||
|
{
|
||||||
|
// provision for manual execution of code after loading
|
||||||
|
if (dlSymFound(lib, globalFuncName))
|
||||||
|
{
|
||||||
|
loaderFunctionType function =
|
||||||
|
reinterpret_cast<loaderFunctionType>
|
||||||
|
(
|
||||||
|
dlSym(lib, globalFuncName)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (function)
|
||||||
|
{
|
||||||
|
(*function)(true); // force load
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::updateLibrary()",
|
||||||
|
contextDict
|
||||||
|
) << "Failed looking up symbol " << globalFuncName << nl
|
||||||
|
<< "from " << libPath << exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::loadLibrary()",
|
||||||
|
contextDict
|
||||||
|
) << "Failed looking up symbol " << globalFuncName << nl
|
||||||
|
<< "from " << libPath << exit(FatalIOError);
|
||||||
|
|
||||||
|
lib = 0;
|
||||||
|
if (!dlLibraryTable::close(libPath, false))
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::loadLibrary()",
|
||||||
|
contextDict
|
||||||
|
) << "Failed unloading library "
|
||||||
|
<< libPath
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return lib;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::codedFunctionObject::unloadLibrary
|
||||||
|
(
|
||||||
|
const fileName& libPath,
|
||||||
|
const string& globalFuncName,
|
||||||
|
const dictionary& contextDict
|
||||||
|
)
|
||||||
|
{
|
||||||
|
void* lib = 0;
|
||||||
|
|
||||||
|
if (!libPath.empty())
|
||||||
|
{
|
||||||
|
lib = dlLibraryTable::findLibrary(libPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!lib)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// provision for manual execution of code before unloading
|
||||||
|
if (dlSymFound(lib, globalFuncName))
|
||||||
|
{
|
||||||
|
loaderFunctionType function =
|
||||||
|
reinterpret_cast<loaderFunctionType>
|
||||||
|
(
|
||||||
|
dlSym(lib, globalFuncName)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (function)
|
||||||
|
{
|
||||||
|
(*function)(false); // force unload
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::unloadLibrary()",
|
||||||
|
contextDict
|
||||||
|
) << "Failed looking up symbol " << globalFuncName << nl
|
||||||
|
<< "from " << libPath << exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!dlLibraryTable::close(libPath, false))
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::"
|
||||||
|
"updateLibrary()",
|
||||||
|
contextDict
|
||||||
|
) << "Failed unloading library " << libPath
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void Foam::codedFunctionObject::createLibrary
|
||||||
|
(
|
||||||
|
dynamicCode& dynCode,
|
||||||
|
const dynamicCodeContext& context
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
bool create = Pstream::master();
|
||||||
|
|
||||||
|
if (create)
|
||||||
|
{
|
||||||
|
// Write files for new library
|
||||||
|
if (!dynCode.upToDate(context))
|
||||||
|
{
|
||||||
|
Info<< "Using dynamicCode for functionObject " << name()
|
||||||
|
<< endl;
|
||||||
|
|
||||||
|
// filter with this context
|
||||||
|
dynCode.reset(context);
|
||||||
|
|
||||||
|
// Set additional rewrite rules
|
||||||
|
dynCode.setFilterVariable("typeName", redirectType_);
|
||||||
|
dynCode.setFilterVariable("codeRead", codeRead_);
|
||||||
|
dynCode.setFilterVariable("codeExecute", codeExecute_);
|
||||||
|
dynCode.setFilterVariable("codeEnd", codeEnd_);
|
||||||
|
//dynCode.setFilterVariable("codeWrite", codeWrite_);
|
||||||
|
|
||||||
|
// compile filtered C template
|
||||||
|
dynCode.addCompileFile("functionObjectTemplate.C");
|
||||||
|
dynCode.addCompileFile("FilterFunctionObjectTemplate.C");
|
||||||
|
|
||||||
|
// copy filtered H template
|
||||||
|
dynCode.addCopyFile("FilterFunctionObjectTemplate.H");
|
||||||
|
dynCode.addCopyFile("functionObjectTemplate.H");
|
||||||
|
dynCode.addCopyFile("IOfunctionObjectTemplate.H");
|
||||||
|
|
||||||
|
// debugging: make BC verbose
|
||||||
|
// dynCode.setFilterVariable("verbose", "true");
|
||||||
|
// Info<<"compile " << redirectType_ << " sha1: "
|
||||||
|
// << context.sha1() << endl;
|
||||||
|
|
||||||
|
// define Make/options
|
||||||
|
dynCode.setMakeOptions
|
||||||
|
(
|
||||||
|
"EXE_INC = -g \\\n"
|
||||||
|
"-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
|
||||||
|
+ context.options()
|
||||||
|
+ "\n\nLIB_LIBS = \\\n"
|
||||||
|
+ " -lOpenFOAM \\\n"
|
||||||
|
+ " -lfiniteVolume \\\n"
|
||||||
|
+ context.libs()
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!dynCode.copyOrCreateFiles(true))
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::createLibrary(..)",
|
||||||
|
context.dict()
|
||||||
|
) << "Failed writing files for" << nl
|
||||||
|
<< dynCode.libRelPath() << nl
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!dynCode.wmakeLibso())
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"codedFunctionObject::createLibrary(..)",
|
||||||
|
context.dict()
|
||||||
|
) << "Failed wmake " << dynCode.libRelPath() << nl
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// all processes must wait for compile to finish
|
||||||
|
reduce(create, orOp<bool>());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::codedFunctionObject::updateLibrary() const
|
||||||
|
{
|
||||||
|
dynamicCode::checkSecurity
|
||||||
|
(
|
||||||
|
"codedFunctionObject::updateLibrary()",
|
||||||
|
dict_
|
||||||
|
);
|
||||||
|
|
||||||
|
dynamicCodeContext context(dict_);
|
||||||
|
|
||||||
|
// codeName: redirectType + _<sha1>
|
||||||
|
// codeDir : redirectType
|
||||||
|
dynamicCode dynCode
|
||||||
|
(
|
||||||
|
redirectType_ + context.sha1().str(true),
|
||||||
|
redirectType_
|
||||||
|
);
|
||||||
|
const fileName libPath = dynCode.libPath();
|
||||||
|
|
||||||
|
|
||||||
|
// the correct library was already loaded => we are done
|
||||||
|
if (dlLibraryTable::findLibrary(libPath))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove instantiation of fvPatchField provided by library
|
||||||
|
redirectFunctionObjectPtr_.clear();
|
||||||
|
|
||||||
|
// may need to unload old library
|
||||||
|
unloadLibrary
|
||||||
|
(
|
||||||
|
oldLibPath_,
|
||||||
|
dynamicCode::libraryBaseName(oldLibPath_),
|
||||||
|
context.dict()
|
||||||
|
);
|
||||||
|
|
||||||
|
// try loading an existing library (avoid compilation when possible)
|
||||||
|
if (!loadLibrary(libPath, dynCode.codeName(), context.dict()))
|
||||||
|
{
|
||||||
|
createLibrary(dynCode, context);
|
||||||
|
|
||||||
|
loadLibrary(libPath, dynCode.codeName(), context.dict());
|
||||||
|
}
|
||||||
|
|
||||||
|
// retain for future reference
|
||||||
|
oldLibPath_ = libPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::codedFunctionObject::codedFunctionObject
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const Time& time,
|
||||||
|
const dictionary& dict
|
||||||
|
)
|
||||||
|
:
|
||||||
|
functionObject(name),
|
||||||
|
time_(time),
|
||||||
|
dict_(dict)
|
||||||
|
{
|
||||||
|
read(dict_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::codedFunctionObject::~codedFunctionObject()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::functionObject&
|
||||||
|
Foam::codedFunctionObject::redirectFunctionObject() const
|
||||||
|
{
|
||||||
|
if (!redirectFunctionObjectPtr_.valid())
|
||||||
|
{
|
||||||
|
dictionary constructDict(dict_);
|
||||||
|
constructDict.set("type", redirectType_);
|
||||||
|
|
||||||
|
redirectFunctionObjectPtr_ = functionObject::New
|
||||||
|
(
|
||||||
|
redirectType_,
|
||||||
|
time_,
|
||||||
|
constructDict
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return redirectFunctionObjectPtr_();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Foam::codedFunctionObject::start()
|
||||||
|
{
|
||||||
|
updateLibrary();
|
||||||
|
return redirectFunctionObject().start();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Foam::codedFunctionObject::execute(const bool forceWrite)
|
||||||
|
{
|
||||||
|
updateLibrary();
|
||||||
|
return redirectFunctionObject().execute(forceWrite);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Foam::codedFunctionObject::end()
|
||||||
|
{
|
||||||
|
updateLibrary();
|
||||||
|
return redirectFunctionObject().end();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Foam::codedFunctionObject::read(const dictionary& dict)
|
||||||
|
{
|
||||||
|
dict.lookup("redirectType") >> redirectType_;
|
||||||
|
|
||||||
|
if (dict.found("codeRead"))
|
||||||
|
{
|
||||||
|
codeRead_ = stringOps::trim(dict["codeRead"]);
|
||||||
|
stringOps::inplaceExpand(codeRead_, dict);
|
||||||
|
}
|
||||||
|
if (dict.found("codeExecute"))
|
||||||
|
{
|
||||||
|
codeExecute_ = stringOps::trim(dict["codeExecute"]);
|
||||||
|
stringOps::inplaceExpand(codeExecute_, dict);
|
||||||
|
}
|
||||||
|
if (dict.found("codeEnd"))
|
||||||
|
{
|
||||||
|
codeEnd_ = stringOps::trim(dict["codeEnd"]);
|
||||||
|
stringOps::inplaceExpand(codeEnd_, dict);
|
||||||
|
}
|
||||||
|
updateLibrary();
|
||||||
|
return redirectFunctionObject().read(dict);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,174 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2011-2011 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Class
|
||||||
|
Foam::codedFunctionObject
|
||||||
|
|
||||||
|
Description
|
||||||
|
functionObject using dynamic code compilation.
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
codedFunctionObject.C
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef codedFunctionObject_H
|
||||||
|
#define codedFunctionObject_H
|
||||||
|
|
||||||
|
#include "pointFieldFwd.H"
|
||||||
|
#include "functionObject.H"
|
||||||
|
#include "dictionary.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
// Forward declaration of classes
|
||||||
|
class objectRegistry;
|
||||||
|
class dictionary;
|
||||||
|
class mapPolyMesh;
|
||||||
|
class dynamicCode;
|
||||||
|
class dynamicCodeContext;
|
||||||
|
class IOdictionary;
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
Class codedFunctionObject Declaration
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
class codedFunctionObject
|
||||||
|
:
|
||||||
|
public functionObject
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
|
// Protected data
|
||||||
|
|
||||||
|
//- Reference to the time database
|
||||||
|
const Time& time_;
|
||||||
|
|
||||||
|
//- Input dictionary
|
||||||
|
dictionary dict_;
|
||||||
|
|
||||||
|
word redirectType_;
|
||||||
|
|
||||||
|
string codeRead_;
|
||||||
|
string codeExecute_;
|
||||||
|
string codeEnd_;
|
||||||
|
|
||||||
|
//- Previously loaded library
|
||||||
|
mutable fileName oldLibPath_;
|
||||||
|
|
||||||
|
//- Underlying functionObject
|
||||||
|
mutable autoPtr<functionObject> redirectFunctionObjectPtr_;
|
||||||
|
|
||||||
|
// Private Member Functions
|
||||||
|
|
||||||
|
//- Global loader/unloader function type
|
||||||
|
typedef void (*loaderFunctionType)(bool);
|
||||||
|
|
||||||
|
//- Load specified library and execute globalFuncName(true)
|
||||||
|
static void* loadLibrary
|
||||||
|
(
|
||||||
|
const fileName& libPath,
|
||||||
|
const string& globalFuncName,
|
||||||
|
const dictionary& contextDict
|
||||||
|
);
|
||||||
|
|
||||||
|
//- Execute globalFuncName(false) and unload specified library
|
||||||
|
static void unloadLibrary
|
||||||
|
(
|
||||||
|
const fileName& libPath,
|
||||||
|
const string& globalFuncName,
|
||||||
|
const dictionary& contextDict
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//- Create library based on the dynamicCodeContext
|
||||||
|
void createLibrary(dynamicCode&, const dynamicCodeContext&) const;
|
||||||
|
|
||||||
|
//- Update library as required
|
||||||
|
void updateLibrary() const;
|
||||||
|
|
||||||
|
//- Read relevant dictionary entries
|
||||||
|
void readDict();
|
||||||
|
|
||||||
|
//- Disallow default bitwise copy construct
|
||||||
|
codedFunctionObject(const codedFunctionObject&);
|
||||||
|
|
||||||
|
//- Disallow default bitwise assignment
|
||||||
|
void operator=(const codedFunctionObject&);
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
//- Runtime type information
|
||||||
|
TypeName("coded");
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct for given objectRegistry and dictionary.
|
||||||
|
// Allow the possibility to load fields from files
|
||||||
|
codedFunctionObject
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const Time& time,
|
||||||
|
const dictionary& dict
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//- Destructor
|
||||||
|
virtual ~codedFunctionObject();
|
||||||
|
|
||||||
|
|
||||||
|
// Member Functions
|
||||||
|
|
||||||
|
//- Dynamically compiled functionObject
|
||||||
|
functionObject& redirectFunctionObject() const;
|
||||||
|
|
||||||
|
//- Called at the start of the time-loop
|
||||||
|
virtual bool start();
|
||||||
|
|
||||||
|
//- Called at each ++ or += of the time-loop. forceWrite overrides the
|
||||||
|
// outputControl behaviour.
|
||||||
|
virtual bool execute(const bool forceWrite);
|
||||||
|
|
||||||
|
//- Called when Time::run() determines that the time-loop exits.
|
||||||
|
// By default it simply calls execute().
|
||||||
|
virtual bool end();
|
||||||
|
|
||||||
|
//- Read and set the function object if its data have changed
|
||||||
|
virtual bool read(const dictionary&);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -22,5 +22,6 @@ runAnsysToFoam flange.ans 0.001
|
|||||||
runApplication $application
|
runApplication $application
|
||||||
runApplication foamToFieldview9
|
runApplication foamToFieldview9
|
||||||
runApplication foamToEnsight
|
runApplication foamToEnsight
|
||||||
|
runApplication foamToVTK
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -365,7 +365,7 @@ meshQualityControls
|
|||||||
// <0 = inside out tet,
|
// <0 = inside out tet,
|
||||||
// 0 = flat tet
|
// 0 = flat tet
|
||||||
// 1 = regular tet
|
// 1 = regular tet
|
||||||
minTetQuality 1e-9;
|
minTetQuality 1e-30;
|
||||||
|
|
||||||
//- Minimum face area. Set to <0 to disable.
|
//- Minimum face area. Set to <0 to disable.
|
||||||
minArea -1;
|
minArea -1;
|
||||||
|
|||||||
@ -347,7 +347,7 @@ meshQualityControls
|
|||||||
// <0 = inside out tet,
|
// <0 = inside out tet,
|
||||||
// 0 = flat tet
|
// 0 = flat tet
|
||||||
// 1 = regular tet
|
// 1 = regular tet
|
||||||
minTetQuality 1e-9;
|
minTetQuality 1e-30;
|
||||||
|
|
||||||
//- Minimum face area. Set to <0 to disable.
|
//- Minimum face area. Set to <0 to disable.
|
||||||
minArea -1;
|
minArea -1;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -279,7 +279,7 @@ meshQualityControls
|
|||||||
// <0 = inside out tet,
|
// <0 = inside out tet,
|
||||||
// 0 = flat tet
|
// 0 = flat tet
|
||||||
// 1 = regular tet
|
// 1 = regular tet
|
||||||
minTetQuality 1e-9;
|
minTetQuality 1e-30;
|
||||||
|
|
||||||
//- Minimum face area. Set to <0 to disable.
|
//- Minimum face area. Set to <0 to disable.
|
||||||
minArea -1;
|
minArea -1;
|
||||||
|
|||||||
@ -369,7 +369,7 @@ meshQualityControls
|
|||||||
// <0 = inside out tet,
|
// <0 = inside out tet,
|
||||||
// 0 = flat tet
|
// 0 = flat tet
|
||||||
// 1 = regular tet
|
// 1 = regular tet
|
||||||
minTetQuality 1e-9;
|
minTetQuality 1e-30;
|
||||||
|
|
||||||
//- Minimum face area. Set to <0 to disable.
|
//- Minimum face area. Set to <0 to disable.
|
||||||
minArea -1;
|
minArea -1;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6.x |
|
| \\ / O peration | Version: 1.6.x |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.com |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: 1.6 |
|
||||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
FoamFile
|
FoamFile
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user