|
[Sponsors] |
Convective term with extra coefficient in Flux |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 18, 2016, 06:03 |
Convective term with extra coefficient in Flux
|
#1 |
New Member
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 16 |
Hello, dear openFOAM user,
For a incompressible flow, the flux phi used in convection term fvm::div(phi, volScalarField)is calculated in the "createPhi.H" as linearIntepolate(U) & mesh.Sf()Now I have a term like div( gl * U T), where gl is an extra coefficient. My current solution is create a new flux called phi_mul_gl as phi_mul_gl = linearIntepolate(gl) * phiand then we have fvm::div(phi_mul_gl, volScalarField)It works, but I don't know how this kind of term is normally handled in your case? |
|
August 18, 2016, 13:05 |
|
#2 |
Member
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 13 |
Hi Can,
I think the way you use is OK. But if I were you, I might do it a little bit different. surfaceScalarField phi_mul_gl ( IOobject ( "phi_mul_gl", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE ), linearInterpolate(gl*U) & mesh.Sf() ); Then, fvm::div(phi_mul_gl, volScalarField) Any way, it's the same thing. I just don't want to linearInterpolate twice. |
|
Tags |
convective term, openfoam, term |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Forced convective heat transfere with fixed heat flux? | BenFranklinIII | OpenFOAM Running, Solving & CFD | 0 | July 30, 2015 06:31 |
Udf for moving heat flux in 2D cylindrical geometry | devia21 | Fluent UDF and Scheme Programming | 0 | April 20, 2015 01:27 |
User wall heat flux coefficient specification | crevoise | STAR-CCM+ | 0 | January 15, 2014 09:26 |
convective heat transfer coefficient | Fluu | Main CFD Forum | 3 | April 15, 2008 08:37 |