CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   problem with import mesh to openfoam and pached (https://www.cfd-online.com/Forums/openfoam-solving/160004-problem-import-mesh-openfoam-pached.html)

hssnjfry September 29, 2015 13:11

problem with import mesh to openfoam and pached
 
hi friend
i use the salome to create geometry and meshed.i created group in geometry and mesh part.
picture


now i copy unv file to folder in tutorials/incompressible and then add 0 and system file from cavity folder and change the boundaryField like below
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
train
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

topbottom
{
type zeroGradient;
}

frontback
{
type empty;
}
}

// ************************************************** *********************** //

and for u like below

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (1 0 0);
}

wall
{
type fixedValue;
value uniform (0 0 0);
}

outlet
{
type fixedValue;
value uniform (0 0 0);
}

topbottom
{
type fixedValue;
value uniform (0 0 0);
}


frontback
{
type empty;
}
}

// ************************************************** *********************** //

now run terminal and run ideasUnvToFoam Mesh_1.unv sayed like that

run/tutorials/incompressible/icoFoam/train$ ideasUnvToFoam Mesh_1.unv
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.4.0-f0842aea0e77
Exec : ideasUnvToFoam Mesh_1.unv
Date : Sep 29 2015
Time : 20:03:41
Host : "hssn"
PID : 5845
Case : /home/hssn/OpenFOAM/hssn-2.4.0/run/tutorials/incompressible/icoFoam/train
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:164
Starting reading units at line 3.
l:1
units:" SI: Meter (newton)"
unitType:2
Unit factors:
Length scale : 1
Force scale : 1
Temperature scale : 1
Temperature offset : 273.15


Processing tag:2420
Skipping tag 2420 on line 9
Skipping section at line 9.

Processing tag:2411
Starting reading points at line 20.
Read 395921 points.

Processing tag:2412
Starting reading cells at line 791865.
First occurrence of element type 11 for cell 1 at line 791866
First occurrence of element type 41 for cell 1891 at line 809506
Read 0 cells and 791842 boundary faces.

Processing tag:2467
Starting reading patches at line 2393192.
For group 1 named inlet trying to read 264 patch face indices.
For group 2 named outlet trying to read 264 patch face indices.
For group 4 named train trying to read 90866 patch face indices.
For group 6 named topbottom trying to read 196 patch face indices.
For group 7 named frontback trying to read 700252 patch face indices.

Sorting boundary faces according to group (patch)
0: inlet is #0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 ? at ??:?
#4 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#5 ? at ??:?
Segmentation fault (core dumped)


this errore why happened and what shuod i do please help me?:confused:


All times are GMT -4. The time now is 06:05.