plot3dToFoam beginner
Hello all,
I am new to OpenFOAM and am trying to convert a mesh in plot3d format to OpenFOAM format. I am trying to use the built in grid converter: plot3dToFoam. Here is the output: /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM Extend Project: Open source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 1.6-ext-1fac933c6108 Exec : plot3dToFoam ../../../../iso-q-4in.p3d Date : Jul 16 2013 Time : 14:58:40 Host : pfe21 PID : 34244 Case : /../OpenFOAM/OpenFOAM-1.6-ext/../constant nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM FATAL IO ERROR: cannot open file file: /../OpenFOAM/OpenFOAM-1.6-ext/../constant/system/controlDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 62. FOAM exiting Thanks in advance! Hank |
Greetings Hank and welcome to the forum!
The problem is very simple: when converting a mesh to OpenFOAM format, you first need a base case folder to be already prepared, which is why the application is complaining about the missing "system/controlDict" files. You can use the "cavity" case from the first tutorial to use as a basis. If you do not know which case I'm talking about, I suggest that you look at the OpenFOAM User Guide: http://www.openfoam.org/docs/user/ ;) Best regards, Bruno |
Thanks Bruno for your fast reply!
I have a "system/controlDict" file. Maybe I should elaborate more on my question: I am running a tutorial where everything is provided and runs well. All I want to do is change the mesh with a grid generated by plot3d. So do I have to remove/update some files before I try to import the new mesh? Hank |
Hi Hank,
You were a bit lucky the other day, because I saw your thread a bit before I logged out. And only now did I manage to look into this again. I vaguely remember having looked into not too long ago. The idea is that:
Bruno |
Hello Hank,
Did Bruno's suggestion work for you? I'd be curious if autoPatch did the trick for you? Hello Bruno, Sometime back, I had asked a similar question, and of course, your suggestion regarding running plot3dToFoam followed by autoPatch was helpful. Unfortunately, when I viewed the resulting file, the boundary conditions were not quite correct. So, I had to do plot3dToFoam followed by foamMeshToFluent, read in the resulting Fluent file into a grid generator, set the boundary conditions, export the modified file as a Fluent file, and, finally convert the Fluent file to Foam. It was quite a roundabout. I hope Hank had better luck with his meshes. Cheers, Albert |
Hi Albert,
Isn't Fluent able to import plot3d meshes? I forgot back then a few other ways as well: Quote:
Code:
surfaceToPatch -help Code:
surfaceToPatch constant/RASProperties Code:
--> FOAM FATAL ERROR: Code:
foamToSurface initialPatches.stl Best regards, Bruno |
Total begineer issue
Hi.
I am trying to do run the flat plate case based on the grids from NASA, which come with plot3d format. Specifically, I want to work with the 2D grids downloaded from HERE. I run the 2D case with all the options I want: Code:
plot3dToFoam -2D 0 -singleBlock -noBlank -noFunctionObjects flatplate_clust2_4levelsdown_35x25.p2dfmt Code:
Reading 2D case by extruding points by 0 in z direction. Code:
plot3dToFoam -2D 1 -singleBlock -noBlank -noFunctionObjects flatplate_clust2_4levelsdown_35x25.p2dfmt Code:
Reading 2D case by extruding points by 1 in z direction. Code:
autoPatch 80 Code:
Create time In the end, paraFoam does not even recognises it and I have instead of 2D a 3D mesh which is useless. Can you help me, please??? |
Greetings Anastasios,
Sorry, I only now finally managed to have a look at your question. But since almost 3 months have gone by already, can you let me/us know if you've managed to solve this issue? And if you did, can you share how you solved it? Best regards, Bruno |
Quote:
I finally used the grids with CGNS format which I imported into ANSA and exported it in OpenFOAM format. |
All times are GMT -4. The time now is 05:25. |