CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (http://www.cfd-online.com/Forums/openfoam-meshing-other/)
-   -   A problem about Gambit and neu file (http://www.cfd-online.com/Forums/openfoam-meshing-other/61718-problem-about-gambit-neu-file.html)

aderliner November 20, 2006 02:04

Hi~~~everyone As the "u
 
Hi~~~everyone

As the "userguider" said, "GAMBIT writes mesh data to a single file with a .neu extension", but, I don't know how to export as a .neu file. Does anyone can tell me?
Thanks a lot~~~

Bobby

dmoroian November 20, 2006 03:45

First you have to choose Solve
 
First you have to choose Solver->Generic, then File->Export->Mesh.
Be aware that changing the type of solver may affect the boundary conditions you have set.

Dragos

aderliner November 24, 2006 03:00

Hi Dragos Thanks for you
 
Hi Dragos

Thanks for your advice;
I got the neu file as you said, and convert it to the Foam mesh successfully, but there is also some problems:
1. There is no blockMeshDict file in the polymesh folder;
2. When I start to calculate, I found it seems like that there is something wrong about boundary condition, because the fuel can not flow into the model though the inlet;

Could you help me ? Thanks;

Best regards

Bobby

aderliner November 24, 2006 03:16

Hi Dragos Thanks for you
 
Hi Dragos

Thanks for your advice;
I got the neu file as you said, and convert it to the Foam mesh successfully, but there is also some problems:
1. There is no blockMeshDict file in the polymesh folder;
2. When I start to calculate, I found it seems like that there is something wrong about boundary condition, because the fuel can not flow into the model though the inlet;

Could you help me ? Thanks;

Best regards

Bobby

dmoroian November 24, 2006 04:19

Hi Bobby, 1. This dictionary
 
Hi Bobby,
1. This dictionary is only for blockMesh utility to generate the mesh. Since you already have the mesh generated some other way, you can just ignore it.
2. This is because you did not specified the boundary conditions. When a mesh gets imported through any translating utility (fluentMeshToFoam, gambitToFoam, starToFoam...), a dictionary, called constant/polyMesh/boundary, is created. Here you have to specify first the type of each boundary, then you have to create a time directory, usually called "0", where you actually say what is going to happen on each boundary, for each variable you solve.
Just take any tutorial case and study the constant/polyMesh/boundary and 0/[pU] files.

Dragos

aderliner November 27, 2006 01:30

Hi Dragos Thanks for yo
 
Hi Dragos

Thanks for your advice again~!
I've done these work in FoamX:first, I created a case, than, use GambitToFoam utility to convert the neu file to the case, than, set boundary condition and initial field in FoamX, the /constant/polymesh/boundary file is as below:

{
version 2.0
format ascii;
root "/home/wab/OpenFOAM/wab-1.3/run/tutorials/lesInterFoam";
case "3d5";
instance "constant/polyMesh";
local "";
class polyBoundaryMesh;
object boundary;}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(
inlet
{ type patch;
physicalType inlet;
startFace 12712;
nFaces 89;
}
outlet
{ type patch;
physicalType outlet;
startFace 12801;
nFaces 89; }
wall
{ type wall;
physicalType wall;
startFace 12890;
nFaces 1632;
}
)
// ************************************************** *********************** //


Is there something wrong?

Bobby
11.27

dmoroian November 27, 2006 05:15

Nothing wrong. Do you have the
 
Nothing wrong. Do you have the following files: 0/p and 0/U?
Did you specify anything in those?

Dragos

aderliner November 28, 2006 22:43

Hi Dragos: I specify those
 
Hi Dragos:

I specify those boundary conditions and initial field in FoamX. I have checked the 0/p and 0/U file, I think it is OK.

Thanks~!

Bobby
11.29


All times are GMT -4. The time now is 18:19.