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

funkySetFields and the time component

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2022, 00:58
Default funkySetFields and the time component
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 217
Rep Power: 7
joshmccraney is on a distinguished road
Can anyone explain how the "funkySetFields time -XX " component of funkySetFields works? Whenever I execute "funkySetFields time -0.2" it initializes the field at 0. What's happening here?

Evidently the solution *SO FAR* is to run your sim up to the desired time, then you must execute "reconstructPar", then you must execute "funkySetFields time -0.2", and then view the mesh in paraFoam via reconstructed mesh. You should see the simulation has changed the field you've specified. HOWEVER, upon running the simulation again in parallel, it's as if it has no memory that we changed fields, and it continues running as normal.

FINAL EDIT: IT WORKS! You must delete all processor* and THEN decomposePar again. You'll lose all memory of times 0-->0.2, but it'll work from 0.2 on out!

Last edited by joshmccraney; October 9, 2022 at 23:25.
joshmccraney is offline   Reply With Quote

Old   October 18, 2022, 22:28
Default
  #2
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 217
Rep Power: 7
joshmccraney is on a distinguished road
To reiterate:

1) run sim to desired time. Then reconstructPar (if in parallel).
2) rm -r processor* to clear all processors
3) run funkSetFields with the desired time (must have folder corresponding to that time)
4) decomposePar and execute running

If done correctly, I can confirm the field will be set to what you specify in the funkySetFields dict.

Make sure controlDict runs from latest time.
joshmccraney is offline   Reply With Quote

Reply

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



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