|
[Sponsors] |
[dRInterfaceLib] dynamicRefineFvMesh with two regions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 17, 2017, 13:11 |
|
#22 | |
New Member
Join Date: Mar 2016
Posts: 4
Rep Power: 10 |
Quote:
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. |
||
September 7, 2017, 06:54 |
Compile error
|
#23 |
Member
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10 |
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 |
|
September 9, 2017, 14:14 |
|
#24 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
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 |
|
September 9, 2017, 14:17 |
|
#25 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
September 10, 2017, 02:28 |
|
#26 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
yes.. definitely. i will make a pull request once i succeed in making it work for ESI version.!!
thanks tobi for quick comment!! |
|
September 11, 2017, 11:50 |
|
#27 |
Member
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10 |
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.
|
|
September 11, 2017, 12:04 |
|
#28 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
September 11, 2017, 12:39 |
|
#29 | ||
Member
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10 |
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:
Quote:
|
|||
September 11, 2017, 13:56 |
|
#31 |
Member
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10 |
Thank you for the support. Now it compiled successfully (OF-5.x).
|
|
September 11, 2017, 14:05 |
|
#32 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
is it working as it's supposed to??
|
|
September 11, 2017, 15:03 |
|
#33 |
Member
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10 |
||
September 12, 2017, 03:15 |
|
#34 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Yes it is working as expected. See here:
http://holzmann-cfd.de/index.php/en/dynamicinterfacerefinefvmesh-en
__________________
Keep foaming, Tobias Holzmann |
|
September 12, 2017, 09:35 |
|
#35 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
yes it's working...but...my interest lies in making it work for OPENFOAM ESI version.
hopefully i'll upload a video on that... |
|
September 12, 2017, 09:40 |
|
#36 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
September 12, 2017, 10:50 |
|
#37 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
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 |
|
September 12, 2017, 10:57 |
|
#38 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
September 12, 2017, 11:07 |
|
#39 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
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++ |
|
September 14, 2017, 13:06 |
Axi-symmetry & dinamicRefineFvMesh
|
#40 |
New Member
Lorena Fernández Fernández
Join Date: May 2016
Location: Spain
Posts: 21
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] multiple regions | Tobi | OpenFOAM Meshing & Mesh Conversion | 56 | March 29, 2020 05:53 |
[ANSYS Meshing] ICEM CFX Primitive Regions Appearing after Smoothing | syble | ANSYS Meshing & Geometry | 1 | July 29, 2016 17:29 |
[CAD formats] Clean / Repair STL file with multiple regions on command line | matthiasd | OpenFOAM Meshing & Mesh Conversion | 6 | May 24, 2016 07:51 |
Determining the calculation sequence of the regions in multe regions calculation | peterhess | OpenFOAM Running, Solving & CFD | 4 | March 9, 2016 04:07 |
chtMultiRegionFoam different properties in (fluid) region(s) | volker1 | OpenFOAM Pre-Processing | 3 | February 4, 2015 07:46 |