Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Set BCs for tube/ as in the OpenFOAM/etc/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
z0041unz@Windows committed Mar 9, 2020
1 parent 5eed97c commit dbc130f
Show file tree
Hide file tree
Showing 5 changed files with 810 additions and 300 deletions.
13 changes: 7 additions & 6 deletions tutorials/multiCompression/tube/0/T.orig
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ FoamFile

dimensions [0 0 0 1 0 0 0]; // K

internalField uniform 300;
internalField uniform 850;

boundaryField
{
inlet
{
type fixedValue;
value $internalField;
value 750; //$internalField; // 332
}

outlet
{
type fixedValue;
value $internalFields;
type inletOutlet;
inletValue uniform 764;
value $inletValue;
}

walls
{
type zeroGradient;
Expand Down
7 changes: 4 additions & 3 deletions tutorials/multiCompression/tube/0/U.orig
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ boundaryField
{
inlet
{
type fixedValue;
value uniform (0 20 0);
type fixedValue;
value uniform (0 80 0);
}

outlet
{
type zeroGradient;
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

walls
Expand Down
6 changes: 3 additions & 3 deletions tutorials/multiCompression/tube/0/p.orig
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0]; // [MPa]
dimensions [1 -1 -2 0 0 0 0]; // [Pa]

internalField uniform 1e+05; // 1e05/287.3/300 = 1.16022740457129597401
internalField uniform 1e+06;

boundaryField
{
Expand All @@ -28,7 +28,7 @@ boundaryField
outlet
{
type fixedValue;
value $internalField;
value uniform 0.23e+06;
}

walls
Expand Down
4 changes: 2 additions & 2 deletions tutorials/multiCompression/tube/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ startTime 0;

stopAt endTime;

endTime 0.04;
endTime 0.008;

deltaT 5e-03;

writeControl adjustableRunTime;

writeInterval 5e-04;
writeInterval 5e-05;

purgeWrite 0;

Expand Down
Loading

0 comments on commit dbc130f

Please sign in to comment.