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

How do I apply the L norms?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2011, 03:37
Default How do I apply the L norms?
  #1
New Member
 
Join Date: Dec 2010
Posts: 14
Rep Power: 15
werder85 is on a distinguished road
I know this is a real newbie question.
I want to apply the L2-norm for a laplace equation. How should I proceed?
Should I simply calculate the difference between the values of the current and the last iteration, then the sum of the squares of these values and finally the square root?
Is this norm used to determine when to stop iterating?

Thanks a lot!
werder85 is offline   Reply With Quote

Old   January 16, 2011, 04:01
Default
  #2
Super Moderator
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 342
Blog Entries: 6
Rep Power: 18
praveen is on a distinguished road
Comparing difference between current and previous solutions can be misleading. You should instead see how well the discrete equations are satisfied. For example, if you are trying to solve
L_h u_h = f_h
you can measure the convergence in the norm
\frac{ \| L_h u_h - f_h \|}{\| f_h \|}
The norms can be L2 norms.
praveen is offline   Reply With Quote

Old   January 17, 2011, 05:26
Default
  #3
New Member
 
Join Date: Dec 2010
Posts: 14
Rep Power: 15
werder85 is on a distinguished road
Thanks, that's very interesting!
If I still want to compare the solutions from the latest two iterations, do I have to treat the domensions sepparately or not? Obviusly, by applying a L2-norm for a 3D domain will naturally provide higher values than an L2-norm for a 1D domain (because will be more points in the grid).

Further can you recommend me a good documentation on applying L-norms in CFD?
werder85 is offline   Reply With Quote

Old   January 18, 2011, 09:25
Default
  #4
Super Moderator
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 342
Blog Entries: 6
Rep Power: 18
praveen is on a distinguished road
If you divide by norm of rhs as I wrote, number of grid points does not matter.
praveen is offline   Reply With Quote

Old   January 19, 2011, 02:31
Default
  #5
New Member
 
Join Date: Dec 2010
Posts: 14
Rep Power: 15
werder85 is on a distinguished road
I'm implementing the basic laplace equation, i.e. the RHS is zero... How should I proceed?
Thanks!
werder85 is offline   Reply With Quote

Old   January 19, 2011, 04:15
Default
  #6
New Member
 
Join Date: May 2009
Posts: 28
Rep Power: 16
walli is on a distinguished road
If the right hand side is zero, the problem is pretty boring, isn't it? No boundary conditions, no source term?
walli is offline   Reply With Quote

Old   January 19, 2011, 06:05
Default
  #7
New Member
 
Join Date: Dec 2010
Posts: 14
Rep Power: 15
werder85 is on a distinguished road
Ohh...now I understand, my mistake. The RHS also includes the boundary conditions (which are specified in my problem)...
werder85 is offline   Reply With Quote

Old   January 22, 2011, 02:14
Default Hi
  #8
Member
 
Ramesh K
Join Date: Dec 2009
Location: Bangalore
Posts: 73
Rep Power: 16
RameshK is on a distinguished road
Send a message via Yahoo to RameshK
Hi

You can use the following norm for stopping your iterations. It just calculates the relative error in the iterations

total_error=sqrt((\sun_{j=1}^N(\frac{u^(n+1) - u^(n)}{u^n})^2)_j)

which corresponds to all the points in the grid. You can compare this to an epsilon value and if the condition is met the iteration stops. n in the above formula represents the iteration count.
RameshK 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
How to model concrete slab in ANSYS and apply 2 million cyclic load. jjc ANSYS 3 April 12, 2011 04:47
How to apply KINETIC rate equation on walls SEEMI FLUENT 0 August 28, 2008 08:07
Relief Plots in CFX Michael CFX 15 June 30, 2006 08:01
norms help! quick question Main CFD Forum 5 May 10, 2003 01:09
Is it possible apply AC and DC at the same time andyslee Main CFD Forum 0 January 28, 2003 23:39


All times are GMT -4. The time now is 15:39.