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

3D gradient computation on unstructred Tet Grid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2020, 07:58
Default 3D gradient computation on unstructred Tet Grid
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
dear sir:
I compute the gradient of a physical field "T=sin(3x)*cos(3y)" in a 3d cube with unstructued Tet grid. The gradient of T in z direction should be exactly 0. But the results shown that the absolution error are at the order of -3 and -4.
I want to know how to obtain an accurate results in Tet Grdis.
Regadrs
ztdep is offline   Reply With Quote

Old   January 12, 2020, 11:11
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
What method are you using and what other methods can you use in alternative?

However, the absolute error means nothing. You need to refine the grid and see how the error goes down. If you already have a 2nd order method there is probably little you can do to improve it on general unstructured grids
sbaffini is offline   Reply With Quote

Old   January 12, 2020, 11:50
Default
  #3
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by sbaffini View Post
What method are you using and what other methods can you use in alternative?

However, the absolute error means nothing. You need to refine the grid and see how the error goes down. If you already have a 2nd order method there is probably little you can do to improve it on general unstructured grids
Thanks i use least square method. the average error doesn't decrease any more as i refine the mesh.
ztdep is offline   Reply With Quote

Old   January 12, 2020, 11:56
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
You should try to define better "average error" as well as the gradient method (weighted or not? Using the normal equations, QR factorization or a numerical solution for the gradient system?), but there seems to be a problem here, as the LSQ method should be first order on arbitrary grids.

Maybe check that the bc are properly taken into account.

I'm assuming you are using a cell centered finite volume framework
sbaffini is offline   Reply With Quote

Old   January 12, 2020, 12:44
Default
  #5
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by sbaffini View Post
You should try to define better "average error" as well as the gradient method (weighted or not? Using the normal equations, QR factorization or a numerical solution for the gradient system?), but there seems to be a problem here, as the LSQ method should be first order on arbitrary grids.

Maybe check that the bc are properly taken into account.

I'm assuming you are using a cell centered finite volume framework
ok,thanks. I have tried to use a prism grid. it can give very accurate results.
Maybe ,3d Tet grid has some limitations.
ztdep is offline   Reply With Quote

Old   January 12, 2020, 12:50
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
The weighted least squares method should be first order accurate on a tetrahedral grid.

Of course, we are talking about non pathological, quite regular grids. Otherwise, the method has well known issues in some specific cases (just google it and you will find the papers mentioning it)
sbaffini is offline   Reply With Quote

Old   January 12, 2020, 12:55
Default
  #7
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
This is the first obvious reference on the topic https://www.google.com/url?sa=t&sour...-UZu_RijfOfWtd
sbaffini 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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Keeps velocity gradient information available during computation Taozi OpenFOAM Programming & Development 0 April 9, 2015 13:25
leastSquares gradient on tet meshes deepsterblue OpenFOAM Bugs 1 June 4, 2010 18:23
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 12:18


All times are GMT -4. The time now is 12:25.