CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

icoFoam : how to include a volScalarField in convection Term?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2017, 12:13
Default icoFoam : how to include a volScalarField in convection Term?
  #1
New Member
 
Amir Hossein Rabiee
Join Date: Apr 2017
Posts: 3
Rep Power: 8
AHRabiee is on a distinguished road
Hi
I am very new in OpenFOAM.
I want to change icoFoam solver in order to solve a special equation.
my equation is very similar to Navier Stokes equation with small differences. one of these differences is in convection term.
in my equation, convection term has an additional parameter which is a volScalarField , therefore I must implement div(U*U*eps) instead of div(U*U) -------> eps = volScalarField

but I can't write it in OpenFOAM language with no syntax errors

please help me

thanks!
AHRabiee is offline   Reply With Quote

Old   April 26, 2017, 05:52
Default
  #2
Member
 
Mehdi Aminyavari
Join Date: Feb 2016
Location: Milan
Posts: 35
Rep Power: 10
Mehdi3031 is on a distinguished road
Quote:
Originally Posted by AHRabiee View Post
Hi
I am very new in OpenFOAM.
I want to change icoFoam solver in order to solve a special equation.
my equation is very similar to Navier Stokes equation with small differences. one of these differences is in convection term.
in my equation, convection term has an additional parameter which is a volScalarField , therefore I must implement div(U*U*eps) instead of div(U*U) -------> eps = volScalarField

but I can't write it in OpenFOAM language with no syntax errors

please help me

thanks!

what you want is exactly like fvm::div(rhoPhi, U) where rho is a volScalar ,
have a look at the UEqn.H and creatField.H files in interFoam solver in this directory:
applications/solvers/multiphase/interFoam

and follow the same path.
Mehdi3031 is offline   Reply With Quote

Reply


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
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
SOU for convection term Ardalan Main CFD Forum 3 April 17, 2010 16:10
[Q] Convection term treatment in UDS Ryan, Lee FLUENT 4 October 18, 2004 10:20
Convection Term Senthil Main CFD Forum 0 December 20, 2000 07:13


All times are GMT -4. The time now is 20:40.