diff --git a/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H b/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H new file mode 100644 index 0000000000000000000000000000000000000000..ed799ae4b4fe91711d8ca8a46754cdc23e422686 --- /dev/null +++ b/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H @@ -0,0 +1,20 @@ +{ + alphav = + max + ( + min + ( + (rho - rholSat)/(rhovSat - rholSat), + scalar(1) + ), + scalar(0) + ); + alphal = 1.0 - alphav; + + Info<< "max-min alphav: " << max(alphav).value() + << " " << min(alphav).value() << endl; + + psiModel->correct(); + + //Info<< "min a: " << 1.0/sqrt(max(psi)).value() << endl; +} diff --git a/applications/solvers/multiphase/cavitatingFoam/cavitatingFoam.C b/applications/solvers/multiphase/cavitatingFoam/cavitatingFoam.C index 73e9577029b89c186478b4a211cbff054f69d5e6..c4453df391c30bd98a2f8f2908770a83755edcb5 100644 --- a/applications/solvers/multiphase/cavitatingFoam/cavitatingFoam.C +++ b/applications/solvers/multiphase/cavitatingFoam/cavitatingFoam.C @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) while (pimple.loop()) { #include "rhoEqn.H" - #include "gammaPsi.H" + #include "alphavPsi.H" #include "UEqn.H" // --- Pressure corrector loop diff --git a/applications/solvers/multiphase/cavitatingFoam/continuityErrs.H b/applications/solvers/multiphase/cavitatingFoam/continuityErrs.H index ce618ee40f2c3a04bf660d08c385389ecdebd570..14b0ef77861a58f121e9f1b403acd6033392aa7e 100644 --- a/applications/solvers/multiphase/cavitatingFoam/continuityErrs.H +++ b/applications/solvers/multiphase/cavitatingFoam/continuityErrs.H @@ -1,5 +1,5 @@ { - volScalarField thermoRho = psi*p + gamma2*rhol0; + volScalarField thermoRho = psi*p + alphal*rhol0; dimensionedScalar totalMass = fvc::domainIntegrate(rho); diff --git a/applications/solvers/multiphase/cavitatingFoam/createFields.H b/applications/solvers/multiphase/cavitatingFoam/createFields.H index 8958dc3c5ed261572dd3a34ee118de9038bb7cc0..605c0deece751a5d754639e5b47075d0888b57ca 100644 --- a/applications/solvers/multiphase/cavitatingFoam/createFields.H +++ b/applications/solvers/multiphase/cavitatingFoam/createFields.H @@ -44,19 +44,19 @@ Info<< "Reading transportProperties\n" << endl; - incompressibleTwoPhaseMixture twoPhaseProperties(U, phiv, "gamma"); + incompressibleTwoPhaseMixture twoPhaseProperties(U, phiv); - volScalarField& gamma(twoPhaseProperties.alpha1()); - gamma.oldTime(); + volScalarField& alphav(twoPhaseProperties.alpha1()); + alphav.oldTime(); - volScalarField& gamma2(twoPhaseProperties.alpha2()); + volScalarField& alphal(twoPhaseProperties.alpha2()); Info<< "Creating compressibilityModel\n" << endl; autoPtr<barotropicCompressibilityModel> psiModel = barotropicCompressibilityModel::New ( thermodynamicProperties, - gamma + alphav ); const volScalarField& psi = psiModel->psi(); @@ -64,8 +64,8 @@ rho == max ( psi*p - + gamma2*rhol0 - + ((gamma*psiv + gamma2*psil) - psi)*pSat, + + alphal*rhol0 + + ((alphav*psiv + alphal*psil) - psi)*pSat, rhoMin ); diff --git a/applications/solvers/multiphase/cavitatingFoam/gammaPsi.H b/applications/solvers/multiphase/cavitatingFoam/gammaPsi.H deleted file mode 100644 index 4edda7336de09a5e212dbded85bcc70c2ddee6dc..0000000000000000000000000000000000000000 --- a/applications/solvers/multiphase/cavitatingFoam/gammaPsi.H +++ /dev/null @@ -1,11 +0,0 @@ -{ - gamma = max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0)); - gamma2 = 1.0 - gamma; - - Info<< "max-min gamma: " << max(gamma).value() - << " " << min(gamma).value() << endl; - - psiModel->correct(); - - //Info<< "min a: " << 1.0/sqrt(max(psi)).value() << endl; -} diff --git a/applications/solvers/multiphase/cavitatingFoam/pEqn.H b/applications/solvers/multiphase/cavitatingFoam/pEqn.H index b2c7d953b5368b2b46adb91223c06d9ceab4242d..da43e67ce7bb5e2b0fcf565a86eb7d56fd8a2df9 100644 --- a/applications/solvers/multiphase/cavitatingFoam/pEqn.H +++ b/applications/solvers/multiphase/cavitatingFoam/pEqn.H @@ -4,8 +4,8 @@ p = ( rho - - gamma2*rhol0 - - ((gamma*psiv + gamma2*psil) - psi)*pSat + - alphal*rhol0 + - ((alphav*psiv + alphal*psil) - psi)*pSat )/psi; } @@ -29,7 +29,7 @@ fvScalarMatrix pEqn ( fvm::ddt(psi, p) - - (rhol0 + (psil - psiv)*pSat)*fvc::ddt(gamma) - pSat*fvc::ddt(psi) + - (rhol0 + (psil - psiv)*pSat)*fvc::ddt(alphav) - pSat*fvc::ddt(psi) + fvc::div(phiv, rho) + fvc::div(phiGradp) - fvm::laplacian(rAUf, p) @@ -49,18 +49,18 @@ rho == max ( psi*p - + gamma2*rhol0 - + ((gamma*psiv + gamma2*psil) - psi)*pSat, + + alphal*rhol0 + + ((alphav*psiv + alphal*psil) - psi)*pSat, rhoMin ); - #include "gammaPsi.H" + #include "alphavPsi.H" p = ( rho - - gamma2*rhol0 - - ((gamma*psiv + gamma2*psil) - psi)*pSat + - alphal*rhol0 + - ((alphav*psiv + alphal*psil) - psi)*pSat )/psi; p.correctBoundaryConditions(); diff --git a/applications/solvers/multiphase/compressibleInterFoam/twoPhaseMixtureThermo/twoPhaseMixtureThermo.C b/applications/solvers/multiphase/compressibleInterFoam/twoPhaseMixtureThermo/twoPhaseMixtureThermo.C index d81f5ccb1f249ff004711bfaeef3ca9bf4049ae0..e9c5322c79f842ebb727455a7585af53658ffc45 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/twoPhaseMixtureThermo/twoPhaseMixtureThermo.C +++ b/applications/solvers/multiphase/compressibleInterFoam/twoPhaseMixtureThermo/twoPhaseMixtureThermo.C @@ -49,12 +49,12 @@ Foam::twoPhaseMixtureThermo::twoPhaseMixtureThermo thermo2_(NULL) { { - volScalarField T1("T" + phase1Name(), T_); + volScalarField T1(IOobject::groupName("T", phase1Name()), T_); T1.write(); } { - volScalarField T2("T" + phase2Name(), T_); + volScalarField T2(IOobject::groupName("T", phase2Name()), T_); T2.write(); } diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.C b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.C index 0e9e8ae3496b40e6efb62cc279163d3f406dcf95..f7cc2eae2114348ce56b1064ca900711b36ff24a 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.C +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.C @@ -42,11 +42,10 @@ namespace phaseChangeTwoPhaseMixtures Foam::phaseChangeTwoPhaseMixtures::Kunz::Kunz ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ) : - phaseChangeTwoPhaseMixture(typeName, U, phi, alpha1Name), + phaseChangeTwoPhaseMixture(typeName, U, phi), UInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("UInf")), tInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("tInf")), diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.H b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.H index 39ccad53825767d7e93a3b64f73d827d36edab27..f0290efc959ac5cabf0ccaf4dc4652f65ec432e2 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Kunz/Kunz.H @@ -91,8 +91,7 @@ public: Kunz ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1" + const surfaceScalarField& phi ); diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.C b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.C index 87c261da9b86bf2838e7f8742f5509b62431ee03..72fdb7245eb2917dbf747f122c7954c71acaf9e1 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.C +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.C @@ -42,11 +42,10 @@ namespace phaseChangeTwoPhaseMixtures Foam::phaseChangeTwoPhaseMixtures::Merkle::Merkle ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ) : - phaseChangeTwoPhaseMixture(typeName, U, phi, alpha1Name), + phaseChangeTwoPhaseMixture(typeName, U, phi), UInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("UInf")), tInf_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("tInf")), diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H index 7dd8e841c831568ff46b96acf265532033c45f9b..e675c83df75293c8244ec6de78deedf211a8c067 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H @@ -85,8 +85,7 @@ public: Merkle ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1" + const surfaceScalarField& phi ); diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C index 36cb56a0c256ff2ea836f5562c51e2ca74767c86..f157fa75e00221f77000a29fc83b074ea6135004 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C @@ -49,11 +49,10 @@ namespace phaseChangeTwoPhaseMixtures Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::SchnerrSauer ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ) : - phaseChangeTwoPhaseMixture(typeName, U, phi, alpha1Name), + phaseChangeTwoPhaseMixture(typeName, U, phi), n_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("n")), dNuc_(phaseChangeTwoPhaseMixtureCoeffs_.lookup("dNuc")), diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.H b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.H index beef7fc7fce9a4797eba655d0e09968b426aa0c0..ce096105d9012b3423912828d210ad4979ae3502 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.H @@ -98,8 +98,7 @@ public: SchnerrSauer ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1" + const surfaceScalarField& phi ); diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/newPhaseChangeTwoPhaseMixture.C b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/newPhaseChangeTwoPhaseMixture.C index 08728c8f926b94c29e68b2c78ea8d89d310fbcba..0a86459705cdda66fafaf800cc1f327f1a8d6c60 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/newPhaseChangeTwoPhaseMixture.C +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/newPhaseChangeTwoPhaseMixture.C @@ -32,8 +32,7 @@ Foam::autoPtr<Foam::phaseChangeTwoPhaseMixture> Foam::phaseChangeTwoPhaseMixture::New ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ) { IOdictionary transportPropertiesDict @@ -73,7 +72,7 @@ Foam::phaseChangeTwoPhaseMixture::New << exit(FatalError); } - return autoPtr<phaseChangeTwoPhaseMixture>(cstrIter()(U, phi, alpha1Name)); + return autoPtr<phaseChangeTwoPhaseMixture>(cstrIter()(U, phi)); } diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C index c08eba939067edd6151c61816c6ac510b2f25ffc..d25fbdfec9c248140be271dd5568e2977475e20f 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C @@ -39,11 +39,10 @@ Foam::phaseChangeTwoPhaseMixture::phaseChangeTwoPhaseMixture ( const word& type, const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ) : - incompressibleTwoPhaseMixture(U, phi, alpha1Name), + incompressibleTwoPhaseMixture(U, phi), phaseChangeTwoPhaseMixtureCoeffs_(subDict(type + "Coeffs")), pSat_(lookup("pSat")) {} diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H index e05476390b6424f2f530e115a13319a6f7664966..227768ac8d3f4dc34d505a2fbab34947ce8eced3 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.H @@ -91,10 +91,9 @@ public: components, ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name + const surfaceScalarField& phi ), - (U, phi, alpha1Name) + (U, phi) ); @@ -104,8 +103,7 @@ public: static autoPtr<phaseChangeTwoPhaseMixture> New ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1" + const surfaceScalarField& phi ); @@ -116,8 +114,7 @@ public: ( const word& type, const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1" + const surfaceScalarField& phi ); diff --git a/applications/solvers/multiphase/twoLiquidMixingFoam/alphaEqn.H b/applications/solvers/multiphase/twoLiquidMixingFoam/alphaEqn.H index c68a0e56c5c794542ad1925514cef31ce555d4ec..adca48e96529294758a2a542d1e12c74240f248a 100644 --- a/applications/solvers/multiphase/twoLiquidMixingFoam/alphaEqn.H +++ b/applications/solvers/multiphase/twoLiquidMixingFoam/alphaEqn.H @@ -1,5 +1,5 @@ { - word alphaScheme("div(phi,alpha1)"); + word alphaScheme("div(phi,alpha)"); surfaceScalarField phiAlpha ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C index 72af0d8d9c08ce5aad71fdfafc80110c2c7496e0..1fcc5feb7df1b98caa271b0d635e920a86b97f96 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C @@ -39,7 +39,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(p, iF), - flowRate_(0) + flowRate_(0), + alphaName_("none") {} @@ -53,7 +54,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(ptf, p, iF, mapper), - flowRate_(ptf.flowRate_) + flowRate_(ptf.flowRate_), + alphaName_(ptf.alphaName_) {} @@ -66,7 +68,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(p, iF, dict), - flowRate_(readScalar(dict.lookup("flowRate"))) + flowRate_(readScalar(dict.lookup("flowRate"))), + alphaName_(dict.lookup("alpha")) {} @@ -77,7 +80,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(ptf), - flowRate_(ptf.flowRate_) + flowRate_(ptf.flowRate_), + alphaName_(ptf.alphaName_) {} @@ -89,7 +93,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(ptf, iF), - flowRate_(ptf.flowRate_) + flowRate_(ptf.flowRate_), + alphaName_(ptf.alphaName_) {} @@ -104,7 +109,7 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField } scalarField alphap = - patch().lookupPatchField<volScalarField, scalar>("alpha1"); + patch().lookupPatchField<volScalarField, scalar>(alphaName_); alphap = max(alphap, scalar(0)); alphap = min(alphap, scalar(1)); @@ -129,6 +134,8 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField::write os.writeKeyword("flowRate") << flowRate_ << token::END_STATEMENT << nl; + os.writeKeyword("alpha") << alphaName_ + << token::END_STATEMENT << nl; writeEntry("value", os); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H index 10e6a2c88993741da7567025b845de155dcc2247..34742c7567bbe4ba0d02a8a9bfa511b02ad396e9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H @@ -39,6 +39,7 @@ Description \table Property | Description | Required | Default value flowRate | volumetric flow rate [m3/s] | yes | + alpha | phase-fraction field | yes | \endtable Example of the boundary condition specification: @@ -47,6 +48,7 @@ Description { type variableHeightFlowRateInletVelocity; flowRate 0.2; + alpha alpha.water; value uniform (0 0 0); // placeholder } \endverbatim @@ -87,6 +89,9 @@ class variableHeightFlowRateInletVelocityFvPatchVectorField //- Inlet integral flow rate scalar flowRate_; + //- Name of the phase-fraction field + word alphaName_; + public: diff --git a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.C b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.C index b368c448100a7a10a6375c665c844a0cfd73a665..8292b9712b1fa010f31a075c1fbd8c75e34507a1 100644 --- a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.C +++ b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -234,4 +234,16 @@ void Foam::CollidingCloud<CloudType>::motion(TrackData& td) } +template<class CloudType> +void Foam::CollidingCloud<CloudType>::info() +{ + CloudType::info(); + + scalar rotationalKineticEnergy = rotationalKineticEnergyOfSystem(); + reduce(rotationalKineticEnergy, sumOp<scalar>()); + + Info<< " Rotational kinetic energy = " + << rotationalKineticEnergy << nl; +} + // ************************************************************************* // diff --git a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.H b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.H index c51e6a7bb55eec1f745f768d07ca84463e02941e..3b42061bf43f120ccafd5484ebbb1ff26328bcf8 100644 --- a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloud.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -197,8 +197,13 @@ public: inline CollisionModel<CollidingCloud<CloudType> >& collision(); + // Check - // Evolution + //- Total rotational kinetic energy in the system + inline scalar rotationalKineticEnergyOfSystem() const; + + + // Cloud evolution functions //- Store the current cloud state void storeState(); @@ -212,6 +217,12 @@ public: //- Particle motion template<class TrackData> void motion(TrackData& td); + + + // I-O + + //- Print cloud information + void info(); }; diff --git a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloudI.H b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloudI.H index 19f03d39b16d35b7dd29b6aca75be733ad8de7f2..1dedd5da9ced811a63d564f824260b1b973b4fd3 100644 --- a/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/CollidingCloud/CollidingCloudI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -49,4 +49,22 @@ Foam::CollidingCloud<CloudType>::collision() } +template<class CloudType> +inline Foam::scalar +Foam::CollidingCloud<CloudType>::rotationalKineticEnergyOfSystem() const +{ + scalar rotationalKineticEnergy = 0.0; + + forAllConstIter(typename CollidingCloud<CloudType>, *this, iter) + { + const parcelType& p = iter(); + + rotationalKineticEnergy += + p.nParticle()*0.5*p.momentOfInertia()*(p.omega() & p.omega()); + } + + return rotationalKineticEnergy; +} + + // ************************************************************************* // diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C index 445775a9286e997229f9ea05dd23209edbb1f460..acf9e8c2350ce2b239247926e7a653ae0f3bdd63 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C @@ -864,9 +864,6 @@ void Foam::KinematicCloud<CloudType>::info() scalar linearKineticEnergy = linearKineticEnergyOfSystem(); reduce(linearKineticEnergy, sumOp<scalar>()); - scalar rotationalKineticEnergy = rotationalKineticEnergyOfSystem(); - reduce(rotationalKineticEnergy, sumOp<scalar>()); - Info<< "Cloud: " << this->name() << nl << " Current number of parcels = " << returnReduce(this->size(), sumOp<label>()) << nl @@ -877,9 +874,7 @@ void Foam::KinematicCloud<CloudType>::info() << " |Linear momentum| = " << mag(linearMomentum) << nl << " Linear kinetic energy = " - << linearKineticEnergy << nl - << " Rotational kinetic energy = " - << rotationalKineticEnergy << nl; + << linearKineticEnergy << nl; injectors_.info(Info); this->surfaceFilm().info(Info); diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H index 59f9fc7da8aac339aceb703244043962fe76b6b5..c29dfe2c8d1f6e9bbe3facd084c1a5288d14a559 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H @@ -487,9 +487,6 @@ public: //- Total linear kinetic energy in the system inline scalar linearKineticEnergyOfSystem() const; - //- Total rotational kinetic energy in the system - inline scalar rotationalKineticEnergyOfSystem() const; - //- Penetration for fraction [0-1] of the current total mass inline scalar penetration(const scalar fraction) const; diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H index 5ba48458f26b365cbb0a34ea296ae030d9f94b92..5f0d6767f332c3f0da04bf7adca2e0eced1a648e 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H @@ -307,24 +307,6 @@ Foam::KinematicCloud<CloudType>::linearKineticEnergyOfSystem() const } -template<class CloudType> -inline Foam::scalar -Foam::KinematicCloud<CloudType>::rotationalKineticEnergyOfSystem() const -{ - scalar rotationalKineticEnergy = 0.0; - - forAllConstIter(typename KinematicCloud<CloudType>, *this, iter) - { - const parcelType& p = iter(); - - rotationalKineticEnergy += - p.nParticle()*0.5*p.momentOfInertia()*(p.omega() & p.omega()); - } - - return rotationalKineticEnergy; -} - - template<class CloudType> inline Foam::scalar Foam::KinematicCloud<CloudType>::Dij ( diff --git a/src/lagrangian/intermediate/clouds/baseClasses/kinematicCloud/kinematicCloud.H b/src/lagrangian/intermediate/clouds/baseClasses/kinematicCloud/kinematicCloud.H index 84a98dd6b7bde4a4fe82d481b210d4da9471d4b8..07bcd970b07f501b685ec4fbfdbdbac32fb381fa 100644 --- a/src/lagrangian/intermediate/clouds/baseClasses/kinematicCloud/kinematicCloud.H +++ b/src/lagrangian/intermediate/clouds/baseClasses/kinematicCloud/kinematicCloud.H @@ -86,7 +86,7 @@ public: virtual scalar linearKineticEnergyOfSystem() const = 0; //- Total rotational kinetic energy in the system - virtual scalar rotationalKineticEnergyOfSystem() const = 0; +// virtual scalar rotationalKineticEnergyOfSystem() const = 0; //- Penetration for percentage of the current total mass // virtual scalar penetration(const scalar& fraction) const = 0; diff --git a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.C b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.C index 97c531b21f0cf18f41a5e25fd6a341dfc06397db..2e544b690634723b4b4d5abcade3ead22b562c1d 100644 --- a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.C +++ b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.C @@ -34,6 +34,9 @@ Foam::CollidingParcel<ParcelType>::CollidingParcel ) : ParcelType(p), + f_(p.f_), + angularMomentum_(p.angularMomentum_), + torque_(p.torque_), collisionRecords_(p.collisionRecords_) {} @@ -46,6 +49,9 @@ Foam::CollidingParcel<ParcelType>::CollidingParcel ) : ParcelType(p, mesh), + f_(p.f_), + angularMomentum_(p.angularMomentum_), + torque_(p.torque_), collisionRecords_(p.collisionRecords_) {} @@ -166,6 +172,29 @@ bool Foam::CollidingParcel<ParcelType>::move } +template<class ParcelType> +void Foam::CollidingParcel<ParcelType>::transformProperties(const tensor& T) +{ + ParcelType::transformProperties(T); + + f_ = transform(T, f_); + + angularMomentum_ = transform(T, angularMomentum_); + + torque_ = transform(T, torque_); +} + + +template<class ParcelType> +void Foam::CollidingParcel<ParcelType>::transformProperties +( + const vector& separation +) +{ + ParcelType::transformProperties(separation); +} + + // * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * // #include "CollidingParcelIO.C" diff --git a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.H b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.H index 5d6f6ca3e0ee6c44dcc9beb5e365a389c7b6ee55..00cadb13ed4c621de2a461d42e2777b396e2538c 100644 --- a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.H +++ b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcel.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,7 +66,7 @@ Ostream& operator<< ); /*---------------------------------------------------------------------------*\ - Class CollidingParcel Declaration + Class CollidingParcel Declaration \*---------------------------------------------------------------------------*/ template<class ParcelType> @@ -78,6 +78,16 @@ protected: // Protected data + //- Force on particle due to collisions [N] + vector f_; + + //- Angular momentum of Parcel in global reference frame [kg m2/s] + vector angularMomentum_; + + //- Torque on particle due to collisions in global + // reference frame [Nm] + vector torque_; + //- Particle collision records collisionRecordList collisionRecords_; @@ -93,7 +103,10 @@ public: AddToPropertyList ( ParcelType, - " collisionRecordsPairAccessed" + " (fx fy fz)" + + " (angularMomentumx angularMomentumy angularMomentumz)" + + " (torquex torquey torquez)" + + " collisionRecordsPairAccessed" + " collisionRecordsPairOrigProcOfOther" + " collisionRecordsPairOrigIdOfOther" + " (collisionRecordsPairData)" @@ -188,12 +201,33 @@ public: // Access + //- Return const access to force + inline const vector& f() const; + + //- Return const access to angular momentum + inline const vector& angularMomentum() const; + + //- Return const access to torque + inline const vector& torque() const; + //- Return const access to the collision records inline const collisionRecordList& collisionRecords() const; + //- Return access to force + inline vector& f(); + + //- Return access to angular momentum + inline vector& angularMomentum(); + + //- Return access to torque + inline vector& torque(); + //- Return access to collision records inline collisionRecordList& collisionRecords(); + //- Particle angular velocity + inline vector omega() const; + // Tracking @@ -201,6 +235,14 @@ public: template<class TrackData> bool move(TrackData& td, const scalar trackTime); + //- Transform the physical properties of the particle + // according to the given transformation tensor + virtual void transformProperties(const tensor& T); + + //- Transform the physical properties of the particle + // according to the given separation vector + virtual void transformProperties(const vector& separation); + // I-O diff --git a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelI.H b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelI.H index 908d9a30b5ff0191974c72ced2b0e75b5508fd23..cb8fb964feef37eb0d05de464a0076400cbf7811 100644 --- a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelI.H +++ b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,6 +36,9 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel ) : ParcelType(owner, position, cellI, tetFaceI, tetPtI), + f_(vector::zero), + angularMomentum_(vector::zero), + torque_(vector::zero), collisionRecords_() {} @@ -70,18 +73,39 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel nParticle0, d0, dTarget0, - U0, - f0, - angularMomentum0, torque0, constProps ), + f_(f0), + angularMomentum_(angularMomentum0), + torque_(torque0), collisionRecords_() {} // * * * * * * * CollidingParcel Member Functions * * * * * * * // +template<class ParcelType> +inline const Foam::vector& Foam::CollidingParcel<ParcelType>::f() const +{ + return f_; +} + + +template<class ParcelType> +inline const Foam::vector& +Foam::CollidingParcel<ParcelType>::angularMomentum() const +{ + return angularMomentum_; +} + + +template<class ParcelType> +inline const Foam::vector& Foam::CollidingParcel<ParcelType>::torque() const +{ + return torque_; +} + template<class ParcelType> inline const Foam::collisionRecordList& @@ -91,6 +115,27 @@ Foam::CollidingParcel<ParcelType>::collisionRecords() const } +template<class ParcelType> +inline Foam::vector& Foam::CollidingParcel<ParcelType>::f() +{ + return f_; +} + + +template<class ParcelType> +inline Foam::vector& Foam::CollidingParcel<ParcelType>::angularMomentum() +{ + return angularMomentum_; +} + + +template<class ParcelType> +inline Foam::vector& Foam::CollidingParcel<ParcelType>::torque() +{ + return torque_; +} + + template<class ParcelType> inline Foam::collisionRecordList& Foam::CollidingParcel<ParcelType>::collisionRecords() @@ -99,4 +144,11 @@ Foam::CollidingParcel<ParcelType>::collisionRecords() } +template<class ParcelType> +inline Foam::vector Foam::CollidingParcel<ParcelType>::omega() const +{ + return angularMomentum_/this->momentOfInertia(); +} + + // ************************************************************************* // diff --git a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelIO.C b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelIO.C index 90846259e8ce093657539d5c8c60fe60ac87dd12..020a663238efede1e84b42c5d74dd8d3fb1873aa 100644 --- a/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelIO.C +++ b/src/lagrangian/intermediate/parcels/Templates/CollidingParcel/CollidingParcelIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,10 +45,30 @@ Foam::CollidingParcel<ParcelType>::CollidingParcel ) : ParcelType(mesh, is, readFields), + f_(vector::zero), + angularMomentum_(vector::zero), + torque_(vector::zero), collisionRecords_() { if (readFields) { + if (is.format() == IOstream::ASCII) + { + is >> f_; + is >> angularMomentum_; + is >> torque_; + } + else + { + is.read + ( + reinterpret_cast<char*>(&f_), + + sizeof(f_) + + sizeof(angularMomentum_) + + sizeof(torque_) + ); + } + is >> collisionRecords_; } @@ -72,6 +92,18 @@ void Foam::CollidingParcel<ParcelType>::readFields(CloudType& c) ParcelType::readFields(c); + IOField<vector> f(c.fieldIOobject("f", IOobject::MUST_READ)); + c.checkFieldIOobject(c, f); + + IOField<vector> angularMomentum + ( + c.fieldIOobject("angularMomentum", IOobject::MUST_READ) + ); + c.checkFieldIOobject(c, angularMomentum); + + IOField<vector> torque(c.fieldIOobject("torque", IOobject::MUST_READ)); + c.checkFieldIOobject(c, torque); + labelFieldCompactIOField collisionRecordsPairAccessed ( c.fieldIOobject("collisionRecordsPairAccessed", IOobject::MUST_READ) @@ -128,6 +160,10 @@ void Foam::CollidingParcel<ParcelType>::readFields(CloudType& c) { CollidingParcel<ParcelType>& p = iter(); + p.f_ = f[i]; + p.angularMomentum_ = angularMomentum[i]; + p.torque_ = torque[i]; + p.collisionRecords_ = collisionRecordList ( collisionRecordsPairAccessed[i], @@ -152,6 +188,14 @@ void Foam::CollidingParcel<ParcelType>::writeFields(const CloudType& c) label np = c.size(); + IOField<vector> f(c.fieldIOobject("f", IOobject::NO_READ), np); + IOField<vector> angularMomentum + ( + c.fieldIOobject("angularMomentum", IOobject::NO_READ), + np + ); + IOField<vector> torque(c.fieldIOobject("torque", IOobject::NO_READ), np); + labelFieldCompactIOField collisionRecordsPairAccessed ( c.fieldIOobject("collisionRecordsPairAccessed", IOobject::NO_READ), @@ -198,6 +242,10 @@ void Foam::CollidingParcel<ParcelType>::writeFields(const CloudType& c) { const CollidingParcel<ParcelType>& p = iter(); + f[i] = p.f(); + angularMomentum[i] = p.angularMomentum(); + torque[i] = p.torque(); + collisionRecordsPairAccessed[i] = p.collisionRecords().pairAccessed(); collisionRecordsPairOrigProcOfOther[i] = p.collisionRecords().pairOrigProcOfOther(); @@ -211,6 +259,10 @@ void Foam::CollidingParcel<ParcelType>::writeFields(const CloudType& c) i++; } + f.write(); + angularMomentum.write(); + torque.write(); + collisionRecordsPairAccessed.write(); collisionRecordsPairOrigProcOfOther.write(); collisionRecordsPairOrigIdOfOther.write(); @@ -233,12 +285,22 @@ Foam::Ostream& Foam::operator<< if (os.format() == IOstream::ASCII) { os << static_cast<const ParcelType&>(p) + << token::SPACE << p.f() + << token::SPACE << p.angularMomentum() + << token::SPACE << p.torque() << token::SPACE << p.collisionRecords(); } else { - os << static_cast<const ParcelType&>(p) - << p.collisionRecords(); + os << static_cast<const ParcelType&>(p); + os.write + ( + reinterpret_cast<const char*>(&p.f_), + + sizeof(p.f()) + + sizeof(p.angularMomentum()) + + sizeof(p.torque()) + ); + os << p.collisionRecords(); } // Check state of Ostream diff --git a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.C b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.C index 7ec52b1ee8ad96fb81cd43dd8093ebe4f8b6f63f..f866f69d850a6c93d9ad798b65e3881f3324ea10 100644 --- a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.C +++ b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -213,9 +213,6 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel d_(p.d_), dTarget_(p.dTarget_), U_(p.U_), - f_(p.f_), - angularMomentum_(p.angularMomentum_), - torque_(p.torque_), rho_(p.rho_), age_(p.age_), tTurb_(p.tTurb_), @@ -240,9 +237,6 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel d_(p.d_), dTarget_(p.dTarget_), U_(p.U_), - f_(p.f_), - angularMomentum_(p.angularMomentum_), - torque_(p.torque_), rho_(p.rho_), age_(p.age_), tTurb_(p.tTurb_), @@ -437,12 +431,6 @@ void Foam::KinematicParcel<ParcelType>::transformProperties(const tensor& T) ParcelType::transformProperties(T); U_ = transform(T, U_); - - f_ = transform(T, f_); - - angularMomentum_ = transform(T, angularMomentum_); - - torque_ = transform(T, torque_); } diff --git a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.H b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.H index 3460fe401b8866c22120e400df45c3015b9a303e..61ad57369ebb12c1e7181d33c69c8de6849875e0 100644 --- a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.H +++ b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.H @@ -261,17 +261,6 @@ protected: //- Velocity of Parcel [m/s] vector U_; - //- Force on particle due to collisions [N] - vector f_; - - //- Angular momentum of Parcel in global reference frame - // [kg m2/s] - vector angularMomentum_; - - //- Torque on particle due to collisions in global - // reference frame [Nm] - vector torque_; - //- Density [kg/m3] scalar rho_; @@ -332,9 +321,6 @@ public: + " d" + " dTarget " + " (Ux Uy Uz)" - + " (fx fy fz)" - + " (angularMomentumx angularMomentumy angularMomentumz)" - + " (torquex torquey torquez)" + " rho" + " age" + " tTurb" @@ -367,9 +353,6 @@ public: const scalar nParticle0, const scalar d0, const scalar dTarget0, - const vector& U0, - const vector& f0, - const vector& angularMomentum0, const vector& torque0, const constantProperties& constProps ); @@ -445,15 +428,6 @@ public: //- Return const access to velocity inline const vector& U() const; - //- Return const access to force - inline const vector& f() const; - - //- Return const access to angular momentum - inline const vector& angularMomentum() const; - - //- Return const access to torque - inline const vector& torque() const; - //- Return const access to density inline scalar rho() const; @@ -496,15 +470,6 @@ public: //- Return access to velocity inline vector& U(); - //- Return access to force - inline vector& f(); - - //- Return access to angular momentum - inline vector& angularMomentum(); - - //- Return access to torque - inline vector& torque(); - //- Return access to density inline scalar& rho(); @@ -532,9 +497,6 @@ public: //- Particle moment of inertia around diameter axis inline scalar momentOfInertia() const; - //- Particle angular velocity - inline vector omega() const; - //- Particle volume inline scalar volume() const; diff --git a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelI.H b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelI.H index 6956a8b74cf80ff284e12d90760b88c528971a46..6e336a0d6a326d4e496fa0b43caa2187fd3451a7 100644 --- a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelI.H +++ b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelI.H @@ -135,9 +135,6 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel d_(0.0), dTarget_(0.0), U_(vector::zero), - f_(vector::zero), - angularMomentum_(vector::zero), - torque_(vector::zero), rho_(0.0), age_(0.0), tTurb_(0.0), @@ -161,9 +158,6 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel const scalar d0, const scalar dTarget0, const vector& U0, - const vector& f0, - const vector& angularMomentum0, - const vector& torque0, const constantProperties& constProps ) : @@ -174,9 +168,6 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel d_(d0), dTarget_(dTarget0), U_(U0), - f_(f0), - angularMomentum_(angularMomentum0), - torque_(torque0), rho_(constProps.rho0()), age_(0.0), tTurb_(0.0), @@ -289,30 +280,6 @@ inline const Foam::vector& Foam::KinematicParcel<ParcelType>::U() const } -template<class ParcelType> -inline const Foam::vector& -Foam::KinematicParcel<ParcelType>::f() const -{ - return f_; -} - - -template<class ParcelType> -inline const Foam::vector& -Foam::KinematicParcel<ParcelType>::angularMomentum() const -{ - return angularMomentum_; -} - - -template<class ParcelType> -inline const Foam::vector& -Foam::KinematicParcel<ParcelType>::torque() const -{ - return torque_; -} - - template<class ParcelType> inline Foam::scalar Foam::KinematicParcel<ParcelType>::rho() const { @@ -404,27 +371,6 @@ inline Foam::vector& Foam::KinematicParcel<ParcelType>::U() } -template<class ParcelType> -inline Foam::vector& Foam::KinematicParcel<ParcelType>::f() -{ - return f_; -} - - -template<class ParcelType> -inline Foam::vector& Foam::KinematicParcel<ParcelType>::angularMomentum() -{ - return angularMomentum_; -} - - -template<class ParcelType> -inline Foam::vector& Foam::KinematicParcel<ParcelType>::torque() -{ - return torque_; -} - - template<class ParcelType> inline Foam::scalar& Foam::KinematicParcel<ParcelType>::rho() { @@ -492,13 +438,6 @@ inline Foam::scalar Foam::KinematicParcel<ParcelType>::momentOfInertia() const } -template<class ParcelType> -inline Foam::vector Foam::KinematicParcel<ParcelType>::omega() const -{ - return angularMomentum_/momentOfInertia(); -} - - template<class ParcelType> inline Foam::scalar Foam::KinematicParcel<ParcelType>::volume() const { diff --git a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelIO.C b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelIO.C index 6dee6a42bebddc4ef96dfe39731f72efbee787d8..281cf4ef95c3b9cde22fadf477cc63d75728c2c7 100644 --- a/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelIO.C +++ b/src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,9 +51,6 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel d_(0.0), dTarget_(0.0), U_(vector::zero), - f_(vector::zero), - angularMomentum_(vector::zero), - torque_(vector::zero), rho_(0.0), age_(0.0), tTurb_(0.0), @@ -72,9 +69,6 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel d_ = readScalar(is); dTarget_ = readScalar(is); is >> U_; - is >> f_; - is >> angularMomentum_; - is >> torque_; rho_ = readScalar(is); age_ = readScalar(is); tTurb_ = readScalar(is); @@ -91,9 +85,6 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel + sizeof(d_) + sizeof(dTarget_) + sizeof(U_) - + sizeof(f_) - + sizeof(angularMomentum_) - + sizeof(torque_) + sizeof(rho_) + sizeof(age_) + sizeof(tTurb_) @@ -141,18 +132,6 @@ void Foam::KinematicParcel<ParcelType>::readFields(CloudType& c) IOField<vector> U(c.fieldIOobject("U", IOobject::MUST_READ)); c.checkFieldIOobject(c, U); - IOField<vector> f(c.fieldIOobject("f", IOobject::MUST_READ)); - c.checkFieldIOobject(c, f); - - IOField<vector> angularMomentum - ( - c.fieldIOobject("angularMomentum", IOobject::MUST_READ) - ); - c.checkFieldIOobject(c, angularMomentum); - - IOField<vector> torque(c.fieldIOobject("torque", IOobject::MUST_READ)); - c.checkFieldIOobject(c, torque); - IOField<scalar> rho(c.fieldIOobject("rho", IOobject::MUST_READ)); c.checkFieldIOobject(c, rho); @@ -177,8 +156,6 @@ void Foam::KinematicParcel<ParcelType>::readFields(CloudType& c) p.d_ = d[i]; p.dTarget_ = dTarget[i]; p.U_ = U[i]; - p.f_ = f[i]; - p.angularMomentum_ = angularMomentum[i]; p.rho_ = rho[i]; p.age_ = age[i]; p.tTurb_ = tTurb[i]; @@ -207,13 +184,6 @@ void Foam::KinematicParcel<ParcelType>::writeFields(const CloudType& c) IOField<scalar> d(c.fieldIOobject("d", IOobject::NO_READ), np); IOField<scalar> dTarget(c.fieldIOobject("dTarget", IOobject::NO_READ), np); IOField<vector> U(c.fieldIOobject("U", IOobject::NO_READ), np); - IOField<vector> f(c.fieldIOobject("f", IOobject::NO_READ), np); - IOField<vector> angularMomentum - ( - c.fieldIOobject("angularMomentum", IOobject::NO_READ), - np - ); - IOField<vector> torque(c.fieldIOobject("torque", IOobject::NO_READ), np); IOField<scalar> rho(c.fieldIOobject("rho", IOobject::NO_READ), np); IOField<scalar> age(c.fieldIOobject("age", IOobject::NO_READ), np); IOField<scalar> tTurb(c.fieldIOobject("tTurb", IOobject::NO_READ), np); @@ -231,9 +201,6 @@ void Foam::KinematicParcel<ParcelType>::writeFields(const CloudType& c) d[i] = p.d(); dTarget[i] = p.dTarget(); U[i] = p.U(); - f[i] = p.f(); - angularMomentum[i] = p.angularMomentum(); - torque[i] = p.torque(); rho[i] = p.rho(); age[i] = p.age(); tTurb[i] = p.tTurb(); @@ -248,9 +215,6 @@ void Foam::KinematicParcel<ParcelType>::writeFields(const CloudType& c) d.write(); dTarget.write(); U.write(); - f.write(); - angularMomentum.write(); - torque.write(); rho.write(); age.write(); tTurb.write(); @@ -276,9 +240,6 @@ Foam::Ostream& Foam::operator<< << token::SPACE << p.d() << token::SPACE << p.dTarget() << token::SPACE << p.U() - << token::SPACE << p.f() - << token::SPACE << p.angularMomentum() - << token::SPACE << p.torque() << token::SPACE << p.rho() << token::SPACE << p.age() << token::SPACE << p.tTurb() @@ -296,9 +257,6 @@ Foam::Ostream& Foam::operator<< + sizeof(p.d()) + sizeof(p.dTarget()) + sizeof(p.U()) - + sizeof(p.f()) - + sizeof(p.angularMomentum()) - + sizeof(p.torque()) + sizeof(p.rho()) + sizeof(p.age()) + sizeof(p.tTurb()) diff --git a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.H b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.H index 1ac1663d288770c7615279ab5b199504bb6b0c93..65a96036bc4bb5c0e485df73dcbee0cce2f1b7d7 100644 --- a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.H +++ b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.H @@ -110,8 +110,6 @@ public: const scalar Pr, const scalar pMin, const Switch& constantVolume, - const scalar Tvap, - const scalar Tbp, const scalar sigma0, const scalar mu0 ); diff --git a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcelI.H b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcelI.H index 66e5dc616faa7a6130c1e3e01ce14d565a511f55..76dad917b7a22b2b9b12a7ce0488ed23391c00c0 100644 --- a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcelI.H +++ b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcelI.H @@ -82,8 +82,6 @@ inline Foam::SprayParcel<ParcelType>::constantProperties::constantProperties const scalar Pr, const scalar pMin, const Switch& constantVolume, - const scalar Tvap, - const scalar Tbp, const scalar sigma0, const scalar mu0 ) @@ -104,9 +102,7 @@ inline Foam::SprayParcel<ParcelType>::constantProperties::constantProperties f0, Pr, pMin, - constantVolume, - Tvap, - Tbp + constantVolume ), sigma0_(sigma0), mu0_(mu0) diff --git a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H index 3d77628cfad88cc740c40ca59a22bcc67c4dcbc6..6ae416d8c89998f53d3c1f7f5fea2c78271027e6 100644 --- a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H +++ b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H @@ -173,9 +173,6 @@ public: //- Heat of formation [J/kg] inline scalar Hf() const; - //- Total enthalpy - reference to Tstd [J/kg] - inline scalar H(const scalar T) const; - //- Sensible enthalpy - reference to Tstd [J/kg] inline scalar Hs(const scalar T) const; diff --git a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H index 11f6c79e0259dfa925512ba8cd3e1637d26a2881..05b6ad9c949d33af3f9ce5db527bb2989c3f8470 100644 --- a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H +++ b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H @@ -51,12 +51,6 @@ inline Foam::scalar Foam::solidProperties::Hf() const } -inline Foam::scalar Foam::solidProperties::H(const scalar T) const -{ - return Hs(T) + Hf_; -} - - inline Foam::scalar Foam::solidProperties::Hs(const scalar T) const { return Cp_*(T - specie::Tstd); diff --git a/src/thermophysicalModels/specie/thermo/thermo/thermo.H b/src/thermophysicalModels/specie/thermo/thermo/thermo.H index bacceb36bc1b5a368c6124f48c6332e3bc095de9..974582b5291939a1759ec55579b65c58f6fc555c 100644 --- a/src/thermophysicalModels/specie/thermo/thermo/thermo.H +++ b/src/thermophysicalModels/specie/thermo/thermo/thermo.H @@ -217,9 +217,6 @@ public: //- Enthalpy/Internal energy [J/kg] inline scalar HE(const scalar p, const scalar T) const; - //- Enthalpy [J/kg] - inline scalar H(const scalar p, const scalar T) const; - //- Sensible enthalpy [J/kg] inline scalar Hs(const scalar p, const scalar T) const; diff --git a/src/thermophysicalModels/specie/thermo/thermo/thermoI.H b/src/thermophysicalModels/specie/thermo/thermo/thermoI.H index ab19475edab06bd6389a81c3a6a7620ccbd71feb..1de3149916c9acb4fffc5771511dbb12e25e9fcb 100644 --- a/src/thermophysicalModels/specie/thermo/thermo/thermoI.H +++ b/src/thermophysicalModels/specie/thermo/thermo/thermoI.H @@ -215,14 +215,6 @@ Foam::species::thermo<Thermo, Type>::HE(const scalar p, const scalar T) const } -template<class Thermo, template<class> class Type> -inline Foam::scalar -Foam::species::thermo<Thermo, Type>::H(const scalar p, const scalar T) const -{ - return this->h(p, T)/this->W(); -} - - template<class Thermo, template<class> class Type> inline Foam::scalar Foam::species::thermo<Thermo, Type>::Hs(const scalar p, const scalar T) const diff --git a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C index 36c9076486a90b0338047c05833cb6abf82941e9..5aa56a1062622e9a48af5530a774da782e08ad35 100644 --- a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C +++ b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C @@ -53,9 +53,7 @@ void Foam::incompressibleTwoPhaseMixture::calcNu() Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name, - const word& alpha2Name + const surfaceScalarField& phi ) : IOdictionary @@ -69,14 +67,14 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture IOobject::NO_WRITE ) ), - twoPhaseMixture(U.mesh(), *this, alpha1Name, alpha2Name), + twoPhaseMixture(U.mesh(), *this), nuModel1_ ( viscosityModel::New ( "nu1", - subDict(phase1Name_ == "1" ? "phase1": phase1Name_), + subDict(phase1Name_), U, phi ) @@ -86,7 +84,7 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture viscosityModel::New ( "nu2", - subDict(phase2Name_ == "2" ? "phase2": phase2Name_), + subDict(phase2Name_), U, phi ) diff --git a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.H b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.H index 8ec33989c98faf2021442cc9016f47a518880d70..5c4920e17f4bf853dd2ad1922c6f4bd18df89ef1 100644 --- a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.H +++ b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.H @@ -86,9 +86,7 @@ public: incompressibleTwoPhaseMixture ( const volVectorField& U, - const surfaceScalarField& phi, - const word& alpha1Name = "alpha1", - const word& alpha2Name = "alpha2" + const surfaceScalarField& phi ); diff --git a/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.C b/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.C index 7b95752f370e941080c937ed016b528c2b66e089..253b1092e754593a82f42924ff895ac67e89d0d2 100644 --- a/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.C +++ b/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.C @@ -31,29 +31,17 @@ License Foam::twoPhaseMixture::twoPhaseMixture ( const fvMesh& mesh, - const dictionary& dict, - const word& alpha1Name, - const word& alpha2Name + const dictionary& dict ) : - phase1Name_ - ( - dict.found("phases") - ? wordList(dict.lookup("phases"))[0] - : "1" - ), - phase2Name_ - ( - dict.found("phases") - ? wordList(dict.lookup("phases"))[1] - : "2" - ), + phase1Name_(wordList(dict.lookup("phases"))[0]), + phase2Name_(wordList(dict.lookup("phases"))[1]), alpha1_ ( IOobject ( - dict.found("phases") ? word("alpha" + phase1Name_) : alpha1Name, + IOobject::groupName("alpha", phase1Name_), mesh.time().timeName(), mesh, IOobject::MUST_READ, @@ -66,7 +54,7 @@ Foam::twoPhaseMixture::twoPhaseMixture ( IOobject ( - dict.found("phases") ? word("alpha" + phase2Name_) : alpha2Name, + IOobject::groupName("alpha", phase2Name_), mesh.time().timeName(), mesh ), diff --git a/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.H b/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.H index 668c4f2cfd2161ba1987e2c6f5abfe51f62b354c..aa5ae24d04b69e6ddbe86addf7b053e9c0d3be9e 100644 --- a/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.H +++ b/src/transportModels/twoPhaseMixture/twoPhaseMixture/twoPhaseMixture.H @@ -67,9 +67,7 @@ public: twoPhaseMixture ( const fvMesh& mesh, - const dictionary& dict, - const word& alpha1Name = "alpha1", - const word& alpha2Name = "alpha2" + const dictionary& dict ); diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun index 3815c35895356a5df5f8df3fa9be908e6bdfd20c..5a71c3e1b89b4da52c9b624b2fad5a978e155ae9 100755 --- a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun +++ b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun @@ -19,7 +19,7 @@ runParallel snappyHexMesh 8 -overwrite -parallel find . -type f -iname "*level*" -exec rm {} \; -ls -d processor* | xargs -i cp -r 0.org/* ./{}/0/ $1 +ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1 runParallel renumberMesh 8 -overwrite diff --git a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun index 9852cc1cf9c92226f0a21da02b984abd269e03c9..d08deac0072462c36cbe81741d1ca98c3da9f886 100755 --- a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun +++ b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun @@ -16,7 +16,7 @@ runParallel snappyHexMesh 4 -overwrite find . -type f -iname "*level*" -exec rm {} \; -ls -d processor* | xargs -i cp -r 0.org/* ./{}/0/ $1 +ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1 runParallel topoSet 4 runParallel `getApplication` 4 diff --git a/tutorials/lagrangian/LTSReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties b/tutorials/lagrangian/LTSReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties index 6b759cd17e3e038b3f29bdac510f4dc3b72e4621..689d846bac0305fa6e88f9019276a77866184547 100644 --- a/tutorials/lagrangian/LTSReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/LTSReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties @@ -70,9 +70,8 @@ constantProperties epsilon0 1; f0 0.5; - Tvap 273; - Tbp 373; Pr 0.7; + TDevol 273; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/coalCloud1Properties b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/coalCloud1Properties index 77742fd0180b23d33f2337fd6a4d93a8d5711ddb..4f2f0020dc82692aa1dd57301954805796aaa7f1 100644 --- a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/coalCloud1Properties +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/coalCloud1Properties @@ -65,8 +65,7 @@ constantProperties f0 0.5; Pr 0.7; - Tvap 400; - Tbp 400; + TDevol 400; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperEmptying/constant/kinematicCloudProperties b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperEmptying/constant/kinematicCloudProperties index 159b737d17d47fd5bf88055b4a4d843791836cba..06571ffdd14c3a7093fef5db8841c5cd32d3218c 100644 --- a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperEmptying/constant/kinematicCloudProperties +++ b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperEmptying/constant/kinematicCloudProperties @@ -68,6 +68,8 @@ subModels surfaceFilmModel none; + stochasticCollisionModel none; + collisionModel pairCollision; pairCollisionCoeffs diff --git a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperInitialState/constant/kinematicCloudProperties b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperInitialState/constant/kinematicCloudProperties index 49458393ea6fb5b6755a4bf34826816045936ef9..874c38665392efabcfe52b9c774b57298ab5643b 100644 --- a/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperInitialState/constant/kinematicCloudProperties +++ b/tutorials/lagrangian/icoUncoupledKinematicParcelFoam/hopper/hopperInitialState/constant/kinematicCloudProperties @@ -78,6 +78,8 @@ subModels surfaceFilmModel none; + stochasticCollisionModel none; + collisionModel pairCollision; pairCollisionCoeffs diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/constant/reactingCloud1Properties index b0104d35d2b976835e587057431dd0cc4ba94b09..041e9be531f3aa0b4cb634dc5813076d5b0eeef2 100644 --- a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/constant/reactingCloud1Properties @@ -63,8 +63,6 @@ constantProperties epsilon0 1; f0 0.5; Pr 0.7; - Tvap 273; - Tbp 373; constantVolume false; } diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/constant/reactingCloud1Properties index fb559463aade92aabea4545fd8a48dde00ba5646..5cfe94ef379c0c9f73c86f0f96fa0cb4415943d4 100644 --- a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/constant/reactingCloud1Properties @@ -63,8 +63,6 @@ constantProperties epsilon0 1; f0 0.5; Pr 0.7; - Tvap 273; - Tbp 373; constantVolume false; } diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/constant/reactingCloud1Properties index 9c0d5fdcac2e25d767a7315be752ffcbc45fa685..d3342565067111514ae3f949aa6075bd439b28ab 100644 --- a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/constant/reactingCloud1Properties @@ -63,8 +63,6 @@ constantProperties epsilon0 1; f0 0.5; Pr 0.7; - Tvap 273; - Tbp 373; constantVolume false; } diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties index 47aa8cf33caccf59a43760d451931dcd2dc3c49b..4938ce470667c45f0695d8bcc85626c36d62ffb1 100644 --- a/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties @@ -65,8 +65,7 @@ constantProperties f0 0.5; Pr 0.7; - Tvap 273; - Tbp 373; + TDevol 273; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/reactingParcelFoam/parcelInBox/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/parcelInBox/constant/reactingCloud1Properties index 478bbe13595bf8beb9ee5c04f6b1970a70f44ce7..f24057a445d25aaa6494f13a423e19766d0244fa 100644 --- a/tutorials/lagrangian/reactingParcelFoam/parcelInBox/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFoam/parcelInBox/constant/reactingCloud1Properties @@ -64,9 +64,8 @@ constantProperties epsilon0 1; f0 0.5; - Tvap 284; - Tbp 373; Pr 0.7; + TDevol 284; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/constant/reactingCloud1Properties index 47cd1a3bb693eec15eb18a46377e26275325fa76..be1d4e51042b1494f41ea42d7844b5b5ddf3df0f 100644 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannel/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannel/constant/reactingCloud1Properties @@ -64,9 +64,8 @@ constantProperties epsilon0 1; f0 0.5; - Tvap 273; - Tbp 373; Pr 0.7; + TDevol 273; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties index 6b759cd17e3e038b3f29bdac510f4dc3b72e4621..689d846bac0305fa6e88f9019276a77866184547 100644 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties @@ -70,9 +70,8 @@ constantProperties epsilon0 1; f0 0.5; - Tvap 273; - Tbp 373; Pr 0.7; + TDevol 273; LDevol 0; hRetentionCoeff 1; diff --git a/tutorials/lagrangian/sprayFoam/aachenBomb/constant/sprayCloudProperties b/tutorials/lagrangian/sprayFoam/aachenBomb/constant/sprayCloudProperties index a8125605528e41a6e8ae3413ab25cb4f9afd6746..54f3e4dd33606aa232d16eed8408598b4df2343c 100644 --- a/tutorials/lagrangian/sprayFoam/aachenBomb/constant/sprayCloudProperties +++ b/tutorials/lagrangian/sprayFoam/aachenBomb/constant/sprayCloudProperties @@ -68,8 +68,6 @@ constantProperties epsilon0 1; f0 0.5; Pr 0.7; - Tvap 273; - Tbp 373; constantVolume false; } diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/0/alpha1.org b/tutorials/multiphase/LTSInterFoam/wigleyHull/0/alpha.water.org similarity index 100% rename from tutorials/multiphase/LTSInterFoam/wigleyHull/0/alpha1.org rename to tutorials/multiphase/LTSInterFoam/wigleyHull/0/alpha.water.org diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/Allclean b/tutorials/multiphase/LTSInterFoam/wigleyHull/Allclean index 333348ffdf086d1b15ecd02c5784ed9526a762be..99318580f37b2829b01017564b74b5cd6bb90204 100755 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/Allclean +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/Allclean @@ -8,7 +8,7 @@ cd ${0%/*} || exit 1 # run from this directory \rm -f constant/triSurface/wigley-scaled-oriented.stl.gz cleanCase -rm 0/alpha1.gz 0/cellLevel.gz 0/pointLevel.gz constant/polyMesh/boundary \ +rm 0/alpha.water.gz 0/cellLevel.gz 0/pointLevel.gz constant/polyMesh/boundary \ > /dev/null 2>&1 # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/Allrun b/tutorials/multiphase/LTSInterFoam/wigleyHull/Allrun index 28fec41b1faeac26db1ea45fd5897666765f63e9..2924a2cd45d243fa19a6314fc36a6a2b52e0be67 100755 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/Allrun +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/Allrun @@ -13,7 +13,7 @@ if [ ! -e log.transformPoints ] then transformPoints -scale '(2 1 1)' > log.transformPoints 2>&1 fi -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/constant/transportProperties b/tutorials/multiphase/LTSInterFoam/wigleyHull/constant/transportProperties index aa9b560484a10ef92f93801e7965b76ff3d8f338..8c6e7a2008d3c96587ed8b4e44343305074fa29c 100644 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/constant/transportProperties +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSchemes b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSchemes index 7018c5eaa736966eedef0d3358cf514187949c90..de873558162e1e1cea020af091244cba613e96e7 100644 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSchemes +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSchemes @@ -55,7 +55,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSolution b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSolution index 76eaf8fd2a3d1ce01aa7564134a7737d9b5e6f28..e59fb400df2ad2fc686c3780ad05551c936ae55c 100644 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSolution +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 1; diff --git a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/setFieldsDict b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/setFieldsDict index b2491279962daab27aee162d8b8776f6a66ff7e5..75a2dfccb82c5a9d720f80695f612f9a36f57515 100644 --- a/tutorials/multiphase/LTSInterFoam/wigleyHull/system/setFieldsDict +++ b/tutorials/multiphase/LTSInterFoam/wigleyHull/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (-100 -100 -100) (100 100 0); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1 b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water similarity index 99% rename from tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1 rename to tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water index 1b5529949cad6bbc76c0df26e4a25e7fa96f5fe4..766d8c1462422f121b9c55e00e2ccb5401e42f82 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1 +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1.org b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1.org rename to tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water.org index 0f3dcd46393f9b498f154afa8e76bbbe50579b1e..e1483e3c1ea0f46f5be5c2d819f89291fe8b3ace 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha1.org +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/constant/transportProperties b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/constant/transportProperties index ff55cf97dad31b0403a30e5dd0668f006a99c0d7..15e0e327a49d7997cbcad52745d29b00992d3eb0 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/constant/transportProperties +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water oir); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-4; rho rho [ 1 -3 0 0 0 0 0 ] 1000; } -phase2 +oir { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-4; diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSchemes b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSchemes index 3827ac6548c856001186bea04d81494e454c8392..568660217fe3cdf6d0843a3fff4f058d4d03d1bb 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSchemes +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSchemes @@ -53,7 +53,7 @@ fluxRequired default no; p_rgh ; pcorr ; - alpha1 ; + alpha.water ; } diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSolution b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSolution index 87856ee3ca139aff10b36730998d69bc6218bd33..4d0d8915585ae0ad52befebedf17f83d7226bd46 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSolution +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 2; diff --git a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/setFieldsDict b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/setFieldsDict index 75b90a3695a92e3ef8b05ce50fccbedb5a0e10cb..c5884201fc74aded2683c9dabc280eaf0acb90a7 100644 --- a/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/setFieldsDict +++ b/tutorials/multiphase/MRFInterFoam/mixerVessel2D/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (0 0 -1) (1 1 1); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/0/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle/0/alpha.vapour similarity index 97% rename from tutorials/multiphase/cavitatingFoam/ras/throttle/0/gamma rename to tutorials/multiphase/cavitatingFoam/les/throttle/0/alpha.vapour index 14593028c1e6e0a102d4f112338573cdc932284a..0adb2cfd3a77955ce18a09957f6187eca8882c7e 100644 --- a/tutorials/multiphase/cavitatingFoam/ras/throttle/0/gamma +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/alpha.vapour @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object gamma; + object alpha.vapour; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties index b37439a124fb7f91bde8f01f415c8be2d6f87399..c5ea29f7a5d43a3f5d9e5e5917da98c736994460 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties @@ -19,14 +19,9 @@ mul mul [ 1 -1 -1 0 0 ] 0.0065; muv muv [ 1 -1 -1 0 0 ] 5.953e-06; -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (vapour water); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 7.831e-06; @@ -48,7 +43,7 @@ phase1 } } -phase2 +vapour { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 4.252e-05; diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict b/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict index 234af680caff976501ed98fef7e2b83ddc411498..4507e794d2f4239b8e053e34a806c6e2f9092eda 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict @@ -73,7 +73,7 @@ functions base time; } - gamma + alpha.vapour { mean on; prime2Mean off; diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/alpha.vapour similarity index 97% rename from tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma rename to tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/alpha.vapour index 669af89cbff8e23be985372b1eb343e9a8a120b3..40cd251c1c2e76e4b94a7cdc5eb5ceab8e27418b 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/alpha.vapour @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object gamma; + object alpha.vapour; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U deleted file mode 100644 index 5321455943ce9ed7c92adfa059a1011d070021b6..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U +++ /dev/null @@ -1,48 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volVectorField; - object U; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0]; - -internalField uniform (0 0 0); - -boundaryField -{ - inlet - { - type zeroGradient; - value uniform (0 0 0); - } - - outlet - { - type zeroGradient; - value uniform (0 0 0); - } - - walls - { - type fixedValue; - value uniform (0 0 0); - } - - frontBack - { - type fixedValue; - value uniform (0 0 0); - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma deleted file mode 100644 index 669af89cbff8e23be985372b1eb343e9a8a120b3..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma +++ /dev/null @@ -1,48 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object gamma; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - inlet - { - type calculated; - value uniform 0; - } - - outlet - { - type calculated; - value uniform 0; - } - - walls - { - type calculated; - value uniform 0; - } - - frontBack - { - type calculated; - value uniform 0; - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k deleted file mode 100644 index 9df6a831bf7d92eee132130ce0f14958784163a5..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object k; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 2 -2 0 0]; - -internalField uniform 10; - -boundaryField -{ - inlet - { - type turbulentIntensityKineticEnergyInlet; - intensity 0.05; - value uniform 0.05; - } - - outlet - { - type zeroGradient; - } - - walls - { - type kqRWallFunction; - value uniform 10; - } - - frontBack - { - type zeroGradient; - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs deleted file mode 100644 index c4d32cf2ff7d6597b53e84048a1078b387fa7df9..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object nuSgs; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 2 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - inlet - { - type calculated; - value uniform 0; - } - outlet - { - type calculated; - value uniform 0; - } - walls - { - type nutUSpaldingWallFunction; - value uniform 0; - } - frontBack - { - type nutUSpaldingWallFunction; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p deleted file mode 100644 index 58cc484ff7c1da64dbb69f56640a380da66e5d1f..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object p; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0]; - -internalField uniform 300e5; - -boundaryField -{ - inlet - { - type totalPressure; - U U; - phi phiv; - rho rho; - psi none; - gamma 1; - p0 uniform 300e5; - } - - outlet - { - type fixedValue; - value uniform 100e5; - } - - walls - { - type zeroGradient; - } - - frontBack - { - type zeroGradient; - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho deleted file mode 100644 index ae5f186cb51c4303dd4c6e4c64ddc5d358e8285a..0000000000000000000000000000000000000000 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object rho; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -3 0 0 0]; - -internalField uniform 845; - -boundaryField -{ - inlet - { - type fixedValue; - value uniform 845; - } - - outlet - { - type fixedValue; - value uniform 835; - } - - walls - { - type zeroGradient; - } - - frontBack - { - type zeroGradient; - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/Allclean b/tutorials/multiphase/cavitatingFoam/les/throttle3D/Allclean index b5c25b61f84e7b7dc0d5251d6d11203e312a2229..06e40c886cf72c17b982bb417f4e5c6f61ce9985 100755 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/Allclean +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/Allclean @@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # run from this directory rm -rf constant/polyMesh/sets > /dev/null 2>&1 rm -rf 0 > /dev/null 2>&1 -cp -r 0.org 0 rm system/topoSetDict > /dev/null 2>&1 rm -rf processor[0-9] > /dev/null 2>&1 cleanCase diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties index b37439a124fb7f91bde8f01f415c8be2d6f87399..c5ea29f7a5d43a3f5d9e5e5917da98c736994460 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties @@ -19,14 +19,9 @@ mul mul [ 1 -1 -1 0 0 ] 0.0065; muv muv [ 1 -1 -1 0 0 ] 5.953e-06; -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (vapour water); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 7.831e-06; @@ -48,7 +43,7 @@ phase1 } } -phase2 +vapour { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 4.252e-05; diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict index e068adbb61a2b4c1a5b49ceb922e65afacb1a5df..b78ee601a857b8f522443e0e2dca5f1d9f6ba153 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict @@ -73,7 +73,7 @@ functions base time; } - gamma + alpha.vapour { mean on; prime2Mean off; diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/alpha.vapour similarity index 97% rename from tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma rename to tutorials/multiphase/cavitatingFoam/ras/throttle/0/alpha.vapour index 14593028c1e6e0a102d4f112338573cdc932284a..0adb2cfd3a77955ce18a09957f6187eca8882c7e 100644 --- a/tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/alpha.vapour @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object gamma; + object alpha.vapour; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties index b37439a124fb7f91bde8f01f415c8be2d6f87399..c5ea29f7a5d43a3f5d9e5e5917da98c736994460 100644 --- a/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties @@ -19,14 +19,9 @@ mul mul [ 1 -1 -1 0 0 ] 0.0065; muv muv [ 1 -1 -1 0 0 ] 5.953e-06; -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (vapour water); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 7.831e-06; @@ -48,7 +43,7 @@ phase1 } } -phase2 +vapour { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 4.252e-05; diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/alphawater.org b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/alphawater.org rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/0/alpha.water.org index d90b720092af3d27f74cf6ca3cb23723735c73da..6a1b3d978fe7c29234f98ca47a896163fb62d961 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/alphawater.org +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alphawater; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean index 8821d7e1cc12328cac82fd5fbcfeb2cd2198e4ef..78f3e40ad832ead7ed3e2070cdadf94ed30b3bea 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allclean @@ -3,4 +3,4 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases rm -rf processor* -rm -rf 0/p_rgh.gz 0/p.gz 0/alphawater.gz 0/T*.gz +rm -rf 0/p_rgh.gz 0/p.gz 0/alpha.water.gz 0/T*.gz diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun index ac803d715f9a0b56c58f68b1c496093fbee21d3d..5d2fadf4120dacca68f02be34f9206e4d0b78ffa 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/Allrun @@ -8,7 +8,7 @@ cd ${0%/*} || exit 1 # run from this directory application=`getApplication` runApplication blockMesh -cp 0/alphawater.org 0/alphawater +cp 0/alpha.water.org 0/alpha.water cp 0/p_rgh.org 0/p_rgh cp 0/p.org 0/p cp 0/T.org 0/T diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalPropertiesair b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalProperties.air similarity index 100% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalPropertiesair rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalProperties.air diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalPropertieswater b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalProperties.water similarity index 100% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalPropertieswater rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/constant/thermophysicalProperties.water diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSchemes b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSchemes index 3582eeafa1a910f67c7fc1e7194b8aee21994754..b44890f3896acda7fb7e8726a5231784fb20b1ff 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSchemes +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSchemes @@ -31,8 +31,8 @@ divSchemes div(phirb,alpha) Gauss interfaceCompression 1; div(rho*phi,U) Gauss upwind; - div(phi,thermo:rhowater) Gauss upwind; - div(phi,thermo:rhoair) Gauss upwind; + div(phi,thermo:rho.water) Gauss upwind; + div(phi,thermo:rho.air) Gauss upwind; div(rho*phi,T) Gauss upwind; div(rho*phi,K) Gauss upwind; div(phi,p) Gauss upwind; diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSolution b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSolution index 4e1aa83dc74d3db686ea7a3ae3c8ea442091cd1e..7a04bf3624c8cbb92370b2dca60cf45a3f15530c 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSolution +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alphawater + alpha.water { nAlphaCorr 1; nAlphaSubCycles 1; diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/setFieldsDict b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/setFieldsDict index f312b4e9725624b24c148066d9685f03d42e2a9f..87fd237577390d10b9da7c3e945d06035817739b 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/setFieldsDict +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alphawater 1 + volScalarFieldValue alpha.water 1 volScalarFieldValue p_rgh 1e5 volScalarFieldValue p 1e5 volScalarFieldValue T 300 @@ -31,7 +31,7 @@ regions radius 0.1; fieldValues ( - volScalarFieldValue alphawater 0 + volScalarFieldValue alpha.water 0 volScalarFieldValue p_rgh 1e6 volScalarFieldValue p 1e6 volScalarFieldValue T 578 @@ -42,7 +42,7 @@ regions box (-10 1 -1) (10 10 1); fieldValues ( - volScalarFieldValue alphawater 0 + volScalarFieldValue alpha.water 0 ); } ); diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.air.gz b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.air.gz new file mode 100644 index 0000000000000000000000000000000000000000..df712a5aac5a12e63a5700cfab0c51796a2c0f82 Binary files /dev/null and b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.air.gz differ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.water.gz b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.water.gz new file mode 100644 index 0000000000000000000000000000000000000000..e8108f6babb69340f8a9c065fff37deb0d29ab50 Binary files /dev/null and b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/T.water.gz differ diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/0/alphawater.org b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/alpha.water.org similarity index 100% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D/0/alphawater.org rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/0/alpha.water.org diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean index 3ec07f62c5ce06923cbfba8158a68fa1c3cdc6f1..f33fd89a62ddbf02e94153268a1976ebaaacbc38 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allclean @@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases rm -rf processor* -rm -rf 0/p_rgh.gz 0/p.gz 0/alphawater.gz 0/T.gz +rm -rf 0/p_rgh.gz 0/p.gz 0/alpha.water.gz 0/T.gz # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun index 11b84a3251a97ea8539fe65034448bf77d3ebb6a..33c1da4fd3042df01fd8d15c6a57a32371a77a38 100755 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/Allrun @@ -8,7 +8,7 @@ cd ${0%/*} || exit 1 # run from this directory application=`getApplication` runApplication blockMesh -cp 0/alphawater.org 0/alphawater +cp 0/alpha.water.org 0/alpha.water cp 0/p_rgh.org 0/p_rgh cp 0/p.org 0/p cp 0/T.org 0/T diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalPropertiesair b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalProperties.air similarity index 100% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalPropertiesair rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalProperties.air diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalPropertieswater b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalProperties.water similarity index 100% rename from tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalPropertieswater rename to tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/constant/thermophysicalProperties.water diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSchemes b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSchemes index 3582eeafa1a910f67c7fc1e7194b8aee21994754..b44890f3896acda7fb7e8726a5231784fb20b1ff 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSchemes +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSchemes @@ -31,8 +31,8 @@ divSchemes div(phirb,alpha) Gauss interfaceCompression 1; div(rho*phi,U) Gauss upwind; - div(phi,thermo:rhowater) Gauss upwind; - div(phi,thermo:rhoair) Gauss upwind; + div(phi,thermo:rho.water) Gauss upwind; + div(phi,thermo:rho.air) Gauss upwind; div(rho*phi,T) Gauss upwind; div(rho*phi,K) Gauss upwind; div(phi,p) Gauss upwind; diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSolution b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSolution index 4e1aa83dc74d3db686ea7a3ae3c8ea442091cd1e..7a04bf3624c8cbb92370b2dca60cf45a3f15530c 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSolution +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alphawater + alpha.water { nAlphaCorr 1; nAlphaSubCycles 1; diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/setFieldsDict b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/setFieldsDict index dc90a362c06eab75ce1c892c6f693f67b817d413..2103e99c1370c81ba3f4679b81cf5b35dbf11d34 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/setFieldsDict +++ b/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alphawater 1 + volScalarFieldValue alpha.water 1 volScalarFieldValue p_rgh 1e5 volScalarFieldValue p 1e5 volScalarFieldValue T 300 @@ -31,7 +31,7 @@ regions radius 0.1; fieldValues ( - volScalarFieldValue alphawater 0 + volScalarFieldValue alpha.water 0 volScalarFieldValue p_rgh 1e6 volScalarFieldValue p 1e6 volScalarFieldValue T 578 @@ -42,7 +42,7 @@ regions box (-10 1 -1) (10 10 1); fieldValues ( - volScalarFieldValue alphawater 0 + volScalarFieldValue alpha.water 0 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water index f1ad15f1c26d6966b93a903db504aad0effdd808..e0eda6f9eb7325eb5e4c0872fc7bd9501efd8d0e 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1 b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1 rename to tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water.org index f1ad15f1c26d6966b93a903db504aad0effdd808..e0eda6f9eb7325eb5e4c0872fc7bd9501efd8d0e 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha1 +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/0.org/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/dynamicMeshDict b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/dynamicMeshDict index 64223ec7b8ff667637b4205292da9e398ecc0f21..f9baf8b3e1dc5287f42a27d4debb5a7713d609d3 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/dynamicMeshDict +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/dynamicMeshDict @@ -22,7 +22,7 @@ dynamicRefineFvMeshCoeffs // How often to refine refineInterval 1; // Field to be refinement on - field alpha1; + field alpha.water; // Refine field inbetween lower..upper lowerRefineLevel 0.001; upperRefineLevel 0.999; diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/transportProperties index ba430bce29ba9052446feb77d30a6fe03581d684..81106f5ea4c8d3fc9ef41f563aca1199b62e00f1 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/transportProperties @@ -15,7 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; @@ -37,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/fvSolution index 63d54a7c3dbbdc49c061706b661442631467b6fc..f47969d4bfaa881eb006cc09b04861a5e0cdd694 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/setFieldsDict index 0af0cd2da7bb8a8e4060940b500798ebf371d26b..47ad15660118d150a2b04cf9d0a736481f6cd8f0 100644 --- a/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 volVectorFieldValue U ( 0 0 0 ) ); @@ -28,7 +28,7 @@ regions box ( 0 0 0 ) ( 0.6 0.1875 0.75 ); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha1 b/tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha.water similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha1 rename to tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha.water index c3b0586036e32efb9852c68b4a0ee0a1587cacec..e09e2739bd74209760e5464f8115fcb98a495b1d 100644 --- a/tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha1 +++ b/tutorials/multiphase/interDyMFoam/ras/floatingObject/0.org/alpha.water @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/floatingObject/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/floatingObject/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/floatingObject/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/floatingObject/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/fvSolution index 1202013c58cab93c03b199125dc462a675f6acaa..d3c114226bcbad9cfd73fbe56db2662662c3a4b9 100644 --- a/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/fvSolution @@ -29,7 +29,7 @@ solvers mergeLevels 1; } - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/setFieldsDict index 22fcdc05b527b3acf1e1ceafc408e09fdb93d6cd..2506a693af099682fa83ec08257f7e33b07498f8 100644 --- a/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/floatingObject/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -25,13 +25,13 @@ regions boxToCell { box ( -100 -100 -100 ) ( 100 100 0.5368 ); - fieldValues ( volScalarFieldValue alpha1 1 ); + fieldValues ( volScalarFieldValue alpha.water 1 ); } boxToCell { box ( 0.7 0.8 -100 ) ( 100 100 0.65 ); - fieldValues ( volScalarFieldValue alpha1 1 ); + fieldValues ( volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha1 b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha.water similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha1 rename to tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha.water index cee67a8884fc3c99e57ec14aebeb157163b120a0..17678343e2d014de148a1de85f3af8b02e62f8d6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha1 +++ b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/alpha.water @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/constant/transportProperties index c74dee04a79938286079d4306832becc9d906a7c..0d7bbe9e603245b7f70fbfe67c89ca2132e03492 100644 --- a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/constant/transportProperties @@ -15,21 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (water air); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 300; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-6; diff --git a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/fvSolution index 7e8fa0fb1aeae0af81fc1d362edca091275e8a5b..946d84ed62c397cfed6200bf9829658cc634d622 100644 --- a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 2; diff --git a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/setFieldsDict index 7415f2fc768aabfdde7fe7f4089984089b35b873..defca08b47fc2dc5c35ec6eb306ccaf2cebde967 100644 --- a/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); regions @@ -27,7 +27,7 @@ regions box (-4 -4 -1) (4 4 0.74); fieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha.water.org index 452b5dd51c8e1284974dd9f03f466d10cdb81750..70366ec29f7aae0cb1cc50f62a3d186553321883 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allclean b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allclean index 4ee30b518c6492f4f3673b5d986de57f13a2fb5c..faacf01f18278c3d94a67bc5d2f0e6428727548a 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allclean @@ -2,6 +2,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases -rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe +rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allrun b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allrun index 3b8cb649c2c5b2e996432647ae8a944ac35e9de2..7ea0ac7744adb48402cd7061e4ef780e8853c3df 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/Allrun @@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/fvSolution index 696ba9cc7988e7447b0d9ed7a1010f2f75f44098..0f9b300499407a5717b95f4e25cac292f31b6bf6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/setFieldsDict index ec8d1717d50aba095d49655c4509cd75692a659b..410a0a6f10301fb287d4b429143355dd6ccd526d 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box ( -100 -100 -100 ) ( 100 100 0 ); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha.water.org index 452b5dd51c8e1284974dd9f03f466d10cdb81750..70366ec29f7aae0cb1cc50f62a3d186553321883 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allclean b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allclean index 4ee30b518c6492f4f3673b5d986de57f13a2fb5c..faacf01f18278c3d94a67bc5d2f0e6428727548a 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allclean @@ -2,6 +2,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases -rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe +rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allrun b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allrun index 3b8cb649c2c5b2e996432647ae8a944ac35e9de2..7ea0ac7744adb48402cd7061e4ef780e8853c3df 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/Allrun @@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/fvSolution index 696ba9cc7988e7447b0d9ed7a1010f2f75f44098..0f9b300499407a5717b95f4e25cac292f31b6bf6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/setFieldsDict index ec8d1717d50aba095d49655c4509cd75692a659b..410a0a6f10301fb287d4b429143355dd6ccd526d 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box ( -100 -100 -100 ) ( 100 100 0 ); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha.water.org index f40309af2ed4b9d627ee189e8ae7f31bf41139af..bdebcf1ab45a891b0e5d3ace86f053118bc90d3b 100644 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allclean b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allclean index 4ee30b518c6492f4f3673b5d986de57f13a2fb5c..faacf01f18278c3d94a67bc5d2f0e6428727548a 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allclean @@ -2,6 +2,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases -rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe +rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allrun b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allrun index 3b8cb649c2c5b2e996432647ae8a944ac35e9de2..7ea0ac7744adb48402cd7061e4ef780e8853c3df 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/Allrun @@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/fvSolution index 696ba9cc7988e7447b0d9ed7a1010f2f75f44098..0f9b300499407a5717b95f4e25cac292f31b6bf6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/setFieldsDict index ec8d1717d50aba095d49655c4509cd75692a659b..410a0a6f10301fb287d4b429143355dd6ccd526d 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box ( -100 -100 -100 ) ( 100 100 0 ); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha.water.org index f40309af2ed4b9d627ee189e8ae7f31bf41139af..bdebcf1ab45a891b0e5d3ace86f053118bc90d3b 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allclean b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allclean index 4ee30b518c6492f4f3673b5d986de57f13a2fb5c..faacf01f18278c3d94a67bc5d2f0e6428727548a 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allclean @@ -2,6 +2,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases -rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe +rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allrun b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allrun index 3b8cb649c2c5b2e996432647ae8a944ac35e9de2..7ea0ac7744adb48402cd7061e4ef780e8853c3df 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/Allrun @@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/fvSolution index 696ba9cc7988e7447b0d9ed7a1010f2f75f44098..0f9b300499407a5717b95f4e25cac292f31b6bf6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/setFieldsDict index ec8d1717d50aba095d49655c4509cd75692a659b..410a0a6f10301fb287d4b429143355dd6ccd526d 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box ( -100 -100 -100 ) ( 100 100 0 ); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha.water.org index f40309af2ed4b9d627ee189e8ae7f31bf41139af..bdebcf1ab45a891b0e5d3ace86f053118bc90d3b 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allclean b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allclean index 4ee30b518c6492f4f3673b5d986de57f13a2fb5c..faacf01f18278c3d94a67bc5d2f0e6428727548a 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allclean @@ -2,6 +2,6 @@ cd ${0%/*} || exit 1 # run from this directory foamCleanTutorials cases -rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe +rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allrun b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allrun index 3b8cb649c2c5b2e996432647ae8a944ac35e9de2..7ea0ac7744adb48402cd7061e4ef780e8853c3df 100755 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/Allrun @@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/fvSolution index 696ba9cc7988e7447b0d9ed7a1010f2f75f44098..0f9b300499407a5717b95f4e25cac292f31b6bf6 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/setFieldsDict index 7ff571c6d130cf0424493bcc96a52251eedc746a..5ea2a373526325584a0f973a3f877a54cb9550cc 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -25,7 +25,7 @@ regions boxToCell { box ( -100 -100 -100 ) ( 100 100 0 ); - fieldValues ( volScalarFieldValue alpha1 1 ); + fieldValues ( volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha1.org b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha1.org rename to tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha.water.org index f40309af2ed4b9d627ee189e8ae7f31bf41139af..bdebcf1ab45a891b0e5d3ace86f053118bc90d3b 100644 --- a/tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/0/alpha1.org +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allclean b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allclean index 82e093ec03dc36c50fb1281de4b51bf917537199..5874c7a05098a59c8bbde9fba9a71d2c864580b6 100755 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allclean +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allclean @@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # run from this directory . $WM_PROJECT_DIR/bin/tools/CleanFunctions cleanCase -rm -rf 0/alpha1 +rm -rf 0/alpha.water # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allrun b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allrun index 0f2a6dea43a8d3d7f6a4390f09846759ce2f9dd0..4e10bfcacc9a04d67fed8c9f39ad5b759b0cc6dd 100755 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allrun +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/Allrun @@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # run from this directory . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/constant/transportProperties b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/constant/transportProperties index 02287f422b58ea20261ee3a90e0012076a3fb490..3729fc7648bb9d76cae6c48139d4b359b92e526c 100644 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/constant/transportProperties +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 998.2; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/fvSolution b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/fvSolution index 54f20e5253f0b6a6fbd838c1014ab2c65a3755ce..39d907fa792ebb1420f21ee1eb394ea6e2d6a137 100644 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/fvSolution +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/setFieldsDict b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/setFieldsDict index 8229dc2582c6e9bb23875290283fd2214c3de273..3b3ed7f998159e718871ab2f4e871818137d77c0 100644 --- a/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/setFieldsDict +++ b/tutorials/multiphase/interDyMFoam/ras/testTubeMixer/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -25,7 +25,7 @@ regions boxToCell { box ( -100 -100 -100 ) ( 100 100 -0.0025); - fieldValues ( volScalarFieldValue alpha1 1 ); + fieldValues ( volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/laminar/Allclean b/tutorials/multiphase/interFoam/laminar/Allclean index 909068ce6c37c3bac87a16412d03a4f4829e2d43..d5d1e50d10fd857db73859b2d4ac38a5792ddc2e 100755 --- a/tutorials/multiphase/interFoam/laminar/Allclean +++ b/tutorials/multiphase/interFoam/laminar/Allclean @@ -9,7 +9,7 @@ loseCases="damBreakFine" for case in $keepCases do - (cd $case && foamCleanTutorials && rm -rf 0/alpha1) + (cd $case && foamCleanTutorials && rm -rf 0/alpha.water) done for case in $loseCases diff --git a/tutorials/multiphase/interFoam/laminar/Allrun b/tutorials/multiphase/interFoam/laminar/Allrun index 510e4498db1c13c28b097181e2c2831c6a3e8c45..c0e6661c4b4fbd87655d60811595ee2c6cf89b8b 100755 --- a/tutorials/multiphase/interFoam/laminar/Allrun +++ b/tutorials/multiphase/interFoam/laminar/Allrun @@ -28,7 +28,7 @@ setDamBreakFine () cd damBreak || exit runApplication blockMesh - cp 0/alpha1.org 0/alpha1 + cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` ) @@ -44,7 +44,7 @@ cloneCase damBreak damBreakFine # And execute runApplication blockMesh - cp ../damBreak/0/alpha1.org 0/alpha1 + cp ../damBreak/0/alpha.water.org 0/alpha.water runApplication setFields runApplication decomposePar runParallel `getApplication` 4 @@ -56,7 +56,7 @@ cloneCase damBreak damBreakFine cd capillaryRise || exit runApplication blockMesh - cp 0/alpha1.org 0/alpha1 + cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication `getApplication` ) diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/0/alpha1.org b/tutorials/multiphase/interFoam/laminar/capillaryRise/0/alpha.water.org similarity index 100% rename from tutorials/multiphase/interFoam/laminar/capillaryRise/0/alpha1.org rename to tutorials/multiphase/interFoam/laminar/capillaryRise/0/alpha.water.org diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/constant/transportProperties b/tutorials/multiphase/interFoam/laminar/capillaryRise/constant/transportProperties index 2b39cb45eb98a90493d27e77d97ee0df0eba0ae7..73d4778c9717901cdd274f26700c156444ae46ef 100644 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/constant/transportProperties +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/constant/transportProperties @@ -15,7 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 1e-06; @@ -36,7 +38,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSchemes b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSchemes index 2a580ed9eb90ab5088bf09e7caf69fd7ba0ac138..aded32f19531e85eb3b940fae50024c6628844f3 100644 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSchemes +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSchemes @@ -53,7 +53,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSolution b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSolution index 6bea5720564eeb6cd3d9694e2caf5caa5f566c0a..36156e86145c247b6b99b8a34bd10a54fbbc1434 100644 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSolution +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 2; diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/setFieldsDict b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/setFieldsDict index b6a5cdd65a85e8b7e6d5eed0a52b5c613972c1da..91bd115659620074043dee803bd3c8a878836ac5 100644 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -28,7 +28,7 @@ regions fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/ras/damBreak/0/alpha1.org b/tutorials/multiphase/interFoam/laminar/damBreak/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interFoam/ras/damBreak/0/alpha1.org rename to tutorials/multiphase/interFoam/laminar/damBreak/0/alpha.water.org index df85d650551f1459601d21b25d6cde2aef1ddc26..b2319f1aa5f792c07230017abd1065833fea0103 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/0/alpha1.org +++ b/tutorials/multiphase/interFoam/laminar/damBreak/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties b/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties index ba430bce29ba9052446feb77d30a6fe03581d684..81106f5ea4c8d3fc9ef41f563aca1199b62e00f1 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties +++ b/tutorials/multiphase/interFoam/laminar/damBreak/constant/transportProperties @@ -15,7 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; @@ -37,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSchemes b/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSchemes index 986a20eebeb97fe96e535bdd4b6ba3a632f1a4b3..1d9632b67461e66072dc478e30a1133c3801c202 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSchemes +++ b/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSchemes @@ -53,7 +53,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSolution b/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSolution index 6bea5720564eeb6cd3d9694e2caf5caa5f566c0a..36156e86145c247b6b99b8a34bd10a54fbbc1434 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSolution +++ b/tutorials/multiphase/interFoam/laminar/damBreak/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 2; diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/system/setFieldsDict b/tutorials/multiphase/interFoam/laminar/damBreak/system/setFieldsDict index 3152d483478da16c14e14741a926364eeafbf806..2a577a3c7d049aa1957070ceac618887a7f6db80 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/laminar/damBreak/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (0 0 -1) (0.1461 0.292 1); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha1 b/tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha.fuel similarity index 97% rename from tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha1 rename to tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha.fuel index 94befdfae818dce8965eafe81ffaab71f6e35753..baf41e0bb39de6cc40881d524c069d522a56c79b 100644 --- a/tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha1 +++ b/tutorials/multiphase/interFoam/les/nozzleFlow2D/0/alpha.fuel @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.fuel; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/les/nozzleFlow2D/constant/transportProperties b/tutorials/multiphase/interFoam/les/nozzleFlow2D/constant/transportProperties index fa41fd38c382e9e8a9b45e831422ebed57d97797..c74376aa3f2e38f16849ad34f969ed0a26cc33ee 100644 --- a/tutorials/multiphase/interFoam/les/nozzleFlow2D/constant/transportProperties +++ b/tutorials/multiphase/interFoam/les/nozzleFlow2D/constant/transportProperties @@ -15,14 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (fuel air); -phase1 +fuel { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 5.952e-06; @@ -44,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 8.5e-07; diff --git a/tutorials/multiphase/interFoam/les/nozzleFlow2D/system/fvSolution b/tutorials/multiphase/interFoam/les/nozzleFlow2D/system/fvSolution index d7383123a6a4cd8b8924813ec9144cded6e2bf9c..479dee58a2a7a158cd2a1ab59da93f4dc7438f02 100644 --- a/tutorials/multiphase/interFoam/les/nozzleFlow2D/system/fvSolution +++ b/tutorials/multiphase/interFoam/les/nozzleFlow2D/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.fuel { nAlphaCorr 1; nAlphaSubCycles 4; diff --git a/tutorials/multiphase/interFoam/ras/Allclean b/tutorials/multiphase/interFoam/ras/Allclean index 63a607fe3ff4fb453f418822baa3668ffb9142f8..f76151df3d21e3255e920c3fd779f1ae3056cad9 100755 --- a/tutorials/multiphase/interFoam/ras/Allclean +++ b/tutorials/multiphase/interFoam/ras/Allclean @@ -13,12 +13,12 @@ do if [ "$case" = "damBreak" ] then - cp $case/0/alpha1.org $case/0/alpha1 + cp $case/0/alpha.water.org $case/0/alpha.water fi if [ "$case" = "damBreakPorousBaffle" ] then - cp $case/0/alpha1.org $case/0/alpha1 + cp $case/0/alpha.water.org $case/0/alpha.water fi done diff --git a/tutorials/multiphase/interFoam/ras/Allrun b/tutorials/multiphase/interFoam/ras/Allrun index f130490987bcf628f17a315903240224eca57679..0378faad394c2e6bbf6b7e2a7cd7c707329c16ca 100755 --- a/tutorials/multiphase/interFoam/ras/Allrun +++ b/tutorials/multiphase/interFoam/ras/Allrun @@ -23,9 +23,6 @@ setDamBreakFine () mv temp.$$ $controlDict } -# Do damBreakPorousBaffle -(cd damBreakPorousBaffle && foamRunTutorials) - # Do damBreak (cd damBreak && foamRunTutorials) @@ -37,7 +34,7 @@ cloneCase damBreak damBreakFine # Modify case setDamBreakFine - cp ../damBreak/0/alpha1.org 0/alpha1 + cp ../damBreak/0/alpha.water.org 0/alpha.water # And execute runApplication blockMesh runApplication setFields diff --git a/tutorials/multiphase/interFoam/ras/damBreak/0/alpha1 b/tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water similarity index 97% rename from tutorials/multiphase/interFoam/ras/damBreak/0/alpha1 rename to tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water index df85d650551f1459601d21b25d6cde2aef1ddc26..b2319f1aa5f792c07230017abd1065833fea0103 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/0/alpha1 +++ b/tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/0/alpha1.org b/tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interFoam/laminar/damBreak/0/alpha1.org rename to tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water.org index 5dc1b6e2d0a8b45a907636ccf429d8e183036b36..b2319f1aa5f792c07230017abd1065833fea0103 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/0/alpha1.org +++ b/tutorials/multiphase/interFoam/ras/damBreak/0/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/ras/damBreak/constant/transportProperties b/tutorials/multiphase/interFoam/ras/damBreak/constant/transportProperties index ef3e8c7b4b6b6b1979253b534cc30d07c0f63826..81106f5ea4c8d3fc9ef41f563aca1199b62e00f1 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/constant/transportProperties +++ b/tutorials/multiphase/interFoam/ras/damBreak/constant/transportProperties @@ -15,14 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (water air); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; @@ -44,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/ras/damBreak/system/fvSolution b/tutorials/multiphase/interFoam/ras/damBreak/system/fvSolution index a30ce4ddb8c0709187beec070c39ff9db7977595..f6725a947bd2f35176920b3b47dc8b7b1d0e126e 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/system/fvSolution +++ b/tutorials/multiphase/interFoam/ras/damBreak/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 4; diff --git a/tutorials/multiphase/interFoam/ras/damBreak/system/setFieldsDict b/tutorials/multiphase/interFoam/ras/damBreak/system/setFieldsDict index 3152d483478da16c14e14741a926364eeafbf806..2a577a3c7d049aa1957070ceac618887a7f6db80 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/ras/damBreak/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (0 0 -1) (0.1461 0.292 1); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water similarity index 97% rename from tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 rename to tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water index bf6106677fc7d27dc3791d3ab7196a30e9a2c411..e083c1f7927dd39ce12e5ac96380f9e36677fbf9 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1 +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1.org; + object alpha.water.org; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water.org similarity index 97% rename from tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org rename to tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water.org index bf6106677fc7d27dc3791d3ab7196a30e9a2c411..e083c1f7927dd39ce12e5ac96380f9e36677fbf9 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1.org +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha.water.org @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1.org; + object alpha.water.org; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon index e8f209f7c1ce1b7aacde6163358e2be901e1d96d..3142dc8a64e80e11f8bcfcd67f473d67cc1f5b23 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/epsilon @@ -24,6 +24,7 @@ boundaryField leftWall { type epsilonWallFunction; + value uniform 0.1; Cmu 0.09; kappa 0.41; E 9.8; @@ -32,6 +33,7 @@ boundaryField rightWall { type epsilonWallFunction; + value uniform 0.1; Cmu 0.09; kappa 0.41; E 9.8; @@ -40,6 +42,7 @@ boundaryField lowerWall { type epsilonWallFunction; + value uniform 0.1; Cmu 0.09; kappa 0.41; E 9.8; diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh index cb36fb3b7dfaedd6e882b4e2afe3e553bb0955df..0b3ae667f024c82aebc27e7353fc0c3eb4e25aa4 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/p_rgh @@ -25,16 +25,19 @@ boundaryField { type fixedFluxPressure; gradient uniform 0; + value uniform 0; } rightWall { type fixedFluxPressure; gradient uniform 0; + value uniform 0; } lowerWall { type fixedFluxPressure; gradient uniform 0; + value uniform 0; } atmosphere { diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/transportProperties b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/transportProperties index ef3e8c7b4b6b6b1979253b534cc30d07c0f63826..81106f5ea4c8d3fc9ef41f563aca1199b62e00f1 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/transportProperties +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/constant/transportProperties @@ -15,14 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (water air); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; @@ -44,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/fvSolution b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/fvSolution index 96c64a2a1c9145b0573c148c95d84c02bf34ad47..a7103f6d6265a5a13a0a26d358067aa7969871b9 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/fvSolution +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 4; diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/setFieldsDict b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/setFieldsDict index 3152d483478da16c14e14741a926364eeafbf806..2a577a3c7d049aa1957070ceac618887a7f6db80 100644 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (0 0 -1) (0.1461 0.292 1); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/0/alpha1.org b/tutorials/multiphase/interFoam/ras/waterChannel/0/alpha.water.org similarity index 100% rename from tutorials/multiphase/interFoam/ras/waterChannel/0/alpha1.org rename to tutorials/multiphase/interFoam/ras/waterChannel/0/alpha.water.org diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/Allclean b/tutorials/multiphase/interFoam/ras/waterChannel/Allclean index 0c04649fe1b38c22a88d63a4fb65f147166cbaa9..72f44cb9eafff3d4ab28c5db7b88ddf3a85ee66f 100755 --- a/tutorials/multiphase/interFoam/ras/waterChannel/Allclean +++ b/tutorials/multiphase/interFoam/ras/waterChannel/Allclean @@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial clean functions . $WM_PROJECT_DIR/bin/tools/CleanFunctions -rm 0/alpha1.gz 0/alpha1 2>/dev/null +rm 0/alpha.water.gz 0/alpha.water 2>/dev/null rm -rf *Flux cleanCase diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/Allrun b/tutorials/multiphase/interFoam/ras/waterChannel/Allrun index 813ad03d7930c652bd4f8f760ded0e305561c2bb..7eef6a06be0cbbbc8af2dcc10180d8684d30d225 100755 --- a/tutorials/multiphase/interFoam/ras/waterChannel/Allrun +++ b/tutorials/multiphase/interFoam/ras/waterChannel/Allrun @@ -17,7 +17,7 @@ while [ "$i" -lt 3 ] ; do i=`expr $i + 1` done -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields runApplication $application diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSchemes b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSchemes index 7018c5eaa736966eedef0d3358cf514187949c90..de873558162e1e1cea020af091244cba613e96e7 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSchemes +++ b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSchemes @@ -55,7 +55,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSolution b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSolution index 62774a76104c171e959156b9bbbea564a9a0b3ba..cc69de4db59c903bb38692aa255095b04ff5a86b 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSolution +++ b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/setFieldsDict b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/setFieldsDict index 468fd9778bab7aad0f7f082dfc8b49868749ffe6..0caad94498f1a17c9f63d58190d54301144d38dc 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/ras/waterChannel/LTSInterFoam/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (0 0 0) (50 130 27); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } @@ -36,7 +36,7 @@ regions box (0 0 0) (50 10.0001 24); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/constant/transportProperties b/tutorials/multiphase/interFoam/ras/waterChannel/constant/transportProperties index c90677dd56faefb3a99142061a847481f36e2c00..b86717bf8d7626ddae4c4d841f3498ab01367977 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/constant/transportProperties +++ b/tutorials/multiphase/interFoam/ras/waterChannel/constant/transportProperties @@ -15,14 +15,16 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -phase1 +phases (water air); + +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSchemes b/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSchemes index bb536c017ce4cef960716bc13d34c040d9f6d17a..40a4e9640d28f74370feee1d7cd01260e7248968 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSchemes +++ b/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSchemes @@ -56,7 +56,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSolution b/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSolution index e2db3124d4d72d0925b097bd652e638b8e6f6d60..d2428017c40d148cdeba93484b4f9caecbd33c46 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSolution +++ b/tutorials/multiphase/interFoam/ras/waterChannel/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 3; diff --git a/tutorials/multiphase/interFoam/ras/waterChannel/system/setFieldsDict b/tutorials/multiphase/interFoam/ras/waterChannel/system/setFieldsDict index f4f1c444762ef3cf54207ef2f8630408f861e1d3..2258df9f4ffc8c8bcced5e1e575b2453e6ad60aa 100644 --- a/tutorials/multiphase/interFoam/ras/waterChannel/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/ras/waterChannel/system/setFieldsDict @@ -17,7 +17,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions box (-10 -20 -10) (200 20 4); fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/U b/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/U index 92b06fe0a614ad67e3ec0bc5eb8bf48b52d524b9..6c087afc7da359bf29c332ddb2a14615d9b3f416 100644 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/U +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/U @@ -26,6 +26,7 @@ boundaryField { type variableHeightFlowRateInletVelocity; flowRate $inletFlowRate; + alpha alpha.water; value uniform (0 0 0); } diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha1.org b/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha.water.org similarity index 98% rename from tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha1.org rename to tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha.water.org index deeaf2f3dff70ccc44bee629d9085e3546cb7713..180c83d03e3abd3cd73b631339a9e6ab1dacd300 100644 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha1.org +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/0.org/alpha.water.org @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/Allrun b/tutorials/multiphase/interFoam/ras/weirOverflow/Allrun index da58c047f11167b7accb35d26053883de19febc6..858f3882436160ca1ec0736dc512f5c58cdc9f3f 100755 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/Allrun +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/Allrun @@ -7,7 +7,7 @@ cp -r 0.org 0 > /dev/null 2>&1 runApplication blockMesh -cp 0/alpha1.org 0/alpha1 +cp 0/alpha.water.org 0/alpha.water runApplication setFields diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/constant/transportProperties b/tutorials/multiphase/interFoam/ras/weirOverflow/constant/transportProperties index ef3e8c7b4b6b6b1979253b534cc30d07c0f63826..81106f5ea4c8d3fc9ef41f563aca1199b62e00f1 100644 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/constant/transportProperties +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/constant/transportProperties @@ -15,14 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -twoPhase -{ - transportModel twoPhase; - phase1 phase1; - phase2 phase2; -} +phases (water air); -phase1 +water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; @@ -44,7 +39,7 @@ phase1 } } -phase2 +air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/system/fvSolution b/tutorials/multiphase/interFoam/ras/weirOverflow/system/fvSolution index 3693fa3dfe48cba3d696c111e4bc81c9c149c8d1..dc48e429db300c98414cae2c8ae69f75d87b5684 100644 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/system/fvSolution +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/system/fvSolution @@ -16,7 +16,7 @@ FoamFile solvers { - alpha1 + alpha.water { nAlphaCorr 1; nAlphaSubCycles 2; diff --git a/tutorials/multiphase/interFoam/ras/weirOverflow/system/setFieldsDict b/tutorials/multiphase/interFoam/ras/weirOverflow/system/setFieldsDict index 26d6b7f2a6c7f2db74d61eb3caf13bdece363db9..76fa077e7fbc8222cc4a1dcae0a193cf9e90dcd8 100644 --- a/tutorials/multiphase/interFoam/ras/weirOverflow/system/setFieldsDict +++ b/tutorials/multiphase/interFoam/ras/weirOverflow/system/setFieldsDict @@ -16,7 +16,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.water 0 ); regions @@ -27,7 +27,7 @@ regions fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.water 1 ); } ); diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha1 b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha.water similarity index 97% rename from tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha1 rename to tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha.water index a2e32cc8e875c6b564836639b855423269be5945..3a2097df24a3dfe171bef1b119b51751e0fadab2 100644 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha1 +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/0.org/alpha.water @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/constant/transportProperties b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/constant/transportProperties index 92e543ecce09e81181cdf7f910b3d5eb0371a2db..be3d97f20ac90d7a044e387c1a3ab4a9949bdf06 100644 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/constant/transportProperties +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/constant/transportProperties @@ -15,20 +15,22 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +phases (water vapour); + phaseChangeTwoPhaseMixture SchnerrSauer; pSat pSat [1 -1 -2 0 0] 2300; // saturation pressure sigma sigma [1 0 -2 0 0 0 0] 0.07; -phase1 +water { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 9e-07; rho rho [1 -3 0 0 0 0 0] 1000; } -phase2 +vapour { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 4.273e-04; diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSchemes b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSchemes index 733980447c96d0d69caf4c3dd4c0ee98fca96bff..e60864d7f5dbebcf3324a24bdb85784f2b63d5a3 100644 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSchemes +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSchemes @@ -60,7 +60,7 @@ fluxRequired default no; p_rgh; pcorr; - alpha1; + alpha.water; } diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSolution b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSolution index 8673ec262542b8603bae066cf959998487b4af15..e7a73630a83f6442faa0e4ce3a234fcf94913fea 100644 --- a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSolution +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/system/fvSolution @@ -16,7 +16,7 @@ FoamFile solvers { - alpha1 + alpha.water { cAlpha 0; nAlphaCorr 2; diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha1 b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha.water similarity index 97% rename from tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha1 rename to tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha.water index c3754beb680afbfeb3fc7c071f3e27f4ff7ed25d..6ca929b85518854cdadce3d0ce13500e21666b65 100644 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha1 +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/0/alpha.water @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1; + object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/constant/transportProperties b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/constant/transportProperties index c78a74d48df8aad3cdcc7e7f9c399c0da33fd613..a9e6e6525d13817a8cee2469d5dae342b7718c1c 100644 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/constant/transportProperties +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/constant/transportProperties @@ -14,20 +14,22 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +phases (water vapour); + phaseChangeTwoPhaseMixture SchnerrSauer; pSat pSat [1 -1 -2 0 0] 2300; // saturation pressure sigma sigma [1 0 -2 0 0 0 0] 0.07; -phase1 +water { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 9e-07; rho rho [1 -3 0 0 0 0 0] 1000; } -phase2 +vapour { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 4.273e-04; diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSchemes b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSchemes index 8ddd1fe903d3c4bd9293c1afe4e9dbafb8a8ffd5..ded24b94b605f04fe5d8e12d4d17c552382b5bf5 100644 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSchemes +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSchemes @@ -56,7 +56,7 @@ fluxRequired default none; p_rgh; pcorr; - alpha1; + alpha.water; } // ************************************************************************* // diff --git a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSolution b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSolution index a1f8f8ffd5e3c2376a31e3a25f9f49fe036cfd3d..41c0ac39c6a22d42a6dee9577cd5a9bdfbe7a7be 100644 --- a/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSolution +++ b/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/system/fvSolution @@ -16,7 +16,7 @@ FoamFile solvers { - alpha1 + alpha.water { cAlpha 0; nAlphaCorr 2; diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha1 b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha.sludge similarity index 97% rename from tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha1 rename to tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha.sludge index 65b89ea284aab65f36ced491ec6e46aa1bf980c0..0b43750be0c0bdb7ad5206f5698399a5e68c2232 100644 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha1 +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/0.org/alpha.sludge @@ -11,7 +11,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object alpha1; + object alpha.sludge; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/constant/transportProperties b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/constant/transportProperties index df0c151c83fbb0b786b23d7a1a041adb93b54834..5c4f2ad6c66fd5f3987a6a7ffda136f3c647c3a3 100644 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/constant/transportProperties +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/constant/transportProperties @@ -18,14 +18,16 @@ FoamFile Dab Dab [0 2 -1 0 0 0 0] 1e-06; alphatab alphatab [0 0 0 0 0 0 0] 1; -phase1 +phases (sludge water); + +sludge { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 1e-06; rho rho [1 -3 0 0 0 0 0] 1000; } -phase2 +water { transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 1e-06; diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSchemes b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSchemes index 35930b92037ebce04ce8e97605ce4f145759b445..c4837bb39f9ed2c9b51387613228f3ae2a12cd5b 100644 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSchemes +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSchemes @@ -31,7 +31,7 @@ divSchemes default none; div(rho*phi,U) Gauss linear; - div(phi,alpha1) Gauss vanLeer; + div(phi,alpha) Gauss vanLeer; div(phi,k) Gauss limitedLinear 1; div((muEff*dev(T(grad(U))))) Gauss linear; } @@ -55,7 +55,7 @@ fluxRequired { default no; p_rgh; - alpha1; + alpha.sludge; } diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSolution b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSolution index af87b0880fb25609cc492b87363236bd3065e01e..6ad387f7159be44ddc74ebc5069ef0f2b48ec14d 100644 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSolution +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - "alpha1.*" + "alpha.sludge.*" { nAlphaSubCycles 2; nAlphaCorr 1; diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/setFieldsDict b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/setFieldsDict index 2c45b1faae367a7c0eee3047750781a2cd35a9d6..12f879946c74a2d75abb7ec0f61400aa9459eaa1 100644 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/setFieldsDict +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/system/setFieldsDict @@ -16,7 +16,7 @@ FoamFile defaultFieldValues ( - volScalarFieldValue alpha1 0 + volScalarFieldValue alpha.sludge 0 volVectorFieldValue U (0 0 0) ); @@ -28,7 +28,7 @@ regions fieldValues ( - volScalarFieldValue alpha1 1 + volScalarFieldValue alpha.sludge 1 ); } );