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

Non- stop running for a time-dependent heat source problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2015, 11:32
Default Non- stop running for a time-dependent heat source problem
  #1
Senior Member
 
Mehdi Asghari
Join Date: Feb 2010
Posts: 127
Rep Power: 16
Asghari_M is on a distinguished road
Hello All;
I want to solve a heat conduction problem with time-dependent heat source term in OpenFoam.
I need to obtain the temperature field for final time (Tf=10s), only. Also, there is a time-dependent source term in this problem as follows:
S(t)= a j t; wherein a= 12.5 , j is an integer number.Moreover I’d like to get the results for j={1,2,…,50}. I need only to save the temperature field for final time ( Tf=10s). My questions are presented as follows:
1-Is it possible to be saved the temperature field for all j(one directory for every j) only in a 10.0 directory as final time directory in running process in a Non-stop manner (for example in a loop) (also, I don’t need results for other times)?
2- How can I define time-dependent heat source term according to the above mentioned relation for S(t) by fvOptions in OpenFoam 2.3.1?
Cheers,

Last edited by Asghari_M; May 13, 2015 at 15:57.
Asghari_M is offline   Reply With Quote

Old   May 11, 2015, 05:13
Question
  #2
Senior Member
 
Mehdi Asghari
Join Date: Feb 2010
Posts: 127
Rep Power: 16
Asghari_M is on a distinguished road
Ohh!
Unfortunately, I wrote a simple fvOptions and faced some errors!
Code:
FoamFile
Code:
{
   version     2.0;
   format      ascii;
   class       dictionary;
   location    "system";
   object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
energySource 
{ 
   type            scalarSemiImplicitSource; 
   active          true; 
   selectionMode   all;
 
s0=1e4;
   scalarSemiImplicitSourceCoeffs 
   { 
       volumeMode      specific; 
       injectionRateSuSp 
       { 
           h           (s0 0); 
       } 
   } 
}
 
// ************************************************************************* //
With following strange error!!
Code:
--> FOAM FATAL IO ERROR:
Code:
wrong token type - expected Scalar, found on line 30 the word 's0'
 
file: /home/scientist/OpenFOAM/scientist-2.3.1/run/tutorials/heatTransfer/heatconductionFoam/heatconduction/system/fvOptions.energySource.scalarSemiImplicitSourceCoeffs.injectionRateSuSp.h at line 30.
 
   From function operator>>(Istream&, Scalar&)
   in file lnInclude/Scalar.C at line 93.
 
FOAM exiting
How can I define a non-constant scalar or time-dependent for injectionRateSuSp at fvOptions?
I'd be appreciated for any help.

Last edited by Asghari_M; May 11, 2015 at 10:11.
Asghari_M is offline   Reply With Quote

Reply

Tags
non-stop running


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
Adding heat source to chtMultiRegionFoam maddalena OpenFOAM Programming & Development 61 February 17, 2018 08:33
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
time dependent source using DEFINE_SOURCE T81 Fluent UDF and Scheme Programming 5 February 28, 2011 17:23


All times are GMT -4. The time now is 20:11.