|August 22, 2014, 23:31||
Fundamental Operations for Source Terms
Join Date: Aug 2014
Posts: 11Rep Power: 2
I have a question pertaining to operations in openFOAM. I have experienced some compiling errors when trying to modify UEqn.H according to another thread I started: Adding porosity to UEqn.H in porousInterFoam
This question comes about as I would like to simply multiply or divide, as was the case in the thread above, however the operator "/" was not valid.
I see in another thread, bare with me here : InterFoam: add a source term in alpha eq.
that the multiplication operation "..U*grad(alpha)..." was defined as: "fvc::grad(alpha1) & Ug"
// Divergence term is handled explicitly to be
// consistent with the explicit transport solution
fvc::grad(alpha1) & Ug
I know this is trivial but Im having difficulties finding a list of "operators" such as * and /. Why is multiplication:* represented as & ?
Could someone kindly provide an explanation for whats happening here and provide some information for what to di in scenarios like this?
|August 24, 2014, 23:43||
Join Date: Jul 2013
Posts: 84Rep Power: 3
This link is pretty great for this kind of problem:
Pretty sure it's accurate, at least it used to be. Haven't checked recently but doubt either it or OF have changed their operators.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Implicit treatment of advection terms and pressure correction||nikosb||Main CFD Forum||0||January 17, 2010 17:07|
|Using source terms||jsm||Main CFD Forum||4||August 20, 2009 07:44|
|Question in definition of terms in solve||titio||OpenFOAM Running, Solving & CFD||0||March 19, 2009 18:02|
|Source terms in local coordinate frames||CF||CFX||2||August 29, 2006 03:30|
|K-Epsilon model?||Brindaban Ghosh||Main CFD Forum||2||June 24, 2000 05:22|