CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Method of manufactred solutions MMC

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By mprinkey
  • 1 Post By mprinkey

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2015, 09:41
Default Method of manufactred solutions MMC
  #1
New Member
 
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11
zaynab is on a distinguished road
Dear all,

I developed a conduction diffusion code and I want to verify it with the manufactred solutions method.

My question: is there a known form for the supposed equation that fit the best with a conduction diffusion problem, otherwise How to choose an appropriate manufactred solution ?

Thanks in advance.
zaynab is offline   Reply With Quote

Old   October 5, 2015, 09:58
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
I've only used this method once, but I think you should try to construct a base solution that fully represents the array of physical phenomena that you are trying to model. For conduction/diffusion, you will probably have linear behavior in slow moving areas and approximately passive advection in fast moving areas. Maybe build an approximate model the tries to encompass that.

While, in theory, any solution could be generated by the method, it is probably important to known what to avoid. Like, in your case, you probably don't want to include some high-frequency harmonics in the base solution, because that type of behavior is not going to be manifest in your typical problem.

I would also caution that you match the treatment of the manufactured solution source terms and boundary conditions carefully. For example, if you are using FVM, remember that the source terms needs to be integrated over each control volume, not just evaluated at the centroid--if you are looking closely at conservation, etc.
zaynab likes this.
mprinkey is offline   Reply With Quote

Old   October 6, 2015, 04:40
Default
  #3
New Member
 
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11
zaynab is on a distinguished road
Thank you mprinkey, but I didn't get your last remark about the source term.
zaynab is offline   Reply With Quote

Old   October 6, 2015, 06:23
Default
  #4
Member
 
Kaya Onur Dag
Join Date: Apr 2013
Posts: 94
Rep Power: 13
kaya is on a distinguished road
I am not sure what would you call the best since that pretty much depends how you solve your system.

I did a similar study with a spectral code. I had to manufacture a solution with using exp(sin) etc. like polynomials to make it hard to catch with fourier modes else with a simple sin(x), I could reach the machine accuracy with 2 grid points.

If you're using finite difference on derivatives you can start by picking some trigonometric polynomials from the shelf.

I personally don't believe that you need to think about physics but math at this stage. I might not be correct.

You can also use periodic b.c. which comes in handy with trigonometric guys.
kaya is offline   Reply With Quote

Old   October 6, 2015, 08:28
Default
  #5
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
Quote:
Originally Posted by zaynab View Post
I didn't get your last remark about the source term.
If you have a system F(u) = 0, where F() is a differential operator, and you pick a solution v that you manufacture, then the source term that you need to apply to the RHS is F(v). So the system you try to solve is F(u) = F(v) where u is your unknown variable.

So, F(v) is the source term I am talking about. When you discretize it, be sure to use a scheme consistent with FVM. If you just do the continuous derivative operations on F(v) and and then evaluate at it at the centroid, you will only being getting a second-order approximation. You will need to do the full integral over each control volume to get the correct error convergence. For example, in 1D:

d^2/dx^2(u) = 0 -> d^2/dx^2(u) = d^2/dx^2(sin(x)) where we want the solution to be sin(x)

that reduces to d^2/sx^2(u) = -sin(x). To implement that source term over a CV from x=0.1 to x=0.2, you should make the source term integral(-sin(x),0.1,0.2) and NOT make the source term 0.1 * (-sin(0.15)). Those two are only the same to order dx^2 and that error will pollute your convergence plots....assuming you are using higher-order schemes.
zaynab likes this.
mprinkey is offline   Reply With Quote

Old   October 6, 2015, 11:08
Default
  #6
New Member
 
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11
zaynab is on a distinguished road
mprinkey, Thanks!
It's clear now
zaynab is offline   Reply With Quote

Reply

Tags
conduction-diffusion, manufactred solution


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
addCmptAvBoundaryDiag method santiagomarquezd OpenFOAM Programming & Development 3 December 26, 2020 08:29
Lattice Boltzmann method vs Finite Element Method and Finite Volume Method solemnpriest Main CFD Forum 3 August 12, 2013 11:00
Turbulence inflow generation - recycling method panda60 OpenFOAM Running, Solving & CFD 15 April 25, 2013 01:34
Implicit iterative Gauss-Seidel method dearboy Main CFD Forum 5 November 29, 2010 09:18
Multigrid method Suresh kumar Main CFD Forum 1 April 24, 2006 20:07


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