|
[Sponsors] |
Changing Frozenflowfield in chtMultiRegionFoam Solver during simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 8, 2018, 10:08 |
Changing Frozenflowfield in chtMultiRegionFoam Solver during simulation
|
#1 |
New Member
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 8 |
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! |
|
June 8, 2018, 10:48 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
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. |
|
June 11, 2018, 10:16 |
|
#3 |
New Member
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 8 |
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. |
|
June 11, 2018, 10:30 |
|
#4 |
New Member
Andi
Join Date: Jun 2018
Posts: 13
Rep Power: 8 |
the other thing is, that the surfaceFieldValue.dat file which will be created by the averaging fieldfunction isn`t updated in real time
|
|
February 18, 2019, 19:43 |
|
#5 |
Senior Member
julien
Join Date: Dec 2018
Posts: 107
Rep Power: 7 |
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 |
|
Tags |
changing flowfield, chtmultiregionfoam, frozenflow, pointer |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
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 |