# Add a custom body force to the momentum equation, f=f(x,y,z)

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

 March 5, 2012, 05:17 Add a custom body force to the momentum equation, f=f(x,y,z) #1 Member   Jeong Kim Join Date: Feb 2010 Posts: 42 Rep Power: 9 I wanted to add a force to the alpha-phase moment equation. This is a funciton of x, y and z location, which force is not dependent on time. For an exmaple, customF = customF(x,y,z) where i,j and k are indexing counters. Below is the folmula expression that I'd like to use. if(x(i)>x0 or x(i)

March 5, 2012, 15:44
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,034
Rep Power: 43
Quote:
 Originally Posted by enoch I wanted to add a force to the alpha-phase moment equation. This is a funciton of x, y and z location, which force is not dependent on time. For an exmaple, customF = customF(x,y,z) where i,j and k are indexing counters. Below is the folmula expression that I'd like to use. if(x(i)>x0 or x(i)
You might want to have a look at this (the thread discusses various approaches to a similar problem, but my favourite is - for obvious reasons - expressionSource from swak4Foam):
http://www.cfd-online.com/Forums/ope...tml#post329700

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post anon_g OpenFOAM 9 October 18, 2011 12:47 colopolo CFX 13 October 4, 2011 22:03 MPJ OpenFOAM 3 October 4, 2011 09:44 kk Main CFD Forum 0 July 2, 2006 23:10 Mauro Oliveira Main CFD Forum 0 April 14, 2000 08:27

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