ENH: porousExplicitSourceReactingParcelFoam adapted for createBaffles

This commit is contained in:
mattijs
2010-05-17 18:05:04 +01:00
parent 8816653041
commit f54de2aad9
7 changed files with 99 additions and 44 deletions

2
TODO
View File

@ -83,7 +83,7 @@ OK - grep for size()/2
OK - incompressible/boundaryFoam/boundaryLaunderSharma OK - incompressible/boundaryFoam/boundaryLaunderSharma
OK - incompressible/boundaryFoam/boundaryWallFunctions OK - incompressible/boundaryFoam/boundaryWallFunctions
OK - incompressible/boundaryFoam/boundaryWallFunctionsProfile OK - incompressible/boundaryFoam/boundaryWallFunctionsProfile
needs createBaffles. ncompressible/pimpleFoam/t-junction-with-fan OK - needs createBaffles. incompressible/pimpleFoam/t-junction-with-fan
OK - incompressible/simpleSRFFoam/mixer OK - incompressible/simpleSRFFoam/mixer
needs createBaffles. lagrangian/porousExplicitSourceReactingParcelFoam/filter needs createBaffles. lagrangian/porousExplicitSourceReactingParcelFoam/filter
needs special coupledbcs. lagrangian/reactingParcelFilmFoam/multipleBoxes needs special coupledbcs. lagrangian/reactingParcelFilmFoam/multipleBoxes

View File

@ -27,6 +27,9 @@ boundaryField
T T; T T;
emissivity 1; emissivity 1;
value uniform 0; value uniform 0;
refValue uniform 0;
refGradient uniform 0;
valueFraction uniform 0;
} }
inlet inlet
{ {
@ -34,6 +37,9 @@ boundaryField
T T; T T;
emissivity 1; emissivity 1;
value uniform 0; value uniform 0;
refValue uniform 0;
refGradient uniform 0;
valueFraction uniform 0;
} }
outlet outlet
{ {

View File

@ -27,6 +27,9 @@ boundaryField
T T; T T;
emissivity 1; emissivity 1;
value uniform 0; value uniform 0;
refValue uniform 0;
refGradient uniform 0;
valueFraction uniform 0;
} }
inlet inlet
{ {
@ -34,6 +37,9 @@ boundaryField
T T; T T;
emissivity 1; emissivity 1;
value uniform 0; value uniform 0;
refValue uniform 0;
refGradient uniform 0;
valueFraction uniform 0;
} }
outlet outlet
{ {

View File

@ -17,10 +17,10 @@ setsToZones -noFlipMap >& log.setsToZones
# create the first cyclic - lhs of porous zone # create the first cyclic - lhs of porous zone
unset FOAM_SETNAN unset FOAM_SETNAN
createBaffles cycLeft cycLeft -overwrite >& log.createBaffles1 createBaffles cycLeft '(cycLeft_half0 cycLeft_half1)' -overwrite >& log.createBaffles1
# create the second cyclic - rhs of porous zone # create the second cyclic - rhs of porous zone
createBaffles cycRight cycRight -overwrite >& log.createBaffles2 createBaffles cycRight '(cycRight_half0 cycRight_half1)' -overwrite >& log.createBaffles2
runApplication $application runApplication $application

View File

@ -62,9 +62,12 @@ edges
( (
); );
patches boundary
( (
wall walls walls
{
type wall;
faces
( (
( 0 1 13 12) ( 0 1 13 12)
( 1 2 14 13) ( 1 2 14 13)
@ -76,25 +79,57 @@ patches
( 8 9 21 20) ( 8 9 21 20)
( 9 10 22 21) ( 9 10 22 21)
(10 11 23 22) (10 11 23 22)
) );
}
patch inlet inlet
{
type patch;
faces
( (
(11 0 12 23) (11 0 12 23)
) );
}
patch outlet outlet
{
type patch;
faces
( (
( 5 6 18 17) ( 5 6 18 17)
) );
}
cyclic cycLeft cycLeft_half0
() {
type cyclic;
faces ();
neighbourPatch cycLeft_half1;
}
cycLeft_half1
{
type cyclic;
faces ();
neighbourPatch cycLeft_half0;
}
cyclic cycRight cycRight_half0
() {
type cyclic;
faces ();
neighbourPatch cycRight_half1;
}
cycRight_half1
{
type cyclic;
faces ();
neighbourPatch cycRight_half0;
}
empty frontAndBack frontAndBack
{
type empty;
faces
( (
( 0 11 10 1) ( 0 11 10 1)
( 1 10 9 2) ( 1 10 9 2)
@ -106,7 +141,8 @@ patches
(14 15 20 21) (14 15 20 21)
(15 16 19 20) (15 16 19 20)
(16 17 18 19) (16 17 18 19)
) );
}
); );

View File

@ -136,7 +136,11 @@ LocalInteractionCoeffs
{ {
type rebound; type rebound;
} }
cycLeft cycLeft_half0
{
type rebound;
}
cycLeft_half1
{ {
type rebound; type rebound;
} }
@ -184,7 +188,8 @@ PatchPostProcessingCoeffs
patches patches
( (
cycLeft cycLeft_half0
cycLeft_half1
); );
} }

View File

@ -15,6 +15,8 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so" "libradiation.so");
application porousExplicitSourceReactingParcelFoam; application porousExplicitSourceReactingParcelFoam;
startFrom startTime; startFrom startTime;