|
[Sponsors] |
[mesh manipulation] Converting a 2Dmesh to axisymmetric |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2009, 12:18 |
Hi everyone,
i think i've n
|
#41 |
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Hi everyone,
i think i've noticed an error in makeAxialMesh. Comparing a wedge realized with gmsh and another with makeAxialMesh, i've noticed that the wedge angle is 2.5°, not 5°. Checking the code, i can see a scalar variable "angle" set to 2.5° in order to revolve -2.5° and +2.5°, but i also see a 0.5 factor in the "factor" variable. I think that the factor should be set to 1.0 or the angle to 5°, am I wrong ? Sincerely, Etienne. |
|
February 24, 2009, 09:03 |
Hi!
Etienne convinced me on
|
#42 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi!
Etienne convinced me on the IRC that he is right (and I am wrong). The mistake is now corrected in the 1.4.1-version on the SVN. In the 1.5 version it was already corrected Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
February 24, 2009, 14:25 |
Hi everyone !
I've found an
|
#43 |
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Hi everyone !
I've found another problem in makeAxialMesh ;) (sorry Bernhard to bother you ;)). This one is present in the 2 versions. But I think we have to discuss if we correct it or not. In fact, makeAxialMesh does not revolve the mesh, it projects the mesh on wedge planes. I agree that the error is really small (depending on the radius of the problem), but it caused me great problems for coincidence with another mesh. I've added 2 lines and modified one to solve the problem in 1.4.1, the same modif can be applied in the 1.5 version. The question is : "should we consider this point as a modelization problem ?" Regards, Etienne. |
|
March 2, 2009, 15:33 |
Hello,
I've modified the co
|
#44 |
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Hello,
I've modified the code and added a revolve option. This change should be transparent for users who don't want this feature. The 2 versions 1.4.1 and 1.5 have been updated. To activate it, add '-revolve' to the command line or change it in the dictionary if you use the rotationDict. Check the output when running makeAxialMesh, you'll see 'Revolving nodes' or 'Projecting nodes' Etienne. |
|
March 13, 2009, 07:24 |
Just tried to compile makeAxia
|
#45 |
Senior Member
|
Just tried to compile makeAxialMesh on 1.5-dev. It is looking for repatchPolyTopoChanger.H, which was removed in 1.5-dev (I can't find it in src/dynamicMesh). Given that makeAxialMesh is distributed through the OpenFOAM-extend repository, I figured it would have been tested and fixed for the -dev versions. Anyone have a solution?
Eric |
|
March 13, 2009, 07:46 |
Hello Eric,
you're right, m
|
#46 |
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Hello Eric,
you're right, makeAxialMesh does not compile with 1.5-dev because of slight divergences between the official release and the svn release. I've searched quickly but I've not found a way to solve this problem easily. Sincerely, Etienne. |
|
March 16, 2009, 08:29 |
|
#47 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
April 29, 2009, 01:28 |
makeAxialMake and collapseEdges
|
#48 |
New Member
Peter Johnston
Join Date: Mar 2009
Location: Brisbane, Queensland, Australia
Posts: 25
Rep Power: 17 |
Dear Bernhard,
I was able to download and compile the version of makeAxialMesh for OpenFOAM v1.5. It seems to run OK, but I am having trouble running the test case axialCavity. I think the problem is that I am unsure how to use the routines. Firstly, I run blockMesh, then I run the command makeAxialMesh -axis fixedWalls -wedge frontAndBack This seems to give no errors, but writes the mesh to time 0.00125 (why?). In the same directory I run the command collapseEdges 0.0001 175 (small length and large angle as suggested in the wiki) no small edges are collapsed, but this is looking in the time=0 directory. The new mesh is in the time=0.00125 directory. However, when I force collapseEdges to look at the time=0.00125 directory, I get 21 collapsed small edges, the results of which are written in the time=0.0025 directory (again why?). Is the idea to copy the keep copying the files generated by makeAxialMesh and collapseEdges back into constant/polyMesh? Thanks, Peter |
|
April 29, 2009, 15:00 |
|
#49 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If you can do without undo: most mesh utilities have an option -overwrite .... Quote:
Bernhard |
|||
May 15, 2009, 15:15 |
|
#50 | ||
Member
Mihir
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
Quote:
Quote:
|
|||
May 17, 2009, 23:00 |
|
#51 |
New Member
Peter Johnston
Join Date: Mar 2009
Location: Brisbane, Queensland, Australia
Posts: 25
Rep Power: 17 |
I simply used the standard v1.5 and not v1.5-dev. I did not need to do anything special. However, I guess that is not much use to you. Sorry.
Regards, Peter. |
|
May 19, 2009, 18:52 |
|
#52 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
May 20, 2009, 14:52 |
|
#53 | |
Member
Mihir
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
[/QUOTE]
Quote:
All right , i i used the latest from the SVN . It compiled successfullyy . But what is the command . If the use the command: makeAxialMesh . . axis frontAndBackPlanes as in 1.4 , it doesnt not work .. What are the arguments that have to be specified ? Last edited by mihir1310; May 20, 2009 at 16:17. |
||
May 20, 2009, 17:10 |
|
#54 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Mihir,
Take a look in cd $WM_PROJECT_USER_DIR/applications/MakeAxialMesh for the TestCases directory. Look at how the parameters are now passed to makeAxialMesh through the rotation dictionary: system/rotationDict |
|
August 30, 2009, 14:33 |
|
#55 |
New Member
Emanuele Leoni
Join Date: Apr 2009
Posts: 13
Rep Power: 17 |
Hi,
I hope this is the right post. I'm trying to use makeaxialmesh but I found some difficulties. I have this 2d mesh (1 cell thick) converted from a 2d fluent mesh using fluentofoam, with the axis edge named axis and the opposite edge (the one that has to be splitted in two edges) named wall. In the terminal I went into the folder of the case and I gave this command: makeAxialMesh axis wall and I get this error: Create time Create mesh for time = 0 #0 Foam::error:rintStack(Foam::Ostream&) in "/home/lions85/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::sigSegv::sigSegvHandler(int) in "/home/lions85/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so" #2 ?? in "/lib/libc.so.6" #3 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) in "/home/lions85/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6" #4 main in "/home/lions85/OpenFOAM/lions85-1.5/applications/bin/linux64GccDPOpt/makeAxialMesh" #5 __libc_start_main in "/lib/libc.so.6" #6 _start in "/home/lions85/OpenFOAM/lions85-1.5/applications/bin/linux64GccDPOpt/makeAxialMesh" Segmentation fault Probably I'm making a mistake, but I can not find it simply. Is someone able to help me? Thank you very much EManuele |
|
August 30, 2009, 14:47 |
|
#56 | |
Member
Mihir
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
Quote:
makeAxialMesh axis frontAndBackPlanes |
||
August 30, 2009, 16:30 |
|
#57 |
New Member
Emanuele Leoni
Join Date: Apr 2009
Posts: 13
Rep Power: 17 |
Sorry,
may you explain it better?? I didn't understand very well. Anyway i tried with the command makeAxialMesh axis frontAndBackPlanes and i got Create time Create mesh for time = 0 #0 Foam::error:rintStack(Foam::Ostream&) in "/home/lions85/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::sigSegv::sigSegvHandler(int) in "/home/lions85/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so" #2 ?? in "/lib/libc.so.6" #3 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) in "/home/lions85/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6" #4 main in "/home/lions85/OpenFOAM/lions85-1.5/applications/bin/linux64GccDPOpt/makeAxialMesh" #5 __libc_start_main in "/lib/libc.so.6" #6 _start in "/home/lions85/OpenFOAM/lions85-1.5/applications/bin/linux64GccDPOpt/makeAxialMesh" Segmentation fault Thank you Emanuele P.S. consider that i have my boundary edges that I created with gambit and then I have two other boundaries created during the conversion from fluent to foam and one of this is named automatically FrontAndBackPlanes |
|
August 30, 2009, 17:16 |
|
#58 | |
Member
Mihir
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
Quote:
|
||
August 31, 2009, 14:32 |
|
#59 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The other thing: is there any other application that you successfully compiled before? Is your version of OF a downloaded binary or self-compiled? Because I remotely remember having seen a similar stack-trace in a previous discussion and it was a compilation problem or something like that Bernhard |
||
October 27, 2009, 12:45 |
|
#60 |
Member
Hai Yu
Join Date: Mar 2009
Location: Harbin
Posts: 67
Rep Power: 17 |
Hi, dear all,
I tried to revolve (select withMesh option)my face in Gambit, and I can only get a volumn, but the mesh is not created in the volumn. Does anybody know the answer? sorry, I am away from the topic. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simplest way of converting a 2d Navier Stokes code to a 2d axisymmetric one | mseka | Main CFD Forum | 1 | September 18, 2017 15:53 |
Axisymmetric Boundary condition | Mohit Singh | SU2 | 3 | July 15, 2015 10:19 |
[mesh manipulation] Converting axisymmetric mesh into fully 3D mesh | tomloh | OpenFOAM Meshing & Mesh Conversion | 0 | April 29, 2012 21:31 |
Difference of final temperature between a plane and an axisymmetric geometry | douchka | FLUENT | 0 | July 7, 2011 09:38 |
URGENT ! Need help on Axisymmetric Flow ! | Suman Kumar | Main CFD Forum | 1 | November 20, 2001 15:51 |