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

How can I use dynamic mesh in the expansion area of the pipe that has a narrow?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2020, 07:12
Post How can I use dynamic mesh in the expansion area of the pipe that has a narrow?
  #1
New Member
 
Puchanee Larpruenrudee
Join Date: Aug 2020
Posts: 1
Rep Power: 0
Puchanee is on a distinguished road
Hello,

I'm trying to run the simulation of a pipe by using dynamic mesh only at a narrow area that has the expanded condition. As following picture

P1.jpg

Then I've tried to find a similar case to write a UDF code and found a case that has expanded condition. I tried to adapt a UDF code for my case but I faced the problems while setting up the data

During compiled: fatal error LNK1104: cannot open file 'libudf.dll'
During preview mesh motion: Update-Dynamic-Mesh failed. Negative cell volume detected.

And following is my UDF code:
Bifurcation.c

As I don't have any experience of using dynamic mesh, and I think that it should be something wrong with my UDF code but I don't know how to fix it. Therefore, could anyone please give me a suggestion or guide me for this problem? I really appreciate all your kindness.
Puchanee is offline   Reply With Quote

Old   August 19, 2020, 01:29
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
was
Code:
  alpha = CURRENT_TIME;
to be
Code:
  alpha = time;
cause you have time already (defined in DEFINE_GRID_MOTION function header)

everything else looks good.
Are you sure you've compiled code?

If doesnt work, simplify "update" part of your code, for example
Code:
          if (NODE_POS_NEED_UPDATE (node_p))
            {
              NODE_POS_UPDATED (node_p);

		 NODE_Y (node_p) = 0.01;
            }
so you can check if the problem is in your coordinate dependencies or not
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
2dimentional, 3dimensional, dynamic meshing, pipe expansion


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
Dynamic gradient mesh adaption not working properly MarkelRF FLUENT 0 August 28, 2018 05:19
Dynamic mesh using profile sanjeetlimbu Fluent Multiphase 3 April 19, 2018 09:49
Local mesh refinement definition in a DEFORMING dynamic mesh zone using Dynamic Mesh Emanuele88 FLUENT 0 February 9, 2016 11:39
[ANSYS Meshing] slice to hexa mesh the expansion pipe? junz ANSYS Meshing & Geometry 1 November 2, 2014 21:44
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 13:41.