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

variable temperature boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2010, 17:53
Default variable temperature boundary conditions
  #1
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Hi, i am working on some heat transfer problems.
I want to set boundary condition as variable temperature that varies with time. Is it possible to do it in openFOAM? If so, whats the way to do it?
Thanks a lot,
kirankarki is offline   Reply With Quote

Old   October 13, 2010, 05:20
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Yes, have a look at groovyBC.
akidess is offline   Reply With Quote

Old   October 13, 2010, 17:40
Default
  #3
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Hi Akidess, thanks for the link. I went through it. From the link, i guess i need to install bison and compile it and make changes in controlDict. But i didnot understand how to include input data of temperature as boundary condition that varies with time for whole year, probably the data to be fed with some spreadsheet. The same case might be for wind velocity. Would you please help me how to do it coz it didnt understand well about the procedures given in the link. May be because i am not a computer guy nor a mechanical guy. Any helps will be highly appreciated
kirankarki is offline   Reply With Quote

Old   October 13, 2010, 21:23
Default
  #4
New Member
 
Aidan
Join Date: Apr 2010
Posts: 18
Rep Power: 16
flowman is on a distinguished road
you can use the timeVaryingUniformFixedValue boundary condition, which is included with OF 1.6, to read time vs. T data from a file.
flowman is offline   Reply With Quote

Old   October 14, 2010, 13:53
Default
  #5
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Hi flowman,
Would you please elaborate how we can do it with steps to follow.
Thanks
kirankarki is offline   Reply With Quote

Old   October 14, 2010, 19:43
Default
  #6
New Member
 
Aidan
Join Date: Apr 2010
Posts: 18
Rep Power: 16
flowman is on a distinguished road
Here's an example to setup a Time vs Pressure boundary condition on an inlet.

In the 0/p file the inlet boundary condition is specified as:
Code:
inlet
    {
        type            timeVaryingUniformFixedValue;
        fileName        "$FOAM_CASE/time-series";
        outOfBounds     clamp;           // (error|warn|clamp|repeat)
    }
The time-series file looks like:
Code:
(
(	0	9780000	)
(	1	8987606	)
(	2	8678701	)
)
flowman is offline   Reply With Quote

Old   October 19, 2010, 18:18
Default
  #7
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Hi Flowman,
Thanks for the guidance, i created time seris file under my solver which have now 24 temp data for 24 hours and did what u have mentioned. But there is still error which says the file is not there, may be i am wrong giving the file path in second line of your code :
fileName "$FOAM_CASE/time-series";




My time series file location as given in terminal is :
kiran@kiran-desktop:~/OpenFOAM/kiran-1.7.0/openfoam170/applications/solvers/incompressible/my_icoFoam$ ls
createFields.H Make my_icoFoam.C TEqn.H time-series

What should i give the fileName in the code?

Thanks a lot,
kirankarki is offline   Reply With Quote

Old   October 20, 2010, 02:21
Default
  #8
New Member
 
Aidan
Join Date: Apr 2010
Posts: 18
Rep Power: 16
flowman is on a distinguished road
It would probably be better if you kept the time-series file in the main case directory (where the 0, constant and system directories are). For the case you have, set the boundary condition to:
Code:
inlet
    {
        type            timeVaryingUniformFixedValue;
        fileName        "~/OpenFOAM/kiran-1.7.0/openfoam170/applications/solvers/incompressible/my_icoFoam/time-series";
        outOfBounds     clamp;           // (error|warn|clamp|repeat)
    }
flowman is offline   Reply With Quote

Old   October 20, 2010, 15:24
Default
  #9
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Hi flowman,
Thanks once again for the correct code, now it works and give the results. I got results until 0.5s based upon my time control. I believe to get the every hour results for all 24 hours , i need to change my time control file. I will do that later on.
Right now i am concerned with the temperature results. I think the results i got is for surface temperature. But my major concern is to examine the interior air space temperature assuming there is air inside the box. For that i need to first include air inside the box(may be for this time ,static air) and then mesh it to get the air space temperature results. Am i right?

Would you please give me some help how to include air inside closed box, mesh it and get the air space temperature from this solver?

Thanks a lot,
kirankarki is offline   Reply With Quote

Old   October 20, 2010, 18:47
Default
  #10
New Member
 
Join Date: Jul 2010
Posts: 25
Rep Power: 16
kirankarki is on a distinguished road
Another concern Flowman,
i just tried to run the solver to get temp data for at least two hours so i made my endtime 7200, deltaT 1 and writeinterval 3600,
the terminal shows its running until time = 56, then it gets terminated with some error msgs, whats wrong with this time control? Pls help me to figure out so that i can run the simulation for whole day 24 hours to get results for whole day.
The error msg as shown in teriminal is :
Time = 57

Courant Number mean: 2.18665e+99 max: 2.00072e+101
DILUPBiCG: Solving for Ux, Initial residual = 0.999999, Final residual = 1.91919e-06, No Iterations 159
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam170/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/opt/openfoam170/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3 Foam::PBiCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam170/lib/linuxGccDPOpt/libOpenFOAM.so"
#4
in "/home/kiran/OpenFOAM/kiran-1.7.0/applications/bin/linuxGccDPOpt/my_icoFoam"
#5
in "/home/kiran/OpenFOAM/kiran-1.7.0/applications/bin/linuxGccDPOpt/my_icoFoam"
#6 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#7
in "/home/kiran/OpenFOAM/kiran-1.7.0/applications/bin/linuxGccDPOpt/my_icoFoam"
Floating point exception
kiran@kiran-desktop:~/OpenFOAM/kiran-1.7.0/run/my_icoFoam_cavity$
kirankarki is offline   Reply With Quote

Reply


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
No results for solid domain Gary Holland CFX 10 March 13, 2009 04:30
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 7, 2008 00:17
Fluent accuracy and boundary conditions Paolo Lampitella FLUENT 0 June 12, 2008 07:25
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


All times are GMT -4. The time now is 18:55.