|
[Sponsors] |
December 9, 2019, 03:01 |
funkysetfields and setfields
|
#1 |
Member
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7 |
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 |
|
Tags |
funkysetfield, funkysetfieldsdict, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkysetfields | saj216 | OpenFOAM Community Contributions | 6 | 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 |