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

Strong vs. weak formulation of the Laplace equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2024, 02:26
Default Strong vs. weak formulation of the Laplace equation
  #1
New Member
 
Lars
Join Date: Jul 2024
Posts: 1
Rep Power: 0
Sral97 is on a distinguished road
Hello everyone,


I am fairly new to OpenFOAM and I have the following question:

The weak formulation of the laplace equation reads:

\integral_{\Omega} \phi * \laplace T d\Omega = - \integral_{\Omega} \grad{\phi} \grad{T} d\Omega,

assuming, that the testfunctions \phi are 0 on the boundary \partial \Omega.

But if i implement this in OpenFOAM like the following:

fvc::domainIntegrate(\phi * fvc::laplacian(T)).value()

and

fvc::domainIntegrate(fvc::grad(\phi) & fvc::grad(T)).value().

I obtain different values, but they should be the same in theory.

I already searched the internet.

Thanks already in advance
Sral97 is offline   Reply With Quote

Old   July 12, 2024, 07:35
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 727
Rep Power: 14
Tobermory will become famous soon enough
Presumably the answers are close, in which case what you have just demonstrated is that finite volume discretisation is not exact (2nd order at best), and so involves round-off errors.
Tobermory 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
Simple specie diffusion problem with Fundamental solution of Laplace Equation mohibanwar Main CFD Forum 5 September 21, 2020 04:53
What are strong and weak form of conservative form granzer Main CFD Forum 3 July 3, 2019 11:25
comsol weak formulation Olga COMSOL 0 December 10, 2007 13:39
Laplace operator in finite element formulation Rafael Main CFD Forum 2 October 19, 2004 21:09
Compressible vs. Incompressible formulations Fernando Velasco Hurtado Main CFD Forum 3 January 7, 2000 16:51


All times are GMT -4. The time now is 23:46.