|
[Sponsors] |
October 5, 2015, 10:41 |
Method of manufactred solutions MMC
|
#1 |
New Member
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11 |
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. |
|
October 5, 2015, 10:58 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
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. |
|
October 6, 2015, 05:40 |
|
#3 |
New Member
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11 |
Thank you mprinkey, but I didn't get your last remark about the source term.
|
|
October 6, 2015, 07:23 |
|
#4 |
Member
Kaya Onur Dag
Join Date: Apr 2013
Posts: 94
Rep Power: 13 |
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. |
|
October 6, 2015, 09:28 |
|
#5 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
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. |
|
October 6, 2015, 12:08 |
|
#6 |
New Member
Morocco
Join Date: Mar 2015
Posts: 11
Rep Power: 11 |
mprinkey, Thanks!
It's clear now |
|
Tags |
conduction-diffusion, manufactred solution |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
addCmptAvBoundaryDiag method | santiagomarquezd | OpenFOAM Programming & Development | 3 | December 26, 2020 09:29 |
Lattice Boltzmann method vs Finite Element Method and Finite Volume Method | solemnpriest | Main CFD Forum | 3 | August 12, 2013 12:00 |
Turbulence inflow generation - recycling method | panda60 | OpenFOAM Running, Solving & CFD | 15 | April 25, 2013 02:34 |
Implicit iterative Gauss-Seidel method | dearboy | Main CFD Forum | 5 | November 29, 2010 10:18 |
Multigrid method | Suresh kumar | Main CFD Forum | 1 | April 24, 2006 21:07 |