CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Alt to funkySetFields, setFields OF - setExpS _ setExpV

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

Alt to funkySetFields, setFields OF - setExpS _ setExpV

Posted September 25, 2021 at 05:28 by Fluidentity13

./setExpS ./setExpV
Alt for funkySetFields-swak4Foam with easy setup for setting initial Scalar or Vector fields using a math expression.

https://github.com/Fluidentity/setExpS_V


C++ program to set initial fields of an OpenFOAM scalar or
vector using a math-expression, taking co-ordinates as
parameter. The expressions are based off of exprtk library
by Arash Partrow. Check the link beneath for more info.
readme.txt file describess expression syntax and involves
exhaustive mathematical manipulation.
https://github.com/ArashPartow/exprtk

This is an alternative to funkySetFields {swak4Foam) or
setFields, for those who couldn't get them to work on their
OpenFoam version.
I couldn't get it to work on OF-8, but I won't take credit
away from multiple versions & environments it's working on
already. Minimum effort on getting it to work .
Simple Scalar Vector Formulation.
Make good use of this quick fix.

-------------------------------------------------------------

An exemplary testCase folder for scalarTransportFoam can
be found in the repository, with custom ./Allclean & ./Allrun
scripts.
Posted in Uncategorized
Views 629 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 22:17.