CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

funkysetfields and setfields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2019, 03:01
Default funkysetfields and setfields
  #1
New Member
 
Sam
Join Date: May 2019
Posts: 25
Rep Power: 2
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

--> FOAM FATAL IO ERROR:
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

alpha1.org
{
field alpha1;
expression "0";
condition "pow(pos().x-0,2) + pow(pos().y-0,2) < pow((0.1E-3),2)";
keepPatches true;
}
BubbleTemp
{
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

defaultFieldValues
(
volScalarFieldValue alpha.water 1
);

regions
(
sphereToCell
{
centre (0.0025 0.0025 0.001);
radius 0.0005;
fieldValues
(
volScalarFieldValue alpha.water 0
);
}
);


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

Reply

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


All times are GMT -4. The time now is 09:03.