CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Evaluate an impicit term (

fs82 October 26, 2009 14:47

Evaluate an impicit term
Hello Guys,

I have a question concerning the handling of implicit terms. I added a term to my Ueqn and the solver should handle this term implicit. But I want to have this term as a field which should be written to a file for postprocessing. Is there a way to evaluate only this term?

In Detail:

tmp<fvVectorMatrix> greenWood2::dragForce(volVectorField& U) const

And now I want a field which contains mag(U)*U but I dont want to implement a second function. The reason is error avoiding. If I will make a change on my dragForce function I always have to remember to change the second function too. So one place, one equation but I need an idea how to evaluate a fvVectorMatrix :-D

kind regards

All times are GMT -4. The time now is 19:04.