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

Changing Frozenflowfield in chtMultiRegionFoam Solver during simulation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2018, 10:08
Default Changing Frozenflowfield in chtMultiRegionFoam Solver during simulation
  #1
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
Case: Heatsink which is cooled by a fan.

In fact i have many different flow states (different operation point of the fan)
I am interessted in the transient behaviour of the heatsink.
Therefore i use the chtMultiRegionFoam solver (openfoam v5)

To increase the simulation time i want to do the followinginstead of using the standard transient chtMultiRegionFoam)

1) calculate the different flowfields for the operating points of the fan (steady solution)

2) i use the chtMultiRegionFoam solver in the frozenflow mode

3) i have a temperature critiria. at some specific point the heat sink has a certain temperature. at this temperature i want to increase the power of the fan (changing the presimulated steady state flow field)

my question is: does anyone have an idea of how i should implement my solver? is it possible to have a pointer for the Fluid field variables?somehow like this

if temperature condition 1 is true: U-->U1 (p-->p1...etc)
if condition 2: U-->U2
if condition 3: U-->U3

or is there a better idea to implement my solver?

thx!
meshingpumpkins is offline   Reply With Quote

Old   June 8, 2018, 10:48
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
From my perspective the easiest way to achieve this is something along these lines:

use a functionobject (min/max/average etc) to output the relevant temperatures and also use the abort function object.

Write a small batch script which monitors your functionobject values and calculates your temperature condition. If the condition is met make it terminate the simulation via the abort file. Copy the files for the new flow field into the folder. Restart the simulation.
Bloerb is offline   Reply With Quote

Old   June 11, 2018, 10:16
Default
  #3
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
thx for your quick answer.

i tried a similar approche with octave. octave was reading the outputfile of the functionobject which createt a txt file of the average temperatures. but somehow this doesn`t work because octave didn`read the file in realtime.

i will try this approche now with ah bash file. (should i use tail -f filename?for this?)

i have never used the abort function. how does the function work. how do i have to implement this function.


thx.
meshingpumpkins is offline   Reply With Quote

Old   June 11, 2018, 10:30
Default
  #4
New Member
 
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 7
meshingpumpkins is on a distinguished road
the other thing is, that the surfaceFieldValue.dat file which will be created by the averaging fieldfunction isn`t updated in real time
meshingpumpkins is offline   Reply With Quote

Old   February 18, 2019, 19:43
Default
  #5
Senior Member
 
julien
Join Date: Dec 2018
Posts: 107
Rep Power: 7
julieng is on a distinguished road
Hello meshingpumpkins,


Did you succeed to use the frozen flow with ChtMultiRegionFoam?


My problem is more simple than yours. I want only compute a stationary flow (not energy) around a solid. If I use air at 500 K for the fluid I will use air properties at this reference temperature.



After, I want to use this "frozen" stationary flow in a transient simulation with ChtMultiRegionFoam. I did it in the same way in Comsol some years ago and if I remember well, heating or cooling times of the solid are not really different from the full 2 ways coupled cases (depending on what we want to observe).


My question is how to do that?
- Can I compute a stationary flow with an arbitrary solver (maybe I the same turbulent model as the one used in ChtMultiRegionFoam)?
- Use it as initial condition for U, p_rgh and p (also turbulence parameters are needed)? Don't know yet how to do that..

- Put right initial temperatures in the 0/ folder for fluid and solid

- Modify the fvSolution with "frozenFlow = true" in the SIMPLE loop?
- Something else to do?


Best regards



Best regards
julieng is offline   Reply With Quote

Reply

Tags
changing flowfield, chtmultiregionfoam, frozenflow, pointer

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
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so immortality OpenFOAM Pre-Processing 14 April 27, 2022 21:10
PLEASE Help me to get ICE solver setup and combustion simulation!! Its missing hitesh arora ANSYS 0 April 23, 2016 17:03
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
Solver for water jet simulation ?? harry123 OpenFOAM Running, Solving & CFD 1 March 15, 2016 05:23
Problem with an old Simulation FrankW CFX 3 February 8, 2016 05:28


All times are GMT -4. The time now is 22:58.