tjliang |
August 14, 2022 14:18 |
Code for OF-7
Quote:
Originally Posted by Luca Cornolti
(Post 703369)
Dear all,
after some time I was able to work again on this topic and I completed a class which is able to refine 2D cases for both planar and axis symmetric (wedge) configurations.
Attached you can find the developed classes for OpenFOAM-6, foam-extend-4.0 and OpenFOAM-v1806.
The folders are arranged to be copied into the user directory ($WM_PROJECT_USER_DIR).
In the OpenFOAM-6 version there are also two tests for planar and wedge configurations.
I tested quite extensively the foam-extend-4.0 version.
The OpenFOAM-6 version should work as well as the code is almost the same, but I tested it only with the attached two tests as I don’t use the foundation version a lot.
The same is true for the v1806 version.
I hope that everything will work properly.
Note that a problem reported previously by me in this thread regarding mapping was solved by following the suggestion given in:
https://www.cfd-online.com/Forums/op...major-bug.html
|
Dear Luca,
I want to use your 2d mesh refinement code for my OpenFoam 7 version. However, your code is not developed for this version. I applied the OF6 version from you and got the following error:
polyTopoChange/polyTopoChange/hexRef2D/hexRef2D.C: In member function ‘const cellShapeList& Foam::hexRef2D::cellShapes() const’:
polyTopoChange/polyTopoChange/hexRef2D/hexRef2D.C:5327:42: error: ‘class Foam::DynamicList<Foam::face>’ has no member named ‘xfer’
5327 | faceList faces(quads.xfer());
Can you help me to debug this ? I will really appreciate it.
Best regards,
Peng
|