# re: Double precision and grid quality

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 25, 2007, 13:29 re: Double precision and grid quality #1 Wooster Guest   Posts: n/a Sponsored Links I didn't want to hijack someone elses post so I'll make this one. Robin had said that applying double precision helps with grid quality issues and I was wonder a little about that. How does double precision help with the grid, and on what scale? Is it a small thing that can be noticeable only on very very fine meshes or is it something more noticeable on any particular mesh? -W

 July 25, 2007, 16:20 Re: re: Double precision and grid quality #2 Gui Guest   Posts: n/a I don't see why double or simple precision would have something to do with mesh quality. It just tells with how much numbers you represent a floating point. With simple precision you can already represents number well below the millimeter (and the elements in a mesh are of the order of the millimeter). It just tells how precise the computations are so for me it's independent of the mesh.

 July 25, 2007, 16:45 Re: re: Double precision and grid quality #3 Robin Guest   Posts: n/a The question should be "What does grid quality have to do with errors?". Grid quality comes into play when the discrete equations are assembled. The effect of aspect ratio, for instance, is that you end up with one face of a control volume which has a very large area and another with a very small one. When you assemble the equations, the coefficients associated with the large face may be significantly larger than those of the small face. With single precision, the effect of the smaller face may be lost due to round-off error. Double precision pushes the limit of round-off error and therefore the tolerance for poor grid quality. Other quality criteria have similar effects. One interesting thing is to consider what I just said about aspect ratio and how it behaves near a wall. We often tell people that a high aspect ratio can be tolerated near the wall if the grid is parallel to the wall. The reason for this is that in the advection term, the coefficient from the face parallel to the wall scales with the mass flow through the face. Since the velocity normal to the wall is nearly zero, the coefficient on the larger face is no longer much greater than the one perpendicular to the flow and therefore there is no round-off issue. Aspect ratio problems are greater when they occur far from the wall. It is also important to note that grid quality criteria are code dependant. What affects CFX is often quite different from other codes because the control volumes are constructed around element nodes, creating polyhedral control volumes. This reduces the production of solution errors due to rogue elements. Having multiple bad elements in the same region is bad, however. Version 11.0 includes grid quality measures in the solver which are output to the results file as variable fields. It's worth checking these and the accompanying notes in the documentation, which you will find in ANSYS CFX-Solver Modeling Guide>Advice on Flow Modeling>Mesh Issues>Measures of Grid Quality. Regards, Robin

 July 25, 2007, 17:35 Re: re: Double precision and grid quality #4 Gui Guest   Posts: n/a I hadn't think about that and it makes sense. But what do you mean by the coefficient of the face? and you say that cfx construct control volumes around elements nodes. So the equations are not integrated over the elements ? I thought the elements were the control volumes.

 July 26, 2007, 08:58 Re: re: Double precision and grid quality #5 Robin Guest   Posts: n/a Hi Gui, Coefficients are the values by which a variable is multiplied. For the transport of a scalar, phi, across a face for instance, the equation is mass_flow*phi, so the coefficient is mass flow. Look at the theory doc for a more complete explanation. Regarding elements, most codes will use the element itself as the control volume, locating a node at the centroid of the element to store variables. CFX uses what is referred to as a Control Volume based Finite Element Method, which locates the center of the control volume at the element vertices and constructs the control volume by adding up the sectors of each element surrounding the vertex. This is also explained in detail in the theory documentation. Regards, Robin

 July 26, 2007, 10:10 Re: re: Double precision and grid quality #6 Wooster Guest   Posts: n/a That makes sense. I've seen where programs would use just the node as a control volume and others use some kind of edge. It's interesting to note the differences in CFD and how they handle the equations in relation to the nodes. thanks for the response guys. -W

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post [ANSYS Meshing] output precision gems ANSYS Meshing & Geometry 0 April 19, 2011 16:19 zaidhasany Main CFD Forum 3 March 1, 2011 10:15 Asghari FLUENT 0 January 31, 2007 14:14 lenson Siemens 8 August 25, 2006 10:15 cfd guy CFX 4 August 15, 2001 10:15