CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Convective term with extra coefficient in Flux

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

LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2016, 05:03
Smile Convective term with extra coefficient in Flux
New Member
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 12
onlyacan is on a distinguished road
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) * phi
and 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?
onlyacan is offline   Reply With Quote

Old   August 18, 2016, 12:05
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 9
Jerryfan is on a distinguished road
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
linearInterpolate(gl*U) & mesh.Sf()


fvm::div(phi_mul_gl, volScalarField)

Any way, it's the same thing. I just don't want to linearInterpolate twice.
Jerryfan is offline   Reply With Quote


convective term, openfoam, term

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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Forced convective heat transfere with fixed heat flux? BenFranklinIII OpenFOAM Running, Solving & CFD 0 July 30, 2015 05:31
Udf for moving heat flux in 2D cylindrical geometry devia21 Fluent UDF and Scheme Programming 0 April 20, 2015 00:27
User wall heat flux coefficient specification crevoise STAR-CCM+ 0 January 15, 2014 08:26
convective heat transfer coefficient Fluu Main CFD Forum 3 April 15, 2008 07:37

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