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

[dRInterfaceLib] dynamicRefineFvMesh with two regions

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2017, 05:41
Default
  #21
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
No Comment. Find it out yourself » Click me «
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 17, 2017, 12:11
Default
  #22
New Member
 
Join Date: Mar 2016
Posts: 4
Rep Power: 10
maminow is on a distinguished road
Quote:
Originally Posted by Tobi View Post
No Comment. Find it out yourself » Click me «
Hi Tobias,
I solved the problem yesterday. My initial files were good. But, launching snappyHexMesh in parallel and reconstructing the mesh after that makes disappear cell levels. So, the dynamic refinement could not be applied on previously refined zones as I wanted.
Tobi likes this.
maminow is offline   Reply With Quote

Old   September 7, 2017, 05:54
Default Compile error
  #23
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 34
Rep Power: 10
indy07cz is on a distinguished road
Hello Tobi, I got an error when compiling in OpenFOAM-ESI-1706 environment (Ubuntu 16.04). Regarding to your web, it should works.

Code:
wmake libso (dynamicFvMesh)
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file dynamicInterfaceRefineFvMesh.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/triSurface/lnInclude -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/meshTools/lnInclude -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/dynamicMesh/lnInclude -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/finiteVolume/lnInclude -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/dynamicFvMesh/lnInclude -IlnInclude -I. -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/honza/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C -o Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C: In member function ‘virtual bool Foam::dynamicInterfaceRefineFvMesh::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const’:
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C:1662:9: error: ‘writeObjects’ is not a member of ‘Foam::dynamicFvMesh’
         dynamicFvMesh::writeObjects(fmt, ver, cmp)
         ^
/home/honza/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:28: návod pro cíl „Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o“ selhal
make: *** [Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o] Error 1
indy07cz is offline   Reply With Quote

Old   September 9, 2017, 13:14
Default
  #24
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
hey indy07
i am also using openfoam from ESI group. i am using openfoam v1612+ and you are using latest-v1706+.
to remove your error
do the following
go to dynamicinterfacerefinefvmesh.c file
in the last lines of the code. i don't remember the exact line..i will have to see which no exactly
you will find :writeobjects change it to writeobject
now compile. it will compile successfully
i am helping you because i manged to compile it successfully for my openfoam-v1612+ but unfortunately it didn't work as the same in 2.3.1
please let me know if it refines the interface only successfully.
compiling and working properly are two different things. so please post ur reply

meanwhile i have identified reasons why it doesnt work in openfoam-v1612+ and i am woring on it. been a bit busy with exams of late. i will try to make it work and we can help each other out if it doesn't work for your case
saddy is offline   Reply With Quote

Old   September 9, 2017, 13:17
Default
  #25
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

based on the fact that each version deviates, I just support the Foundation one. If one wants to re-build it for other foam versions, feel free to make a pull request in order to provide things for other versions too.

Based on the fact that I have no time right now and never used ESI version, I cannot give you any support.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 10, 2017, 01:28
Default
  #26
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
yes.. definitely. i will make a pull request once i succeed in making it work for ESI version.!!
thanks tobi for quick comment!!
saddy is offline   Reply With Quote

Old   September 11, 2017, 10:50
Default
  #27
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 34
Rep Power: 10
indy07cz is on a distinguished road
Well I got the same error on freshly compiled OpenFOAM-5.x version (openfoam.org). I tried saddy's approach and got even more errors.
indy07cz is offline   Reply With Quote

