|
[Sponsors] |
March 31, 2016, 14:02 |
incorporate energy equation in DPMFoam
|
#1 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
Dear all
I,m trying to incorporate Temperature field and the Energy equation in "DPMFoam" solver. So I do these main steps. 1- create "EEqn.H": Code:
fvScalarMatrix EEqn ( fvm::ddt(T) + fvm::div(alphaPhic, T) - fvm::laplacian(DT, T) ); EEqn.relax(); 2- add "#include EEqn.H" in "DPMFoam.c",just after pimple loop 3- create temperature field and "DT" in "createFields.H" Code:
IOdictionary transportProperties ( IOobject ( "transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE ) ); word continuousPhaseName ( transportProperties.lookup("continuousPhaseName") ); dimensionedScalar DT ( transportProperties.lookup("DT") ); Info<< "Reading field T\n" << endl; volScalarField T ( IOobject ( "T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); this solver compiled successfully without any error. but when I try to solve a simple test case, I get this error: Code:
--> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 19 the label 100 file: /home/bijan/Desktop/mycase1/constant/transportProperties.DT at line 19. From function operator>>(Istream&, word&) in file primitives/strings/word/wordIO.C at line 74. FOAM exiting DPMH.zip mycase1.zip Please kindly guide me. Last edited by bijan darbari; April 1, 2016 at 00:11. |
|
April 1, 2016, 02:35 |
|
#2 | ||
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
I'm no expert, but given the error message I'd first try the following:
Change (constant/transportProperties) Quote:
Quote:
|
|||
April 1, 2016, 09:05 |
|
#3 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
Thanks very much floquation.
I used this code and the case run without any problem. so calculate the temperature filed of continuous phase. Code:
DT DT [0 2 -1 0 0 0 0] 1.42e-7; DPMH.zip but still my modified solver don't calculate the temperature field of particles. in the following, I'll try to incorporate heat transfer equation to particles cloud. |
|
April 7, 2016, 09:44 |
|
#4 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
Dear all
As I mentioned earlier, I want to solve the heat transfer equation for lagrangian particles in DPMFoam solver. Fortunately, it can be done by openfoam standard "basicThermoCloud" (without considering the colliding effect). Therefore, I do following step in in my modified solver: 1- in "DPMH.C", I replace: Code:
#ifdef MPPIC #include "basicThermoCloud.H" #define basicKinematicTypeCloud basicThermoCloud #else #include "basicThermoCloud.H" #define basicKinematicTypeCloud basicThermoCloud #endif Code:
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl; basicKinematicTypeCloud basicThermoCloud ( kinematicCloudName, rhoc, Uc, muc, slgThermo, g ); Code:
-I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \ Code:
-lliquidProperties \ -lliquidMixtureProperties \ -lsolidProperties \ -lsolidMixtureProperties \ -lthermophysicalFunctions \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ -lradiationModels \ Code:
#include "SLGThermo.H" Code:
In file included from DPMHP.C:68:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:159:5: error: ‘slgThermo’ was not declared in this scope slgThermo, In the other words, How I can import the thermophysical properties of continuous phase (K,Cp,...) to "basicThermoCloud" as input parameters when I use the "constant transport properties" in the Constant Directory?? This solver have been attached. |
|
April 10, 2016, 12:54 |
|
#5 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
I'm looking forward to hear from you soon
|
|
December 2, 2016, 20:46 |
|
#6 |
Member
Join Date: Oct 2015
Posts: 63
Rep Power: 10 |
Hey Bijan,
did you find a work-around for solving the energy equation in DPM Foam? |
|
January 12, 2017, 12:06 |
|
#7 |
New Member
solti
Join Date: Jan 2017
Posts: 1
Rep Power: 0 |
Dear Bijan ,
could you solve the error?, I have a problem same as you, in a simulation I need the temperature of particles in DPMFoam, Can you guide me? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Energy equation issue | zytra | FLUENT | 0 | October 20, 2014 21:34 |
Need experience comment on cavitation combine energy equation!!! | lehoanganh07 | FLUENT | 0 | September 24, 2014 10:28 |
Energy equation in OpenFoam | nwpukaka | OpenFOAM Programming & Development | 2 | June 24, 2014 02:40 |
energy equation in rhoCentralFoam | nakul | OpenFOAM | 0 | October 10, 2010 15:07 |
SIMPLE and energy equation convergence | Fabio | Main CFD Forum | 0 | June 1, 2007 06:06 |