Commit Graph

58 Commits

Author SHA1 Message Date
Henry Weller
0534a225fd functionObjects: Moved into the functionObjects namespace and rationalized and simplified failable construction
Rather than requiring each functionObject to handle failed construction
internally (using the active_ flag) the static member function "viable"
is provided which returns true if construction of the functionObject is
likely to be successful.  Failed construction is then handled by the
wrapper-class which constructs the functionObject,
e.g. "OutputFilterFunctionObject".
2016-05-02 16:28:24 +01:00
Chris Greenshields
aa89254c79 foamNewFunctionObject: script to create template code for a new function object
Run foamNewFunctionObject -h for details
2016-03-22 17:40:03 +00:00
Henry Weller
7e5d9982a7 etc/codeTemplates/BC: Use Use 'Zero' rather than 'pTraits<Type>::zero' to initialize to 0 2016-03-22 08:33:16 +00:00
Henry Weller
95d146ecdf Rationalized the indentation of C-preprocessor directives 2016-02-29 15:42:03 +00:00
Henry Weller
caed25f447 Code templates: Updated headers 2016-02-15 20:53:21 +00:00
Henry Weller
350d03246e scripts: Reformat with consistent section separators 2016-02-15 18:30:24 +00:00
Henry Weller
968c888fc4 Rename DataEntry -> Function1
Function1 is an abstract base-class of run-time selectable unary
functions which may be composed of other Function1's allowing the user
to specify complex functions of a single scalar variable, e.g. time.
The implementations need not be a simple or continuous functions;
interpolated tables and polynomials are also supported.  In fact form of
mapping between a single scalar input and a single primitive type output
is supportable.

The primary application of Function1 is in time-varying boundary
conditions, it also used for other functions of time, e.g. injected mass
is spray simulations but is not limited to functions of time.
2016-02-08 16:18:07 +00:00
Henry Weller
56fa7c0906 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
Henry Weller
4eba393fe1 Update code to use the simpler C++11 template syntax 2016-01-10 19:20:16 +00:00
Chris Greenshields
cc996852a7 foamNewApp: corrected template case 2015-12-07 17:28:40 +00:00
Chris Greenshields
b52f7571b9 foamNewApp: added execution and clock times to template 2015-12-07 14:15:14 +00:00
Chris Greenshields
a3e555e72c foamNewBC: script to create template code for a new boundary condition
Run foamNewBC -h for details
2015-12-04 14:33:56 +00:00
Chris Greenshields
e356211140 foamNewApp: script to create template for a new application
Creates a directory containing source .C file and Make directory
Will deprecate foamNewSource with App argument in due course
2015-12-04 14:20:23 +00:00
Henry Weller
c4d5f65a10 Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-11 09:03:39 +00:00
Henry Weller
c1d3fbaee8 etc/codeTemplates/foamScript: Make executable 2015-10-26 16:35:20 +00:00
Henry Weller
09fe6408d3 codeTemplates: Update copyright date 2015-06-23 10:54:51 +01:00
Henry
0ea062816e Correct section comment: there can only be one destructor 2015-02-12 21:57:29 +00:00
william
de75e1f18c BUG: mantis #1338: added compressible coded fvOption template 2014-07-28 09:26:43 +01:00
Sergio Ferraris
59921dfc5c ENH: Updating codedFvOptionTemplate 2013-12-20 11:53:13 +00:00
mattijs
1aefea9df7 BUG: codedFunctionObject: add timeSet functionality 2013-06-10 11:18:17 +01:00
mattijs
7d5d504788 ENH: codeTemplates: update date for newly created files 2013-01-21 12:25:07 +00:00
mattijs
b35f0f0620 STYLE: functionObjectTemplate: modification date 2013-01-15 12:39:31 +00:00
mattijs
3d8a083c40 STYLE: codedMixed: changed className to be consistent with function 2012-09-25 11:35:18 +01:00
andy
aab426ec9e Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev 2012-05-11 14:24:38 +01:00
andy
8c3a48b20d ENH: Updated code templates copyright year to 2012 2012-05-09 10:16:57 +01:00
mattijs
2e760a3453 ENH: codedBasicSource: coded version of sources 2012-05-04 11:36:47 +01:00
mattijs
747ba9dd29 ENH: functionObjectTemplate: moved include files to header file since $codeData might need them 2012-03-30 12:02:43 +01:00
mattijs
ed87e54618 ENH: codedFixedValuePointPatchField: coded version for point fields 2012-03-09 10:06:22 +00:00
mattijs
50b2b78d83 ENH: codedMixed: coded variant of mixed 2011-12-01 15:56:13 +00:00
mattijs
0143ef82ea ENH: dynamicCode: include unitConversion by default 2011-11-14 15:11:30 +00:00
Henry
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
mattijs
b60866d98c ENH: coded functionObject: added mesh() 2011-03-23 09:34:51 +00:00
mattijs
889b0a0488 ENH: Release-notes-dev: updated for coded functionObject 2011-03-23 04:58:00 +00:00
mattijs
e24dd4fe2a ENH: codedFunctionObject: initial version. 2011-03-22 22:16:48 +00:00
Mark Olesen
7a0d3ebd64 ENH: refactor fixedValueFvPatchFieldTemplate
- can be reused for other (vector, tensor, ...) field types
2011-03-11 17:28:51 +01:00
Mark Olesen
12d965ead9 STYLE: more constness on const char* values 2011-03-11 09:08:45 +01:00
Mark Olesen
e8a3587df4 ENH: support file-scope 'localCode' in dynamicCode 2011-03-08 11:08:42 +01:00
Mark Olesen
3d34c5146c BUG: codedFixedValueFvPatchScalarField oldLibPath_ not copied
- prevented the reloading from working properly (thanks Mattijs!)
2011-03-08 08:48:27 +01:00
Mark Olesen
336fa74478 ENH: add static const char* SHA1sum to fixedValueFvPatchScalarFieldTemplate
- useful for debugging purposes
2011-03-07 18:10:29 +01:00
Mark Olesen
7cd3c926bd ENH: discard codeProperties in favour of using sha1-encoded library names 2011-03-03 09:06:14 +01:00
Mark Olesen
815a806be7 ENH: allow verbose output for fixedValueFvPatchScalarFieldTemplate 2011-03-02 14:28:22 +01:00
Mark Olesen
97cd3af1ff ENH: cleanup codeStream - use dynamicCode, dynamicCodeContext encapsulation
Problems remain with codedFixedValueFvPatchScalarField:

