
[Sponsors] 
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: 39
Rep Power: 6 
I wanted to add a force to the alphaphase 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)<xl ) customF(i) = a*x(i1)*y(j)*z(k) + a*x(i)*y(j)*z(k) + a*x(i+1)*y(j)*z(k); else customF(i) = 0; The vector customF is composed of three components (x,y,z). How can I write this force in the OF? 

March 5, 2012, 15:44 

#2  
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38 
Quote:
transient source term 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
how to add sourceterm in momentum equation for interFoam?  anon_g  OpenFOAM  9  October 18, 2011 13:47 
Force can not converge  colopolo  CFX  13  October 4, 2011 23:03 
Question on the discretization of momentum equation in icoFoam  MPJ  OpenFOAM  3  October 4, 2011 10:44 
momentum equation (Normal to wall_  kk  Main CFD Forum  0  July 3, 2006 00:10 
Force on cylinders through momentum balance  Mauro Oliveira  Main CFD Forum  0  April 14, 2000 09:27 