|
[Sponsors] |
August 27, 2012, 10:34 |
Laplacian Help
|
#1 |
New Member
Join Date: Jul 2012
Posts: 13
Rep Power: 13 |
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> >)' |
|
August 28, 2012, 01:45 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29 |
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
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modifying the laplacian operator | mlawson | OpenFOAM Running, Solving & CFD | 22 | July 16, 2018 04:56 |
How to calculate laplacian of a scalar in cfx? | Jun | CFX | 21 | March 2, 2018 09:08 |
Laplacian and 1D flow | AlmostSurelyRob | OpenFOAM | 0 | March 2, 2011 09:04 |
why laplacian() failed | OFCrash | OpenFOAM Running, Solving & CFD | 1 | February 1, 2010 07:32 |
Dimensions of laplacian in PISO loop | kumar2 | OpenFOAM Running, Solving & CFD | 2 | July 3, 2006 14:34 |