- readIfModified() notices change on system/codeDict, but the
  codeProperties::setUnmodified() means that only a single entry will
  get processed

- it appears that while dlclose() may (or may not) be actually closing
  the library, there are probably still references about. This means
  that a subsequent reloading still points to the original functions
  and the lookup is not updated correctly.
2011-03-01 14:19:24 +01:00
Mark Olesen
6b79aae433 BUG: removing coded FixedValue patch deleted fvPatch constructor tables
- use newly introduced makeRemovablePatchTypeField to avoid this problem
2011-03-01 10:51:59 +01:00
Mark Olesen
51399bbbd1 STYLE: use dynamicCode/ instead of codeStream/ for dynamically generated code 2011-02-24 13:21:39 +01:00
Mark Olesen
6eb982573c ENH: add stub function to codedFixedValueFvPatchScalarField for version checking
- eg, fixedValue10_<SHA1>, its existence indicates that the correct
  library has been loaded
2011-02-24 08:54:12 +01:00
Mark Olesen
abde400dd5 Merge remote branch 'OpenCFD/master' into olesenm
Conflicts:
	bin/foamCleanPath
2011-02-22 19:24:31 +01:00
mattijs
e5f8d855ec ENH: codeStreamTemplate.C: added some default includes 2011-02-22 12:15:59 +00:00
Mark Olesen
4aa279d7bc ENH: use HashTable for mapping codeStream entries
- write intermediate code to _SHA1 directories
- add Test-codeStream
2011-02-22 12:34:20 +01:00
Mark Olesen
02f3459402 ENH: SHA1Digest::str() returns std::string of digest directly 2011-02-21 17:03:33 +01:00
mattijs
d6874f0fce ENH: codeStream, codedFixedValue: renamed. added template directory. 2011-02-21 14:33:14 +00:00