CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Negative Element Volume_Moving Wall (https://www.cfd-online.com/Forums/cfx/245155-negative-element-volume_moving-wall.html)

Jalathan September 18, 2022 06:40

Negative Element Volume_Moving Wall
 
5 Attachment(s)
Hello All,

I am currently running a simulation that creates a wave. In order to assess its force acting on a wall. In the pictures below, they show the mesh, blocking and other information of what my model looks like.

I am currently always faced with a negative element error. I looked in other forums, and it is not my equation since this equation works well with a reduced size model.

The reduced sized model was 20m length and the moving wall moves at 0.044m to create a 80mm wave height at a certain distance.
The size i am working with is 200m and the wall moves at 1.5m to create a 1m wave height.

I am assuming the problem is that the moving wall is folding the longer the simulation runs. Cause if i run the simulation for 20s, it is able to complete. But if i run it for 50s. The error occurs. I wish to be able to run at longer times for more accurate wave height information.

There are two parts of this model, the bigger block which is the Water Tank and the smaller back block is the wave maker.
The end wall of the wave maker is the moving wall.

I've tried changing the time steps, which did improve it by a bit, but even if i decrease it further. It would still cause an error.

I've tried refining the mesh, at the wave maker block, at the slope, at the water level. But they all worked at a certain extent. Then i tried combining both mesh refining and timesteps. It still wont work.

My latest attempt is combing the water level refinement and decrease in time step and they are currently running right now.
But time is running short, i have been running different scenarios for the past 2 months and still no luck.

There is also another picture of where the location of the error is. I used a monitor point to locate it. So i know it should be the moving wall. But i don't know much beyond meshing and timestep to help me at the moment.

Thank you

Jonathan

ghorrocks September 18, 2022 18:57

There is an FAQ on this exact topic: https://www.cfd-online.com/Wiki/Ansy..._went_wrong.3F

Try the different weightings suggested in the FAQ. Also the debugging tip should help you work on the issue much faster.

In my experience, moving mesh in CFX stretches a mesh nicely but it does not do a good job compressing a mesh as it frequently gives mesh folding errors. I used to do a lot of IC engine simulations: If I started the piston at bottom dead centre and compressed it the mesh always folded; but if I started at top dead centre and stretched it then it worked fine. This includes the next cycle where the piston returns to top dead centre, as long as I started from TDC it would work fine.

So my recommendation is to start your simulation in the location where the mesh is fully compressed and stretch it. Starting at fully extended and compressing it always leads to problems.

Jalathan October 2, 2022 20:53

Hello Ghorrocks,

Thank you so much for the reply and assistance. Apologize for the late reply as i thought it would be best to try out everything you suggested first.

From your recommendation, Yes, my moving wall starts from fully compressed and then it starts to expand.

So, my simulation has worked. But correct me if I say anything wrong since I'm not an ANSYS expert. But the problem with my simulation was because I had too many nodes and elements for the timestep i used. So, the more nodes and elements I have from my mesh, the more i have to decrease the time step. The more I decrease the timestep, the longer my simulation would take. So I didn't have the time to keep decreasing the time step and wait for the outcome. Since this simulation took around 6days to complete.

So what I did was, I decreased by meshing while at the same time trying not to compromise the quality of the mesh. Eg. 100metres = 1000 nodes. So I decreased it to around 750 or 500nodes. The quality would be at 0.998 and it would drop to 0.995. Which is fine, I guess.

Thank you for the assistance,

Blessed Week ahead

ghorrocks October 8, 2022 04:22

You should not guess when you set your mesh size. Getting it correct is critical. Too big and your results will be inaccurate, too small and your model will take forever to run (if you are lucky enough to have a machine big enough to run it at all).

You should do a mesh sensitivity check where you run your simulation, and then re-run it with the mesh element length halved (so 1 hex becomes 8). Compare the results of the two simulations - if they are the same within a tolerance you are happy with then the coarse mesh is OK to use. If the results are changing too much then refine it again and repeat until it does become accurate enough.

You will find most simulations require far finer meshes than inexperienced people expect.

Jalathan October 8, 2022 04:59

Hello Ghorrocks,

Thank you for that recommendation and noted. I will run a mesh sensitivity test as my current simulations are almost finished. Then I'll will use these results for comparison in the test.

Jalathan October 8, 2022 05:10

Hello Ghorrocks,

Thank you for that recommendation and noted. I will run a mesh sensitivity test as my current simulations are almost finished. Then I'll will use these results for comparison in the test.


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