|June 22, 2007, 05:20||
Hi All! I'm new at OpenFOAM.
Join Date: Mar 2009
Posts: 1Rep Power: 0
I'm new at OpenFOAM. I try to solve the dimensionless Poisson-Equation. First I tried:
Gamma*(fvm::div(diag(fvc::grad(Phin)*Vektor))))+fv m::div(diag(fvc::grad(Pha)*Vek tor))==-Psi*(C1*z1+C2*z2)
This didn't work because the 'diag'-Function ist not available.(I found information about that in the forum: Thanks). By the way, Vektor=(1 0 1/eq), where eq is a constant value.
So, I splitted the equation and defined volTensorFields:
To get a vector of the diagonal components I used the .component-Function.(Thanks again to the Forum.)
Same procedure for Term2 from T2.
Then I defined
Then I tried to solve the equation
This produced: error:no matching function for call to 'div(Foam::volVectorField&)'
With 'fvc' instead of 'fvm' it is: error:no match for 'operator=='in Foam::operator+(...
Sorry, for the long explanation.
Has anybody an idea what's wrong and how to solve this? I would be greatful for help.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Why solving||kar||OpenFOAM Running, Solving & CFD||2||April 30, 2008 15:15|
|error while solving external aerodynamics||Praveenreddy||FLUENT||0||December 6, 2007 21:44|
|error about solving darcy equation with mixed FEM||field||Main CFD Forum||0||September 10, 2007 23:08|
|STAR-CD Solving error||Chris Wood||CD-adapco||1||October 25, 2004 06:36|
|a grid error during solving process||Tiefeng WANG||CFX||2||June 14, 2002 09:07|