CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Time varying ambient temperature as B.C in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2013, 15:08
Smile Time varying ambient temperature as B.C in OpenFoam
  #1
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 12
Kumudu is on a distinguished road
Hi,

I am working on a problem related to ground source heat pump simulations . I want to simulate ground temperature using LaplacianFoam. My boundary conditions are as follows,

Top: T(0,0,0,t)=20.5+21.5*cos(2*pi/12*(t-7));
All other boundaries : No heat flux

Computational domain is a simple cube with 5m*5m*40m.
I want to set the time step and time loop follows the following logic in Laplacian solver,

P { margin-bottom: 0.08in; direction: ltr; color: rgb(0, 0, 0); widows: 2; orphans: 2; }

Nt = 5000; % Choose the number of time steps
dt = (365*24*60*60)/Nt; %Length of each time step in seconds
% Initial guess is that T is 15 everywhere.
time = [0:12/Nt:12];
T(0,0,0,t) = 20.5+21.5*cos(2*pi/12*(time-7));



I have solved this problem in Matlab using 1D diffusion equation, but, I want to try it in OpenFoam for 3D case and compare the solutions. Since, finally using above said B.C I will obtain 1D temperature distribution as a function of depth.




Please, can anyone help me to change the time steps as above and help me to define ambient temperature as a boundary condition at the top as a changing value with time.


Thanks,
Kumudu
Kumudu is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 17, 2019 00:12
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
ambient temperature as a function of time pchama1 FLUENT 2 March 31, 2011 15:52
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 04:59.