|
[Sponsors] |
February 9, 2016, 10:11 |
Problems moving a ball - mesh crashes
|
#1 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
Hi,
I am for the first time venturing in to the unknown land of moving meshes. I have followed the tutorial 22 with the ball check valve. My first problem is a very simple one: I have a pipe with a ball in it. The ball doesn't fill out the pipe and water (or whatever other fluid I choose to use) can flow past it. I want to move the ball. First I created a steady state simulation with no movement to use as input for the transient. The transient model I set up more or less exactly like the ball check valve tutorial. The mesh is done by cutting as close as possible to the ball and doing multizone on the endpieces (theese should be able to deform quite a lot). The domain right around the ball is a tet-mesh. I specified that domain as a subdomain with moving mesh and the rigid body solution as the I run with quite small time steps (1E-5) and it crashes before I can see any movement of the ball, ie second time step. The negative elements occur in domain on the inlet side, not where they should be compressed. I am in doubt weather I should create stationary sub domains for the multizone regions. |
|
February 9, 2016, 17:47 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
FAQ: http://www.cfd-online.com/Wiki/Ansys..._went_wrong.3F
Is this a pre-defined motion or rigid body? |
|
February 10, 2016, 03:58 |
Rigid body
|
#3 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
This is a rigid body movement.
|
|
February 10, 2016, 06:55 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Try running an even smaller time step. Debugging is much easier if you can get a single time step done so you can see the motion.
Also - is the immersed solid model suitable for this application? It is much simpler and does not require remeshing. |
|
February 10, 2016, 09:05 |
four timesteps
|
#5 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
By lovering the velocity and the time step I managed to get four timesteps done (I get negativ elements in the fifth) done. I can now see the ball moving in the results file. Also now the negative element occurs on the side where the mesh is being compressed.
I assume I need to optimize the mesh I have an orthogonal angle of 33.9, expansion factor of 142 and an aspect ratio of 160. The majority of the "bad" elements are due to inflation layers. |
|
February 10, 2016, 18:19 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Don't forget about the mesh motion parameters like increase stiffness near walls. This can help keep inflation layers together.
|
|
February 12, 2016, 04:52 |
mesh stiffness
|
#7 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
Thanks a lot. I managed to get an orthogan angle of 38.1, an expansion factor of 49 and an aspect ratio of 99.
I have tried increasing the stiffness with a model exponent of 2 both near boundaries and at small volumes. The result is the same. What would you suggest having the model exponent at? |
|
February 12, 2016, 05:45 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
It is problem dependant. You have to try some values until you find one which works. Also look at the mesh motion diffusion variable as that can help see what is going on.
But in my experience problems like this are a sign that the meshing for mesh motion is not defined well. Can you show an image of how you have meshed this and what motion you expect to see? |
|
February 12, 2016, 06:00 |
picture of mesh
|
#9 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
I have created an Imgur album http://imgur.com/a/1hcit
Also; where do I find the mesh motion diffusion variable. I haven't heard about that one before? |
|
February 13, 2016, 06:06 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
You will have more success with this I suspect if you make the inflation mesh/tet region region move with the sphere rigidly, and the extruded mesh on the left and right stretch to do your motion. It is much easier to keep extruded meshes working in mesh motion than inflation or tet meshes.
|
|
February 15, 2016, 03:12 |
|
#11 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
The tet mesh moves with the rigid body. The multizone mesh (is that what you call extruded mesh?) how do I get that to stretch if not just by "letting it be". Do I need to have no inflation on the multizone?
|
|
February 15, 2016, 04:14 |
|
#12 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
I just tried taking the inflation layers off on the whole geometry, this is not perfect obviously, but it is now running on the 11'th iteration, so it did fix something.
|
|
February 15, 2016, 05:32 |
|
#13 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Have a close look at the mesh as it is running. You will probably see large mesh deformations in the same region the other mesh was failing at.
|
|
February 15, 2016, 05:34 |
|
#14 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
How do I look at the mesh deformation while it is running?
I crashed after 13 iterations |
|
February 15, 2016, 05:44 |
|
#15 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
Another problem:
When I want to visualize the movement of the ball I don't see any movement until the last timestep (the one that crashes) This is true for all of the runs. |
|
February 15, 2016, 07:06 |
|
#16 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Quoting from the FAQ (http://www.cfd-online.com/Wiki/Ansys...ent_wrong.3F):
Quote:
|
||
February 15, 2016, 07:18 |
|
#17 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
I have the same velocity and mass for the ball as in the tutorial I was following. I was monitoring the mass flow and that looks fine. Will try to monitor the velocities as well.
|
|
February 15, 2016, 09:04 |
|
#18 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
I can't seem to get it to plot the mesh while solving? It just shows the monitors as normal.
|
|
February 16, 2016, 00:36 |
|
#19 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
You have to load the results files in the post processor. They are not shown as the simulation progresses
|
|
February 16, 2016, 03:20 |
|
#20 |
New Member
Line Bergmann
Join Date: Sep 2013
Posts: 20
Rep Power: 13 |
I am not sure if I managed to plot the mesh or what I did here. If I did it does not compress the mesh in the mapped regions.
I showed the regions and picked "Draw as lines" under Render. I have created another album with the snaps http://imgur.com/a/TdM8V Thank you so much for all your help. I feel completely hopeless at this. |
|
Tags |
moving mesh. |
|
|
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 08:34 |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 04:19 |
Moving mesh still crashes in parallel in 1.6-ext | paul b | OpenFOAM Running, Solving & CFD | 36 | February 17, 2014 09:35 |
Question on InterFoam moving mesh capabilities | ziv | OpenFOAM Running, Solving & CFD | 0 | April 23, 2008 10:11 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |