Trouble adding a directional derivative source term
Hi everyone. Thanks for checking this.
I am a new OpenFOAM user, and I have been trying to create my own solver to model ferrofluid motion. In the model that I am using, there is a directional derivative source term (i.e. which I plan to approximate as where M and B are vectors).
I have M and B set up as volVectorFields, and I want multiply the entire thing by a the volume of each cell over the (constant) density. It looks like the fvc::div function needs one surface scalar field, so I created a phiB in a similar way to the phi for velocity using
I really appreciate your help.
mesh.V() ---> volScalarField
rho ---> volScalarField
I think you have to do linear interpolation for volScalarField before math operations.:)
|All times are GMT -4. The time now is 08:37.|