|
[Sponsors] |
how to define initial temperature change with depth |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 5, 2018, 11:58 |
how to define initial temperature change with depth
|
#1 |
Member
Join Date: Nov 2016
Posts: 34
Rep Power: 9 |
Hello, folks,
I am modeling a 2-D geometry where outside is rock formation (solid), inside is a well (a hole) with pipe (casing). Fluid is injected through pipe inlet, and flow outlet is at annulus between outside casing and formation. First of all, I need to define the initial temperature of both formation inside and outside. My assumption is initial temperature is the same anywhere with the same depth, and T changes with depth. I don't know how to define or set this condition. If anyone has similar experience, please share with us. Thank you~ Regards, |
|
June 6, 2018, 09:30 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66 |
It would help if you state what this initial temperature distribution actually is.... Otherwise I have to assume it is some arbitrary by known (to you) function that can be written down in finite time and you are not too lazy to carry out this task...
You can use a PROFILE or you can just create a custom field function which calculates this temperature field. After you initialize, use the patch command to set the temperature field to this custom field function. |
|
June 7, 2018, 13:59 |
|
#3 |
Member
Join Date: Nov 2016
Posts: 34
Rep Power: 9 |
Yes, I used field function to initialize the temperature profile. Thank you
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |