CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Laplacian Help (http://www.cfd-online.com/Forums/openfoam-programming-development/106374-laplacian-help.html)

physics1 August 27, 2012 10:34

Laplacian Help
 
I'm trying to solve the equation ∇⋅n∇V- ∇⋅n∇E_0=0 where n is a density V is the electric Potential and E_0 = (v x B)⋅x. Both E_0 and V are defined as volScalarFields but when I try to input it as laplacian(n, V - E_0) is gives me
error: no matching function for call to 'laplacian(Foam::volScalarField&, Foam::tmp<Foam::GeometricField<double Foam::fvPatchField, Foam::volMesh> >)'

akidess August 28, 2012 01:45

The code is complaining about you passing a tmp<> object. This results from 'V-E0'. You need to precompute V-E and then solve.

- Anton


All times are GMT -4. The time now is 07:51.