|
[Sponsors] |
Confused about the current state of topology changes for dynamic grid |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 18 ![]() |
Hello Foamers,
So I have been looking into using openfoam to simulate a pillar like structure moving towards a wall sorta like a valve. for that I thought I would use pimpleFoam (formely known as pimpleDyMFoam) to do that. The movingCone tutorial is very compelling but it only squashes the grid, though for my particular example I reckon it would be interesting to squash the layers and remove them when they get too small. So I am looking for something that can move the mesh and also change the topology. After a bit of research it seems that the most popular solution for this is to use Sandeep Menon's dynamicTopoFvMesh (https://github.com/smenon/dynamicTopoFvMesh/tree/master), but that has not been updated since 2015. So my questions is whether there are already built in solutions in OpenFOAM 6 or v1906 and if so where should I look? Documentation and examples are appreciated. Thanks in advance. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 18 ![]() |
Alright.
Alas, no responses yet. In any case I have will be posting a test case here in a bit and I hope that motivates people to contribute with their insights. My objective will be to create a tutorial a document the current state of the topology modifying tools. Namely, I will be needing to add layers as the cells get too big and remove layers as the cells get too small. As far as I understand I will have to modify movingConeTopoFvMesh and generate my own class. Additionally, I have seen people mentioning rawTopoChangerFvMesh . I will also play with dynamicTopoFvMesh in OpenFOAM 7. Hopefully this will generate some documentation for future foamers. However, I would very much appreciate pointers and insights. Also, what is the deal with meshModifiers? In any case, I will be posting the test case later. Cheers |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 26 ![]() |
Hi Leonardo,
I stopped maintaining dynamicTopoFvMesh simply due to a lack of time, but I don't see any fundamental issues with porting it forward to OpenFOAM 7. I will say that it the class is restricted to tetrahedral meshes (or tri-prisms in 2D), but also the most general topology change engine out there. I wouldn't mind helping you out with the porting, so perhaps you could take the initiative and let me know if you spot any issues? We can then look into merging the changes into the repository. Thanks, Sandeep |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 18 ![]() |
Dear Sandeep,
thank you for your reply, I definitely interested in porting dynamicTopoFvMesh to OF7 and thank you for your offer of support. I was wondering if the reason for the lack of updates in your repo might have been due to the functionality of dynamicTopoFvMesh being natively implemented in OpenFOAM or something of the sort. In any case, I will get started with it next week and I will let you know if I find any issues. Cheers, |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 26 ![]() |
Very unlikely. I've stopped maintaining it, but someone can certainly port it, if they're inclined to do so.
|
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Senior Member
|
Quote:
I see topoChangerFvMesh and rawTopoChangerFvMesh in OpenFOAM-7 and OpenFOAM 2006, but I cannot find any tutorials using such topochangers. I wonder if you know some. |
||
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
|
I just want to model a value rotating irregularly (large angle) inside the domain, and the outer wall deforms at the same time. I use dynamicMotionSolverFvMesh to deform the internal nodes and solidBodyMotionSolver to rotate the value, but the mesh suffers huge distortion when the value rotates to some angle. So I think remeshing is needed to tackle this problem.
Do you have any other ways to get it run? |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
|
Quote:
Did you manage to compile dynamicTopoFvMesh on OF7 or OpenFOAMv1906 or later release? I tried to port it on OF7 but I am still stuck there after fixing a couple of compiling errors. Regards, Michael |
||
![]() |
![]() |
![]() |
![]() |
#10 | |
Senior Member
|
Quote:
I believer dynamicTopoFvMesh is still very useful and could solve my problem. I am trying to port the library to OF7, but cannot get it compiled successfuly. The following is the procedue I did: Code:
1. OpenFOAM 7 and Mesquite 2.3.0 have been installed. 2. Port-2.3.x was checked out accoring to the instuction https://github.com/smenon/dynamicTop....x/Install.txt by git clone https://github.com/smenon/dynamicTopoFvMesh <check-out directory> 3. Log file is generated by ./Allwmake. I wonder if you could take a look at the files and help me with the porting. Thank you! Michael |
||
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
|
I fixed more complile errors, but still cannot get it through. There are two more key errors remaining. The one in which I am stuck is the mappers (cell, patch, and surface) in conservativeMapFields.H. The error is "no matching function for call to" them.
I hope someone interested can have a look at the log file attached and shed some light. Foam::topoCellMapper::mapInternalField(const Foam::word&, const Foam::Field<Type2>&, Foam::Field<Type>&) const void mapInternalField ‘Foam::topoPatchMapper::mapFvPatchField(const Foam::word&, const Foam::fvPatchField<double>&) const’ bMap[patchI].mapFvPatchField ‘Foam::topoSurfaceMapper::mapInternalField(const Foam::word&, const FieldType&) const’ fMap.mapInternalField |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 05:21 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 00:58 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 06:27 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 08:56 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 12:02 |