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

[Other] Modify mesh runtime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2010, 09:02
Default Modify mesh runtime
  #1
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Hi
I'm simulating a evolutive case. My initial domain is a rectangle 2d and the shape of the bottom is a gaussian. At each temporal step the bottom modify its shape, How can I modify the mesh quickly at each time step?

Thanks
Daniele111 is offline   Reply With Quote

Old   June 21, 2010, 10:11
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Simple. Use the mesh-motion solver to move points at each time step. Take a look at icoDyMFoam and its multiple variants.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   June 21, 2010, 10:54
Default
  #3
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
thanks
Uhm the coordinates of new point are calculated with matlab. I can use icoDyMFoam?
Daniele111 is offline   Reply With Quote

Old   June 21, 2010, 10:59
Default
  #4
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
I don't see why not. I would write a function in C++ that replicates the matlab code to define boundary point-positions, and pass that into the mesh-motion solver to let it deal with internal ones. There's a ton of code-snippets in the forum that deal with this situation.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   June 21, 2010, 20:37
Default
  #5
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
I can use it with simpleFoam?
Daniele111 is offline   Reply With Quote

Old   June 21, 2010, 20:55
Default
  #6
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
I don't understand well how work it. In my problem matlab simulate a process and inside it (for cycle) I call OpenFoam to calculate shear stress, the new shape of the bottom is result of matlab script, I would modify old vertex mesh into the new one, and recalculate the new shear stress with openfoam etc...
Daniele111 is offline   Reply With Quote

Old   October 11, 2010, 05:29
Default
  #7
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
hi
I'm using simpleFoam for my simulation couple with a matlab script. I do a simulation with openfoam and I use its result for matlab script that update the geometry. How can I modify my mesh without remeshing to start a new simulation? I use a fluent mesh. It is a evolutive simulation coupled with matlab, and during the simulation change only the bottom shape.

Thanks
Daniele111 is offline   Reply With Quote

Old   October 12, 2010, 15:18
Default
  #8
New Member
 
Sina
Join Date: May 2010
Posts: 7
Rep Power: 16
shajitah is on a distinguished road
Dear Daniele,

As far as I've realized, you've written a script in Linux which calls OpenFOAM. I'm gonna do a similar job. Actually, I'm supposed to write an algorithm in C++ or Matlab which one part of it deals with CFD calculations in which it needs to call OpenFOAM. I was wondering if you could please provide me a sample code/script (in any language) which calls OpenFOAM or a tutorial which might help me sort out the way of calling OpenFOAM.

Cheers,
Sina
shajitah is offline   Reply With Quote

Old   December 19, 2010, 16:43
Default
  #9
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Hi
What kind of command i must use to update my geometry. My situation is this:
1) Matlab script -> new bottom geometry
2) Update OpenFoam mesh with new bottom
3)OpenFoam simulation-> result go to matlab
loop

So Can i update OpenFoam mesh? Matlab script give me new vertex position of the mesh bottom.
Help me!

Daniele
Daniele111 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 06:38
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 06:03
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
Modify my mesh runtime Daniele111 OpenFOAM Running, Solving & CFD 0 October 9, 2010 08:23


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