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

Flow inside a converging nozzle with Pimplefoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nahian_masud

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2022, 04:33
Default Flow inside a converging nozzle with Pimplefoam
  #1
New Member
 
badShinchan
Join Date: Apr 2022
Posts: 3
Rep Power: 4
nahian_masud is on a distinguished road
I am attaching the case file. Whenever i try to run, it shows the error.
(attached below)
277999892_1089769345204759_900859964713374417_n.jpg

277959553_2840606089574810_867235461933461332_n.jpg

I tried to run the simulation with
" mpirun -np 2 pimpleFoam -parallel " as I have decomposed 2 processors.

no velocity is known. the inlet and outlet pressure are defined in the P file

the 0/U

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ 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 zeroGradient;

}

outlet
{
type zeroGradient;
}

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

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

the 0/P
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 0;

boundaryField
{
inlet
{
type fixedValue;
value uniform 101325;
}

outlet
{
type fixedValue;
value uniform 86000;
}

wall
{
type zeroGradient;
}
}

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

the controldict file
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application pimpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 1000;

deltaT 0.2;

writeControl timeStep;

writeInterval 200;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
#includeFunc fieldAverage(U, p, prime2Mean = yes)
}

// ******************
************************************************** ***** //
Afeefa likes this.
nahian_masud is offline   Reply With Quote

Old   April 20, 2022, 15:14
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
Hi nahian_masud,

Welcome to the forum.

Hope u already solved the problem....If not, based on the limited info provided in the post......few suggestions

1) change the
Code:
internalField   uniform 0;
to
Code:
internalField   uniform 101325;

2) From the log file we can see the courant number is too high....maybe you can do checkMesh to see if everything is fine....If so, then you can start with smaller deltaT magnitudes....and then allow solver to choose the optimum deltaT based on maximum allowed Courant number....by adding following
Code:
adjustTimeStep  true;

maxCo           1;
in the controlDict



Another kind suggestion :- From next time onwards, please try to ask the questions in the respective subsections of the forum...for ex : Meshing related things can be asked in https://www.cfd-online.com/Forums/openfoam-meshing/, case running & solving in (https://www.cfd-online.com/Forums/openfoam-solving/).....then your question will have more visibility and thus a faster response.


Regards,
Shubham
SHUBHAM9595 is online now   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
Issues when simulating nozzle flow with outside region blais.bruno SU2 4 March 13, 2024 14:04
Pressure drop across a converging nozzle mjkey CFX 16 July 17, 2019 13:22
Sonic flow for exhaust nozzle beanlee999 FLUENT 1 May 10, 2012 14:34
Modelling the Heat flow inside the curing oven Marios Vlad CFX 1 February 6, 2008 07:11
compressible flow in a counterflow nozzle d.vamsidhar FLUENT 0 November 24, 2005 01:45


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