A problem for equation
HI every former:
I have a problem about equation. Now I have a equation like this:
+ fvm::div(rhoPhi, U)
the function for "add" in the () is like this:
for X dirction: add(x)=x ; fro Y dirction: add(y)=u.component(y)*y; for Z dirction add(z)=0;
how can add for this? I really hope someone can heip me. Thank you in davance!
first declare a volVectorField add variable, then loop over it and fill it with your values.
Thank you very much! I will try it right now!
|All times are GMT -4. The time now is 05:53.|