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

Some discussions about Newton's method

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By winston

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2005, 10:39
Default Some discussions about Newton's method
  #1
winston
Guest
 
Posts: n/a
Hello,

Does anyone know how to implement the boundary conditions in Newton's method to solve NS equations? In particular:

(1) How to do function evaluation on boundaries for the continuity equation, where the pressure is not seen?

(2) How to do function evaluation on boundaries for the momentum equations where velocities and pressure all appears?

(3) What is the major difference between interior grids and boundaries on function evaluation?

I really appreciate if someone can answer this.

Thanks in advance.

Winston
aerosayan likes this.
  Reply With Quote

Old   July 14, 2005, 12:41
Default Re: Some discussions about Newton's method
  #2
ag
Guest
 
Posts: n/a
What I currently do is to implement the boundaries in a semi-implicit sense. Since I am solving the equations in a delta form, the boundary changes are held to zero during each iteration of the Newton loop (equivalent to an explicit update). Then the boundary conditions are applied at the end of each Newton iteration. If the BC update occurred at the end of the overall Newton loop, the update would be fully explicit. By applying the BC update at the end of each Newton iteration some "implicitness" is regained.
  Reply With Quote

Old   July 15, 2005, 10:14
Default Re: Some discussions about Newton's method
  #3
winston
Guest
 
Posts: n/a
Thanks AG. In my case, I am doing fully-implicit. My problem is that I am not sure how to do function evaluation on boundaries. For continuity equation, we have u and v, for each of the momentum equations, we have u, v, and p. When we do the function evaluation on boundaries, i.e., computing F(u,v,p) on boundaries, should we plug in those boundary conditions into each of continuity equation and momentum equations to get Fs, or there are some particular techniques? Thanks
  Reply With Quote

Old   July 15, 2005, 10:37
Default Re: Some discussions about Newton's method
  #4
ag
Guest
 
Posts: n/a
I use the previous values of p, u, and v on the boundaries for a given Newton iteration. Then I call my BC subroutine after that Newton iteration and update the boundaries with the most recent interior results. Doing this provides a "semi-implicitness" to the boundary updates, and makes handling the boundaries easy within the Newton loop. For each Newton iteration the boundaries don't change until after the iteration is performed.

So -

Begin the newton loop

compute RHS

compute LHS

modify LHS matrix assuming all dq's on

boundaries are zero during interior update.

Solve for interior dq's and update interior q's.

Call BC routine to update boundary values.

if newton not converged repeat.

End Newton loop

I've never implemented a scheme where it's fully implicit because I've never seen a case where it was worth the effort.
  Reply With Quote

Old   July 15, 2005, 13:35
Default Re: Some discussions about Newton's method
  #5
winston
Guest
 
Posts: n/a
Thanks. In your case, your boundary subroutine has been written, in my case, however, I try to write a boundary subroutine and implement boundary conditions there. So, I need the detailed boundary calculation.

By the way, I compute numerical Jacobian, so I need to do function evaluation F(u,v,p) on the boundary.

My real question is how to compute F(continuity), F(u-momentum), and F(v-momentum) on boundaries given the boundary conditions of u, v, and p.

If you could check your boundary subroutine and give me some hint, that would be great.

Thanks

Winston
  Reply With Quote

Old   July 15, 2005, 14:21
Default Re: Some discussions about Newton's method
  #6
ag
Guest
 
Posts: n/a
The boundary conditions I use are based on physical approximations/conditions at the boundary. For example, on a non-moving solid surface the normal pressure gradient is zero and the velocity is either tangential to the surface (inviscid flow) or zero (viscous flow). So I never explicitly write out the equations of motion on the boundary. But it sounds like you want to write the equations for the fluid motion for the boundary points. Just use ghost points (which get values assigned by extrapolation at each time step) and then simply apply the discrete equations to the boundary. You'll still need to invoke any additional physical constraints, such as the no-slip condition, within those equations. For example, the no-slip condition implies that velocity derivatives along the surface are all zero, so those terms should be zeroed out in the discrete equations for points on a no-slip wall.
  Reply With Quote

Old   July 16, 2005, 22:19
Default Re: Some discussions about Newton's method
  #7
Winston
Guest
 
Posts: n/a
Thanks AG. You are absolutely right. I use numerical Jacobian, and I do function evaluation on every grid points, that is why I need to evaluate the continuity and momentum equations on the boundary. But to my dispointment, I cannot get it work.

If you also use Newton's method, how do you compute your Jacobian matrix? Numerically or Analytically? Thanks.

Winston
  Reply With Quote

Old   July 17, 2005, 23:05
Default Re: Some discussions about Newton's method
  #8
ag
Guest
 
Posts: n/a
Analytically. I don't have any real experience using numerical Jacobians.
  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
Newton's method failed to converge Mohan CFX 7 September 23, 2020 07:50
Newtons method failed to converge in 100 iterations brajh11 CFX 5 September 3, 2011 07:29
Newtons Method failed to converge in 100 iteration hagupta CFX 9 December 2, 2010 07:41
Newtons method failed(Error) Chetan Prashant CFX 4 May 17, 2007 01:58
newtons method failed/fatal overflow ioana CFX 0 March 2, 2005 03:57


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