|
[Sponsors] |
Non- stop running for a time-dependent heat source problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2015, 12:32 |
Non- stop running for a time-dependent heat source problem
|
#1 |
Senior Member
Mehdi Asghari
Join Date: Feb 2010
Posts: 127
Rep Power: 16 |
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 16:57. |
|
May 11, 2015, 06:13 |
|
#2 |
Senior Member
Mehdi Asghari
Join Date: Feb 2010
Posts: 127
Rep Power: 16 |
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); } } } // ************************************************************************* // 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 I'd be appreciated for any help. Last edited by Asghari_M; May 11, 2015 at 11:11. |
|
Tags |
non-stop running |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding heat source to chtMultiRegionFoam | maddalena | OpenFOAM Programming & Development | 61 | February 17, 2018 09:33 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
time dependent source using DEFINE_SOURCE | T81 | Fluent UDF and Scheme Programming | 5 | February 28, 2011 18:23 |