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/)
-   -   Some errors occurred in my work. Somebody can help me? (https://www.cfd-online.com/Forums/openfoam-solving/88494-some-errors-occurred-my-work-somebody-can-help-me.html)

titianyang May 18, 2011 13:07

Some errors occurred in my work. Somebody can help me?
 
I am a new guy who just begin to use openfoam. I want to compute a supersonic external flow field. But the system show some message like this:

/------------------------------------------------------------------------
Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>

--> FOAM FATAL IO ERROR:
Unknown patchField type patch for patch type patch
......
----------------------------------------------------------------------/

and this:

/-----------------------------------------------------------------------------------------------
......
file: /opt/openfoam171/CFD_Work/supersonic/0/p::boundaryField:: pressure_far_field.1 from line 37 to line 38.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /opt/openfoam171/src/finiteVolume/lnInclude/newFvPatchField.C at line 110.

FOAM exiting

-------------------------------------------------------------------------------------------/

This is my p boundary condition define file:

/--------------------------------------------------------------------------------------------
......
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 100000;

boundaryField
{
symmetry.3
{
type symmetryPlane;
value uniform 100000;
}

wall.2
{
type zeroGradient;
value uniform 100000;
}

pressure_far_field.1
{
type patch;
value uniform 100000;
}
}
----------------------------------------------------------------------------/

I must made some mistake. Thanks to the person who can help me first.
PS: I am a chinese and my english is poor.

adhiraj May 18, 2011 15:50

Try 'fixedValue' in place of 'patch' for the far field pressure.
Just my 2 cents.

titianyang May 19, 2011 01:28

I do as what you said. But another error occured:

/-----------------------------------------------------------------------------
Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting turbulence model type RASModel
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}

Starting time loop

--> FOAM Warning :
From function polyBoundaryMesh:: patchSet(const wordList&)
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 427
Cannot find any patch names matching WALL10
--> FOAM Warning :
From function polyBoundaryMesh:: patchSet(const wordList&)
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 427
Cannot find any patch names matching WALL10
Time = 4e-08

Courant Number mean: 0.00146352 max: 0.0281244
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
-----------------------------------------------------------------------------/

Can you tell me what this mean? Thanks!

adhiraj May 19, 2011 14:35

Are you using bockMesh to create the mesh?
The patch names in the mesh and the boundary conditions are inconsistent. If you have names the patches as say patch1, patch2... etc in the mesh, you need to use the same names in the boundary conditions for T, p, etc.

titianyang May 20, 2011 01:13

I don't use blockMesh. I made Mesh by Gambit and turn it into openfoam.

this is the boundary file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

3
(
symmetry.3
{
type symmetryPlane;
nFaces 104325;
startFace 7697689;
}
wall.2
{
type wall;
nFaces 18761;
startFace 7802014;
}
pressure_far_field.1
{
type patch;
nFaces 4661;
startFace 7820775;
}
)

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

titianyang May 26, 2011 06:25

how shall I do? It confused me.:(

titianyang May 30, 2011 13:50

Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting turbulence model type RASModel
Selecting RAS turbulence model kEpsilon
--> FOAM Warning :
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /opt/openfoam171/src/OpenFOAM/lnInclude/Field.C at line 262
Reading "/opt/openfoam171/CFD_Work/supersonic/0/k::boundaryField: pressure_far_field.1" from line 36 to line 38
expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}


Starting time loop

Time = 1e-07

Courant Number mean: 0.00365879 max: 0.0703111
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
/--------------------------------------------------------------------------------------------------------------------------------/

The memory of my computer is not enough?


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