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

totalFlowRateAdvectiveDiffusive BC with RAS Model

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2018, 06:36
Default totalFlowRateAdvectiveDiffusive BC with RAS Model
  #1
EMM
New Member
 
Esteban Maya
Join Date: Jun 2016
Posts: 1
Rep Power: 0
EMM is on a distinguished road
I'm trying to use the totalFlowRateAdvectiveDiffusive boundary condition for the fuel zone in a combustion case including fuel pyrolysis. I took as a reference the oppositeBurningPanels tutorial, but when I change the turbulence model to kEpsilon (RAS) I get this error:

--> FOAM FATAL ERROR:
lookup of turbulenceProperties from objectRegistry region0 successful
but it is not a LES, it is a kEpsilon

Has someone ever had the same problem and managed to solve it?
I really appreciate the help or ideas to deal with this.
EMM is offline   Reply With Quote

Old   April 25, 2019, 05:45
Default
  #2
New Member
 
Join Date: Dec 2015
Posts: 20
Rep Power: 10
Archana V is on a distinguished road
Hi,
You can use RANS model by making simple change in the code. In order to use RANS model you have to edit totalFlowRateAdvectiveDiffusiveFvPatchScalarField. C. In OpenFOAM-6, edit line number 157
original code:
const LESModel<EddyDiffusivity<compressible::turbulenceM odel>>& turbModel = db() . lookupObject<
LESModel<EddyDiffusivity<compressible::turbulenceM odel>>
>
Modify this statement as given below.

const compressible::turbulenceModel& turbModel = db() . lookupObject<compressible::turbulenceModel>

Copy this code in your user directory and make changes accordingly. Then you can compile the library function using wmake libso. For using this new boundary condition, you have to specify in your controlDict file.
Archana V is offline   Reply With Quote

Reply

Tags
rasmodel, totalflowrate pyrolysis

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
Vof and RAS Model Mousa.h OpenFOAM Running, Solving & CFD 0 May 12, 2018 03:20
[OpenFOAM-2.1.0] kklOmega RAS Turbulence Model (low Re) alquimista OpenFOAM Running, Solving & CFD 64 June 17, 2016 14:39
coalChemistryFoam: "Foam::error::printStack(Foam::Ostream&) at ??:?" musabai OpenFOAM Running, Solving & CFD 2 February 20, 2015 14:07
change RAS model Jackie Chen OpenFOAM 2 February 26, 2014 05:14


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