wmake error while adding T to icoFoam
Hello,
I am trying to modify currently available solver in OpenFoam. http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam So, I found a great tutorial on how to implement temperature into icoFoam, which is currently available. I am having a little trouble wmakeing the solver. After following the tutorial in detail, I was not able to compile the solver. Instead, the following came up as error. I only see one error and that is colored in red. I would like some insights from those who have already tried this particular tutorial or have implemented their own solver. By the way, I am using OpenFoam 2.0, the newest. Thanks so much for your time. Code:
root@bradThinkPadX200:/opt/openfoam200/applications/solvers/incompressible/my_icoFoam# wmake 
Ah ha,
I figured it out. Simple mistake on my part. 
Hi Brad,
same problem here, but can't crack it. Could you please explain the solution! 
To finish this off!
Another freaking blind copypaste error. In createFields.H: Code:
volScalarField T 
Hi everybody
I'm new in OpenFOAM and C++ and I'm trying to modify an available solver to solve a cross derivative equation. But unfortunately I'm getting the similar error while wmakeing the solver: no matching function for call to ‘Foam::fvMatrix<Foam::Vector<double> > The modified solver is: Code:
#include "fvCFD.H" Please excuse me because of my poor English. Thank you for your help 
Code:
fvVectorMatrix TEqn 1) extra ")" 2) inner product of two vector is an Scalar, so it should be "fvScalarMatrix" 
Thank you for your consideration But unfortunately I'm still receiving the same error message even after correcting the mentioned errors. The new one is: Code:
fvScalarMatrix TEqn Code:
fvScalarMatrix TEqn 
uhum
thats right, because you use "fvc" fvc convert a field to another field, it does not make any matrix 
Thank you Nima
yes , you are right, but it's still supposed to work because both sides are scalar fields. So why doesn't it work? Let's talk about something simpler. Even following code couldn't be compiled: Code:
what's the reason? 
because fvc::grad(phi) does not make the matrix of coefficient, it is a known and definite variable, it is like you put for example a variable T = s , which both T and s has value :)

I appreciate your help Nima, I found the problem
Actually I was trying to solve Winslow equation by OpenFOAM: αxξξ − 2βxξη + γxηη = 0 but it seems that it's impossible. Does anybody know if there is a way to solve it by OpenFOAM? 
Hi everybody
any idea to handle cross derivatives (like xξη) in OpenFOAM? 
All times are GMT 4. The time now is 09:38. 