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

Turbulent dispersion in scalarTransportFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2023, 10:41
Cool Turbulent dispersion in scalarTransportFoam
  #1
New Member
 
Join Date: Aug 2016
Location: Czechia
Posts: 2
Rep Power: 0
slimak is on a distinguished road
Dear Foamers,

I am trying to implement my own solver in OpenFOAM 10. The solver is a version of scalarTransportFoam, where I want to introduce turbulent contribution to the dispersion term (for heat transfer this would be something like turbulent Prandtl, Prt, number or Schmidt, Sct, number for species transfer). This would make the laplacian term look like fvm::laplacian(DT+nut/Prt, T)
with the extra term being turbulent diffusivity (nut) divided by Prt. For simplicity I assume Prt is constant. My struggle is to introduce the nut to the equation via createFields.H.
In previous version of OF (I guess 5 or 6, OF org branch by CFDdirect), I was able to compile code with
singlePhaseTransportModel laminarTransport(U, phi);


autoPtr<incompressible::turbulenceModel> turbulence //turbulentTransportModel
(
incompressible::turbulenceModel::New(U, phi, laminarTransport)
);
volScalarField nut = turbulence->nut();

which created nut. But this is not the case in the current version. My guess is, that it has something to do with
#include"fvModels.H"

replacing
#include "singlePhaseTransportModel.H"
#include "turbulentTransportModel.H"
but I was not able to solve the issue. There are some threads on this topic (How to access nu and nut values for a Turbulent Solver), but they seem to be from 2014-2017. My source code for the modified solver are included. Do you have any hints?

Thank you in advance.
p { margin-bottom: 0.1in; line-height: 115% }a:link { so-language: zxx }
Attached Files
File Type: h createFields.H (1.9 KB, 1 views)
File Type: c scalarTransportFoamMod.C (2.7 KB, 6 views)
slimak is offline   Reply With Quote

Reply

Tags
nut, solver


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
how to add turbulent dispersion term in twoPhaseEulerFoam? Yucheng Fu OpenFOAM Running, Solving & CFD 2 April 28, 2015 01:04
Stability problem due to turbulent dispersion force in a subcooled boiling model Edy OpenFOAM 7 August 10, 2011 13:00
Turbulent dispersion of particle tracking in LES mittal OpenFOAM Programming & Development 4 February 23, 2011 19:01
DPM turbulent dispersion Springbok Main CFD Forum 0 July 15, 2008 05:14
Lift & Turbulent Dispersion in Stirred Tank ozgur FLUENT 0 April 23, 2007 11:01


All times are GMT -4. The time now is 18:41.