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

Confused about the current state of topology changes for dynamic grid

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 12:31
Default Confused about the current state of topology changes for dynamic grid
  #1
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 56
Rep Power: 13
lhcamilo is on a distinguished road
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.
lhcamilo is offline   Reply With Quote

Old   July 17, 2019, 04:50
Default
  #2
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 56
Rep Power: 13
lhcamilo is on a distinguished road
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
lhcamilo is offline   Reply With Quote

Old   July 17, 2019, 10:16
Default
  #3
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 399
Rep Power: 20
deepsterblue will become famous soon enough
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
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   July 17, 2019, 11:41
Default
  #4
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 56
Rep Power: 13
lhcamilo is on a distinguished road
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,
lhcamilo is offline   Reply With Quote

Old   July 10, 2020, 18:59
Default
  #5
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
dynamicTopoFvMesh seems available in foam-extend 4.1. Is it going to be available in OpenFOAM 7 or the future version?
Michael@UW is offline   Reply With Quote

Old   July 10, 2020, 19:08
Default
  #6
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 399
Rep Power: 20
deepsterblue will become famous soon enough
Very unlikely. I've stopped maintaining it, but someone can certainly port it, if they're inclined to do so.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   July 10, 2020, 22:23
Default
  #7
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
Quote:
Originally Posted by deepsterblue View Post
Very unlikely. I've stopped maintaining it, but someone can certainly port it, if they're inclined to do so.
Bad news! Anyway thanks for your reply! I do not just wait for the new release hoping this dynamic solver. But it is really useful to many large movement cases! I do hope someone can port it to other forks. It takes time to modify my case if switching to foam-extend just to use dynamicTopoFvMesh.

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.
Michael@UW is offline   Reply With Quote

Old   July 10, 2020, 22:32
Default
  #8
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
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?
Michael@UW is offline   Reply With Quote

Old   July 16, 2020, 19:30
Default
  #9
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
Quote:
Originally Posted by lhcamilo View Post
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,
Hi Leonardo,

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
Michael@UW is offline   Reply With Quote

Old   July 16, 2020, 20:34
Default dynamicTopoFvMesh on OF7
  #10
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
Quote:
Originally Posted by lhcamilo View Post
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,
Dear Sandeep,

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 fixed a few of errors but stop at an error which I am not able to figure out. The log file and my solution are attached.

I wonder if you could take a look at the files and help me with the porting.


Thank you!

Michael
Attached Files
File Type: txt log.Allwmake.txt (49.3 KB, 0 views)
File Type: pdf dynamicTopoFvMesh compilation.pdf (135.1 KB, 0 views)
Michael@UW is offline   Reply With Quote

Old   July 21, 2020, 11:37
Default
  #11
Member
 
Join Date: Jan 2019
Posts: 84
Blog Entries: 1
Rep Power: 3
Michael@UW is on a distinguished road
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
Attached Files
File Type: pdf dynamicTopoFvMesh compilation 1.pdf (194.0 KB, 0 views)
File Type: txt log.Allwmake.1.txt (21.8 KB, 0 views)
Michael@UW is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 09:38.