Old   September 11, 2017, 11:04
Default
  #28
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
It would be nice to show me your compiling error of a clean Foundation 5.x version and my library. Otherwise I cannot help you. Please (@all) provide more informations. It 's like, my lunch does not taste well, what did I do wrong?
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 11, 2017, 11:39
Default
  #29
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 34
Rep Power: 10
indy07cz is on a distinguished road
I downloaded and compiled OF-5.x according to process on their web (https://openfoam.org/download/source/). Then I followed instructions for your library compiling. I got this:
Quote:
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C: In member function ‘virtual bool Foam::dynamicInterfaceRefineFvMesh::writeObject(Fo am::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const’:
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C:1662:9: error: ‘writeObjects’ is not a member of ‘Foam::dynamicFvMesh’
dynamicFvMesh::writeObjects(fmt, ver, cmp)
^
/home/honza/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: návod pro cíl „Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o“ selhal
make: *** [Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o] Error 1
If i change writeObjects>writeObject in dynamicInterfaceRefineFvMesh.C a get this:
Quote:
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C: In member function ‘virtual bool Foam::dynamicInterfaceRefineFvMesh::writeObject(Fo am::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const’:
dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C:1662:49: error: no matching function for call to ‘Foam::dynamicInterfaceRefineFvMesh::writeObject(F oam::IOstream::streamFormat&, Foam::IOstream::versionNumber&, Foam::IOstream::compressionType&) const’
dynamicFvMesh::writeObject(fmt, ver, cmp)
^
In file included from /home/honza/OpenFOAM/OpenFOAM-5.x/src/dynamicFvMesh/lnInclude/dynamicFvMesh.H:39:0,
from dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.H:44,
from dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.C:26:
/home/honza/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMesh.H:362:26: note: candidate: virtual bool Foam::fvMesh::writeObject(Foam::IOstream::streamFo rmat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const
virtual bool writeObject
^
/home/honza/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMesh.H:362:26: note: candidate expects 4 arguments, 3 provided
/home/honza/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: návod pro cíl „Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o“ selhal
make: *** [Make/linux64GccDPInt32Opt/dynamicInterfaceRefineFvMesh/dynamicInterfaceRefineFvMesh.o] Error 1
Tobi likes this.
indy07cz is offline   Reply With Quote

Old   September 11, 2017, 12:45
Default
  #30
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Thank you very much for the report.

Resolved in commit 52500c5.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 11, 2017, 12:56
Default
  #31
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 34
Rep Power: 10
indy07cz is on a distinguished road
Thank you for the support. Now it compiled successfully (OF-5.x).
indy07cz is offline   Reply With Quote

Old   September 11, 2017, 13:05
Default
  #32
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
is it working as it's supposed to??
saddy is offline   Reply With Quote

Old   September 11, 2017, 14:03
Default
  #33
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 34
Rep Power: 10
indy07cz is on a distinguished road
Quote:
Originally Posted by saddy View Post
is it working as it's supposed to??
Well, now I don't have time to make any research. But in few days I'd like to compare results from spillway modeling based on fine static mesh and dynamic mesh.
indy07cz is offline   Reply With Quote

Old   September 12, 2017, 02:15
Default
  #34
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Yes it is working as expected. See here:

http://holzmann-cfd.de/index.php/en/dynamicinterfacerefinefvmesh-en
saddy likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 12, 2017, 08:35
Default
  #35
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
yes it's working...but...my interest lies in making it work for OPENFOAM ESI version.
hopefully i'll upload a video on that...
saddy is offline   Reply With Quote

Old   September 12, 2017, 08:40
Default
  #36
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
The failure during compilation (cf. above statements) is similar to the one we got in 5.x. Therefore, you should be able to compile it with ESI Foam +1706. Otherwise you just have to resolve the problems
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 12, 2017, 09:50
Default
  #37
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
i am not using openfoam -v 1706 i am using openfoam-v1612+ and its not working as its supposed to on my v1612+

there are several differences in code of foundation and ESI. here's a few of them i compared 2.3.1 and v1612+
https://drive.google.com/open?id=0B8...WIxTGJOR21iWVk

it will help for people who are using ESI version

thanks tobi
saddy is offline   Reply With Quote

Old   September 12, 2017, 09:57
Default
  #38
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Why you compare a ESI Version of 2016 with a Foundation Version of 2014 ? Last year we had OpenFOAM-3.x and 4.x. Or is it related to the fact that the lib was only available for 2.1.x.? Actually, copy the dynamicRefinementLib of the standard one and add the new functionality yourself. The repo can guide you. I am sorry that I did not provide the library for 3.x and 4.x
However, you made me smile patchI » patchi ...
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 12, 2017, 10:07
Default
  #39
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
actually it's a plain fact that my C++ is horrible and i don't understand openfoam c++ syntax.
i don't know how to add the functionality ?? ""repo can guide you" i have no idea
my approach is
Only 2.3.1 library at your repository was available -- no 5.0 version was there.
my understanding is to compare 2.3.1 and v1612+ ESI and identify all changes and add these to v1612+ and it should work

i am glad you find humour in this. but that's what happens due to my poor c++
saddy is offline   Reply With Quote

Old   September 14, 2017, 12:06
Default Axi-symmetry & dinamicRefineFvMesh
  #40
New Member
 
Lorena Fernández Fernández
Join Date: May 2016
Location: Spain
Posts: 21
Rep Power: 9
Lorena2fdez is on a distinguished road
Hi all,

I use this library to study the evolution of a droplet at rest. This is a very interesting tool for me, but the problem is that the volume of the drop increases progressively.

I check it and this problem only appears when I use this library and an axi-symmetric mesh (with an empty border and two patch wedges). And more exactly, I think, the reason is that the width of the cells is divided (see attached photo). Width (z-direction) should be 1 cell.

Do you know how to avoid this problem?

Thank you in advance

Lorena


Imagen_RefineMesh_AxiSymmetric.png
Lorena2fdez 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
[snappyHexMesh] multiple regions Tobi OpenFOAM Meshing & Mesh Conversion 56 March 29, 2020 04:53
[ANSYS Meshing] ICEM CFX Primitive Regions Appearing after Smoothing syble ANSYS Meshing & Geometry 1 July 29, 2016 16:29
[CAD formats] Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 06:51
Determining the calculation sequence of the regions in multe regions calculation peterhess OpenFOAM Running, Solving & CFD 4 March 9, 2016 03:07
chtMultiRegionFoam different properties in (fluid) region(s) volker1 OpenFOAM Pre-Processing 3 February 4, 2015 06:46


All times are GMT -4. The time now is 04:22.