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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 12: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

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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
source term units - poission equation johnwinter Fluent UDF and Scheme Programming 0 June 6, 2011 01:53
Source term in the mass balance equation Mehdi BEN HAJ Phoenics 0 January 31, 2007 17:30
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 11:51.