CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Laplacian Help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 27, 2012, 10:34
Default Laplacian Help
  #1
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 5
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
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Reply

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
How to calculate laplacian of a scalar in cfx? Jun CFX 16 October 24, 2013 17:21
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 11 September 7, 2011 12:30
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 22:33.