Add / remove cell layers (dynamic mesh)
Hello!
I am a beginner in OpenFoam and would be very glad to get some additional information for my questions. I am studying dynamic mesh moving in OpenFoam. I want to add / remove mesh layers instead of changing the mesh size. I studied the movingConeTopo tutorial, but I am working with OpenFoam v.2.2, the tutorial was created with version 1.5. Can somebody send me a tutorial case for add / remove cell layers or give me an idea of what the case should look like. I tried: 1) set up a mesh with blockMesh Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
Create mesh for time = 0 Best regards, Christoph |
movingConeTopo tutorial
Hi Christoph,
I've currently started looking into this topic as well. I would like to know if you've managed to get anything out of it. From what I've seen, the moving topo libraries have been marked redundant since 1.6 or 1.7 version and I did find a post from Prof. Jasak mentioniong the addLayer classes need to be implemented into whatever solver you're working on. For the moment I cannot even seem to find the movingConeTopo tutorial, I would really appreciate it if you could post the tutorial with layer addition :) Thanks. |
Hi!
You might want to check out foam-extend-3.0 (http://www.extend-project.de/the-extend-project) . In foam-extend the movingConeTopo tutorial can be found. It works only in foam-extend, maybe you can port it to OF 2.3.0. The version of the library can be adapt to different setups by using the setSet command. When I have time, I want to try to implement the library in OF 2.3. Maybe we can stay in contact and exchange our results. Best regards, Christoph |
1 Attachment(s)
Hi Christoph,
Thanks for the reply and sorry I could couldn't get back to you earlier. I got Extends 3.0 installed and looked at the tutorial, finally. I am not sure where I'm heading with this because I'm trying to test out injection modelling and I might have to scrap the project if I don't progress within the next few weeks, otherwise I would also be interested in importing this to OpenFOAM 2+ I've attached an image from the tutorial I am working on, I'll try to post the tutorial when I have the computer with me. I'm trying to move the empty space from right to left, adding layers along the red line. This is supposed to signify an injector nozzle. The layer addition seems to work in a rectangular surface when the two thin mesh layers are defined as moving zones but not if I want it described as in the picutre with zone 1 moving and zone two being fixed, the patch between the two zones being my layer addition patch. Do you have any idea for this? Do you know if sliding interface can be combined with layer addition? Thanks, Ishan (P.S. used a fake name because of company policy while doing my thesis, and I cannot find the option to change it back :) ) |
3 Attachment(s)
basicWorking is movingConeTopo except for slight geometry modification.
fixedZone is the same as above where I have separated the movingZone into two parts. One that moves and one that is fixed, the moving layer is between these two sets and I would ideally like to produce the dynamic cell layer addition here. sample2Dcase is my actual 2D example, where the solid body needs to move away from the cylinder side while introducing dynamic cell layer addition. Is this even possible? (All of these were created with OpenFOAM extends project 3.0) |
Hi,
did you manage to do the cell layer addition? I'm trying to do something similar. Could you share how you did it? |
Unfortunately I couldn't go further than that.
|
Hi, Frank,
Hope you have figured it out. I have the same problem as you faced. Could you share a case as a tutorial if you have figured it out? Thank you. Joe Quote:
|
For movingCone, you should have a look at the source code for it in src/topoChangerFvMesh/movingConeTopoFvMesh/movingConeTopoFvMesh.C
This moving mesh class is very specific and requires that the faces you want to remove/add lie in a specific x plane, and that you are only moving in the x plane. If you want to do custom layerAR, you will need to make your on mesh class. |
Add/ remove cell layers
Now I found that the moving cell is actually as it is and it is only that the cell in front will be added or deleted according to the min and max thickness provided in the dynamicMeshDict. Is there any other way to deform the moving cell as well? Since the movingcell is a part of the computational domain, wont it affect the solution?
|
All times are GMT -4. The time now is 17:18. |