CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Why does the mesh disappear after 'preview mesh motion'?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2018, 06:25
Question Why does the mesh disappear after 'preview mesh motion'?
  #1
New Member
 
Join Date: Apr 2017
Posts: 20
Rep Power: 9
dengdeng is on a distinguished road
Hi,

I am simulating a case with a deforming plate in Fluent. The deformation of the boundary is realized by a UDF of DEFINE_GEOM, which is already built and compiled successfully.

At the very beginning, I worked with the following mesh:


The UDF is proved to be OK as the Preview Mesh Motion icon being clicked. However, as the zoomed-in view shown on the right side of this image, the mesh edge adjacent to the trailing edge point of the deforming plate also inclined with it, which is originally expected to be unmoved. (The inclined edge is marked with yellow line, and the plate with white line. The red dashed line represents the original position of the mesh. The same problem also happened to the leading edge region)

To avoid this unexpected motion of the adjacent grid, I improved the structure of my mesh by introducing interfaces like this:


Well, this time, a rather serious problem occurs that the mesh disappears as Preview Mesh Motion executed:

and there's no use to display all surfaces through Mesh display.

Has anyone met with similar problems before? Any suggestion is appreciated.

Thank you.

Last edited by dengdeng; September 14, 2018 at 08:51.
dengdeng is offline   Reply With Quote

Old   September 14, 2018, 08:49
Default
  #2
New Member
 
Join Date: Apr 2017
Posts: 20
Rep Power: 9
dengdeng is on a distinguished road
It seems I failed to upload the pictures. Anyway, the images mentioned are:

https://wx4.sinaimg.cn/large/9c7300f...20n10fd76g.jpg

https://wx3.sinaimg.cn/large/9c7300f...20np0eu77k.jpg

https://wx2.sinaimg.cn/large/9c7300f...20kz0guq3f.jpg

Please let me know if you can not acess the pictures, thanks.
dengdeng is offline   Reply With Quote

Old   September 17, 2018, 22:44
Default
  #3
New Member
 
Join Date: Apr 2017
Posts: 20
Rep Power: 9
dengdeng is on a distinguished road
Well, the problem has been solved by changing the expression of my UDF. Originally, I defined the variable time like this:
Code:
real time = CURRENT_TIME;
Then my colleague helped to redefine it as:
Code:
double t =  RP_Get_Real("flow-time");
I do not know the exact reason though, this modification does work well.
dengdeng is offline   Reply With Quote

Old   September 18, 2018, 01:39
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
You have changed the variable from "time" to "t", which makes the difference. The macro expansion for CURRENT_TIME is nothing but "RP_Get_Double("flow-time")".
blackmask is offline   Reply With Quote

Reply

Tags
define_geom, dynamic mesh


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
Possible to preview mesh motion in RBM? EDE16 STAR-CCM+ 2 July 25, 2016 07:42
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
Different zone motion and mesh motion preview aamer FLUENT 5 September 24, 2012 14:58
very fragile mesh motion on SnappyHexMesh generated mesh matteoL OpenFOAM Running, Solving & CFD 0 April 14, 2012 14:51


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