CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Laplacian Help

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 27, 2012, 10:34
Default Laplacian Help
New Member
Join Date: Jul 2012
Posts: 13
Rep Power: 7
physics1 is on a distinguished road
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> >)'
physics1 is offline   Reply With Quote

Old   August 28, 2012, 01:45
Senior Member
akidess's Avatar
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,262
Rep Power: 23
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 18 May 21, 2017 08:15
How to calculate laplacian of a scalar in cfx? Jun CFX 16 October 24, 2013 17:21
Laplacian and 1D flow AlmostSurelyRob OpenFOAM 0 March 2, 2011 10:04
why laplacian() failed OFCrash OpenFOAM Running, Solving & CFD 1 February 1, 2010 08:32
Dimensions of laplacian in PISO loop kumar2 OpenFOAM Running, Solving & CFD 2 July 3, 2006 14:34

All times are GMT -4. The time now is 16:24.