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

Alt to funkySetFields, setFields OF - setExpS _ setExpV

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2021, 02:42
Lightbulb Alt to funkySetFields, setFields OF - setExpS _ setExpV
  #1
New Member
 
Aman Sangal
Join Date: Mar 2021
Posts: 22
Blog Entries: 2
Rep Power: 5
Fluidentity13 is on a distinguished road
./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.
Fluidentity13 is offline   Reply With Quote

Reply

Tags
funkysetfields, initial fields, openfoam, setfields, user expression


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
funkysetfields and setfields saj216 Mesh Generation & Pre-Processing 0 December 9, 2019 02:01
[swak4Foam] setFields or funkySetFields with STL file? vinz OpenFOAM Community Contributions 1 February 21, 2013 11:29


All times are GMT -4. The time now is 00:19.