CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Modification of a mesh during runtime

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By eysteinn
  • 1 Post By eysteinn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2013, 08:12
Default Modification of a mesh during runtime
  #1
New Member
 
Daniel Leichtle
Join Date: Aug 2013
Posts: 6
Rep Power: 12
Scofield is on a distinguished road
Hey all,

i am searching for a functionality in OpenFoam to modify a mesh during runtime of my simulation. The modification should be read in the next time step.

Does anyone know if there exists a functionality for my problem?

Remark:
Using the dynamic mesh functionality, the informations (time and movement) for modifying a mesh have to be defined already in the preprocessing step. It not allows a modification during runtime as far as I know.

Thanks in advance!
Regards,
Daniel
Scofield is offline   Reply With Quote

Old   October 4, 2013, 12:29
Default
  #2
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 15
zhengzh5 is on a distinguished road
Quote:
Originally Posted by Scofield View Post
Hey all,

i am searching for a functionality in OpenFoam to modify a mesh during runtime of my simulation. The modification should be read in the next time step.

Does anyone know if there exists a functionality for my problem?

Remark:
Using the dynamic mesh functionality, the informations (time and movement) for modifying a mesh have to be defined already in the preprocessing step. It not allows a modification during runtime as far as I know.

Thanks in advance!
Regards,
Daniel
hey, as far as i know, there isn't that function. and I do have one quick question, do you want the solver to calculate the new shape, morph it, and do more calculations, like a shape optimization problem?
zhengzh5 is offline   Reply With Quote

Old   October 8, 2013, 06:01
Default
  #3
New Member
 
Daniel Leichtle
Join Date: Aug 2013
Posts: 6
Rep Power: 12
Scofield is on a distinguished road
Thanks zhengzh5 for your response.
When I modify my mesh, i just want that the simulation continues with the modified mesh. I intend to prescribe how the mesh should be modified, so the solver does not have to calculate a specific shape.
Scofield is offline   Reply With Quote

Old   October 8, 2013, 07:03
Default
  #4
Member
 
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 16
eysteinn is on a distinguished road
I'm not sure what your goal is here. I'm guessing modification of the surface nodes
and then propagating the motion into the domain?

Here are some nice tutorials on how you can modify your mesh
Tutorial 1
Tutorial 2

or maybe you want to change the topology while running?, then you can take a look at this one

There are some other tutorials that you can find here
and changing the year in the url will reveal some more.

/Eysteinn
happydogy and Behzad Taghilou like this.
eysteinn is offline   Reply With Quote

Old   October 8, 2013, 09:11
Default
  #5
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
well I think I am trying to do the same and have a similar question.

What I want to do is, for example:

at time t :

calculation will be performed on the current mesh and then the mesh will be moved. After that, according to a criterion (e.g skewness), the moved mesh will be refined and data from older mesh will be mapped on the new mesh.

at the end, the next time ( t+ delt_t) starts on the final mesh.

Is there any functionality already implemented to do this?

regards
Daniel_Khazaei is offline   Reply With Quote

Old   October 8, 2013, 09:44
Default
  #6
Member
 
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 16
eysteinn is on a distinguished road
Quote:
Originally Posted by Daniel_Khazaei View Post
well I think I am trying to do the same and have a similar question.

What I want to do is, for example:

at time t :

calculation will be performed on the current mesh and then the mesh will be moved. After that, according to a criterion (e.g skewness), the moved mesh will be refined and data from older mesh will be mapped on the new mesh.

at the end, the next time ( t+ delt_t) starts on the final mesh.

Is there any functionality already implemented to do this?

regards
There is no one solver or utility that I know of that does this all.
There are tools that do each one of those things, and then it is a question of
combining them. You should be able to do this for a single processor by modifying
the solver you want to use and running the different utilities from there.

Maybe someone else here has a better suggestion?

/Eysteinn
Daniel_Khazaei likes this.
eysteinn is offline   Reply With Quote

Old   October 15, 2013, 12:49
Default
  #7
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 15
zhengzh5 is on a distinguished road
if you have all the mesh ready for different time steps, I would just write a bash script to call the solver, map the fields from old mesh to new mesh and continue with the calculation.
zhengzh5 is offline   Reply With Quote

Reply


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 05:03
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


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