Assigning volVectorField components from three different volScalarField
Hi foamers,
I need to assign values from three volScalarField to the components of a volVectorFIeld. Is there any direct way to do this operation? Otherwise, they have a tip for this. thanks in advance to anyone who can help me. |
Hi,
It might look like this: supposing you have: Quote:
Quote:
|
Thanks for your reply,
I used your code in this way: Quote:
Quote:
Quote:
I appreciate your help, |
You should change
Code:
fvPatchField<vector> &pv = Re.boundaryField()[patchID]; Code:
fvPatchField<vector> &pv = Re.boundaryFieldRef()[patchID]; |
Now it works.
Thanks a lot! |
All times are GMT -4. The time now is 04:44. |