|
[Sponsors] |
December 8, 2011, 00:59 |
Changing BC type
|
#1 |
New Member
Apurv
Join Date: May 2011
Posts: 10
Rep Power: 14 |
Hi All,
Is it possible to change the boundary condition type (like wall, interior etc) during simulation? Can this be specified in the UDF? I intend to have different BC type for certain conditions during simulation. I would greatly appreciate any suggestions in this regard. Regards, Apurv |
|
May 8, 2012, 18:01 |
|
#2 |
New Member
unver
Join Date: Sep 2009
Posts: 10
Rep Power: 16 |
Dear Apruv;
I come across with your post while I was searching, i think, for a similar problem. I 've seen that unfortunately you have not gotten any response to your post, nevertheless I thought that you may have reached a solution. I am trying to cool a room with a constant temperature wall for a certain time, and than turn that BC off and observe the natural heating of the room. Which require to use constant temperature wall for a certain period of time, and than switch it to a regular wall with no thermals. Any suggestions may help. Regards Unver |
|
May 8, 2012, 21:22 |
|
#3 |
New Member
Apurv
Join Date: May 2011
Posts: 10
Rep Power: 14 |
Hi Unver,
One way would be to turn off the energy equation but then you wont get any temperature data in the entire domain. I would turn the wall into a symmetry boundary condition or make the wall adiabatic, if possible in your case. Hope this helps. Apurv |
|
May 9, 2012, 05:19 |
|
#4 |
New Member
engin leblebici
Join Date: May 2011
Posts: 8
Rep Power: 14 |
Dear Apruv,
You should have no diffuculty changing the BC with the GUI, the difficult part about that could be convergence issues. Anyway, you could also define the BCs as you like using DEFINE_PROFILE macro. Regards |
|
May 11, 2012, 09:50 |
|
#5 |
New Member
unver
Join Date: Sep 2009
Posts: 10
Rep Power: 16 |
Dear Apurv and Engin;
Defining a wall temperature (space of time dependent) was not my difficulty at the first place, which can be done DEFINE_PROFILE (as Engin suggested). My difficulty is to change the wall type by UDF (from specified temperature to just a regular wall with no thermal BC attached). Assume that you have heater surface that you heat your room. Once your room reaches a certain temperature, and you turn it off, and the heater surface cools off naturally (and repeat the process). Must be a way to do it, but I don't know how! |
|
May 25, 2012, 05:34 |
|
#6 |
New Member
engin leblebici
Join Date: May 2011
Posts: 8
Rep Power: 14 |
Dear unver,
Sorry for the late reply. I think you can do that but it would not be so easy. My suggestion is to use fluent scripting or GUI to iterate the solution upto the time you turn off your heat generation source (given by temperature distribution) and switch the thermal boundary condition of the wall to convection giving the temperature values of the cells near the wall using a UDF and hooking it to the freestream temperature of the flow. F_T(f,t) macro will provide you the cells temperature values if it is refered to your wall in the UDF. Regards |
|
May 25, 2012, 05:44 |
changing BC type
|
#7 |
Senior Member
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 16 |
Hi Apurva
It is possible to change the BC type. You can try this with two options: 1) Define the UDF and execute on demand 2) In UDF itself you suggest program to modify your BC. This will be based on your physical time. Hope this will be useful. Regards mvee |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
second order schemes | marine | OpenFOAM | 67 | April 11, 2022 18:19 |
boundary conditions for simpleFoam calculation | foam_noob | OpenFOAM Running, Solving & CFD | 8 | July 1, 2015 08:07 |
Need help with boundary conditions: open to atmosphere | Wolle | OpenFOAM | 2 | April 11, 2011 07:32 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 17:08 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |