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

Laplacian Help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2012, 10:34
Default Laplacian Help
  #1
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 13
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: Germany
Posts: 1,377
Rep Power: 29
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

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:35.