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

Mesh Disappering with Dynamic Mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2021, 18:26
Post Mesh Disappering with Dynamic Mesh
  #1
New Member
 
Farouk
Join Date: Jul 2020
Posts: 11
Rep Power: 6
FaroukH is on a distinguished road
Hello Everyone,

I am simulating somewhat of a unique dynamic mesh using ANSYS fluent 2019 R3, therefore I have had trouble referencing tutorials online and the user guide I had available didn't fully get into the details of the many parameters under mesh methods. I am referencing a previous work to recreate the following conditions, but it is not fully documented.

Basically, I am simulating a 2D symmetric nozzle that has a needle through it with a highly viscous flow (laminar). The needle moves up and down the nozzle with a sin velocity profile and a frequence of 100 Hz. The maximum displacement is 7 µm. Named sections, the geometry, and my meshing can be viewd in the attached images.

I am using a UDF and ansys in serial mode (parallel processors set to 0) for now. When I display mesh motion, I can observe the wall that is set to move actually oscillates as it is supposed to when using the gernal time and not a reference to flow time.

UDF code with the volocity:

Code:
#include "udf.h"
#include "dynamesh_tools.h" 

DEFINE_CG_MOTION(needle_velocity, dt, cg_vel, cg_omega, time, dtime)
{
	
	//double t = RG_Get_Double("flow-time");
	cg_vel[0] = sin(2.0*M_PI*100.0*time)*0.0007*M_PI;
	cg_vel[1] = 0;
	cg_vel[2] = 0;

	cg_omega[0] = 0;
	cg_omega[1] = 0;
	cg_omega[2] = 0;
}
One thing about this UDF is my use of the currect time. Is that right? Since if I choose the flow time, the rigid body motion just moves forward and does not oscillate.

As for the dynamic mesh settings:
  • tme step: 0.0001 s
  • smoothing: diffusion (with a diffusion parameter of 0 and up to 250 iterations)
  • layering: off
  • Rmeshing: local cell (wihth defaul length scale parameretrs)
  • Minimum length scale (m): 6e-8
  • Maximum length scale (m): 5e-5

I set the interior to also be deforming and I am not sure if that is correct. My mesh is fine and with good skewness and orthogonal quality, as well as aspect ratio. The simulation runs with no issues without dynamic meshing. But once I implement dynamic meshing, the mesh disappears and minimal orthogonal quality goes to zero. I tried with a much coarser mesh and I still get the issues. Also, I get the warning that left handed faces are derected in the console.

The issues that I think migh be causing this:
  • Incorrect dynamic mesh zones
  • Incorrect mesh methods
  • Mesh is too fine for the gien time step and settings (18 k cells)

If you follow the image of the mesh that I provided, the following are the settings for my dynamic mesh zones:
  • Interior - deforming
  • Moving needle wall - rigid body (moving with UDF)
  • nozzle wall - stationary
  • symmetry - deforming
  • top needle wall - deforming

I left out the refinement zones that I created and the borders that they have to the rest of the zones. I also defined my interior with a named section, could that be causing an issue too?

I know this is a lot, but I would also appreaciate some guidance in the right direction with some best practices when it comes to dynamic meshing.

Thank You,
Farouk
Attached Images
File Type: jpg Named Sections.jpg (62.1 KB, 3 views)
File Type: jpg Mesh.jpg (64.8 KB, 3 views)
FaroukH is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 14:41
Dynamic Mesh on Pintle type injector. herntan FLUENT 16 September 4, 2020 08:27
Sliding / Dynamic Mesh in heat transfer problem platzhalter FLUENT 0 May 7, 2018 05:25
[ICEM] Dynamic mesh setup with ICEM David121284 ANSYS Meshing & Geometry 0 April 11, 2014 04:19
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09


All times are GMT -4. The time now is 10:53.