|
[Sponsors] |
defining constant transport property inside a turbulence model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 2, 2013, 04:59 |
defining constant transport property inside a turbulence model
|
#1 |
New Member
Christoph Kratzsch
Join Date: Nov 2011
Location: Freiberg
Posts: 28
Rep Power: 14 |
Hello Foamers,
i want to implement a turbulence model based on a k-epsilon-model for turbulent magnetohydrodynamics-flow. Therfore i have to add additional dissipation terms in the epsilon-equation and in the k-equation. These terms containing the density "rho" and the electrical conductivity "sigma". Because that properties are constants in my incompressible case, i can't introduce them like it's done in the compressible turbulence-model. So how can i introduce or address them inside my turbulence-model-files? Best Regards, Christoph |
|
June 19, 2013, 04:33 |
|
#2 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
Hi Christoph,
Have you find a way to call rho inside turbulence model for incompressible case? if yes, please share. ABE |
|
June 21, 2013, 06:48 |
|
#3 | |
New Member
Christoph Kratzsch
Join Date: Nov 2011
Location: Freiberg
Posts: 28
Rep Power: 14 |
Quote:
after some trial and error i've found a solution. In my .C-File i read the properties as follows: Code:
//that part you should find in your turbulence-model-code void kEpsilonZeta::correct() { RASModel::correct(); if (!turbulence_) { return; } //Here the reading of the properties starts Info<< "\nReading transportProperties\n" << endl; IOdictionary transportProperties ( IOobject ( "transportProperties", runTime_.constant(), mesh_, IOobject::MUST_READ, IOobject::NO_WRITE, false ) ); dimensionedScalar nu ( transportProperties.lookup("nu") ); dimensionedScalar rho ( transportProperties.lookup("rho") ); // electromagnetic properties dimensionedScalar mu ( transportProperties.lookup("mu") ); dimensionedScalar sigma ( transportProperties.lookup("sigma") ); dimensionedScalar Cm ( transportProperties.lookup("Cm") ); //Now the Solution of the turbulence transport equations follows Best regards, Christoph |
||
June 21, 2013, 09:00 |
|
#4 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 |
Hi Christoph,
Thank you for sharing. ABE |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modified k-e turbulence model UDF | Travis | Fluent UDF and Scheme Programming | 7 | November 11, 2018 20:21 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |
K - epsilon VS SST turbulence model | Maicol | Main CFD Forum | 0 | November 30, 2012 16:25 |
build your own turbulence model with buoyancy | Thomas Baumann | OpenFOAM | 11 | November 23, 2009 08:53 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 12:02 |