CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

mesh compressing

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 14, 2012, 12:11
Default mesh compressing
  #1
Member
 
Join Date: Nov 2010
Posts: 30
Rep Power: 6
natalie is on a distinguished road
Hello everyone!

I'm trying to simulate the compression of domain using ANSYS CFX.

Mesh deforms with time/ But very soon the elements penetrate in each other and solution crashes.
I've found an example of such kind of simulation: http://simutechny.blogspot.com/2010/...g-wall-in.html

And the author of simulation uses there InterpolationLocation user-function. And this function seems to be the thing that makes the solution work correctly. But i can't exactly understand, what it does.

Has anyone the experience in such kinds of simulations?

Any help would be a great support for me.

Thanks in advance
natalie is offline   Reply With Quote

Old   October 14, 2012, 18:08
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
The CFX moving mesh uses laplacian smoothing to convert a boundary motion to motion of the entire mesh. When the boundaries compress the mesh this can lead to mesh elements turning inside out.

There have been zillions of posts on this on the forum over the years. Have a search for them.

But the issue is very problem dependant - there are many different approaches to help and which is best depends on what you are modelling. Can you post an image and a description of what you are modelling?
ghorrocks is offline   Reply With Quote

Old   October 15, 2012, 01:15
Default
  #3
Member
 
Join Date: Nov 2010
Posts: 30
Rep Power: 6
natalie is on a distinguished road
in fact, i just want to compress the cylindrical tube alond radius with time. The speed of compression depends on flow properties and is not known beforehand. It should decrease in volume almost 5 times.

i've read posts. and i haven't found the proper answer for my situation.


thanks a lot for your help
natalie is offline   Reply With Quote

Old   October 15, 2012, 05:19
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
This might work with the existing mesh smoothing but it is always risky compressing the mesh down. If you cannot get it to work then prescribe the mesh motion with a fortran subroutine and then you should be able to define the mesh to scale with the motion and it will not fold. But I would only do the fortran approach when you are certain the built in smoothing will not work for you.
ghorrocks is offline   Reply With Quote

Old   October 15, 2012, 07:30
Default
  #5
Member
 
Join Date: Nov 2010
Posts: 30
Rep Power: 6
natalie is on a distinguished road
thanks a lot for your answer.
But, as i've understood, fortran routines are available only for predefined mesh compression. Mine is not known beforehand. Is it possible to describe this type of motion with fortran subroutines?
natalie is offline   Reply With Quote

Old   October 15, 2012, 17:25
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
No, fortran routines can be made to define any mesh motion. The example is a simple one where it just reads in a pre-defined mesh and uses that. But you can adapt that so that it radially scales the mesh under the control of some parameter.
ghorrocks is offline   Reply With Quote

Old   October 16, 2012, 01:52
Default
  #7
Member
 
Join Date: Nov 2010
Posts: 30
Rep Power: 6
natalie is on a distinguished road
Thanks a lot for your answer, Glenn.
Is there anywhere an example of using fortran routines not for pre-defined mesh motion. And some other examples of using fortran routines except those ones from tutorials?
natalie is offline   Reply With Quote

Old   October 16, 2012, 06:31
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
CFX support probably has some examples. But the concept is simple - rather than reading in a new mesh and writing it to the solver, you read the existing mesh, transform it and write it back to the solver. However getting the function calls to get the current mesh might take some digging (I do not know it, I do not know CFX fortran very well as it is rarely required).
ghorrocks is offline   Reply With Quote

Old   October 16, 2012, 07:05
Default
  #9
Member
 
Join Date: Nov 2010
Posts: 30
Rep Power: 6
natalie is on a distinguished road
Thank you very much for all your help, Glenn!
natalie is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 39 June 5, 2013 19:02
Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 06:30
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 05:49


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