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

how to troduce a source term in ICOFOAM solver's equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 11:15
Default how to troduce a source term in ICOFOAM solver's equation
  #1
Member
 
Tom
Join Date: Jan 2012
Location: France
Posts: 43
Rep Power: 14
sawyer86 is on a distinguished road
Hi community,

I got a series of issues related with the introduction of a source term in the ns equation solved by icoFoam. I would very appreciate if someone could help me since for me is not simple to fix it! I tried to learn it a lot about it I was not able to do it! So thank you in advance to who will read this thread!

My idea is to add in the NS equation the following sorce term:

f(U_base)=-laplacian(nu,U_base)

where nu is the kinematic viscosity (let's say Re in non dimensional form), U_base is istead a base flow. I am able to create this 3D base flow using some utility like "funkysetfield" (i mean i can create a FoamFile which contain the 3D velocity field) and I guess the layout is right to be used by OF...

I want to add this term in the NS equation of the icoFoam term. The main issues are the following:

-How to declare the field U_base (which, I repeated, must be read from file) in the solver folder and what are the proper lines?
-What is the exact expression I have to add in the strings to create that term?

I hope I was clear in the explanation and I really hope someone can help me. Many thanks!
sawyer86 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
source term units - poission equation johnwinter Fluent UDF and Scheme Programming 0 June 6, 2011 00:53
Source term in the mass balance equation Mehdi BEN HAJ Phoenics 0 January 31, 2007 16:30
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 07:43.