CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Always crash when solve a C-D nozzle flow field using rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2011, 11:48
Question Always crash when solve a C-D nozzle flow field using rhoCentralFoam
  #1
New Member
 
Hawk
Join Date: Jan 2011
Posts: 5
Rep Power: 15
hawklion is on a distinguished road
dear all:
I have used the rhocentralFoam in OpenFoam to solve an CD nozzle with subsonic inlet and supersonic outlet.
But there is always an error after serval iteration steps even if I have tried varied boundary conditions for the case (you can find them in the notes of the P、U、T files in the 0 folder). Can anyone give me some advice?
thanks!
Attached Files
File Type: zip CDnozzle_OF.zip (72.2 KB, 6 views)
File Type: zip mesh.zip (30.5 KB, 4 views)
hawklion is offline   Reply With Quote

Old   March 8, 2011, 20:01
Default source code"0"
  #2
New Member
 
Hawk
Join Date: Jan 2011
Posts: 5
Rep Power: 15
hawklion is on a distinguished road
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1013250;

boundaryField
{
symmetry.5
{
type symmetryPlane;

}
wall.2
{
type zeroGradient;
}
/* pressure_inlet.3
{
type totalPressure;
p0 uniform 1.01325e+06;//_in
U U;
phi phi;
rho none;
psi none;
gamma 1.4;
value uniform 1.01325e+06;
}
*/
/*
pressure_outlet.4
{
type waveTransmissive;
value uniform 100; //important for correct I/O
field p; //the name of the field that we are working on
gamma 1.4; //the ratio of specific heats
phi phi; //the name of the volumetric flux field (or if you use the mass flux phi, it will be divided by rho)
rho rho; //the name of the density field
psi psi; //the name of the field that is the deriv. of density with respect to pressure
lInf 1; //a measure of how far away the far-field condition should be
fieldInf 100; //the far-field value to be applied to p
}*/
pressure_inlet.3
{
type fixedValue;
value uniform 1.01325e+06;
}
pressure_outlet.4
{
type zeroGradient;
}
frontAndBackPlanes
{
type empty;

}
}
// ************************************************** *********************** //
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 1 0 0 0];
internalField uniform 2000;
boundaryField
{
symmetry.5
{
type symmetryPlane;

}
wall.2
{
type zeroGradient;
}
pressure_outlet.4
{
type zeroGradient;
}
pressure_inlet.3
{
type fixedValue;
value uniform 2000;
}

frontAndBackPlanes
{
type empty;

}
}
// ************************************************** *********************** //
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (30 0 0);
boundaryField
{

symmetry.5
{
type symmetryPlane;

}
wall.2
{
type fixedValue;
value uniform (0 0 0);
}
pressure_outlet.4
{
type zeroGradient;
}
pressure_inlet.3
{
type pressureInletVelocity;
// type pressureDirectedInletOutletVelocity;
value uniform (30 0 0);
}
frontAndBackPlanes
{
type empty;

}
}
// ************************************************** *********************** //
hawklion is offline   Reply With Quote

Old   March 8, 2011, 20:03
Default source code"constant"
  #3
New Member
 
Hawk
Join Date: Jan 2011
Posts: 5
Rep Power: 15
hawklion is on a distinguished road
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>;
mixture air 1 28.9 717.5 0 1.82e-05 0.73;
//thermoType hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>;
//mixture air 1 28.9 1007 0 1.84e-05 0.7;
// ************************************************** *********************** //
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;

// ************************************************** *********************** //
hawklion is offline   Reply With Quote

Old   March 8, 2011, 20:03
Default source code"system"
  #4
New Member
 
Hawk
Join Date: Jan 2011
Posts: 5
Rep Power: 15
hawklion is on a distinguished road
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoCentralFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 1e-4;
writeControl adjustableRunTime;
writeInterval 1e-1;
cycleWrite 0;
writeFormat ascii;
writePrecision 15;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
adjustTimeStep yes;
maxCo 0.2;
maxDeltaT 1;

// ************************************************** *********************** //
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
fluxScheme Kurganov;
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(tauMC) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
reconstruct(rho) MUSCL;
reconstruct(U) MUSCLV;
reconstruct(T) MUSCL;
}
snGradSchemes
{
default corrected;
}

// ************************************************** *********************** //
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
rho
{
solver diagonal;
}
rhoU
{
solver diagonal;
}
rhoE
{
solver diagonal;
}
U
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-09;
relTol 0.01;
}
e
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-10 relTol 0;
}

}

// ************************************************** *********************** //
hawklion is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Nonphysical flow field while using coodles solver ankgupta8um OpenFOAM Running, Solving & CFD 5 January 26, 2008 17:54
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 06:44
External flow field. Moon FLUENT 3 March 5, 2003 11:32
Injection of partical into flow field M.Mahendran FLUENT 2 November 24, 2002 01:54


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