CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Phoenics

How to add a source term in u or v equation?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 12, 2004, 07:41
Default How to add a source term in u or v equation?
  #1
luckyluke
Guest
 
Posts: n/a
Hi,I am a newby and I want to add a source term in u or v momentum equation. The added source term at a certain grid point can be thought as a forcing term which is calculated form the values of neighbouring points. Besides the integral of u or v in the time direction is also needed.

Who can help me and give some advice?
  Reply With Quote

Old   December 12, 2004, 13:55
Default Re: How to add a source term in u or v equation?
  #2
Boris Morton
Guest
 
Posts: n/a
I think to add a source term you have to propagate the Navier Stokes equation into a polar variable format. When you do this it will be possible to take the exponential of the resulting force. After that stage simply use a double fourier series to approximate the possible eingevector terms. With this you should be able to import into CFD.

Hope this helps

Boris Morton
  Reply With Quote

Old   December 13, 2004, 03:34
Default Re: How to add a source term in u or v equation?
  #3
luckyluke
Guest
 
Posts: n/a
I want to finish my question using PLANT or the other features provided by Phoenics.

I implemented this using the UDF of Fluent. In my UDF, I define global variables which are needed all the solving process and I do loop in a sub-domain using C language(in the loop, the neighbouring cell-values are used), then by a source-term-Macro called "DEFINE_SOURCE" I add the computed source term to my momentum equations.

Now, I want to do it in Phoenics. Is it possible? 0. Use Plant? 1. How to define global variables? 2. How to do a loop in a sub-domain? 3. How to get the neighbouring cell-values of a cell considered? 4. Where to add the computed source term?

The docs of Phoenics are so boring and I have read them for a few days. But I have not got the idea.

Pls help the stupid newbie.
  Reply With Quote

Old   December 13, 2004, 03:52
Default Re: How to add a source term in u or v equation?
  #4
Volker
Guest
 
Posts: n/a
Hi,

I am not aware of the new features in Phoenics since V3.4 but I think there are some news in later versions that might facilitate your task.

Extra source terms for any variable can be defined in Inform. In how far neighbouring cell values can be used depends (in V3.4) on the grid that you use. Only in cartesian coordinates is it possible to refer to neighbour cell values in inform (see polis entry on inform). A global variable may be defined (in V3.4) as a whole-field stored variable that can then be addressed in Inform.

regards

Volker
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for source term in momentum equation Enrico FLUENT 9 May 30, 2014 11:34
Stokes equation with source term dak81 OpenFOAM Running, Solving & CFD 0 March 12, 2008 09:41
Scalar Equation source term Merck CFX 0 May 11, 2007 05:30
source term in epsilon-equation julian Main CFD Forum 0 May 24, 2005 04:58
Add source term in species equation zhou1 FLUENT 1 October 21, 2003 06:28


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