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

Modifying the convection term in IcoFOAM code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2017, 06:51
Default Modifying the convection term in IcoFOAM code
  #1
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 10
fluidflowsteel is on a distinguished road
Hi all,

I have a scalar field variable X and i want to write divergence ((1-X)*U*U) implicitly in the OpenFOAM. In the icoFOAM.c file, i have written the above expression as fvm::div(((1-X),phi),U) by modifying the fvm::div(phi,U) expression in the icoFoam code and the code is running. But am not sure whether it is the correct way to write ?

Can anyone help ?

with regards,
fluidflowsteel 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
icoFoam : how to include a volScalarField in convection Term? AHRabiee OpenFOAM Programming & Development 1 April 26, 2017 06:52
Add a source term (body force) in icoFoam hisham007 OpenFOAM Running, Solving & CFD 1 January 29, 2016 05:21
how to troduce a source term in ICOFOAM solver's equation sawyer86 OpenFOAM Running, Solving & CFD 0 July 20, 2012 12:15
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
CFD code for Convection + Radiation Rodrigo Lucianetti Main CFD Forum 4 December 23, 1998 16:33


All times are GMT -4. The time now is 01:31.