CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] refine mesh based on skewness

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 07:01
Default refine mesh based on skewness
  #1
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Hi

I'm on simulation of an elastic square prism. Results are obtained to some time, then the solver (solids4Foam) crashes. The reason is that the highlighted cell(s) shown in the figure below becomes concave. (Note: Fluid region mesh is shown only.)
Is there any way for run-time mesh refinement according to skewness in order to figure out this difficulty?

regards
Ali
Attached Images
File Type: png elacticSquareInitialFar.png (6.9 KB, 21 views)
File Type: png elacticSquareStopFar.png (19.3 KB, 22 views)
File Type: png elacticSquareSuspectedCellInitial.png (3.6 KB, 18 views)
File Type: png elacticSquareSuspectedCellStop.png (8.8 KB, 21 views)

Last edited by amuzeshi; July 16, 2019 at 15:36.
amuzeshi is offline   Reply With Quote

Old   July 16, 2019, 07:46
Default
  #2
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
I know that the two classes dynamicMotionSolverFvMesh and dynamicRefineFvMesh can be combined into one class[1]. However, as it is needed to compile a new solver and initialize the skewness field in its *.H file, there remain two main problems:

1- As solids4Foam does not obey solver-oriented programming discipline in regular openfoam, where to declare skewness?

2- How to declare skewness as -to the best of my knowledge- it is not a volScalarField.

regards
Ali

Ref:
[1] Adaptive Mesh Refinement with a Moving Mesh using sprayDyMFoam

Last edited by wyldckat; August 3, 2019 at 21:53. Reason: fixed link
amuzeshi is offline   Reply With Quote

Old   July 17, 2019, 15:04
Default
  #3
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
I know that OpenFOAM defines skewness for faces, not for cells. But I want to refine the mesh based on a user-defined skewness:

cell skewness = max [ ( thetaMax - 90) / 90 , ( 90 - thetaMin) / 90]
amuzeshi is offline   Reply With Quote

Old   January 29, 2024, 06:15
Default
  #4
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Hi, have you been able to solve your problem? Is there anything you'd like to share?
Kind regards
ancolli is offline   Reply With Quote

Old   January 29, 2024, 12:17
Default
  #5
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by ancolli View Post
Hi, have you been able to solve your problem? Is there anything you'd like to share?
Kind regards

Hi
For a similar problem, I use manual re-meshing, so, when the simulation crashes, I start off the latest available time using a new mesh.
amuzeshi 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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
Coarsen and refine mesh in Pointwise raye_xie Pointwise & Gridgen 3 June 26, 2017 17:35
Skewness , Minimum Edge Length and Mesh Quality in FLuent ViLaks FLUENT 2 March 2, 2017 05:57


All times are GMT -4. The time now is 23:04.