|
[Sponsors] |
June 15, 2012, 05:51 |
Fix initial condition in a volume
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear All,
I am trying to simulate an opening window. I succeded in setting the mesh movement and I am now ready for my simulation. The point is that before moving the mesh I have to fix the initial condition. What I wanna do is to impose a certain temperature in the internal volume and a different one in the external volume. I thought about a T file that looks like: Code:
. . . dimensions [0 0 0 1 0 0 0]; internalField uniform 298; volume_internal uniform 273; volume_external uniform 298; boundaryField . . . If I don't write Code:
internalField uniform 298; But this does not work properly. Any suggestion? Thanks, Samuele |
|
June 15, 2012, 17:08 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
One possibility is to use setFields (which you should know from the damBreak-tutorial). It can use other topoSetSources than boxToCell (I think the one you want is called zoneToCell but I'm not sure).The other possibility is funkySetFields which allows using expressions to set fields. Both utilities allow you to set the field to an inhomogenous value. Then you start the simulation as usual |
||
June 15, 2012, 18:50 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Actually yes, I meant set instead of fix..
But, since you said it, is it possible to FIX the temperature in order to remain constant during the simulation? Anyway, I'll try what you suggested in order to set the initial condition.. Thanks a lot, Samuele |
|
June 18, 2012, 15:53 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
For fixing values: either forceEquation from swak4Foam (search the MessageBoard) or the runtime-selectable sources that are built into OF (check the release-notes). If you're lucky then the solver you use already has the runtime-selectable sources built in and you don't have to do any programming
|
|
June 18, 2012, 18:19 |
|
#5 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Im using either bupyantPimpleDyMFoam or chtMultiRegionDyMFoam..
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating point exception error | Alan | OpenFOAM Running, Solving & CFD | 11 | July 1, 2021 22:51 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Parallel rasInterFoam | openfoam_user | OpenFOAM Running, Solving & CFD | 4 | November 1, 2008 05:14 |
Negative value of k causing simulation to stop | velan | OpenFOAM Running, Solving & CFD | 1 | October 17, 2008 06:36 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |