CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Any idea on this runtime error (http://www.cfd-online.com/Forums/openfoam-bugs/62327-any-idea-runtime-error.html)

gschaider February 4, 2009 08:07

You can't construct a fvMatrix
 
You can't construct a fvMatrix for two fields. Probably you wanted to write fvc::laplacian(k).

Bernhard

hqiu February 4, 2009 08:25

hi Bernhard, thx for the sugg
 
hi Bernhard,
thx for the suggestion
but I am not quite following you. It's true that I used fvc::laplacian(k) in this code, but what does it have to do with 'construct a fvMatrix for two fields'?

hqiu February 4, 2009 09:22

you are right. if I comment ou
 
you are right. if I comment out fvc::laplacian(k), there is no error any more, but still no idea why it's like this

actually I need fvc::laplacian(k), how can I handle this? any suggestion?

hqiu February 4, 2009 09:42

got it http://www.cfd-online.c
 
got it http://www.cfd-online.com/OpenFOAM_D...part/happy.gif thx


All times are GMT -4. The time now is 17:22.