CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Like Tree1Likes
  • 1 Post By Jerryfan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2016, 06:03
Smile Convective term with extra coefficient in Flux
  #1
New Member
 
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 15
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, 13:05
Default
  #2
Member
 
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12
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
(
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.
Kummi likes this.
Jerryfan is offline   Reply With Quote

Reply

Tags
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 02:13
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


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