|
[Sponsors] |
adding a constant volumetric source term to transport equation in a particular region |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 17, 2014, 05:02 |
adding a constant volumetric source term to transport equation in a particular region
|
#1 |
Senior Member
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16 |
Dear Foamers
Hi! I want to add a constant volumetric source term to the scalar transport equation which acts only in a particular volumetric region of the domain. I modified the scalar transport equation as follows: Code:
solve ( fvm::ddt(T) + fvm::div(phi, T) - fvm::laplacian(DT, T) == sourceValue ); Code:
dimensionedScalar sourceValue(twoPhaseProperties.lookup("sourceValue")); Code:
sourceValue sourceValue [0 0 -1 0 0 0 0] 0.42; I have two questions: 1) How can I define this volumetric region inside my domain? is there any utility? 2) How can I change the transportProperties file to consider sourceValue=0.42 only for this specific volumetric region and sourceValue=0 for the rest of the domain? Any help in this regard would be much appreciated. Thank you so much in advance.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.” |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 05:18 |
How to write UDF to add a source term to the new transport equation ? | 89566008 | Fluent UDF and Scheme Programming | 2 | October 22, 2012 07:23 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |
Source Term on Scalar Transport Equation | alessio.nz | OpenFOAM Programming & Development | 9 | January 31, 2011 07:56 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |