CFD Online Logo CFD Online URL
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

funkysetfields and setfields

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2019, 02:01
Default funkysetfields and setfields
Join Date: May 2019
Posts: 62
Rep Power: 5
saj216 is on a distinguished road
Could someone explain the difference between how funkysetfields operates and setfields work.

I need to use funkysetfields due to its adaptability however it is causing issues running the simulation at the beginning. Such as

wrong token type - expected Scalar, found on line 0 the word 'nan'

file: /home/joseph/OpenFOAM/joseph-2.4.0/run/CFD-PC-master/CFD-PC/interThermalPhaseFoam/tutorials/VapourGrowthWithoutLayer/system/data.solverPerformance.p_rgh at line 0.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 93.

However this is not the case for setFieldsDict.

My simulation is for a growing bubble.

My funkysetfieldsdict is
field alpha1;
expression "0";
condition "pow(pos().x-0,2) + pow(pos().y-0,2) < pow((0.1E-3),2)";
keepPatches true;
field T;
expression "373.15";
condition "pow(pos().x-0,2) + pow(pos().y-0,2) < pow((0.1E-3),2)";
keepPatches true;

Whereas the simulation works for setFieldsDict with this configuration

volScalarFieldValue alpha.water 1

centre (0.0025 0.0025 0.001);
radius 0.0005;
volScalarFieldValue alpha.water 0

Please let me know if anyone has any ideas. Thanks
saj216 is offline   Reply With Quote


funkysetfield, funkysetfieldsdict, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam] funkysetfields saj216 OpenFOAM Community Contributions 6 January 3, 2020 14:29
Is it possible to make the setFields time_dependent? Andy_Wang OpenFOAM Running, Solving & CFD 0 September 24, 2016 18:47
[swak4Foam] How to use funkySetFields for two spherical zones? yinchuanfeng OpenFOAM Community Contributions 0 August 22, 2016 23:09
[swak4Foam] setFields or funkySetFields with STL file? vinz OpenFOAM Community Contributions 1 February 21, 2013 11:29
OF 1.6-ext setFields does not keep patch values Arnoldinho OpenFOAM Bugs 3 May 9, 2012 03:58

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