diff --git a/applications/solvers/DNS/dnsFoam/FoamX/defaults/constant/turbulenceProperties b/applications/solvers/DNS/dnsFoam/FoamX/defaults/constant/turbulenceProperties deleted file mode 100644 index 76c4609b7c..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/defaults/constant/turbulenceProperties +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object transportProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -UOsigma 0.090295049; - -UOalpha 0.81532036; - -UOKupper 10; - -UOKlower 7; - - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 69fda62063..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss cubic; -} - -laplacianSchemes -{ - default none; - laplacian(nu,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(U) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSolution b/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 707a1fca28..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; - U BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/dnsFoam.cfg b/applications/solvers/DNS/dnsFoam/FoamX/dnsFoam.cfg deleted file mode 100644 index d7757a2897..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/dnsFoam.cfg +++ /dev/null @@ -1,69 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Direct numerical simulation (DNS) code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/NewtonianSinglePhaseTransportProperties.cfg"; - turbulenceProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - nuSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/B.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/B.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/fvSchemes.cfg b/applications/solvers/DNS/dnsFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 841f655b46..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 1.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes.cfg; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../../incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "../../../incompressible/icoFoam/FoamX/fvSchemes/divSchemes.cfg"; - include "../../../incompressible/icoFoam/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "../../../incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/fvSolution.cfg b/applications/solvers/DNS/dnsFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 31785b609b..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/DNS/dnsFoam/FoamX/turbulenceProperties.cfg b/applications/solvers/DNS/dnsFoam/FoamX/turbulenceProperties.cfg deleted file mode 100644 index 4b2171c7a5..0000000000 --- a/applications/solvers/DNS/dnsFoam/FoamX/turbulenceProperties.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Turbulence properties"; -dictionaryPath "constant"; - -entries -{ - UOsigma - { - type scalar; - } - - UOalpha - { - type scalar; - } - - UOKupper - { - type label; - description "Upper wave number"; - } - - UOKlower - { - type label; - description "Lower wave number"; - } -} - -default -{ - include "defaults/constant/turbulenceProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 33d8e6de5f..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,64 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(T) Gauss linear; -} - -divSchemes -{ - default none; -} - -laplacianSchemes -{ - default none; - laplacian(DT,T) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - T; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSolution b/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 4648358b2d..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - T ICCG 1e-06 0; -} - -SIMPLE -{ - nNonOrthogonalCorrectors 2; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes.cfg b/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index aa9fb6c13a..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/noneOnly.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/T.cfg" -; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index d97901d0f0..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/T.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index cdc3fc25fd..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DTT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/fvSolution.cfg b/applications/solvers/basic/laplacianFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 1e8421f5dd..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Tsymm.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/SIMPLE.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/laplacianFoam.cfg b/applications/solvers/basic/laplacianFoam/FoamX/laplacianFoam.cfg deleted file mode 100644 index 88ec528771..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/laplacianFoam.cfg +++ /dev/null @@ -1,52 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Solves a simple Laplace equation, e.g. for thermal diffusion in a solid."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictSteady.cfg"; - fvSchemes; - fvSolution; - transportProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; -} - -patchPhysicalTypes -{ - fixedTemp - { - description "Fixed T boundary condition"; - } - - fixedFlux - { - description "Fixed heat flux boundary bondition"; - } - - adiabatic - { - description "Adiabatic boundary condition"; - } -} - -patchFieldsPhysicalTypes -{ - T - { - fixedTemp fixedValue; - fixedFlux fixedGradient; - adiabatic zeroGradient; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/laplacianFoam/FoamX/transportProperties.cfg b/applications/solvers/basic/laplacianFoam/FoamX/transportProperties.cfg deleted file mode 100644 index d9eeb9a5ed..0000000000 --- a/applications/solvers/basic/laplacianFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/DT.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index a408d7981e..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,63 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default steadyState; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; -} - -laplacianSchemes -{ - default none; - laplacian(1,p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSolution b/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 70ab823aa3..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; -} - -SIMPLE -{ - nNonOrthogonalCorrectors 3; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/fvSchemes.cfg b/applications/solvers/basic/potentialFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index e5b24ffb40..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/steady.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/noneOnly.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/basic/potentialFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 7dd4493a66..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1p.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/fvSolution.cfg b/applications/solvers/basic/potentialFoam/FoamX/fvSolution.cfg deleted file mode 100644 index f8ebe9c53f..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/SIMPLE.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/potentialFoam/FoamX/potentialFoam.cfg b/applications/solvers/basic/potentialFoam/FoamX/potentialFoam.cfg deleted file mode 100644 index 5e664cbb7a..0000000000 --- a/applications/solvers/basic/potentialFoam/FoamX/potentialFoam.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Simple potential flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictSteady.cfg"; - fvSchemes; - fvSolution; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index ec7910107c..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,64 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,T) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(DT,T) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - T; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSolution b/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 7abb5d130d..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - T BICCG 1e-06 0; -} - -SIMPLE -{ - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes.cfg b/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index ee07c20045..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "../../laplacianFoam/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/T.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 7d925aff51..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSolution.cfg b/applications/solvers/basic/scalarTransportFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 036c034a30..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/T.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/SIMPLE.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/scalarTransportFoam.cfg b/applications/solvers/basic/scalarTransportFoam/FoamX/scalarTransportFoam.cfg deleted file mode 100644 index 17085c0acd..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/scalarTransportFoam.cfg +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Simple scalar transport flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/basic/scalarTransportFoam/FoamX/transportProperties.cfg b/applications/solvers/basic/scalarTransportFoam/FoamX/transportProperties.cfg deleted file mode 100644 index d9eeb9a5ed..0000000000 --- a/applications/solvers/basic/scalarTransportFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/DT.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/XiFoam.cfg b/applications/solvers/combustion/XiFoam/FoamX/XiFoam.cfg deleted file mode 100644 index c458a12133..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/XiFoam.cfg +++ /dev/null @@ -1,107 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible premixed/partially-premixed turbulent combustion code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - combustionProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Tu.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/ft.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/fu.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/b.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Xi.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Su.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - Tu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - ft - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - fu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - b - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Xi - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Su - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/combustionProperties.cfg b/applications/solvers/combustion/XiFoam/FoamX/combustionProperties.cfg deleted file mode 100644 index a36fe722c6..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/combustionProperties.cfg +++ /dev/null @@ -1,39 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/combustionProperties/combustionProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/combustionProperties/laminarFlameSpeedCorrelation.cfg"; - include "$FOAMX_CONFIG/dictionaries/combustionProperties/fuel.cfg"; - - include "$FOAMX_CONFIG/entries/dimensionedScalar/Su.cfg"; - include "$FOAMX_CONFIG/dictionaries/combustionProperties/SuModel.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/equivalenceRatio.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/sigmaExt.cfg"; - - include "$FOAMX_CONFIG/dictionaries/combustionProperties/XiModel.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/XiCoef.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/XiShapeCoef.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/uPrimeCoef.cfg"; - - include "$FOAMX_CONFIG/dictionaries/combustionProperties/GuldersCoeffs.cfg"; - - include "$FOAMX_CONFIG/entries/Switch/ignite.cfg"; - include "$FOAMX_CONFIG/dictionaries/combustionProperties/ignitionSites.cfg"; - - include "$FOAMX_CONFIG/dictionaries/combustionProperties/StCorr.cfg"; -} - -default -{ - include "defaults/constant/combustionProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/defaults/constant/combustionProperties b/applications/solvers/combustion/XiFoam/FoamX/defaults/constant/combustionProperties deleted file mode 100644 index 32a3f75469..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/defaults/constant/combustionProperties +++ /dev/null @@ -1,96 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object combustionProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -laminarFlameSpeedCorrelation Gulders; - -fuel Propane; - -Su Su [0 1 -1 0 0 0 0] 0.434; - -SuModel unstrained; - -equivalenceRatio equivalenceRatio [0 0 0 0 0 0 0] 1; - -sigmaExt sigmaExt [0 0 -1 0 0 0 0] 100000; - -XiModel transport; - -XiCoef XiCoef [0 0 0 0 0 0 0] 0.62; - -XiShapeCoef XiShapeCoef [0 0 0 0 0 0 0] 1; - -uPrimeCoef uPrimeCoef [0 0 0 0 0 0 0] 1; - -GuldersCoeffs -{ - Methane - { - W W [0 0 0 0 0 0 0] 0.422; - eta eta [0 0 0 0 0 0 0] 0.15; - xi xi [0 0 0 0 0 0 0] 5.18; - alpha alpha [0 0 0 0 0 0 0] 2; - beta beta [0 0 0 0 0 0 0] -0.5; - f f [0 0 0 0 0 0 0] 2.3; - } - Propane - { - W W [0 0 0 0 0 0 0] 0.446; - eta eta [0 0 0 0 0 0 0] 0.12; - xi xi [0 0 0 0 0 0 0] 4.95; - alpha alpha [0 0 0 0 0 0 0] 1.77; - beta beta [0 0 0 0 0 0 0] -0.2; - f f [0 0 0 0 0 0 0] 2.3; - } - IsoOctane - { - W W [0 0 0 0 0 0 0] 0.4658; - eta eta [0 0 0 0 0 0 0] -0.326; - xi xi [0 0 0 0 0 0 0] 4.48; - alpha alpha [0 0 0 0 0 0 0] 1.56; - beta beta [0 0 0 0 0 0 0] -0.22; - f f [0 0 0 0 0 0 0] 2.3; - } -} - -ignite yes; - -ignitionSites -( - { - location (0 0 0.0005); - diameter 0.003; - start 0; - duration 0.001; - strength 1; - } -); - -ignitionSphereFraction 1; - -ignitionThickness ignitionThickness [0 1 0 0 0 0 0] 0; -ignitionCircleFraction 1; - -ignitionKernelArea ignitionKernelArea [0 2 0 0 0 0 0] 0; - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 8f291b11ab..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,94 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss <>; - div(phiU,p) Gauss linear; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(R) Gauss linear; - div(phiXi,Xi) Gauss <>; - div(phiXi,Su) Gauss <>; - div(phiSt,b) Gauss <>; - div(phi,ft_b_h_hu) Gauss multivariateSelection - { - fu <>; - ft <>; - b <>; - h <>; - hu <>; - }; - div(U) Gauss linear; - div((Su*grad(b))) Gauss linear; - div((U+((Su*Xi)*grad(b)))) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(muEff,b) Gauss linear corrected; - laplacian(muEff,ft) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; - laplacian(alphaEff,hu) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSolution b/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index e09bd11c6f..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho ICCG 1e-05 0; - U BICCG 1e-05 0; - p ICCG 1e-06 0; - ft BICCG 1e-05 0; - fu BICCG 1e-05 0; - b BICCG 1e-05 0; - Xi BICCG 1e-05 0; - Su BICCG 1e-05 0; - h BICCG 1e-05 0; - hu BICCG 1e-05 0; - R BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; - momentumPredictor yes; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes.cfg b/applications/solvers/combustion/XiFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 4ef8c370ae..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 6fd8928357..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiXiXi.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiXiSu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiStb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phift_b_h_hu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/SuGradb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/USuXiGradb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index feff7678a8..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 64fb8d034a..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DREffR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffFt.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffhu.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/XiFoam/FoamX/fvSolution.cfg b/applications/solvers/combustion/XiFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 71cb372e60..0000000000 --- a/applications/solvers/combustion/XiFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/ft.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/fu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/b.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Xi.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Su.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/hu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/Xoodles.cfg b/applications/solvers/combustion/Xoodles/FoamX/Xoodles.cfg deleted file mode 100644 index 19a7b18430..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/Xoodles.cfg +++ /dev/null @@ -1,112 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible premixed/partially-premixed LES turbulent combustion code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/LESmodelsCompressible.cfg"; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - combustionProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/muSgs.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Tu.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/ft.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/b.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Xi.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Su.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; - turbulentInlet - { - description "Turbulent inlet"; - parentType inlet; - } -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - turbulentInlet turbulentInlet; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - muSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/muSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/muSgs.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - Tu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - ft - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - fu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - b - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Xi - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Su - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/combustionProperties.cfg b/applications/solvers/combustion/Xoodles/FoamX/combustionProperties.cfg deleted file mode 100644 index bbf982bd5c..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/combustionProperties.cfg +++ /dev/null @@ -1,11 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "../../XiFoam/FoamX/combustionProperties.cfg"; - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/defaults/constant/combustionProperties b/applications/solvers/combustion/Xoodles/FoamX/defaults/constant/combustionProperties deleted file mode 100644 index 7694f5f66b..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/defaults/constant/combustionProperties +++ /dev/null @@ -1,89 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object combustionProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -laminarFlameSpeedCorrelation const; - -fuel Propane; - -Su Su [0 1 -1 0 0 0 0] 0.135; - -SuModel transport; - -equivalenceRatio equivalenceRatio [0 0 0 0 0 0 0] 0.6; - -sigmaExt sigmaExt [0 0 -1 0 0 0 0] 338; - -XiModel transport; - -XiCoef XiCoef [0 0 0 0 0 0 0] 0.62; - -XiShapeCoef XiShapeCoef [0 0 0 0 0 0 0] 1; - -uPrimeCoef uPrimeCoef [0 0 0 0 0 0 0] 1; - -GuldersCoeffs -{ - Methane - { - W W [0 0 0 0 0 0 0] 0.422; - eta eta [0 0 0 0 0 0 0] 0.15; - xi xi [0 0 0 0 0 0 0] 5.18; - alpha alpha [0 0 0 0 0 0 0] 2; - beta beta [0 0 0 0 0 0 0] -0.5; - f f [0 0 0 0 0 0 0] 2.3; - } - Propane - { - W W [0 0 0 0 0 0 0] 0.446; - eta eta [0 0 0 0 0 0 0] 0.12; - xi xi [0 0 0 0 0 0 0] 4.95; - alpha alpha [0 0 0 0 0 0 0] 1.77; - beta beta [0 0 0 0 0 0 0] -0.2; - f f [0 0 0 0 0 0 0] 2.3; - } - IsoOctane - { - W W [0 0 0 0 0 0 0] 0.4658; - eta eta [0 0 0 0 0 0 0] -0.326; - xi xi [0 0 0 0 0 0 0] 4.48; - alpha alpha [0 0 0 0 0 0 0] 1.56; - beta beta [0 0 0 0 0 0 0] -0.22; - f f [0 0 0 0 0 0 0] 2.3; - } -} - -ignite no; - -ignitionSites -( -); - -ignitionSphereFraction 1; - -ignitionThickness ignitionThickness [0 1 0 0 0 0 0] 0; -ignitionCircleFraction 1; - -ignitionKernelArea ignitionKernelArea [0 2 0 0 0 0 0] 0; - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSchemes b/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSchemes deleted file mode 100644 index a30bf4c7af..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,92 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss linear; - div(phiU,p) Gauss linear; - div(phi,k) Gauss <>; - div(phi,B) Gauss <>; - div(B) Gauss linear; - div(phiXi,Xi) Gauss <>; - div(phiXi,Su) Gauss <>; - div(phiSt,b) Gauss <>; - div(phi,ft_b_h_hu) Gauss multivariateSelection - { - fu <>; - ft <>; - b <>; - h <>; - hu <>; - }; - div(U) Gauss linear; - div((Su*grad(b))) Gauss linear; - div((U+((Su*Xi)*grad(b)))) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DBEff,B) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(muEff,b) Gauss linear corrected; - laplacian(muEff,ft) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; - laplacian(alphaEff,hu) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSolution b/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSolution deleted file mode 100644 index 108942f3ec..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,49 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho ICCG 1e-05 0; - U BICCG 1e-05 0; - p ICCG 1e-06 0; - ft BICCG 1e-05 0; - fu BICCG 1e-05 0; - b BICCG 1e-05 0; - Xi BICCG 1e-05 0; - Su BICCG 1e-05 0; - h BICCG 1e-05 0; - hu BICCG 1e-05 0; - R BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes.cfg b/applications/solvers/combustion/Xoodles/FoamX/fvSchemes.cfg deleted file mode 100644 index fb1df786b8..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../XiFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 16f0288443..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiBT.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiXiXi.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiXiSu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiStb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phift_b_h_hu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/SuGradb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/USuXiGradb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index a0515ba9e7..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DBEffB.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffFt.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffhu.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/Xoodles/FoamX/fvSolution.cfg b/applications/solvers/combustion/Xoodles/FoamX/fvSolution.cfg deleted file mode 100644 index 71cb372e60..0000000000 --- a/applications/solvers/combustion/Xoodles/FoamX/fvSolution.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/ft.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/fu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/b.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Xi.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Su.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/hu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/combustionProperties.cfg b/applications/solvers/combustion/engineFoam/FoamX/combustionProperties.cfg deleted file mode 100644 index bbf982bd5c..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/combustionProperties.cfg +++ /dev/null @@ -1,11 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "../../XiFoam/FoamX/combustionProperties.cfg"; - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/combustionProperties b/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/combustionProperties deleted file mode 100644 index 7793d63119..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/combustionProperties +++ /dev/null @@ -1,95 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object combustionProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -laminarFlameSpeedCorrelation Gulders; - -fuel IsoOctane; - -Su Su [0 1 -1 0 0 0 0] 0; - -SuModel unstrained; - -sigmaExt sigmaExt [0 0 -1 0 0 0 0] 100000; - -XiModel transport; - -XiCoef XiCoef [0 0 0 0 0 0 0] 0.62; - -XiShapeCoef XiShapeCoef [0 0 0 0 0 0 0] 1; - -uPrimeCoef uPrimeCoef [0 0 0 0 0 0 0] 1; - -GuldersCoeffs -{ - Methane - { - W W [0 0 0 0 0 0 0] 0.422; - eta eta [0 0 0 0 0 0 0] 0.15; - xi xi [0 0 0 0 0 0 0] 5.18; - alpha alpha [0 0 0 0 0 0 0] 2; - beta beta [0 0 0 0 0 0 0] -0.5; - f f [0 0 0 0 0 0 0] 2.3; - } - Propane - { - W W [0 0 0 0 0 0 0] 0.446; - eta eta [0 0 0 0 0 0 0] 0.12; - xi xi [0 0 0 0 0 0 0] 4.95; - alpha alpha [0 0 0 0 0 0 0] 1.77; - beta beta [0 0 0 0 0 0 0] -0.2; - f f [0 0 0 0 0 0 0] 2.3; - } - IsoOctane - { - W W [0 0 0 0 0 0 0] 0.4658; - eta eta [0 0 0 0 0 0 0] -0.326; - xi xi [0 0 0 0 0 0 0] 4.48; - alpha alpha [0 0 0 0 0 0 0] 1.56; - beta beta [0 0 0 0 0 0 0] -0.22; - f f [0 0 0 0 0 0 0] 2.3; - } -} - -ignite yes; - -ignitionSites -( - - { - location (0.03 0 0.091); - diameter 0.002; - start -15; - duration 20; - strength 4; - } -); - -ignitionSphereFraction 1; - -ignitionThickness ignitionThickness [0 1 0 0 0 0 0] 0; -ignitionCircleFraction 1; - -ignitionKernelArea ignitionKernelArea [0 2 0 0 0 0 0] 0; - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/engineGeometry b/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/engineGeometry deleted file mode 100644 index 01f66c20dc..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/defaults/constant/engineGeometry +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object engineGeometry; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -engineMesh layered; - -conRodLength conRodLength [0 1 0 0 0 0 0] 0.147; - -bore bore [0 1 0 0 0 0 0] 0.092; - -stroke stroke [0 1 0 0 0 0 0] 0.08423; - -clearance clearance [0 1 0 0 0 0 0] 0.00115; - -rpm rpm [0 0 -1 0 0 0 0] 1500; - -layeredMesh yes; - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 3302ffea22..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,94 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss <>; - div(phiU,p) Gauss linear; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(phiXi,Xi) Gauss <>; - div(phiXi,Su) Gauss <>; - div(phiSt,b) Gauss <>; - div(phi,ft_b_h_hu) Gauss multivariateSelection - { - fu <>; - ft <>; - b <>; - h <>; - hu <>; - }; - div(R) Gauss linear; - div(U) Gauss linear; - div((Su*grad(b))) Gauss linear; - div((U+((Su*Xi)*grad(b)))) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear limited 0.5; - laplacian(DepsilonEff,epsilon) Gauss linear limited 0.5; - laplacian(DREff,R) Gauss linear limited 0.5; - laplacian((rho*(1|A(U))),p) Gauss linear limited 0.5; - laplacian(muEff,b) Gauss linear limited 0.5; - laplacian(muEff,ft) Gauss linear limited 0.5; - laplacian(alphaEff,h) Gauss linear limited 0.5; - laplacian(alphaEff,hu) Gauss linear limited 0.5; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default limited 0.5; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSolution b/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 04c543d539..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho ICCG 1e-05 0; - U BICCG 1e-05 0; - p ICCG 1e-06 0; - ft BICCG 1e-05 0; - fu BICCG 1e-05 0; - b BICCG 1e-05 0; - Xi BICCG 1e-05 0; - Su BICCG 1e-05 0; - h BICCG 1e-05 0; - hu BICCG 1e-05 0; - R BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 1; - momentumPredictor yes; -} - - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/engineFoam.cfg b/applications/solvers/combustion/engineFoam/FoamX/engineFoam.cfg deleted file mode 100644 index d1fb2c3db4..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/engineFoam.cfg +++ /dev/null @@ -1,116 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Combusting RANS code using the b-Xi two-equation model"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - combustionProperties; - engineGeometry; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Tu.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/ft.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/fu.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/b.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Xi.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Su.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/meshMotion/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/meshMotion/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/meshMotion/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/meshMotion/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/meshMotion/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/meshMotion/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - Tu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - ft - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - fu - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - b - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Xi - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } - - Su - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/Y.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/engineGeometry.cfg b/applications/solvers/combustion/engineFoam/FoamX/engineGeometry.cfg deleted file mode 100644 index 97d7f1f3cf..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/engineGeometry.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Engine geometry"; -dictionaryPath "constant"; - -entries -{ - include "$FOAMX_CONFIG/entries/engineMesh/engineMesh.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/conRodLength.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/bore.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stroke.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/clearance.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rpm.cfg"; -} - -default -{ - include "defaults/constant/engineGeometry"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/fvSchemes.cfg b/applications/solvers/combustion/engineFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index a748dc86d2..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../XiFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "../../XiFoam/FoamX/fvSchemes/divSchemes.cfg"; - include "../../XiFoam/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/combustion/engineFoam/FoamX/fvSolution.cfg b/applications/solvers/combustion/engineFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 71cb372e60..0000000000 --- a/applications/solvers/combustion/engineFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/ft.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/fu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/b.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Xi.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Su.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/hu.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/coodles.cfg b/applications/solvers/compressible/coodles/FoamX/coodles.cfg deleted file mode 100644 index 392023d12c..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/coodles.cfg +++ /dev/null @@ -1,91 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible large eddy simulation (LES) code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/LESmodelsCompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/muSgs.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Bkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/muTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; - turbulentInlet - { - description "Turbulent inlet"; - parentType inlet; - } -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/U.cfg"; - turbulentInlet turbulentInlet; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - muSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/muSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/muSgs.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/B.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/B.cfg"; - } - - muTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/muTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/muTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 148d016d6f..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,80 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default backward; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,h) Gauss <>; - div(phiU,p) Gauss linear; - div(phi,k) Gauss <>; - div(phi,B) Gauss <>; - div(phi,muTilda) Gauss <>; - - div(B) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DBEff,B) Gauss linear corrected; - laplacian(DmuTildaEff,muTilda) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSolution deleted file mode 100644 index ce6871c298..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho ICCG 1e-6 0; - h BICCG 1e-6 0; - p ICCG 1e-06 0; - U BICCG 1e-05 0; - k BICCG 1e-05 0; - B BICCG 1e-05 0; - nuTilda BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSchemes.cfg b/applications/solvers/compressible/coodles/FoamX/fvSchemes.cfg deleted file mode 100644 index adef3c4e34..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/coodles/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 253474cb72..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phih.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiBT.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiMuTilda.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/compressible/coodles/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index 191b772a68..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/U.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/compressible/coodles/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 218a143880..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/HbyA.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/coodles/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 70e2435273..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DBEffB.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DmuTildaEffMuTilda.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/coodles/FoamX/fvSolution.cfg b/applications/solvers/compressible/coodles/FoamX/fvSolution.cfg deleted file mode 100644 index 6087501bd9..0000000000 --- a/applications/solvers/compressible/coodles/FoamX/fvSolution.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/B.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 80f30526c5..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phiv,rho) Gauss <>; - div(phiv,rhoU) Gauss <>; - div(phiv2,p) Gauss <>; - div(phiv,rhoE) Gauss <>; -} - -laplacianSchemes -{ - default none; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 6816bc22cb..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p BICCG 1e-15 0; - rho BICCG 1e-15 0; - rhoU BICCG 1e-15 0; - rhoE BICCG 1e-15 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes.cfg b/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index d394c4cf3a..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../sonicFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 52ab2f701f..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phivRho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phivRhoU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiv2p.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phivRhoE.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 7e80b5c94a..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSolution.cfg b/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSolution.cfg deleted file mode 100644 index e16851c7e0..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pAsymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rhoCD.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rhoU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rhoE.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoSonicFoam/FoamX/rhoSonicFoam.cfg b/applications/solvers/compressible/rhoSonicFoam/FoamX/rhoSonicFoam.cfg deleted file mode 100644 index 1707699c1d..0000000000 --- a/applications/solvers/compressible/rhoSonicFoam/FoamX/rhoSonicFoam.cfg +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible trans-sonic/supersonic laminar gas flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermodynamicProperties/thermodynamicPropertiesConst.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 3187f7dde3..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,95 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// Time derivative discretisation schemes -ddtSchemes -{ - // Default scheme - default Euler; -} - -// Gradient discretisation schemes -gradSchemes -{ - // Default gradient scheme - default Gauss linear; - grad(p) Gauss linear; -} - -// Convection discretisation schemes -divSchemes -{ - // Default scheme - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss <>; - div(phiU,p) Gauss linear; - div(phi,h) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div((rho*R)) Gauss linear; - div(R) Gauss linear; - div(U) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -// Laplacian discretisation schemes -laplacianSchemes -{ - // Default scheme - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian(mut,U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; -} - -// Interpolation schemes -interpolationSchemes -{ - // Default scheme - default linear; -} - -// Surface normal gradient schemes -snGradSchemes -{ - // Default scheme - default corrected; -} - -// Calculation of flux -fluxRequired -{ - // Create storage for flux for all solved variables? - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 776cc0f598..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - // Solver for the rho equation - rho ICCG 1e-05 0; - // Solver for the U equation - U BICCG 1e-05 0; - // Solver for the p equation - p ICCG 1e-06 0; - // Solver for the h equation - h BICCG 1e-05 0; - // Solver for the R equation - R BICCG 1e-05 0; - // Solver for the k equation - k BICCG 1e-05 0; - // Solver for the epsilon equation - epsilon BICCG 1e-05 0; -} - -PISO -{ - // Number of PISO correctors - nCorrectors 2; - // Number of non-orthogonal correctors - nNonOrthogonalCorrectors 0; - // momentumPredictor? - momentumPredictor yes; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 4ef8c370ae..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index f44d49977f..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phih.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/rhoR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index feff7678a8..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 7504ee32c5..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/mutU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DREffR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSolution.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSolution.cfg deleted file mode 100644 index c75ef263d3..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/rhoTurbFoam/FoamX/rhoTurbFoam.cfg b/applications/solvers/compressible/rhoTurbFoam/FoamX/rhoTurbFoam.cfg deleted file mode 100644 index 287c506191..0000000000 --- a/applications/solvers/compressible/rhoTurbFoam/FoamX/rhoTurbFoam.cfg +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Transient solver for compressible turbulent flow"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 5c400ed7e8..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,70 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss <>; - div(phi,e) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(mu,U) Gauss linear corrected; - laplacian(mu,e) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 45a64af35c..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p BICCG 1e-15 0; - U BICCG 1e-15 0; - rho ICCG 1e-15 0; - e BICCG 1e-15 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes.cfg b/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 4ef8c370ae..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index b6727479c2..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phie.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index 191b772a68..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/U.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 801ea9c5b3..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/mue.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/fvSolution.cfg b/applications/solvers/compressible/sonicFoam/FoamX/fvSolution.cfg deleted file mode 100644 index f2be1c0032..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pAsymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/e.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/sonicFoam.cfg b/applications/solvers/compressible/sonicFoam/FoamX/sonicFoam.cfg deleted file mode 100644 index fa085c9836..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/sonicFoam.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible trans-sonic/supersonic laminar gas flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; - include "$FOAMX_CONFIG/dictionaries/thermodynamicProperties/thermodynamicPropertiesConst.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicFoam/FoamX/transportProperties.cfg b/applications/solvers/compressible/sonicFoam/FoamX/transportProperties.cfg deleted file mode 100644 index 24c3fc8915..0000000000 --- a/applications/solvers/compressible/sonicFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/mu.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index a5337e9e96..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,67 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phid,p) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(mu,U) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index b36d8a0cee..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,39 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p BICCG 1e-06 0; - U BICCG 1e-05 0; - rho ICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 4ef8c370ae..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index ecf17c8164..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index 446cb1e5e0..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index f6ea98e29f..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSolution.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSolution.cfg deleted file mode 100644 index ab18dde078..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pAsymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/sonicLiquidFoam.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/sonicLiquidFoam.cfg deleted file mode 100644 index 19fcb49842..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/sonicLiquidFoam.cfg +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Laminar compressible liquid flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; - thermodynamicProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/thermodynamicProperties.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/thermodynamicProperties.cfg deleted file mode 100644 index 06aacd51ee..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/thermodynamicProperties.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/thermodynamicProperties/thermodynamicProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/p0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/psi.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicLiquidFoam/FoamX/transportProperties.cfg b/applications/solvers/compressible/sonicLiquidFoam/FoamX/transportProperties.cfg deleted file mode 100644 index 24c3fc8915..0000000000 --- a/applications/solvers/compressible/sonicLiquidFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/mu.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 6ef5701686..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(phid,p) Gauss <>; - div(phiU,p) Gauss <>; - div(phi,h) Gauss <>; - div(R) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSolution b/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 478ce48d7d..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p BICCG 1e-08 0; - rho ICCG 1e-05 0; - U BICCG 1e-05 0; - h BICCG 1e-05 0; - k BICCG 1e-08 0; - epsilon BICCG 1e-08 0; - R BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 2; -} - - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 3c334a8bc3..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 219c9f6613..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phidp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phih.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 359e0f79fd..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DREffR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSolution.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSolution.cfg deleted file mode 100644 index a37c9e02f6..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pAsymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/sonicTurbFoam.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/sonicTurbFoam.cfg deleted file mode 100644 index b3afd87eb2..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/sonicTurbFoam.cfg +++ /dev/null @@ -1,78 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Compressible trans-sonic/supersonic turbulent gas flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/sonic/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/compressible/sonicTurbFoam/FoamX/thermophysicalProperties.cfg b/applications/solvers/compressible/sonicTurbFoam/FoamX/thermophysicalProperties.cfg deleted file mode 100644 index a10febdf62..0000000000 --- a/applications/solvers/compressible/sonicTurbFoam/FoamX/thermophysicalProperties.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermoType.cfg"; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/standardMixtureCoefficients.cfg"; -} - -include "defaults/thermophysicalProperties.def"; - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 750bcb36fc..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,64 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default leastSquares; -} - -divSchemes -{ - default none; - div(rhoFlux,rho) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(phi) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - phi; -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSolution b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 67ca7d08ea..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - phi ICCG 1e-08 0.2; - rho BICCG 1e-08 0.2; -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/electrostaticFoam.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/electrostaticFoam.cfg deleted file mode 100644 index db46a97b21..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/electrostaticFoam.cfg +++ /dev/null @@ -1,52 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Electrostatics code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - physicalProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/rhoCD.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/phiEP.cfg"; -} - -patchPhysicalTypes -{ - insulator - { - description "Insulator boundary condition"; - } - - fixedCharge - { - description "Fixed charge boundary condition"; - } -} - -patchFieldsPhysicalTypes -{ - phi - { - insulator fixedValue; - fixedCharge fixedValue; - } - rho - { - insulator zeroGradient; - fixedCharge fixedValue; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 87ff438d0d..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/phi.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 23005bea61..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - - div(rhoFlux,rho) - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divRhoRho.gif"; - } - } -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index cefd38314d..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/phi.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSolution.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 3d950e35a6..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/phiEP.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rhoCD.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/physicalProperties.cfg b/applications/solvers/electromagnetics/electrostaticFoam/FoamX/physicalProperties.cfg deleted file mode 100644 index f8c4d7702f..0000000000 --- a/applications/solvers/electromagnetics/electrostaticFoam/FoamX/physicalProperties.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/physicalProperties/physicalProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/electromagnetics/epsilon0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/electromagnetics/k.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 1bcbf51e9e..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad((DBU*magSqr(B))) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phiB,U) Gauss <>; - div(phi,B) Gauss <>; - div(phiB,((2*DBU)*B)) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(nu,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; - laplacian(DB,B) Gauss linear corrected; - laplacian((1|A(B)),pB) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; - interpolate(B) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; - pB; -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSolution b/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index ff0d37a34f..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,45 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; - U BICCG 1e-05 0; - B BICCG 1e-05 0; - pB ICCG 1e-05 0; -} - -PISO -{ - nCorrectors 3; - nNonOrthogonalCorrectors 0; -} - -BPISO -{ - nCorrectors 3; -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index e4cc46106a..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pPB.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 449ee98313..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiBU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiB.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiB2DBUB.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index 94386ed68a..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/DBUmagsqrB.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index f3587d0051..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/HbyA.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/B.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 754fc9fb61..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1AUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DBB.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1ABpB.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSolution.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 01a0a2ff95..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pB.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; - - BPISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/mhdFoam.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/mhdFoam.cfg deleted file mode 100644 index 78649a6265..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/mhdFoam.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible laminar magneto-hydrodynamics code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/electromagnetics/B.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/electromagnetics/pB.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/electromagnetics/B.cfg"; - } - - pB - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/electromagnetics/pB.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/electromagnetics/mhdFoam/FoamX/transportProperties.cfg b/applications/solvers/electromagnetics/mhdFoam/FoamX/transportProperties.cfg deleted file mode 100644 index 4e02f55295..0000000000 --- a/applications/solvers/electromagnetics/mhdFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/electromagnetics/mu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/electromagnetics/sigma.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/buoyantFoam.cfg b/applications/solvers/heatTransfer/buoyantFoam/FoamX/buoyantFoam.cfg deleted file mode 100644 index 6e12f51996..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/buoyantFoam.cfg +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Solver for transient, buoyant, turbulent flow of compressible fluids for ventilation and heat-transfer"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - wall fixedFluxBuoyantPressure; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 3dd417ae43..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,h) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(R) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian((rho*(1|A(U))),pd) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - pd; -} - - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSolution b/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index ffaf80589c..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho ICCG 0 0; - pd ICCG 1e-06 0; - U BICCG 1e-05 0; - h BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; - R BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes.cfg b/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index add633e5c8..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pd.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 86097735a6..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phih.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/muEffGradUT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 745e466004..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUpd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/alphaEffh.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DREffR.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSolution.cfg b/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSolution.cfg deleted file mode 100644 index b7c303b29a..0000000000 --- a/applications/solvers/heatTransfer/buoyantFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/buoyantSimpleFoam.cfg b/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/buoyantSimpleFoam.cfg deleted file mode 100644 index 837bf8793c..0000000000 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/buoyantSimpleFoam.cfg +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Solver for steady, buoyant, turbulent flow of compressible fluids for ventilation and heat-transfer"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictSteady.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - wall fixedFluxBuoyantPressure; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - T - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/thermal/T.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 8b8dd1078a..0000000000 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default steadyState; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,h) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(R) Gauss linear; - div((muEff*dev2(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian((rho*(1|A(U))),pd) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - pd; -} - - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSolution b/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index d4f55fd54f..0000000000 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - pd ICCG 1e-08 0; - U BICCG 1e-05 0; - h BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; - R BICCG 1e-05 0; -} - -SIMPLE -{ - nNonOrthogonalCorrectors 0; - pdRefCell 0; - pdRefValue 0; -} - -relaxationFactors -{ - rho 1.0; - pd 0.3; - U 0.5; - h 0.5; - k 0.5; - epsilon 0.5; - R 0.5; -} - - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSchemes.cfg b/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 1bc8323f8a..0000000000 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/steady.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "../../buoyantFoam/FoamX/fvSchemes/divSchemes.cfg"; - include "../../buoyantFoam/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pd.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSolution.cfg b/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 3b944716a6..0000000000 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/h.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - } - } - - SIMPLE - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/ref/pdRef.cfg"; - } - } - - relaxationFactors - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/scalar01/rho.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/pd.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/U.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/h.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/k.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/R.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/channelOodles.cfg b/applications/solvers/incompressible/channelOodles/FoamX/channelOodles.cfg deleted file mode 100644 index 0f0e8a64c2..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/channelOodles.cfg +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible large eddy simulation (LES) code for channel flow"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Bkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - nuSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/B.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/B.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSchemes b/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 5e7d87dd92..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,76 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default backward; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,B) Gauss <>; - div(B) Gauss linear; - div(phi,nuTilda) Gauss <>; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEff,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DBEff,B) Gauss linear corrected; - laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(U) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSolution b/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSolution deleted file mode 100644 index 451878b290..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; - pFinal ICCG 1e-06 0; - U BICCG 1e-05 0; - k BICCG 1e-05 0; - B BICCG 1e-05 0; - nuTilda BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; - pRefCell 1001; - pRefValue 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/fvSchemes.cfg b/applications/solvers/incompressible/channelOodles/FoamX/fvSchemes.cfg deleted file mode 100644 index 650b94943d..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../../incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "../../oodles/FoamX/fvSchemes/divSchemes.cfg"; - include "../../oodles/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "../../../incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/fvSolution.cfg b/applications/solvers/incompressible/channelOodles/FoamX/fvSolution.cfg deleted file mode 100644 index 1004ec6f8f..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/fvSolution.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pFinal.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/channelOodles/FoamX/transportProperties.cfg b/applications/solvers/incompressible/channelOodles/FoamX/transportProperties.cfg deleted file mode 100644 index 0d9e8b91e0..0000000000 --- a/applications/solvers/incompressible/channelOodles/FoamX/transportProperties.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedVector/Ubar.cfg"; - include "$FOAMX_CONFIG/dictionaries/transportProperties/incompressibleTransportModel.cfg"; - include "$FOAMX_CONFIG/dictionaries/transportProperties/NewtonianViscosity.cfg"; - include "$FOAMX_CONFIG/dictionaries/transportProperties/CrossPowerLawCoeffs.cfg"; - include "$FOAMX_CONFIG/dictionaries/transportProperties/BirdCarreauCoeffs.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 408a65b671..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,67 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; -} - -laplacianSchemes -{ - default none; - laplacian(nu,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSolution b/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 290da5ea43..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p PCG - { - preconditioner DIC; - tolerance 1e-06; - relTol 0; - }; - U PCG - { - preconditioner DILU; - tolerance 1e-05; - relTol 0; - }; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index bb8da02b54..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 70246c785f..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index feff7678a8..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 218a143880..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/HbyA.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 6cc1f425ac..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1AUp.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/fvSolution.cfg b/applications/solvers/incompressible/icoFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 31785b609b..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/icoFoam/FoamX/icoFoam.cfg b/applications/solvers/incompressible/icoFoam/FoamX/icoFoam.cfg deleted file mode 100644 index ded9a15725..0000000000 --- a/applications/solvers/incompressible/icoFoam/FoamX/icoFoam.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible unsteady laminar flow code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/NewtonianSinglePhaseTransportProperties.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSchemes b/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 2640c70ed2..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default backward; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,B) Gauss <>; - div(phi,nuTilda) Gauss <>; - - div(B) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEff,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DBEff,B) Gauss linear corrected; - laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(U) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSolution b/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSolution deleted file mode 100644 index 324cf4b66e..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; - pFinal ICCG 1e-06 0; - U BICCG 1e-05 0; - k BICCG 1e-05 0; - B BICCG 1e-05 0; - nuTilda BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/fvSchemes.cfg b/applications/solvers/incompressible/oodles/FoamX/fvSchemes.cfg deleted file mode 100644 index 2fde7b71b7..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "../../../incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "../../../incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/incompressible/oodles/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 3a0a146977..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiBT.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiNuTilda.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffGradUT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/incompressible/oodles/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index af133fa943..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1AUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DBEffB.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DnuTildaEffNuTilda.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/fvSolution.cfg b/applications/solvers/incompressible/oodles/FoamX/fvSolution.cfg deleted file mode 100644 index 1004ec6f8f..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/fvSolution.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pFinal.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/oodles/FoamX/oodles.cfg b/applications/solvers/incompressible/oodles/FoamX/oodles.cfg deleted file mode 100644 index df69a317d4..0000000000 --- a/applications/solvers/incompressible/oodles/FoamX/oodles.cfg +++ /dev/null @@ -1,79 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible large eddy simulation (LES) code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/singlePhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Bkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - turbulentInlet - { - description "Turbulent inlet"; - parentType inlet; - } -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - turbulentInlet turbulentInlet; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - nuSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/B.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/B.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 071e9c6e34..0000000000 --- a/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,79 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default steadyState; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(phi,nuTilda) Gauss <>; - - div(R) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEff,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; - laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(U) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSolution b/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 86126ac846..0000000000 --- a/applications/solvers/incompressible/simpleFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,51 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0.01; - U BICCG 1e-05 0.1; - k BICCG 1e-05 0.1; - epsilon BICCG 1e-05 0.1; - R BICCG 1e-05 0.1; - nuTilda BICCG 1e-05 0.1; -} - -SIMPLE -{ - nNonOrthogonalCorrectors 0; -} - -relaxationFactors -{ - p 0.3; - U 0.7; - k 0.7; - epsilon 0.7; - R 0.7; - nuTilda 0.7; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/simpleFoam/FoamX/fvSchemes.cfg b/applications/solvers/incompressible/simpleFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 4d6eca680d..0000000000 --- a/applications/solvers/incompressible/simpleFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,45 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 1.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes.cfg; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/steady.cfg"; - - include "../../turbFoam/FoamX/fvSchemes/gradSchemes.cfg"; - include "../../turbFoam/FoamX/fvSchemes/divSchemes.cfg"; - include "../../turbFoam/FoamX/fvSchemes/laplacianSchemes.cfg"; - include "../../turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/simpleFoam/FoamX/fvSolution.cfg b/applications/solvers/incompressible/simpleFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 9084535b39..0000000000 --- a/applications/solvers/incompressible/simpleFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,49 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/SIMPLE.cfg"; - - relaxationFactors - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/scalar01/p.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/U.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/k.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/R.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/nuTilda.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/simpleFoam/FoamX/simpleFoam.cfg b/applications/solvers/incompressible/simpleFoam/FoamX/simpleFoam.cfg deleted file mode 100644 index abe087fa73..0000000000 --- a/applications/solvers/incompressible/simpleFoam/FoamX/simpleFoam.cfg +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible steady turbulent flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictSteady.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/singlePhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index a43602ff79..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,78 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(p) Gauss linear; - grad(U) Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(phi,nuTilda) Gauss <>; - div(R) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEff,U) Gauss linear corrected; - laplacian((1|A(U)),p) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(DREff,R) Gauss linear corrected; - laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(U) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSolution b/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 3f61d3d934..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-06 0; - U BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; - R BICCG 1e-05 0; - nuTilda BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index bb8da02b54..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index c335c4d96e..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiNuTilda.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffGradUT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index 191b772a68..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/p.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/U.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 5def0dab55..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/U.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 8385598f7b..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/1AUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DREffR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DnuTildaEffNuTilda.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/fvSolution.cfg b/applications/solvers/incompressible/turbFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 1d5289fb2b..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/incompressible/turbFoam/FoamX/turbFoam.cfg b/applications/solvers/incompressible/turbFoam/FoamX/turbFoam.cfg deleted file mode 100644 index 91f7ce748c..0000000000 --- a/applications/solvers/incompressible/turbFoam/FoamX/turbFoam.cfg +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible transient turbulent flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/singlePhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/pKinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/bubbleFoam.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/bubbleFoam.cfg deleted file mode 100644 index ee0468f0a2..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/bubbleFoam.cfg +++ /dev/null @@ -1,72 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible turbulent Eulerian two phase flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; - turbulenceProperties; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Ua.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Ub.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/alpha.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - alpha - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/alpha.cfg"; - } - - Ua - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - Ub - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/transportProperties b/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/transportProperties deleted file mode 100644 index f5d8736ce0..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/transportProperties +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object transportProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -rhoa rhoa [1 -3 0 0 0 0 0] 1; - -rhob rhob [1 -3 0 0 0 0 0] 1000; - -nua nua [0 2 -1 0 0 0 0] 1.6e-05; - -nub nub [0 2 -1 0 0 0 0] 1e-06; - -da da [0 1 0 0 0 0 0] 0.003; - -db db [0 1 0 0 0 0 0] 0.0001; - -Cvm Cvm [0 0 0 0 0 0 0] 0.5; - -Cl Cl [0 0 0 0 0 0 0] 0; - -Ct Ct [0 0 0 0 0 0 0] 1; - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/turbulenceProperties b/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/turbulenceProperties deleted file mode 100644 index 0956e1957f..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/constant/turbulenceProperties +++ /dev/null @@ -1,49 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object turbulenceProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -turbulenceModel laminar; - -turbulence off; - -laminarCoeffs -{ -} - -kEpsilonCoeffs -{ - Cmu Cmu [0 0 0 0 0 0 0] 0.09; - C1 C1 [0 0 0 0 0 0 0] 1.44; - C2 C2 [0 0 0 0 0 0 0] 1.92; - alphak alphak [0 0 0 0 0 0 0] 1; - alphaEps alphaEps [0 0 0 0 0 0 0] 0.76923; -} - -wallFunctionCoeffs -{ - kappa kappa [0 0 0 0 0 0 0] 0.4187; - E E [0 0 0 0 0 0 0] 9; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index c2d2b6c3fd..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,72 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phia,Ua) Gauss <>; - div(phib,Ub) Gauss <>; - div(phib,k) Gauss <>; - div(phib,epsilon) Gauss <>; - div(phi,alpha) Gauss <>; - div((-nuEffa*grad(Ua).T())) Gauss linear; - div((-nuEffb*grad(Ub).T())) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEffa,Ua) Gauss linear corrected; - laplacian(nuEffb,Ub) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index e59bb7c8de..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-10 0; - Ua BICCG 1e-05 0; - Ub BICCG 1e-05 0; - alpha BICCG 1e-10 0; - beta BICCG 1e-10 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; - nAlphaCorr 2; - correctAlpha no; - pRefCell 0; - pRefValue 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 3c334a8bc3..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 865fd600e6..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiaUa.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibUb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiAlpha.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffaGradUaT.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffbGradUbT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 31db10c709..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffaUa.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffbUb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 1aa4d1e114..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Ua.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Ub.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/alpha.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/beta.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - PISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nAlphaCorr.cfg"; - include "$FOAMX_CONFIG/entries/Switch/correctAlpha.cfg"; - include "$FOAMX_CONFIG/entries/ref/pRef.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/transportProperties.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/transportProperties.cfg deleted file mode 100644 index fd08411380..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/rhoa.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rhob.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nua.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nub.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/da.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/db.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cvm.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cl.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ct.cfg"; -} - -default -{ - include "defaults/constant/transportProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/bubbleFoam/FoamX/turbulenceProperties.cfg b/applications/solvers/multiphase/bubbleFoam/FoamX/turbulenceProperties.cfg deleted file mode 100644 index 8510b9bafb..0000000000 --- a/applications/solvers/multiphase/bubbleFoam/FoamX/turbulenceProperties.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Turbulence properties"; -dictionaryPath "constant"; -entries -{ - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/turbulenceModel.cfg"; - include "$FOAMX_CONFIG/entries/Switch/turbulence.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithAlphak.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg"; -} - -options -{ - turbulenceModel - { - editable 0; - } -} - -default -{ - include "defaults/constant/turbulenceProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 9bd999a781..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,67 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - div(rho*phi,U) Gauss limitedLinearV 1; - div(phi,gamma) Gauss vanLeer; - div(phirb,gamma) Gauss interfaceCompression; -} - -laplacianSchemes -{ - default Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - pd; - pcorr; - gamma; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index b9fdd275e5..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,64 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - pcorr PCG - { - preconditioner DIC; - tolerance 1e-10; - relTol 0; - }; - pd PCG - { - preconditioner DIC; - tolerance 1e-7; - relTol 0.05; - }; - pdFinal PCG - { - preconditioner DIC; - tolerance 1e-7; - relTol 0; - }; - U PBiCG - { - preconditioner DILU; - tolerance 1e-06; - relTol 0; - }; -} - -PISO -{ - momentumPredictor no; - nCorrectors 3; - nNonOrthogonalCorrectors 1; - nGammaCorr 1; - nGammaSubCycles 2; - cGamma 1; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/interFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index b7de774ca6..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/defaultOnly.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg" -; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 488ddd40aa..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/rhoPhiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiGamma.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phirbGamma.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 9a7b1ed7ec..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/interFoam/FoamX/fvSolution.cfg deleted file mode 100644 index da598bafdb..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,45 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pcorr.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pdFinal.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - } - } - - PISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/Switch/momentumPredictor.cfg"; - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaCorr.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaSubCycles.cfg"; - include "$FOAMX_CONFIG/entries/scalar/cGamma.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/interFoam/FoamX/interFoam.cfg b/applications/solvers/multiphase/interFoam/FoamX/interFoam.cfg deleted file mode 100644 index b0298c5183..0000000000 --- a/applications/solvers/multiphase/interFoam/FoamX/interFoam.cfg +++ /dev/null @@ -1,57 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Free surface-capturing unsteady laminar two-phase flow code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/twoPhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pd.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/gamma.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - - wallContactAngle - { - description "Wall boundary condition with specified contact-angle"; - parentType wall; - } -} - -patchFieldsPhysicalTypes -{ - gamma - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/gamma.cfg"; - wallContactAngle gammaContactAngle; - } - - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - pd - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/pd.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index f827237608..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - div(rho*phi,U) Gauss linear; - div(phi,gamma) Gauss <>; - div(phirb,gamma) Gauss <>; - div(phi,k) Gauss <>; - div(phi,B) Gauss <>; - div(phi,nuTilda) Gauss <>; - - div(B) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - pd; - pcorr; - gamma; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 7f9bb4811d..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - pcorr ICCG 1e-08 0; - pd ICCG 1e-08 0; - pdFinal ICCG 1e-09 0; - U BICCG 1e-08 0; - k BICCG 1e-08 0; - B BICCG 1e-08 0; - nuTilda BICCG 1e-08 0; -} - -PISO -{ - momentumPredictor no; - nCorrectors 2; - nNonOrthogonalCorrectors 1; - nGammaCorr 1; - nGammaSubCycles 4; - cGamma 2; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index b7de774ca6..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/defaultOnly.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg" -; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divPhiU.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divPhiU.cfg deleted file mode 100644 index 3328693803..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divPhiU.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,U) -{ - type compound; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - localBlended - { - type compound; - entries - { - scheme1 - { - type selection; - entries - { - include "$FOAMX_CONFIG/entries/interpolations/Phi.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; - } - } - - scheme2 - { - type selection; - entries - { - include "$FOAMX_CONFIG/entries/interpolations/GammaV.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; - } - } - } - } - - include "$FOAMX_CONFIG/entries/interpolations/GammaV.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 166508b323..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/rhoPhiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiGamma.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phirbGamma.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiBT.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiNuTilda.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffGradUT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 218a143880..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/HbyA.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/fvSolution.cfg deleted file mode 100644 index d22a13cec8..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pcorr.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pdFinal.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/B.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - PISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/Switch/momentumPredictor.cfg"; - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaCorr.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaSubCycles.cfg"; - include "$FOAMX_CONFIG/entries/scalar/cGamma.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/lesInterFoam/FoamX/lesInterFoam.cfg b/applications/solvers/multiphase/lesInterFoam/FoamX/lesInterFoam.cfg deleted file mode 100644 index 6f0cd9bce2..0000000000 --- a/applications/solvers/multiphase/lesInterFoam/FoamX/lesInterFoam.cfg +++ /dev/null @@ -1,86 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Free surface-capturing unsteady LES two-phase flow code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/twoPhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pd.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/gamma.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Bkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - - wallContactAngle - { - description "Wall boundary condition with specified contact-angle"; - parentType wall; - } -} - -patchFieldsPhysicalTypes -{ - gamma - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/gamma.cfg"; - wallContactAngle gammaContactAngle; - } - - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - pd - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/pd.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - nuSgs - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuSgs.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg"; - } - - B - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/B.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/B.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index d19efb662c..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,74 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - div(rho*phi,U) Gauss linear; - div(phi,gamma) Gauss <>; - div(phirb,gamma) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phi,R) Gauss <>; - div(phi,nuTilda) Gauss <>; - - div(R) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; -} - -laplacianSchemes -{ - default Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; - interpolate(HbyA) linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - pd; - pcorr; - gamma; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 86b113d4be..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - pcorr ICCG 1e-10 0; - pd ICCG 1e-10 0; - pdFinal ICCG 1e-08 0; - U BICCG 1e-06 0; - k BICCG 1e-08 0; - epsilon BICCG 1e-08 0; - R BICCG 1e-08 0; - nuTilda BICCG 1e-08 0; -} - -PISO -{ - momentumPredictor no; - nCorrectors 3; - nNonOrthogonalCorrectors 0; - nGammaCorr 1; - nGammaSubCycles 4; - cGamma 2; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index b7de774ca6..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/defaultOnly.cfg"; - include "fvSchemes/interpolationSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg" -; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index d4e641673e..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/rhoPhiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiGamma.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phirbGamma.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg" -; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiR.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiNuTilda.cfg" - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/nuEffGradUT.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg b/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg deleted file mode 100644 index 218a143880..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSchemes/interpolationSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/HbyA.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/rasInterFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 67a7c632a8..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pcorr.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pd.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pdFinal.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/R.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/nuTilda.cfg"; - } - } - - PISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaCorr.cfg"; - include "$FOAMX_CONFIG/entries/label/nGammaSubCycles.cfg"; - include "$FOAMX_CONFIG/entries/scalar/cGamma.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/rasInterFoam/FoamX/rasInterFoam.cfg b/applications/solvers/multiphase/rasInterFoam/FoamX/rasInterFoam.cfg deleted file mode 100644 index 090c3062e6..0000000000 --- a/applications/solvers/multiphase/rasInterFoam/FoamX/rasInterFoam.cfg +++ /dev/null @@ -1,94 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Free surface-capturing unsteady RAS two-phase flow code"; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - include "$FOAMX_CONFIG/dictionaries/transportProperties/twoPhaseTransportProperties.cfg"; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pd.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/gamma.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Rkinematic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/nuTilda.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; - - wallContactAngle - { - description "Wall boundary condition with specified contact-angle"; - parentType wall; - } - - wallFunctionsContactAngle - { - description "Wall-functions boundary condition with specified contact-angle"; - parentType wallFunctions; - } -} - -patchFieldsPhysicalTypes -{ - gamma - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/gamma.cfg"; - wallContactAngle gammaContactAngle; - wallFunctionsContactAngle gammaContactAngle; - } - - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - pd - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/pd.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - R - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/R.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/R.cfg"; - } - - nuTilda - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/nuTilda.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/transportProperties b/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/transportProperties deleted file mode 100644 index 8c87e4d092..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/transportProperties +++ /dev/null @@ -1,62 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object transportProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -muc muc [1 -1 -1 0 0 0 0] 0.00178; - -plasticViscosityCoeff plasticViscosityCoeff [1 -1 -1 0 0 0 0] 0.00023143; - -plasticViscosityExponent plasticViscosityExponent [0 0 0 0 0 0 0] 179.26; - -BinghamPlastic on; - -yieldStressCoeff yieldStressCoeff [1 -1 -2 0 0 0 0] 0.00042189; - -yieldStressExponent yieldStressExponent [0 0 0 0 0 0 0] 1050.8; - -yieldStressOffset yieldStressOffset [0 0 0 0 0 0 0] 0; - -rhoc rhoc [1 -3 0 0 0 0 0] 996; - -rhod rhod [1 -3 0 0 0 0 0] 1996; - -VdjModel simple; - -simpleCoeffs -{ - V0 V0 [0 1 -1 0 0 0 0] (0 -0.002198 0); - a a [0 0 0 0 0 0 0] 285.84; - a1 a1 [0 0 0 0 0 0 0] 0; - alphaMin alphaMin [0 0 0 0 0 0 0] 0; -} - -generalCoeffs -{ - V0 V0 [0 1 -1 0 0 0 0] (0 -0.0018 0); - a a [0 0 0 0 0 0 0] 1e-05; - a1 a1 [0 0 0 0 0 0 0] 0.1; - alphaMin alphaMin [0 0 0 0 0 0 0] 2e-05; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/turbulenceProperties b/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/turbulenceProperties deleted file mode 100644 index ef545fe3bd..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/constant/turbulenceProperties +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object turbulenceProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -turbulenceModel kEpsilon; - -turbulence on; - -laminarCoeffs -{ -} - -kEpsilonCoeffs -{ - Cmu Cmu [0 0 0 0 0 0 0] 0.09; - C1 C1 [0 0 0 0 0 0 0] 1.44; - C2 C2 [0 0 0 0 0 0 0] 1.92; - C3 C3 [0 0 0 0 0 0 0] 0.85; - alphak alphak [0 0 0 0 0 0 0] 1; - alphaEps alphaEps [0 0 0 0 0 0 0] 0.76923; -} - -wallFunctionCoeffs -{ - kappa kappa [0 0 0 0 0 0 0] 0.4187; - E E [0 0 0 0 0 0 0] 9; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 6a2a8f7963..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,72 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss <>; - div(phi,k) Gauss <>; - div(phi,epsilon) Gauss <>; - div(phiAlpha,Alpha) Gauss <>; - div(phiVdj,Vdj) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(muEff,U) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DepsilonEff,epsilon) Gauss linear corrected; - laplacian(mut,Alpha) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index a382f29c64..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-07 0; - U BICCG 1e-07 0; - k BICCG 1e-07 0; - epsilon BICCG 1e-07 0; - rho ICCG 1e-07 0; - Alpha BICCG 1e-07 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 3c334a8bc3..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index c709e6b447..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phik.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiAlphaAlpha.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiVdjVdj.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index 34b83a6427..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/muEffU.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DkEffk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/mutAlpha.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/fvSolution.cfg deleted file mode 100644 index d6149dc80e..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/U.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/rho.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Alpha.cfg"; - } - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/PISO.cfg"; -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/settlingFoam.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/settlingFoam.cfg deleted file mode 100644 index a986cde1e0..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/settlingFoam.cfg +++ /dev/null @@ -1,66 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible turbulent two phase flow settling code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDict.cfg"; - fvSchemes; - fvSolution; - transportProperties; - turbulenceProperties; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/U.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/alpha.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - alpha - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/alpha.cfg"; - } - - U - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/transportProperties.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/transportProperties.cfg deleted file mode 100644 index a9b4d286ba..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,70 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/muc.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/plasticViscosityCoeff.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/plasticViscosityExponent.cfg"; - include "$FOAMX_CONFIG/entries/Switch/BinghamPlastic.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/yieldStressCoeff.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/yieldStressExponent.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/yieldStressOffset.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rhoc.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rhod.cfg"; - - VdjModel - { - type model; - displayName "VdjModel"; - description "VDJ model selection"; - default simple; - valueList - ( - simple - general - ); - } - - simpleCoeffs - { - type dictionary; - displayName "Simple Model Coefficients"; - description "Simple model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedVector/V0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/a.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/a1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaMin.cfg"; - } - } - - generalCoeffs - { - type dictionary; - displayName "General Model Coefficients"; - description "General model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedVector/V0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/a.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/a1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaMin.cfg"; - } - } -} - -default -{ - include "defaults/constant/transportProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/settlingFoam/FoamX/turbulenceProperties.cfg b/applications/solvers/multiphase/settlingFoam/FoamX/turbulenceProperties.cfg deleted file mode 100644 index 4d1e4e732f..0000000000 --- a/applications/solvers/multiphase/settlingFoam/FoamX/turbulenceProperties.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Turbulence properties"; -dictionaryPath "constant"; -entries -{ - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/turbulenceModel.cfg"; - include "$FOAMX_CONFIG/entries/Switch/turbulence.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithC3.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg"; -} - -options -{ - turbulenceModel - { - editable 0; - } -} - -default -{ - include "defaults/constant/turbulenceProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/environmentalProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/environmentalProperties deleted file mode 100644 index e9aee6c9b5..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/environmentalProperties +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object environmentalProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -g g [0 1 -2 0 0 0 0] (0 -9.81 0); - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/initAlphaFieldProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/initAlphaFieldProperties deleted file mode 100644 index 1c0bee593e..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/initAlphaFieldProperties +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object initAlphaFieldProperties; -} - -// ************************************************************************* // - -xMin xMin [0 1 0 0 0] -100.0; - -xMax xMax [0 1 0 0 0] 100.0; - -yMin yMin [0 1 0 0 0] 0.0; - -yMax yMax [0 1 0 0 0] 0.750; - -zMin zMin [0 1 0 0 0] 0.0; - -zMax zMax [0 1 0 0 0] 1.0; - -insideBoxAlphaValue insideBoxAlphaValue [0 0 0 0 0] 0.999; - -outsideBoxAlphaValue outsideBoxAlphaValue [0 0 0 0 0] 1.0e-6; - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/interfacialProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/interfacialProperties deleted file mode 100644 index cbcf71870a..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/interfacialProperties +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object interfacialProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dragModela SchillerNaumann; -dragModelb SchillerNaumann; - -dragPhase blended; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // \ No newline at end of file diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/kineticTheoryProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/kineticTheoryProperties deleted file mode 100644 index ff1a05f224..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/kineticTheoryProperties +++ /dev/null @@ -1,51 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object interfacialProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -kineticTheory off; - -equilibrium on; - -e e [ 0 0 0 0 0 0 0 ] 0.9 ; - -alphaMax alphaMax [ 0 0 0 0 0 0 0 ] 0.6 ; - -alphaMinFriction alphaMinFriction [ 0 0 0 0 0 0 0 ] 0.5 ; - -Fr Fr [ 1 -1 -2 0 0 0 0 ] 0.05 ; - -eta eta [ 0 0 0 0 0 0 0 ] 2.0 ; - -p p [ 0 0 0 0 0 0 0 ] 5.0 ; - -phi phi [ 0 0 0 0 0 0 0 ] 25.0 ; - -viscosityModel Syamlal; - -conductivityModel HrenyaSinclair; - -HrenyaSinclairCoeffs -{ - L L [ 0 1 0 0 0 0 0 ] 5.0e-4 ; -} -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/ppProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/ppProperties deleted file mode 100644 index 54dc1dda38..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/ppProperties +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object ppProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -preAlphaExp 300; - -expMax 10.0; - -alphaMax 0.6; - -//g0 g0 [ 0 2 -2 0 0 0 0 ] 1000 ; -g0 g0 [ 0 2 -2 0 0 0 0 ] 0 ; - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/transportProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/transportProperties deleted file mode 100644 index 11ff417de4..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/transportProperties +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object transportProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// water -phaseb -{ - nu nu [0 2 -1 0 0 0 0] 1.0e-06; - rho rho [1 -3 0 0 0 0 0] 1000.0; - d d [0 1 0 0 0 0 0] 0.0001; -} - -// air -phasea -{ - nu nu [0 2 -1 0 0 0 0] 1.6e-05; - rho rho [1 -3 0 0 0 0 0] 1.0; - d d [0 1 0 0 0 0 0] 0.003; -} - -Cvm Cvm [0 0 0 0 0 0 0] 0.5; - -Cl Cl [0 0 0 0 0 0 0] 0; - -Ct Ct [0 0 0 0 0 0 0] 1.0; - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/turbulenceProperties b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/turbulenceProperties deleted file mode 100644 index 023bcfc148..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/constant/turbulenceProperties +++ /dev/null @@ -1,45 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object turbulenceProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -turbulenceModel kEpsilon; - -turbulence off; - -kEpsilonCoeffs -{ - Cmu Cmu [0 0 0 0 0 0 0] 0.09; - C1 C1 [0 0 0 0 0 0 0] 1.44; - C2 C2 [0 0 0 0 0 0 0] 1.92; - alphak alphak [0 0 0 0 0 0 0] 1; - alphaEps alphaEps [0 0 0 0 0 0 0] 0.76923; -} - -wallFunctionCoeffs -{ - kappa kappa [0 0 0 0 0 0 0] 0.4187; - E E [0 0 0 0 0 0 0] 9; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 17e02ca976..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phia,Ua) Gauss <>; - div(phib,Ub) Gauss <>; - div(phib,k) Gauss <>; - div(phib,epsilon) Gauss <>; - div(phi,alpha) Gauss <>; - div(phir,alpha) Gauss <>; - div(phi,Theta) Gauss <>; - div(Rca) Gauss linear; - div(Rcb) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(nuEffa,Ua) Gauss linear corrected; - laplacian(nuEffb,Ub) Gauss linear corrected; - laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(ppMagf,alpha) Gauss linear corrected; - laplacian((alphak*nuEffb),k) Gauss linear corrected; - laplacian((alphaEps*nuEffb),epsilon) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - p; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSolution b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index e2fffde183..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - p ICCG 1e-10 0; - Ua BICCG 1e-05 0; - Ub BICCG 1e-05 0; - alpha BICCG 1e-10 0; - beta BICCG 1e-10 0; - Theta BICCG 1e-05 0; - k BICCG 1e-05 0; - epsilon BICCG 1e-05 0; -} - -PISO -{ - nCorrectors 2; - nNonOrthogonalCorrectors 0; - nAlphaCorr 2; - correctAlpha no; - pRefCell 0; - pRefValue 0; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/div/phiTheta.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/div/phiTheta.cfg deleted file mode 100644 index 09209d66b3..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/div/phiTheta.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,Theta) -{ - include "$FOAMX_CONFIG//dictionaries/fvSchemes/div/scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiTheta.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffEpsilon.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffEpsilon.cfg deleted file mode 100644 index 6121968887..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffEpsilon.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((alphaEps*nuEffb),epsilon) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian/nuEffEpsilon.gif"; -} diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffk.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffk.cfg deleted file mode 100644 index 0d15aca4ff..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/nuEffk.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((alphak*nuEffb),k) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian/nuEffk.gif"; -} diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/ppMagfAlpha.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/ppMagfAlpha.cfg deleted file mode 100644 index 4402e933b4..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSchemes/laplacian/ppMagfAlpha.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(ppMagf,alpha) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian/ppMagfAlpha.gif"; -} diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSolution/solvers/Theta.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSolution/solvers/Theta.cfg deleted file mode 100644 index 9f8caa8130..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/fvSolution/solvers/Theta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Theta -{ - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/asymmetricSparse.cfg"; - description "Solver for the Theta equation"; - iconURL "/FoamX/icons/small/maths/Theta.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModela.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModela.cfg deleted file mode 100644 index e11cb7663f..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModela.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dragModela -{ - type word; - description "dragmodel for phase a"; - helpURL "controlDict.html"; - default SchillerNaumann; - valueList - ( - Syamlal - SchillerNaumann - GidaspowSchillerNaumann - Gibilaro - Ergun - ); -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModelb.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModelb.cfg deleted file mode 100644 index b0369800ed..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragModelb.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dragModelb -{ - type word; - description "dragmodel for phase b"; - helpURL "controlDict.html"; - default SchillerNaumann; - valueList - ( - Syamlal - SchillerNaumann - GidaspowSchillerNaumann - Gibilaro - Ergun - ); -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragPhase.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragPhase.cfg deleted file mode 100644 index 71a6e355c5..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/dictionaries/interfacialProperties/dragPhase.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dragPhase -{ - type word; - description "Phase used for calculating drag, or from which the size-info is used."; - helpURL "controlDict.html"; - default a; - valueList - ( - a - b - blended - ); -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticEquilibrium.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticEquilibrium.cfg deleted file mode 100644 index e636008d14..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticEquilibrium.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -equilibrium -{ - type SwitchOnOff; - description "Assume production=dissipation for the granular temperature?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default off; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticTheory.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticTheory.cfg deleted file mode 100644 index afdf7fc41a..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/Switch/kineticTheory.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kineticTheory -{ - type SwitchOnOff; - description "Do you wish to calculate the granular temperature?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default off; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTFr.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTFr.cfg deleted file mode 100644 index ee8f406bb1..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTFr.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Fr -{ - type dimensionedScalar; - description "empirical material constant for normal frictional stress"; - iconURL "/FoamX/icons/small/maths/Fr.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTe.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTe.cfg deleted file mode 100644 index e264980c8f..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTe.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -e -{ - type dimensionedScalar; - description "coefficient of restitution"; - iconURL "/FoamX/icons/small/maths/e.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTeta.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTeta.cfg deleted file mode 100644 index 83c0708856..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTeta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -eta -{ - type dimensionedScalar; - description "empirical material constant for normal frictional stress"; - iconURL "/FoamX/icons/small/maths/eta.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTp.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTp.cfg deleted file mode 100644 index 92e624ce6c..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTp.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - type dimensionedScalar; - description "empirical material constant for normal frictional stress"; - iconURL "/FoamX/icons/small/maths/p.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTphi.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTphi.cfg deleted file mode 100644 index 06e4e73475..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/KTphi.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phi -{ - type dimensionedScalar; - description "angle of internal friction"; - iconURL "/FoamX/icons/small/maths/phi.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/L.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/L.cfg deleted file mode 100644 index 049819cce7..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/L.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -L -{ - type dimensionedScalar; - description "L - characteristic length"; - iconURL "/FoamX/icons/small/maths/L.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMax.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMax.cfg deleted file mode 100644 index c9192c3512..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaMax -{ - type dimensionedScalar; - description "maximum packing"; - iconURL "/FoamX/icons/small/maths/alphaMax.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMinFriction.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMinFriction.cfg deleted file mode 100644 index 0d4e291421..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/alphaMinFriction.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaMinFriction -{ - type dimensionedScalar; - description "minimum packing for friction"; - iconURL "/FoamX/icons/small/maths/alphaMin.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/d.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/d.cfg deleted file mode 100644 index b328add368..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/d.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -d -{ - type dimensionedScalar; - description "d"; - iconURL "/FoamX/icons/small/maths/d.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/g0.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/g0.cfg deleted file mode 100644 index 7864df73cd..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/dimensionedScalar/g0.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -g0 -{ - type dimensionedScalar; - description "ppForce = g0*min(expMax, exp(preAlphaExp*(alpha - alphaMax)))"; - iconURL "/FoamX/icons/small/maths/g0.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/geometricFields/Theta.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/geometricFields/Theta.cfg deleted file mode 100644 index fe6d3f077f..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/geometricFields/Theta.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Theta -{ - description "Granular temperature, particle velocity fluctuations"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/Theta.gif"; - geometryType vol; - dimensions [ 0 2 -2 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/HrenyaSinclairCoeffs.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/HrenyaSinclairCoeffs.cfg deleted file mode 100644 index 6661a6445e..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/HrenyaSinclairCoeffs.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -HrenyaSinclairCoeffs -{ - type dictionary; - description "Hrenya-Sinclair conductivity model coefficients"; - entries - { - include "../../entries/dimensionedScalar/L.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/conductivityModels.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/conductivityModels.cfg deleted file mode 100644 index db16b2837b..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/conductivityModels.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -conductivityModel -{ - type word; - description "conductivity model for granular temperature eq"; - helpURL "controlDict.html"; - default HrenyaSinclair; - valueList - ( - HrenyaSinclair - Gidaspow - Syamlal - ); -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/viscosityModels.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/viscosityModels.cfg deleted file mode 100644 index 799d88ba0c..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/kineticTheoryModels/viscosityModels.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -viscosityModel -{ - type word; - description "viscosity model for granular temperature eq"; - helpURL "controlDict.html"; - default HrenyaSinclair; - valueList - ( - HrenyaSinclair - Gidaspow - Syamlal - none - ); -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phasea.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phasea.cfg deleted file mode 100644 index 46030f60e5..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phasea.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phasea -{ - type dictionary; - description "Transport properties for phase a"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nu.cfg"; - include "../../entries/dimensionedScalar/d.cfg"; - } -} - - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phaseb.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phaseb.cfg deleted file mode 100644 index a346d3051a..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/phaseModels/phaseb.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phaseb -{ - type dictionary; - description "Transport properties for phase b"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nu.cfg"; - include "../../entries/dimensionedScalar/d.cfg"; - } -} - - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/alphaMax.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/alphaMax.cfg deleted file mode 100644 index dbada474c1..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/alphaMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaMax -{ - type scalar; - description "ppForce = g0*min(expMax, exp(preAlphaExp*(alpha - alphaMax)))"; - iconURL "/FoamX/icons/small/maths/K.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/expMax.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/expMax.cfg deleted file mode 100644 index 76dbd0d0b8..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/expMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -expMax -{ - type scalar; - description "ppForce = g0*min(expMax, exp(preAlphaExp*(alpha - alphaMax)))"; - iconURL "/FoamX/icons/small/maths/K.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/preAlphaExp.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/preAlphaExp.cfg deleted file mode 100644 index a69eeca925..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/entries/scalar/preAlphaExp.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preAlphaExp -{ - type scalar; - description "ppForce = g0*min(expMax, exp(preAlphaExp*(alpha - alphaMax)))"; - iconURL "/FoamX/icons/small/maths/K.gif"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index 3c334a8bc3..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/ddt/transient.cfg"; - - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/defaultOnly.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/p.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 221807fd71..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiaUa.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibUb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibk.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phibEpsilon.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phiAlpha.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/phirAlpha.cfg"; - include "../dictionaries/fvSchemes/div/phiTheta.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/Rca.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/Rcb.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index f8216c4243..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffaUa.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/nuEffbUb.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/rhoAUp.cfg"; - include "../dictionaries/fvSchemes/laplacian/ppMagfAlpha.cfg"; - include "../dictionaries/fvSchemes/laplacian/nuEffEpsilon.cfg"; - include "../dictionaries/fvSchemes/laplacian/nuEffk.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSolution.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 873d9c1064..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/pSymm.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Ua.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/Ub.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/alpha.cfg"; - include "dictionaries/fvSolution/solvers/Theta.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/k.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/epsilon.cfg"; - } - } - - PISO - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/Switch/momentumPredictor.cfg"; - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nAlphaCorr.cfg"; - include "$FOAMX_CONFIG/entries/Switch/correctAlpha.cfg"; - include "$FOAMX_CONFIG/entries/ref/pRef.cfg"; - } - } -} - -default -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/interfacialProperties.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/interfacialProperties.cfg deleted file mode 100644 index 89b0d30123..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/interfacialProperties.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "interfacial properties"; -dictionaryPath "constant"; - -entries -{ - include "dictionaries/interfacialProperties/dragModela.cfg"; - include "dictionaries/interfacialProperties/dragModelb.cfg"; - include "dictionaries/interfacialProperties/dragPhase.cfg"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/kineticTheoryProperties.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/kineticTheoryProperties.cfg deleted file mode 100644 index b2a456ac8c..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/kineticTheoryProperties.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "kinetic theory of granular flow properties"; -dictionaryPath "constant"; - -entries -{ - include "entries/Switch/kineticTheory.cfg"; - include "entries/Switch/kineticEquilibrium.cfg"; - include "entries/kineticTheoryModels/viscosityModels.cfg"; - include "entries/kineticTheoryModels/conductivityModels.cfg"; - include "entries/kineticTheoryModels/HrenyaSinclairCoeffs.cfg"; - include "entries/dimensionedScalar/KTe.cfg"; - include "entries/dimensionedScalar/alphaMax.cfg"; - include "entries/dimensionedScalar/alphaMinFriction.cfg"; - include "entries/dimensionedScalar/KTFr.cfg"; - include "entries/dimensionedScalar/KTeta.cfg"; - include "entries/dimensionedScalar/KTp.cfg"; - include "entries/dimensionedScalar/KTphi.cfg"; -} - -default -{ - include "defaults/constant/kineticTheoryProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/ppProperties.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/ppProperties.cfg deleted file mode 100644 index 4ab8dc935d..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/ppProperties.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "particle-particle interaction properties"; -dictionaryPath "constant"; - -entries -{ - include "entries/scalar/preAlphaExp.cfg"; - include "entries/scalar/expMax.cfg"; - include "entries/scalar/alphaMax.cfg"; - include "entries/dimensionedScalar/g0.cfg"; -} - -default -{ - include "defaults/constant/ppProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/transportProperties.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/transportProperties.cfg deleted file mode 100644 index 361e4d051b..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/transportProperties.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/transportProperties/transportProperties.cfg"; - -entries -{ - include "entries/phaseModels/phasea.cfg"; - include "entries/phaseModels/phaseb.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cvm.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cl.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ct.cfg"; -} - -default -{ - include "defaults/constant/transportProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/turbulenceProperties.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/turbulenceProperties.cfg deleted file mode 100644 index 74af41a3ab..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/turbulenceProperties.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Turbulence properties"; -dictionaryPath "constant"; -entries -{ - include "$FOAMX_CONFIG/entries/Switch/turbulence.cfg"; - include "$FOAMX_CONFIG/dictionaries/turbulenceProperties/laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithAlphak.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg"; -} - -options -{ - turbulenceModel - { - editable 0; - } -} - -default -{ - include "defaults/constant/turbulenceProperties"; -} - - -// ************************************************************************* // diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/twoPhaseEulerFoam.cfg b/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/twoPhaseEulerFoam.cfg deleted file mode 100644 index 2da449cd19..0000000000 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/FoamX/twoPhaseEulerFoam.cfg +++ /dev/null @@ -1,81 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Incompressible turbulent Eulerian two phase flow code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictAdjustTimeStep.cfg"; - fvSchemes; - fvSolution; - transportProperties; - turbulenceProperties; - include "$FOAMX_CONFIG/dictionaries/environmentalProperties/environmentalPropertiesg.cfg"; - interfacialProperties; - kineticTheoryProperties; - ppProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/pDynamic.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Ua.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/Ub.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/k.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/alpha.cfg"; - include "entries/geometricFields/Theta.cfg"; -} - -patchPhysicalTypes -{ - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/patches.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/patches.cfg"; -} - -patchFieldsPhysicalTypes -{ - alpha - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/alpha.cfg"; - } - - Ua - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - Ub - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/U.cfg"; - } - - p - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/p.cfg"; - } - - k - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/k.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/k.cfg"; - } - - epsilon - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/epsilon.cfg"; - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg"; - } - - Theta - { - include "$FOAMX_CONFIG/entries/patchPhysicalTypes/standard/alpha.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/mechanicalProperties b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/mechanicalProperties deleted file mode 100644 index 094175a9df..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/mechanicalProperties +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object mechanicalProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -rho rho [1 -3 0 0 0 0 0] 7854; - -nu nu [0 0 0 0 0 0 0] 0.3; - -E E [1 -1 -2 0 0 0 0] 2e+11; - -planeStress yes; - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/thermalProperties b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/thermalProperties deleted file mode 100644 index 572aa3cc28..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/constant/thermalProperties +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object thermalProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -C C [0 2 -2 -1 0 0 0] 434; - -k k [1 1 -3 -1 0 0 0] 60.5; - -alpha alpha [0 0 0 -1 0 0 0] 1.1e-05; - -thermalStress no; - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSchemes b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSchemes deleted file mode 100644 index 4d8f0d6aa9..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSchemes +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSchemes; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -d2dt2Schemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; - grad(D) leastSquares; - grad(T) leastSquares; -} - -divSchemes -{ - default none; - div(sigmaD) Gauss linear; -} - -laplacianSchemes -{ - default none; - laplacian(DD,D) Gauss linear corrected; - laplacian(DT,T) Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -fluxRequired -{ - default no; - D yes; - T yes; -} - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSolution b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSolution deleted file mode 100644 index 669a9eb8a8..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/defaults/system/fvSolution +++ /dev/null @@ -1,39 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - D ICCG 1e-06 0.01; - T ICCG 1e-06 0.01; -} - -stressAnalysis -{ - compactNormalStress yes; - nCorrectors 1; - U 1e-06; -} - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes.cfg deleted file mode 100644 index c28263142d..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSchemes/fvSchemes.cfg"; - -entries -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/d2dt2/allSchemes.cfg"; - include "fvSchemes/gradSchemes.cfg"; - include "fvSchemes/divSchemes.cfg"; - include "fvSchemes/laplacianSchemes.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/interpolation/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/snGrad/defaultOnly.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/flux/DT.cfg"; -} - -default -{ - include "defaults/system/fvSchemes"; -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/divSchemes.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/divSchemes.cfg deleted file mode 100644 index 8147327b4a..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/divSchemes.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/sigmaD.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/gradSchemes.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/gradSchemes.cfg deleted file mode 100644 index eb047e9377..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/gradSchemes.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/D.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/T.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/laplacianSchemes.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/laplacianSchemes.cfg deleted file mode 100644 index eda186ac09..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSchemes/laplacianSchemes.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/schemes.cfg"; - entries - { - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/default.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DDD.cfg"; - include "$FOAMX_CONFIG/dictionaries/fvSchemes/laplacian/DTT.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSolution.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSolution.cfg deleted file mode 100644 index 468bc7ac14..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/fvSolution.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/dictionaries/fvSolution/fvSolution.cfg"; - -entries -{ - solvers - { - type dictionary; - entries - { - D - { - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/symmetricSparse.cfg"; - description "Solver for the D equation"; - iconURL "/FoamX/icons/small/maths/D.gif"; - } - - include "$FOAMX_CONFIG/dictionaries/fvSolution/solvers/T.cfg"; - } - } - include "$FOAMX_CONFIG/dictionaries/fvSolution/stressAnalysis.cfg"; -} - -defaults -{ - include "defaults/system/fvSolution"; -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/mechanicalProperties.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/mechanicalProperties.cfg deleted file mode 100644 index 07919eddb4..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/mechanicalProperties.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of mechanical properties"; -dictionaryPath "constant"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stress/nu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stress/E.cfg"; - include "$FOAMX_CONFIG/entries/Switch/planeStress.cfg"; -} - -defaulst -{ - include "defaults/constant/mechanicalProperties"; -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/patchFieldTypes.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/patchFieldTypes.cfg deleted file mode 100644 index 203079445a..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/patchFieldTypes.cfg +++ /dev/null @@ -1,85 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -tractionDisplacement -{ - displayName "tractionDisplacement"; - description "Traction boundary condition"; - type patchField; - options - { - type - { - default tractionDisplacement; - } - } - - entries - { - traction - { - type vectorField; - displayName "traction"; - description "Boundary traction"; - } - - pressure - { - type scalarField; - displayName "pressure"; - description "Boundary Pressure"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -traction -{ - displayName "traction"; - description "Traction boundary condition"; - type patchField; - options - { - type - { - default traction; - } - } - - entries - { - traction - { - type vectorField; - displayName "traction"; - description "Boundary traction"; - } - - pressure - { - type scalarField; - displayName "pressure"; - description "Boundary Pressure"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/solidDisplacementFoam.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/solidDisplacementFoam.cfg deleted file mode 100644 index f3881e44b5..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/solidDisplacementFoam.cfg +++ /dev/null @@ -1,81 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -description "Basic linear elastic stress analysis code."; - -dictionaries -{ - include "$FOAMX_CONFIG/dictionaries/controlDict/controlDictSteady.cfg"; - fvSchemes; - fvSolution; - mechanicalProperties; - thermalProperties; -} - -fields -{ - include "$FOAMX_CONFIG/entries/geometricFields/displacement.cfg"; - include "$FOAMX_CONFIG/entries/geometricFields/T.cfg"; -} - -patchPhysicalTypes -{ - slip - { - description "Slip"; - } - - tractionAdiabatic - { - description "Traction and adiabatic"; - } - - tractionFixedTemp - { - description "Traction and fixed temperature"; - } - - constrainedAdiabatic - { - description "Constrained displacement, adiabatic"; - } - - constrainedFixedTemp - { - description "Constrained displacement, fixed temp"; - } -} - -patchFieldTypes -{ - include "patchFieldTypes.cfg"; -} - -patchFieldsPhysicalTypes -{ - D - { - slip slip; - tractionAdiabatic tractionDisplacement; - tractionFixedTemp tractionDisplacement; - constrainedAdiabatic fixedValue; - constrainedFixedTemp fixedValue; - } - - T - { - slip slip; - tractionAdiabatic zeroGradient; - tractionFixedTemp fixedValue; - constrainedAdiabatic zeroGradient; - constrainedFixedTemp fixedValue; - } -} - - -// ************************************************************************* // diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/thermalProperties.cfg b/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/thermalProperties.cfg deleted file mode 100644 index c5e0159cc5..0000000000 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/FoamX/thermalProperties.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of thermal properties"; -dictionaryPath "constant"; - -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/stress/C.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stress/k.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stress/alpha.cfg"; - include "$FOAMX_CONFIG/entries/Switch/thermalStress.cfg"; -} - -defaults -{ - include "defaults/constant/thermalProperties"; -} - -// ************************************************************************* // diff --git a/applications/utilities/errorEstimation/estimateScalarError/FoamX/estimateScalarError.cfg b/applications/utilities/errorEstimation/estimateScalarError/FoamX/estimateScalarError.cfg deleted file mode 100644 index e9128ce70c..0000000000 --- a/applications/utilities/errorEstimation/estimateScalarError/FoamX/estimateScalarError.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// estimateScalarError tool definition - -description "Estimate the solution error for a scalar transport equation in standard form"; - -estimateScalarErrorDict -{ - type dictionary; - description "estimateScalarError control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/errorEstimation/icoErrorEstimate/FoamX/icoErrorEstimate.cfg b/applications/utilities/errorEstimation/icoErrorEstimate/FoamX/icoErrorEstimate.cfg deleted file mode 100644 index fdc4422724..0000000000 --- a/applications/utilities/errorEstimation/icoErrorEstimate/FoamX/icoErrorEstimate.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// icoErrorEstimate tool definition - -description "Error estimation for incompressible laminar flow"; - -icoErrorEstimateDict -{ - type dictionary; - description "icoErrorEstimate control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/errorEstimation/icoMomentError/FoamX/icoMomentError.cfg b/applications/utilities/errorEstimation/icoMomentError/FoamX/icoMomentError.cfg deleted file mode 100644 index 6b9ddbbd87..0000000000 --- a/applications/utilities/errorEstimation/icoMomentError/FoamX/icoMomentError.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// icoMomentError tool definition - -description "Estimates error for the incompressible laminar CFD application icoFoam"; - -icoMomentErrorDict -{ - type dictionary; - description "icoMomentError control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/errorEstimation/momentScalarError/FoamX/momentScalarError.cfg b/applications/utilities/errorEstimation/momentScalarError/FoamX/momentScalarError.cfg deleted file mode 100644 index 67088c8bd0..0000000000 --- a/applications/utilities/errorEstimation/momentScalarError/FoamX/momentScalarError.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// momentScalarError tool definition - -description "Estimates the error in the solution for a scalar transport equation in the standard form"; - -momentScalarErrorDict -{ - type dictionary; - description "momentScalarError control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/advanced/autoRefineMesh/FoamX/autoRefineMesh.cfg b/applications/utilities/mesh/advanced/autoRefineMesh/FoamX/autoRefineMesh.cfg deleted file mode 100644 index 760a41d187..0000000000 --- a/applications/utilities/mesh/advanced/autoRefineMesh/FoamX/autoRefineMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// autoRefineMesh tool definition - -description "Utility to refine cells near to a surface"; - -autoRefineMeshDict -{ - type dictionary; - description "autoRefineMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/advanced/collapseEdges/FoamX/collapseEdges.cfg b/applications/utilities/mesh/advanced/collapseEdges/FoamX/collapseEdges.cfg deleted file mode 100644 index f95ba140fe..0000000000 --- a/applications/utilities/mesh/advanced/collapseEdges/FoamX/collapseEdges.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// collapseEdges tool definition - -description "Collapse short edges and combines edges that are in line"; - -collapseEdgesDict -{ - type dictionary; - description "collapseEdges control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/edgeLength.cfg"; - include "$FOAMX_CONFIG/entries/arguments/mergeAngle.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/advanced/combinePatchFaces/FoamX/combinePatchFaces.cfg b/applications/utilities/mesh/advanced/combinePatchFaces/FoamX/combinePatchFaces.cfg deleted file mode 100644 index 80a5768e93..0000000000 --- a/applications/utilities/mesh/advanced/combinePatchFaces/FoamX/combinePatchFaces.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// combinePatchFaces tool definition - -description "Checks for neighbouring patch faces on same cell and combines them"; - -combinePatchFacesDict -{ - type dictionary; - description "combinePatchFaces control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/featureAngle.cfg"; - include "$FOAMX_CONFIG/entries/arguments/allowConcaveFaces.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/advanced/refinementLevel/FoamX/refinementLevel.cfg b/applications/utilities/mesh/advanced/refinementLevel/FoamX/refinementLevel.cfg deleted file mode 100644 index 30ce5beca7..0000000000 --- a/applications/utilities/mesh/advanced/refinementLevel/FoamX/refinementLevel.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// refinementLevel tool definition - -description "Estimates the refinement level on refined cartesian meshes"; - -refinementLevelDict -{ - type dictionary; - description "refinementLevel control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/readLevel"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/FoamX/ccm24ToFoam.cfg b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/FoamX/ccm24ToFoam.cfg deleted file mode 100644 index e9a8edf50c..0000000000 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/FoamX/ccm24ToFoam.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// ccm24ToFoam tool definition - -description "Converts CCM/NGeom files written by Prostar/ccm to OpenFOAM"; - -ccm24ToFoamDict -{ - type dictionary; - description "ccm24ToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/ansysToFoam/FoamX/ansysToFoam.cfg b/applications/utilities/mesh/conversion/ansysToFoam/FoamX/ansysToFoam.cfg deleted file mode 100644 index b2afc319c3..0000000000 --- a/applications/utilities/mesh/conversion/ansysToFoam/FoamX/ansysToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// ansysToFoam tool definition - -description "ANSYS to OpenFOAM mesh converter"; - -ansysToFoamDict -{ - type dictionary; - description "ansysToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/cfxToFoam/FoamX/cfxToFoam.cfg b/applications/utilities/mesh/conversion/cfxToFoam/FoamX/cfxToFoam.cfg deleted file mode 100644 index 18b1d3cc2b..0000000000 --- a/applications/utilities/mesh/conversion/cfxToFoam/FoamX/cfxToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// cfxToFoam tool definition - -description "CFX to OpenFOAM mesh converter"; - -cfxToFoamDict -{ - type dictionary; - description "cfxToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/fluentMeshToFoam/FoamX/fluentMeshToFoam.cfg b/applications/utilities/mesh/conversion/fluentMeshToFoam/FoamX/fluentMeshToFoam.cfg deleted file mode 100644 index 4aa420620f..0000000000 --- a/applications/utilities/mesh/conversion/fluentMeshToFoam/FoamX/fluentMeshToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// fluentMeshToFoam tool definition - -description "Fluent to OpenFOAM mesh converter"; - -fluentMeshToFoamDict -{ - type dictionary; - description "fluentMeshToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/foamMeshToFluent/FoamX/foamMeshToFluent.cfg b/applications/utilities/mesh/conversion/foamMeshToFluent/FoamX/foamMeshToFluent.cfg deleted file mode 100644 index 6d6eae59a9..0000000000 --- a/applications/utilities/mesh/conversion/foamMeshToFluent/FoamX/foamMeshToFluent.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamMeshToFluent tool definition - -description "OpenFOAM to Fluent mesh converter"; - -foamMeshToFluentDict -{ - type dictionary; - description "foamMeshToFluent control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/gambitToFoam/FoamX/gambitToFoam.cfg b/applications/utilities/mesh/conversion/gambitToFoam/FoamX/gambitToFoam.cfg deleted file mode 100644 index 12a8ddffd3..0000000000 --- a/applications/utilities/mesh/conversion/gambitToFoam/FoamX/gambitToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// gambitToFoam tool definition - -description "Gambit to OpenFOAM mesh converter"; - -gambitToFoamDict -{ - type dictionary; - description "gambitToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/gmshToFoam/FoamX/gmshToFoam.cfg b/applications/utilities/mesh/conversion/gmshToFoam/FoamX/gmshToFoam.cfg deleted file mode 100644 index ee46d90952..0000000000 --- a/applications/utilities/mesh/conversion/gmshToFoam/FoamX/gmshToFoam.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// gmshToFoam tool definition - -description "Converts msh file as written by Gmsh to OpenFOAM"; - -gmshToFoamDict -{ - type dictionary; - description "gmshToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/invertHex.cfg"; - include "$FOAMX_CONFIG/entries/arguments/invertPrism.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/ideasUnvToFoam/FoamX/kivaToFoam.cfg b/applications/utilities/mesh/conversion/ideasUnvToFoam/FoamX/kivaToFoam.cfg deleted file mode 100755 index adef87722a..0000000000 --- a/applications/utilities/mesh/conversion/ideasUnvToFoam/FoamX/kivaToFoam.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// kivaToFoam tool definition - -description "Kiva to FOAM mesh converter"; - -kivaToFoamDict -{ - type dictionary; - description "kivaToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/zHeadMin.cfg"; - include "$FOAMX_CONFIG/entries/arguments/file.cfg"; - include "$FOAMX_CONFIG/entries/arguments/kivaVersion.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/kivaToFoam/FoamX/kivaToFoam.cfg b/applications/utilities/mesh/conversion/kivaToFoam/FoamX/kivaToFoam.cfg deleted file mode 100644 index adef87722a..0000000000 --- a/applications/utilities/mesh/conversion/kivaToFoam/FoamX/kivaToFoam.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// kivaToFoam tool definition - -description "Kiva to FOAM mesh converter"; - -kivaToFoamDict -{ - type dictionary; - description "kivaToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/zHeadMin.cfg"; - include "$FOAMX_CONFIG/entries/arguments/file.cfg"; - include "$FOAMX_CONFIG/entries/arguments/kivaVersion.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/mshToFoam/FoamX/mshToFoam.cfg b/applications/utilities/mesh/conversion/mshToFoam/FoamX/mshToFoam.cfg deleted file mode 100644 index 643fed3519..0000000000 --- a/applications/utilities/mesh/conversion/mshToFoam/FoamX/mshToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// mshToFoam tool definition - -description "Converts msh format generated by the Adventure system to OpenFOAM"; - -mshToFoamDict -{ - type dictionary; - description "mshToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/hex.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/netgenNeutralToFoam/FoamX/netgenNeutralToFoam.cfg b/applications/utilities/mesh/conversion/netgenNeutralToFoam/FoamX/netgenNeutralToFoam.cfg deleted file mode 100644 index 4f6ded1dd2..0000000000 --- a/applications/utilities/mesh/conversion/netgenNeutralToFoam/FoamX/netgenNeutralToFoam.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// netgenNeutralToFoam tool definition - -description "Converts Neutral file format from Netgen44 to OpenFOAM"; - -netgenNeutralToFoamDict -{ - type dictionary; - description "netgenNeutralToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/plot3dToFoam/FoamX/plot3dToFoam.cfg b/applications/utilities/mesh/conversion/plot3dToFoam/FoamX/plot3dToFoam.cfg deleted file mode 100644 index cba50afa88..0000000000 --- a/applications/utilities/mesh/conversion/plot3dToFoam/FoamX/plot3dToFoam.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// plot3dToFoam tool definition - -description "Converts Plot3d mesh (ascii format) to OpenFOAM"; - -plot3dToFoamDict -{ - type dictionary; - description "plot3dToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - include "$FOAMX_CONFIG/entries/arguments/noBlank.cfg"; - include "$FOAMX_CONFIG/entries/arguments/singleBlock.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/sammToFoam/FoamX/sammToFoam.cfg b/applications/utilities/mesh/conversion/sammToFoam/FoamX/sammToFoam.cfg deleted file mode 100644 index 20ce0ac111..0000000000 --- a/applications/utilities/mesh/conversion/sammToFoam/FoamX/sammToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// sammToFoam tool definition - -description "STAR-CD SAMM format to OpenFOAM mesh converter"; - -sammToFoamDict -{ - type dictionary; - description "sammToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFilePrefix.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/starToFoam/FoamX/starToFoam.cfg b/applications/utilities/mesh/conversion/starToFoam/FoamX/starToFoam.cfg deleted file mode 100644 index 9b32297331..0000000000 --- a/applications/utilities/mesh/conversion/starToFoam/FoamX/starToFoam.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// starToFoam tool definition - -description "STAR-CD to OpenFOAM mesh converter"; - -starToFoamDict -{ - type dictionary; - description "starToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFilePrefix.cfg"; - include "$FOAMX_CONFIG/entries/arguments/scale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/tetgenToFoam/FoamX/tetgenToFoam.cfg b/applications/utilities/mesh/conversion/tetgenToFoam/FoamX/tetgenToFoam.cfg deleted file mode 100644 index 26ad184666..0000000000 --- a/applications/utilities/mesh/conversion/tetgenToFoam/FoamX/tetgenToFoam.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// tetgenToFoam tool definition - -description "Converts ele, node and face files from tetgen to OpenFOAM"; - -tetgenToFoamDict -{ - type dictionary; - description "tetgenToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/meshFilePrefix.cfg"; - include "$FOAMX_CONFIG/entries/arguments/noFaceFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/startAt0.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/writeMeshObj/FoamX/writeMeshObj.cfg b/applications/utilities/mesh/conversion/writeMeshObj/FoamX/writeMeshObj.cfg deleted file mode 100644 index b041692673..0000000000 --- a/applications/utilities/mesh/conversion/writeMeshObj/FoamX/writeMeshObj.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// writeMeshObj tool definition - -description "Writes mesh to 3 separate OBJ files for an OBJ viewer"; - -writeMeshObjDict -{ - type dictionary; - description "writeMeshObj control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/faceSet.cfg"; - include "$FOAMX_CONFIG/entries/arguments/cellSet.cfg"; - include "$FOAMX_CONFIG/entries/arguments/face.cfg"; - include "$FOAMX_CONFIG/entries/arguments/cell.cfg"; - include "$FOAMX_CONFIG/entries/arguments/point.cfg"; - include "$FOAMX_CONFIG/entries/arguments/patchFaces.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/block.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/block.cfg deleted file mode 100644 index 96eaee8ae1..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/block.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -block -{ - type compound; - description "Description of a block"; - - entries - { - include "hex.cfg"; - include "cellDensity.cfg"; - include "expansionRatio.cfg"; - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/blockMesh.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/blockMesh.cfg deleted file mode 100644 index b81952cb84..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/blockMesh.cfg +++ /dev/null @@ -1,87 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// blockMesh tool definition - -description "Block Mesh Generator"; - -blockMeshDict -{ - type dictionary; - description "blockMesh control dictionary"; - dictionaryPath "constant/polyMesh"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "blockTopology.cfg"; - } - } - - include "$FOAMX_CONFIG/entries/scalar/convertToMeters.cfg"; - - vertices - { - type list; - description "list of coordinates of block vertices"; - elementType vector; - } - - blocks - { - type list; - description "list of block descriptions"; - - elementType - { - include "block.cfg"; - } - } - - edges - { - type list; - optional 1; - description "list of curved edge descriptions"; - - elementType - { - include "edge.cfg"; - } - } - - patches - { - type list; - description "list of patch descriptions"; - - elementType - { - include "patch.cfg"; - } - } - - mergePatchPairs - { - type list; - optional 1; - description "list of master-slave patch pairs to be merged"; - - elementType - { - include "patchPair.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/blockTopology.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/blockTopology.cfg deleted file mode 100644 index 5589c33151..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/blockTopology.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -blockTopology -{ - type selection; - displayName "[blockTopology]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-blockTopology"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/cellDensity.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/cellDensity.cfg deleted file mode 100644 index 779922020f..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/cellDensity.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellDensity -{ - description "No of cells in each local (block) coordinate direction"; - type fixedList; - elementType label; - numElements 3; - elementLabels ( Nx Ny Nz ); -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/edge.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/edge.cfg deleted file mode 100644 index b1d7e3d355..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/edge.cfg +++ /dev/null @@ -1,135 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -edge -{ - type selection; - description "Description of a curved edge"; - - entries - { - arc - { - description "arc edge type"; - type compound; - entries - { - startVertex - { - type label; - } - - endVertex - { - type label; - } - - point - { - type vector; - } - } - } - - simpleSpline - { - description "simpleSpline edge type"; - type compound; - entries - { - startVertex - { - type label; - } - - endVertex - { - type label; - } - - points - { - type list; - description "list of interpolation points"; - elementType vector; - } - } - } - - polySpline - { - description "polySpline edge type"; - type compound; - entries - { - startVertex - { - type label; - } - - endVertex - { - type label; - } - - points - { - type list; - description "list of interpolation points"; - elementType vector; - } - } - } - - polyLine - { - description "polyLine edge type"; - type compound; - entries - { - startVertex - { - type label; - } - - endVertex - { - type label; - } - - points - { - type list; - description "list of interpolation points"; - elementType vector; - } - } - } - - line - { - description "straight line edge type"; - type compound; - entries - { - startVertex - { - type label; - } - - endVertex - { - type label; - } - } - } - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/expansionRatio.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/expansionRatio.cfg deleted file mode 100644 index f547d69761..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/expansionRatio.cfg +++ /dev/null @@ -1,52 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -expansionRatio -{ - type selection; - description "Expansion ratio"; - - entries - { - simpleGrading - { - description "simple grading scheme"; - type fixedList; - elementType scalar0Inf; - numElements 3; - default ( 1 1 1 ); - elementLabels ( x1 x2 x3 ); - } - - edgeGrading - { - description "edge-based grading scheme"; - type fixedList; - elementType scalar0Inf; - numElements 12; - default ( 1 1 1 1 1 1 1 1 1 1 1 1 ); - elementLabels - ( - edge0 - edge1 - edge2 - edge3 - edge4 - edge5 - edge6 - edge7 - edge8 - edge9 - edge10 - edge11 - ); - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/hex.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/hex.cfg deleted file mode 100644 index 0c83492c09..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/hex.cfg +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellShapes -{ - type selection; - description "Block specification"; - - entries - { - hex - { - description "hex cell shape"; - type fixedList; - elementType label; - numElements 8; - elementLabels - ( - vertex0 - vertex1 - vertex2 - vertex3 - vertex4 - vertex5 - vertex6 - vertex7 - ); - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/patch.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/patch.cfg deleted file mode 100644 index 46074cfd8b..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/patch.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patch -{ - type compound; - description "Description of a patch"; - - entries - { - geometricType - { - type word; - description "Geometric description of the patch"; - default patch; - valueList - ( - patch - wall - empty - symmetryPlane - wedge - cyclic - processor - ); - } - - name - { - type word; - description "Patch name"; - } - - faceList - { - type list; - description "List of block faces"; - - types - { - include "quad.cfg"; - } - - elementType quad; - } - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/patchPair.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/patchPair.cfg deleted file mode 100644 index 92de49288a..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/patchPair.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchPair -{ - description "Master - slave patch pair"; - type fixedList; - elementType word; - numElements 2; - elementLabels ( masterPatch slavePatch ); -} - - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/blockMesh/FoamX/quad.cfg b/applications/utilities/mesh/generation/blockMesh/FoamX/quad.cfg deleted file mode 100644 index 2124b8e829..0000000000 --- a/applications/utilities/mesh/generation/blockMesh/FoamX/quad.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -quad -{ - type fixedList; - description "List of face vertices"; - elementType label; - numElements 4; - elementLabels - ( - vertex0 - vertex1 - vertex2 - vertex3 - ); -} - - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/extrudeMesh.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/extrudeMesh.cfg deleted file mode 100644 index c9b31f6e6d..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/extrudeMesh.cfg +++ /dev/null @@ -1,53 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// extrudeMesh tool definition - -description "Extrudes mesh from existing patch or surface"; - -extrudeMeshDict -{ - type dictionary; - description "extrudeMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "targetRootAndCase.cfg"; - - nLayers - { - type label; - description "Number of layers of extruded cells"; - } - - overallThickness - { - type scalar0Inf; - description "Overall thickness of extruded layer [m]"; - } - - include "sourceRoot.cfg"; - include "sourceCase.cfg"; - include "sourcePatch.cfg"; - - include "surface.cfg"; - - include "mergeFaces.cfg"; - - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/mergeFaces.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/mergeFaces.cfg deleted file mode 100644 index c9d57083ea..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/mergeFaces.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mergeFaces -{ - type selection; - displayName "[mergeFaces]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-mergeFaces"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceCase.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceCase.cfg deleted file mode 100644 index a9ee5f8add..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceCase.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourceCaseOption -{ - type selection; - displayName "[sourceCase]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - caseOption - { - type string; - default "-sourceCase"; - editable 0; - } - - caseValue - { - type caseName; - default ""; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourcePatch.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourcePatch.cfg deleted file mode 100644 index 0adbab48ed..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourcePatch.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourcePatchOption -{ - type selection; - displayName "[sourcePatch]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - patchOption - { - type string; - default "-sourcePatch"; - editable 0; - } - - patchValue - { - type string; - default ""; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceRoot.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceRoot.cfg deleted file mode 100644 index 14a7276463..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/sourceRoot.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourceRootOption -{ - type selection; - displayName "[sourceRoot]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - rootOption - { - type string; - default "-sourceRoot"; - editable 0; - } - - rootValue - { - type rootDir; - default ""; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/surface.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/surface.cfg deleted file mode 100644 index 9e00dd69bc..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/surface.cfg +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -surfaceOption -{ - type selection; - displayName "[surface]"; - description "File to read surface mesh from"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - surfaceOption - { - type string; - default "-surface"; - editable 0; - } - - surfaceValue - { - type string; - default ""; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/generation/extrudeMesh/FoamX/targetRootAndCase.cfg b/applications/utilities/mesh/generation/extrudeMesh/FoamX/targetRootAndCase.cfg deleted file mode 100644 index fe852b1133..0000000000 --- a/applications/utilities/mesh/generation/extrudeMesh/FoamX/targetRootAndCase.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -targetRootCase -{ - type rootAndCase; - displayName ""; - description "Case directory with complete path to which mesh is written"; -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/attachMesh/FoamX/attachMesh.cfg b/applications/utilities/mesh/manipulation/attachMesh/FoamX/attachMesh.cfg deleted file mode 100644 index dc611464e3..0000000000 --- a/applications/utilities/mesh/manipulation/attachMesh/FoamX/attachMesh.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// attachMesh tool definition - -description "Attach topologically detached mesh using prescribed mesh modifiers"; - -attachMeshDict -{ - type dictionary; - description "attachMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} diff --git a/applications/utilities/mesh/manipulation/autoPatch/FoamX/autoPatch.cfg b/applications/utilities/mesh/manipulation/autoPatch/FoamX/autoPatch.cfg deleted file mode 100644 index b21e73a352..0000000000 --- a/applications/utilities/mesh/manipulation/autoPatch/FoamX/autoPatch.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// autoPatch tool definition - -description "Divides external faces into patches based on (user supplied) feature angle"; - -autoPatchDict -{ - type dictionary; - description "autoPatch control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/featureAngle.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/boxToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/boxToCell.cfg deleted file mode 100644 index 1014293ac6..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/boxToCell.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boxToCell -{ - type dictionary; - description "Description of a box to cell source"; - - entries - { - box - { - type compound; - description "bounding box"; - entries - { - include "$FOAMX_CONFIG/entries/vector/min.cfg"; - include "$FOAMX_CONFIG/entries/vector/max.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/cellSet.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/cellSet.cfg deleted file mode 100644 index f33c3c9977..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/cellSet.cfg +++ /dev/null @@ -1,77 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// cellSet tool definition - - -description "Creates a cell set based on parameters specified in cellSetDict"; - -cellSetDict -{ - type dictionary; - description "cellSet control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - - name - { - type word; - description "Cell set file name"; - } - - action - { - type word; - description "action on cell set (eg new cells, add cells, delete cells)"; - default new; - valueList - ( - new - add - delete - clear - invert - ); - } - - topoSetSources - { - type list; - description "list of regions"; - - elementType - { - regionType - { - type selection; - - entries - { - include "boxToCell.cfg"; - include "cellToCell.cfg"; - include "faceToCell.cfg"; - include "pointToCell.cfg"; - include "labelToCell.cfg"; - include "shapeToCell.cfg"; - include "rotatedBoxToCell.cfg"; - include "zoneToCell.cfg"; - include "fieldToCell.cfg"; - include "nearestToCell.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/cellToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/cellToCell.cfg deleted file mode 100644 index 944bd2c9b4..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/cellToCell.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellToCell -{ - type dictionary; - description "Cell to cell copy from a cellSet"; - - entries - { - include "set.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/faceToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/faceToCell.cfg deleted file mode 100644 index 391737b225..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/faceToCell.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -faceToCell -{ - type dictionary; - description "Description based on a faceSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default any; - valueList - ( - any - all - neighbour - owner - ); - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/fieldToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/fieldToCell.cfg deleted file mode 100644 index c6bb90bc3e..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/fieldToCell.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fieldToCell -{ - type dictionary; - description "Description of a field to cell source"; - - entries - { - fieldName - { - type word; - } - include "$FOAMX_CONFIG/entries/scalar/min.cfg"; - include "$FOAMX_CONFIG/entries/scalar/max.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/labelToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/labelToCell.cfg deleted file mode 100644 index f15230f64a..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/labelToCell.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -labelToCell -{ - type dictionary; - description "Description based on a list of cell labels"; - - entries - { - value - { - type list; - elementType label; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/nearestToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/nearestToCell.cfg deleted file mode 100644 index 9713f25011..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/nearestToCell.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nearestToCell -{ - type dictionary; - description "Description based on cells nearest to list of points"; - - entries - { - points - { - type list; - elementType vector; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/pointToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/pointToCell.cfg deleted file mode 100644 index f5fc40abe7..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/pointToCell.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pointToCell -{ - type dictionary; - description "Description based on a pointSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default any; - valueList - ( - any - all - ); - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/rotatedBoxToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/rotatedBoxToCell.cfg deleted file mode 100644 index c996cfdbd3..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/rotatedBoxToCell.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rotatedBoxToCell -{ - type dictionary; - description "Description of a rotated box to cell source"; - - entries - { - origin - { - type vector; - } - - i - { - type vector; - } - - j - { - type vector; - } - - k - { - type vector; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/set.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/set.cfg deleted file mode 100644 index 3c7ead362b..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/set.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -set -{ - type word; - description "set file name"; -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/shapeToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/shapeToCell.cfg deleted file mode 100644 index 9c7aa692eb..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/shapeToCell.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -shapeToCell -{ - type dictionary; - description "Description based on a cell shape"; - - entries - { - type - { - type shape; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/surfaceToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/surfaceToCell.cfg deleted file mode 100644 index 3703516cde..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/surfaceToCell.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -surfaceToCell -{ - type dictionary; - description "Description based on surface"; - - entries - { - file - { - type string; - description "STL file name"; - } - - // to be continued - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/cellSet/FoamX/zoneToCell.cfg b/applications/utilities/mesh/manipulation/cellSet/FoamX/zoneToCell.cfg deleted file mode 100644 index 519d208960..0000000000 --- a/applications/utilities/mesh/manipulation/cellSet/FoamX/zoneToCell.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -zoneToCell -{ - type dictionary; - description "Description of a zone to cell source"; - - entries - { - name - { - type word; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/checkMesh.save/FoamX/checkMesh.cfg b/applications/utilities/mesh/manipulation/checkMesh.save/FoamX/checkMesh.cfg deleted file mode 100644 index dbbbb087f2..0000000000 --- a/applications/utilities/mesh/manipulation/checkMesh.save/FoamX/checkMesh.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// checkMesh tool definition - -description "Diagnostic check of the validity of a mesh"; - -checkMeshDict -{ - type dictionary; - description "checkMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/latestTime.cfg"; - include "$FOAMX_CONFIG/entries/arguments/time.cfg"; - include "$FOAMX_CONFIG/entries/arguments/noCoords.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/checkMesh/FoamX/checkMesh.cfg b/applications/utilities/mesh/manipulation/checkMesh/FoamX/checkMesh.cfg deleted file mode 100644 index dbbbb087f2..0000000000 --- a/applications/utilities/mesh/manipulation/checkMesh/FoamX/checkMesh.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// checkMesh tool definition - -description "Diagnostic check of the validity of a mesh"; - -checkMeshDict -{ - type dictionary; - description "checkMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/latestTime.cfg"; - include "$FOAMX_CONFIG/entries/arguments/time.cfg"; - include "$FOAMX_CONFIG/entries/arguments/noCoords.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/createBaffles/FoamX/splitMeshRegions.cfg b/applications/utilities/mesh/manipulation/createBaffles/FoamX/splitMeshRegions.cfg deleted file mode 100644 index dd7ccee689..0000000000 --- a/applications/utilities/mesh/manipulation/createBaffles/FoamX/splitMeshRegions.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// splitMeshRegions tool definition - -description "Splits mesh into multiple regions and writes them to consecutive time directories"; - -splitMeshRegionsDict -{ - type dictionary; - description "splitMeshRegions control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-largestOnly"; - editable 0; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/createPatch/FoamX/createPatch.cfg b/applications/utilities/mesh/manipulation/createPatch/FoamX/createPatch.cfg deleted file mode 100644 index e4a9c68334..0000000000 --- a/applications/utilities/mesh/manipulation/createPatch/FoamX/createPatch.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// createPatch tool definition - -description "Utility to create patches out of selected boundary faces"; - -createPatchDict -{ - type dictionary; - description "createPatch control dictionary"; - dictionaryPath "system"; - - types - { - include "patchDescription.cfg"; - } - - entries - { - arguments - { - type rootCaseArguments; - } - - patches - { - type list; - elementType patchDescription; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/createPatch/FoamX/patchDescription.cfg b/applications/utilities/mesh/manipulation/createPatch/FoamX/patchDescription.cfg deleted file mode 100644 index 889111b9ed..0000000000 --- a/applications/utilities/mesh/manipulation/createPatch/FoamX/patchDescription.cfg +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchDescription -{ - type dictionary; - description "Description of operation to create patch"; - entries - { - name - { - type word; - description "Name of new patch"; - } - - type - { - type word; - description "Type of new patch"; - valueList - ( - patch - cyclic - symmetryPlane - wedge - wall - empty - ); - } - - constructFrom - { - type word; - description "What the patch is constructed from"; - valueList - ( - patches - set - ); - } - - patches - { - type list; - description "patch names for constructFrom patches"; - elementType word; - } - - include "set.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/createPatch/FoamX/set.cfg b/applications/utilities/mesh/manipulation/createPatch/FoamX/set.cfg deleted file mode 100644 index 36fd4b815a..0000000000 --- a/applications/utilities/mesh/manipulation/createPatch/FoamX/set.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -set -{ - type word; - description "faceSet file name"; -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/deformedGeom/FoamX/deformedGeom.cfg b/applications/utilities/mesh/manipulation/deformedGeom/FoamX/deformedGeom.cfg deleted file mode 100644 index 0dd64cb571..0000000000 --- a/applications/utilities/mesh/manipulation/deformedGeom/FoamX/deformedGeom.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// deformedGeom tool definition - -description "Deform polyMesh geometry by displacement field U and scalingFactor"; - -deformedGeomDict -{ - type dictionary; - description "deformedGeom control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/scalingFactor.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/boxToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/boxToFace.cfg deleted file mode 100644 index 0aa856c7bf..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/boxToFace.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boxToFace -{ - type dictionary; - description "Description of a box to face source"; - - entries - { - box - { - type compound; - description "bounding box"; - entries - { - include "$FOAMX_CONFIG/entries/vector/min.cfg"; - include "$FOAMX_CONFIG/entries/vector/max.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/cellToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/cellToFace.cfg deleted file mode 100644 index edb6983489..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/cellToFace.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellToFace -{ - type dictionary; - description "Cell to face copy from a faceSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default all; - valueList - ( - all - both - ); - } - - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/faceSet.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/faceSet.cfg deleted file mode 100644 index a3d7202b52..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/faceSet.cfg +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// cellSet tool definition - - -description "Creates a face set based on parameters specified in faceSetDict"; - -faceSetDict -{ - type dictionary; - description "faceSet control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - - name - { - type word; - description "face set file name"; - } - - action - { - type word; - description "action on face set (eg new faces, add faces, delete faces)"; - default new; - valueList - ( - new - add - delete - clear - invert - ); - } - - topoSetSources - { - type list; - description "list of regions"; - - elementType - { - regionType - { - type selection; - - entries - { - include "boxToFace.cfg"; - include "cellToFace.cfg"; - include "faceToFace.cfg"; - include "pointToFace.cfg"; - include "labelToFace.cfg"; - include "patchToFace.cfg"; - include "zoneToFace.cfg"; - include "normalToFace.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/faceToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/faceToFace.cfg deleted file mode 100644 index 9491d8be52..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/faceToFace.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -faceToFace -{ - type dictionary; - description "Copy from a faceSet"; - - entries - { - include "set.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/labelToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/labelToFace.cfg deleted file mode 100644 index c57cdd73a4..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/labelToFace.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -labelToFace -{ - type dictionary; - description "Description based on a list of face labels"; - - entries - { - value - { - type list; - elementType label; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/normalToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/normalToFace.cfg deleted file mode 100644 index e2ee47ef6e..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/normalToFace.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -normalToFace -{ - type dictionary; - description "Description based on faces with normal within angle tolernace"; - - entries - { - normal - { - type vector; - description "normal vector"; - } - - cos - { - type scalar01; - description "Tolerance as max cosine of angle"; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/patchToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/patchToFace.cfg deleted file mode 100644 index 7a2ddd521e..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/patchToFace.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchToFace -{ - type dictionary; - description "Description of a patch to face source"; - - entries - { - name - { - type word; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/pointToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/pointToFace.cfg deleted file mode 100644 index badc1d367d..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/pointToFace.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pointToFace -{ - type dictionary; - description "Description based on a pointSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default any; - valueList - ( - any - all - ); - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/set.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/set.cfg deleted file mode 100644 index 3c7ead362b..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/set.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -set -{ - type word; - description "set file name"; -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/faceSet/FoamX/zoneToFace.cfg b/applications/utilities/mesh/manipulation/faceSet/FoamX/zoneToFace.cfg deleted file mode 100644 index 9768829f0a..0000000000 --- a/applications/utilities/mesh/manipulation/faceSet/FoamX/zoneToFace.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -zoneToFace -{ - type dictionary; - description "Description of a zone to face source"; - - entries - { - name - { - type word; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/flattenMesh/FoamX/flattenMesh.cfg b/applications/utilities/mesh/manipulation/flattenMesh/FoamX/flattenMesh.cfg deleted file mode 100644 index 98e3f92de2..0000000000 --- a/applications/utilities/mesh/manipulation/flattenMesh/FoamX/flattenMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// flattenMesh tool definition - -description "Flatten the front and back planes of a 2D cartesian mesh"; - -flattenMeshDict -{ - type dictionary; - description "flattenMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/mergeMeshes/FoamX/mergeMeshes.cfg b/applications/utilities/mesh/manipulation/mergeMeshes/FoamX/mergeMeshes.cfg deleted file mode 100644 index c9580d830d..0000000000 --- a/applications/utilities/mesh/manipulation/mergeMeshes/FoamX/mergeMeshes.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// mergeMeshes tool definition - -description "Merge two meshes"; - -mergeMeshesDict -{ - type dictionary; - description "mergeMeshes control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - rootCaseForSecondMesh - { - type rootAndCase; - displayName ""; - description "Root and case for the mesh to add"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/mirrorMesh/FoamX/mirrorMesh.cfg b/applications/utilities/mesh/manipulation/mirrorMesh/FoamX/mirrorMesh.cfg deleted file mode 100644 index 7138173753..0000000000 --- a/applications/utilities/mesh/manipulation/mirrorMesh/FoamX/mirrorMesh.cfg +++ /dev/null @@ -1,60 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// mirrorMesh tool definition - -description "Mirror a mesh around a given plane"; - -mirrorMeshDict -{ - type dictionary; - description "mirrorMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - - planeType - { - type word; - default pointAndNormal; - valueList - ( - pointAndNormal - ); - } - - pointAndNormalDict - { - type dictionary; - entries - { - basePoint - { - type vector; - } - - normalVector - { - type vector; - } - } - } - - planeTolerance - { - type scalar; - default 1e-03; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/moveDynamicMesh/FoamX/moveDynamicMesh.cfg b/applications/utilities/mesh/manipulation/moveDynamicMesh/FoamX/moveDynamicMesh.cfg deleted file mode 100644 index 8581898b03..0000000000 --- a/applications/utilities/mesh/manipulation/moveDynamicMesh/FoamX/moveDynamicMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// moveDynamicMesh tool definition - -description "Mesh motion and topological mesh changes utility"; - -moveDynamicMeshDict -{ - type dictionary; - description "moveDynamicMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/moveEngineMesh/FoamX/moveEngineMesh.cfg b/applications/utilities/mesh/manipulation/moveEngineMesh/FoamX/moveEngineMesh.cfg deleted file mode 100644 index b5a0071e86..0000000000 --- a/applications/utilities/mesh/manipulation/moveEngineMesh/FoamX/moveEngineMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// moveEngineMesh tool definition - -description "Runs a solution for moving an engine mesh"; - -moveEngineMeshDict -{ - type dictionary; - description "moveEngineMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/moveMesh/FoamX/moveMesh.cfg b/applications/utilities/mesh/manipulation/moveMesh/FoamX/moveMesh.cfg deleted file mode 100644 index bdbe37180a..0000000000 --- a/applications/utilities/mesh/manipulation/moveMesh/FoamX/moveMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// moveMesh tool definition - -description "Runs a solution for moving the mesh"; - -moveMeshDict -{ - type dictionary; - description "moveMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/objToVTK/FoamX/objToVTK.cfg b/applications/utilities/mesh/manipulation/objToVTK/FoamX/objToVTK.cfg deleted file mode 100644 index 5526d7494a..0000000000 --- a/applications/utilities/mesh/manipulation/objToVTK/FoamX/objToVTK.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// objToVTK tool definition - -description "Read obj line (not surface!) file and convert into vtk"; - -objToVTKDict -{ - type dictionary; - description "objToVTK control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/inputFile.cfg"; - include "$FOAMX_CONFIG/entries/arguments/outputFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/boxToPoint.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/boxToPoint.cfg deleted file mode 100644 index 3e63c4feda..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/boxToPoint.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boxToPoint -{ - type dictionary; - description "Description of a box to point source"; - - entries - { - box - { - type compound; - description "bounding box"; - entries - { - include "$FOAMX_CONFIG/entries/vector/min.cfg"; - include "$FOAMX_CONFIG/entries/vector/max.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/cellToPoint.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/cellToPoint.cfg deleted file mode 100644 index 5f734ada30..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/cellToPoint.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellToPoint -{ - type dictionary; - description "Description based on a cellSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default all; - valueList - ( - all - ); - } - - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/faceToPoint.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/faceToPoint.cfg deleted file mode 100644 index 5c6226d777..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/faceToPoint.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -faceToPoint -{ - type dictionary; - description "Description based on a faceSet"; - - entries - { - include "set.cfg"; - option - { - type word; - default all; - valueList - ( - all - ); - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/labelToPoint.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/labelToPoint.cfg deleted file mode 100644 index 054d5a86b2..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/labelToPoint.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -labelToPoint -{ - type dictionary; - description "Description based on a list of point labels"; - - entries - { - value - { - type list; - elementType label; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/pointSet.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/pointSet.cfg deleted file mode 100644 index 9ff9a91032..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/pointSet.cfg +++ /dev/null @@ -1,72 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// cellSet tool definition - - -description "Creates a point set based on parameters specified in pointSetDict"; - -pointSetDict -{ - type dictionary; - description "pointSet control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - - name - { - type word; - description "point set file name"; - } - - action - { - type word; - description "action on point set (eg new points, add points, delete points)"; - default new; - valueList - ( - new - add - delete - clear - invert - ); - } - - topoSetSources - { - type list; - description "list of regions"; - - elementType - { - regionType - { - type selection; - - entries - { - include "boxToPoint.cfg"; - include "cellToPoint.cfg"; - include "faceToPoint.cfg"; - include "pointToPoint.cfg"; - include "labelToPoint.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/pointToPoint.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/pointToPoint.cfg deleted file mode 100644 index 596a97a77c..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/pointToPoint.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pointToPoint -{ - type dictionary; - description "Copy from a pointSet"; - - entries - { - include "set.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/pointSet/FoamX/set.cfg b/applications/utilities/mesh/manipulation/pointSet/FoamX/set.cfg deleted file mode 100644 index 3c7ead362b..0000000000 --- a/applications/utilities/mesh/manipulation/pointSet/FoamX/set.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -set -{ - type word; - description "set file name"; -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/refineMesh/FoamX/refineMesh.cfg b/applications/utilities/mesh/manipulation/refineMesh/FoamX/refineMesh.cfg deleted file mode 100644 index 422fbb3eea..0000000000 --- a/applications/utilities/mesh/manipulation/refineMesh/FoamX/refineMesh.cfg +++ /dev/null @@ -1,86 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// refineMesh tool definition - -description "Refines mesh within a cell set defined in refineMeshDict"; - -refineMeshDict -{ - type dictionary; - description "refineMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/dict.cfg"; - } - } - - set - { - type word; - description "cell set file name"; - } - - coordinateSystem - { - type word; - description "coordinate system for refinement process"; - default global; - valueList - ( - global - patchLocal - ); - } - - globalCoeffs - { - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/vector/tan1.cfg"; - include "$FOAMX_CONFIG/entries/vector/tan2.cfg"; - } - } - - patchLocalCoeffs - { - type dictionary; - entries - { - patch - { - type word; - description "tan2 is face normal to 0th face of this patch"; - } - include "$FOAMX_CONFIG/entries/vector/tan1.cfg"; - } - } - - directions - { - type list; - description "list of directions to refine (must be tan1, tan2 and/or normal)"; - elementType word; - default ( tan1 <> ); - } - - include "$FOAMX_CONFIG/entries/Switch/useHexTopology.cfg"; - include "$FOAMX_CONFIG/entries/Switch/geometricCut.cfg"; - include "$FOAMX_CONFIG/entries/Switch/writeMesh.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/renumberMesh/FoamX/renumberMesh.cfg b/applications/utilities/mesh/manipulation/renumberMesh/FoamX/renumberMesh.cfg deleted file mode 100644 index 67da07dd46..0000000000 --- a/applications/utilities/mesh/manipulation/renumberMesh/FoamX/renumberMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// renumberMesh tool definition - -description "Renumbers mesh and fields to reduce matrix bandwidth"; - -renumberMeshDict -{ - type dictionary; - description "renumberMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/rotateMesh/FoamX/rotateMesh.cfg b/applications/utilities/mesh/manipulation/rotateMesh/FoamX/rotateMesh.cfg deleted file mode 100644 index adcad4d3e4..0000000000 --- a/applications/utilities/mesh/manipulation/rotateMesh/FoamX/rotateMesh.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// rotateMesh tool definition - -description "Rotate mesh and fields by given two vectors"; - -rotateMeshDict -{ - type dictionary; - description "rotateMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/rotationVectors.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/splitMesh/FoamX/splitMesh.cfg b/applications/utilities/mesh/manipulation/splitMesh/FoamX/splitMesh.cfg deleted file mode 100644 index fc75dced52..0000000000 --- a/applications/utilities/mesh/manipulation/splitMesh/FoamX/splitMesh.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// splitMesh tool definition - -description "Splits mesh by making internal faces external"; - -splitMeshDict -{ - type dictionary; - description "splitMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - faceSet - { - type word; - description "Face set to become external faces"; - } - - include "$FOAMX_CONFIG/entries/arguments/masterPatch.cfg"; - include "$FOAMX_CONFIG/entries/arguments/slavePatch.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/splitMeshRegions/FoamX/splitMeshRegions.cfg b/applications/utilities/mesh/manipulation/splitMeshRegions/FoamX/splitMeshRegions.cfg deleted file mode 100644 index dd7ccee689..0000000000 --- a/applications/utilities/mesh/manipulation/splitMeshRegions/FoamX/splitMeshRegions.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// splitMeshRegions tool definition - -description "Splits mesh into multiple regions and writes them to consecutive time directories"; - -splitMeshRegionsDict -{ - type dictionary; - description "splitMeshRegions control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-largestOnly"; - editable 0; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/stitchMesh/FoamX/stitchMesh.cfg b/applications/utilities/mesh/manipulation/stitchMesh/FoamX/stitchMesh.cfg deleted file mode 100644 index 32a7c8c30e..0000000000 --- a/applications/utilities/mesh/manipulation/stitchMesh/FoamX/stitchMesh.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// stitchMesh tool definition - -description "'Stitches' a mesh"; - -stitchMeshDict -{ - type dictionary; - description "stitchMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/masterPatch.cfg"; - include "$FOAMX_CONFIG/entries/arguments/slavePatch.cfg"; - include "$FOAMX_CONFIG/entries/arguments/perfect.cfg"; - include "$FOAMX_CONFIG/entries/arguments/partial.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/subsetMesh/FoamX/subsetMesh.cfg b/applications/utilities/mesh/manipulation/subsetMesh/FoamX/subsetMesh.cfg deleted file mode 100644 index c636021607..0000000000 --- a/applications/utilities/mesh/manipulation/subsetMesh/FoamX/subsetMesh.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// subsetMesh tool definition - -description "Creates a region of the mesh based on parameter specified in subsetMeshDict"; - -subsetMeshDict -{ - type dictionary; - description "subsetMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/patch.cfg"; - } - } - - points - { - type list; - description "list of point labels"; - elementType label; - } - - faces - { - type list; - description "list of face labels"; - elementType block; - } - - cells - { - type list; - description "list of cell labels"; - elementType edge; - } - - include "$FOAMX_CONFIG/entries/Switch/addCellNeighbours.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/transformPoints/FoamX/transformPoints.cfg b/applications/utilities/mesh/manipulation/transformPoints/FoamX/transformPoints.cfg deleted file mode 100644 index d34aef1c6e..0000000000 --- a/applications/utilities/mesh/manipulation/transformPoints/FoamX/transformPoints.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// transformPoints tool definition - -description "Transform geometry by given translate, rotate and scale arguments"; - -transformPointsDict -{ - type dictionary; - description "transformPoints control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - - entries - { - include "$FOAMX_CONFIG/entries/arguments/translate.cfg"; - include "$FOAMX_CONFIG/entries/arguments/rotate.cfg"; - include "$FOAMX_CONFIG/entries/arguments/vectorScale.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/mesh/manipulation/zipUpMesh/FoamX/zipUpMesh.cfg b/applications/utilities/mesh/manipulation/zipUpMesh/FoamX/zipUpMesh.cfg deleted file mode 100644 index d00c7f6fd6..0000000000 --- a/applications/utilities/mesh/manipulation/zipUpMesh/FoamX/zipUpMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// zipUpMesh tool definition - -description "Closes cells for a mesh with hanging vertices"; - -zipUpMeshDict -{ - type dictionary; - description "zipUpMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/miscellaneous/foamInfoExec/FoamX/foamInfoExec.cfg b/applications/utilities/miscellaneous/foamInfoExec/FoamX/foamInfoExec.cfg deleted file mode 100644 index 6b9347d91b..0000000000 --- a/applications/utilities/miscellaneous/foamInfoExec/FoamX/foamInfoExec.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamInfoExec tool definition - -description "Interrogates a case and prints information to screen"; - -foamInfoExecDict -{ - type dictionary; - description "foamInfoExec control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/times.cfg"; - include "$FOAMX_CONFIG/entries/arguments/dictionary.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/decomposePar/FoamX/decomposePar.cfg b/applications/utilities/parallelProcessing/decomposePar/FoamX/decomposePar.cfg deleted file mode 100644 index cd6f1b9b6e..0000000000 --- a/applications/utilities/parallelProcessing/decomposePar/FoamX/decomposePar.cfg +++ /dev/null @@ -1,85 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// decomposePar tool definition - -description "Mesh and Field Decomposer"; - -decomposeParDict -{ - type dictionary; - description "decomposePar control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/cellDist.cfg"; - include "$FOAMX_CONFIG/entries/arguments/fieldsOnly.cfg"; - } - } - - numberOfSubdomains - { - type label; - default 1; - } - - method - { - type word; - default simple; - valueList - ( - metis - simple - hierarchical - manual - ); - } - - simpleCoeffs - { - type dictionary; - entries - { - include "n.cfg"; - include "delta.cfg"; - } - } - - hierarchicalCoeffs - { - type dictionary; - entries - { - include "n.cfg"; - include "delta.cfg"; - include "order.cfg"; - } - } - - manualCoeffs - { - type dictionary; - entries - { - dataFile - { - type string; - description "Path of decomposition data file"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/decomposePar/FoamX/delta.cfg b/applications/utilities/parallelProcessing/decomposePar/FoamX/delta.cfg deleted file mode 100644 index 25a0fafb46..0000000000 --- a/applications/utilities/parallelProcessing/decomposePar/FoamX/delta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -delta -{ - type scalar0Inf; - description "delta"; - default 0.001; -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/decomposePar/FoamX/n.cfg b/applications/utilities/parallelProcessing/decomposePar/FoamX/n.cfg deleted file mode 100644 index 39c57729cb..0000000000 --- a/applications/utilities/parallelProcessing/decomposePar/FoamX/n.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -n -{ - description "n"; - type fixedList; - elementType label; - numElements 3; - elementLabels ( Nx Ny Nz ); - default ( 1 1 1 ); -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/decomposePar/FoamX/order.cfg b/applications/utilities/parallelProcessing/decomposePar/FoamX/order.cfg deleted file mode 100644 index 3231d2c4a4..0000000000 --- a/applications/utilities/parallelProcessing/decomposePar/FoamX/order.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -order -{ - type word; - description "order"; - default xyz; - valueList - ( - xyz - xzy - yxz - yzx - zxy - zyx - ); -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/reconstructPar/FoamX/reconstructPar.cfg b/applications/utilities/parallelProcessing/reconstructPar/FoamX/reconstructPar.cfg deleted file mode 100644 index 97fdb9d55e..0000000000 --- a/applications/utilities/parallelProcessing/reconstructPar/FoamX/reconstructPar.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// reconstructPar tool definition - -description "Decomposed case field reconstruction"; - -reconstructParDict -{ - type dictionary; - description "reconstructPar control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/parallelProcessing/reconstructParMesh/FoamX/reconstructParMesh.cfg b/applications/utilities/parallelProcessing/reconstructParMesh/FoamX/reconstructParMesh.cfg deleted file mode 100644 index 4fb437f75f..0000000000 --- a/applications/utilities/parallelProcessing/reconstructParMesh/FoamX/reconstructParMesh.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// reconstructParMesh tool definition - -description "Reconstructs a mesh using geometric information only"; - -reconstructParMeshDict -{ - type dictionary; - description "reconstructParMesh control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/foamDataToFluent.cfg b/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/foamDataToFluent.cfg deleted file mode 100644 index 4ff1f15322..0000000000 --- a/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/foamDataToFluent.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamDataToFluent tool definition - -description "OpenFOAM to Fluent field data converter"; - -foamDataToFluentDict -{ - type dictionary; - description "foamDataToFluent control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - - include "standardEntries.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/standardEntries.cfg b/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/standardEntries.cfg deleted file mode 100644 index b2b5a6f0d5..0000000000 --- a/applications/utilities/postProcessing/dataConversion/foamDataToFluent/FoamX/standardEntries.cfg +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - type label; - optional 1; - default 1; -} - -U -{ - type label; - optional 1; - default 2; -} - -T -{ - type label; - optional 1; - default 3; -} - -h -{ - type label; - optional 1; - default 4; -} - -k -{ - type label; - optional 1; - default 5; -} - -epsilon -{ - type label; - optional 1; - default 6; -} - -gamma -{ - type label; - optional 1; - default 150; -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/FoamX/foamToEnsight.cfg b/applications/utilities/postProcessing/dataConversion/foamToEnsight/FoamX/foamToEnsight.cfg deleted file mode 100644 index 8643e4a4fe..0000000000 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/FoamX/foamToEnsight.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamToEnsight tool definition - -description "Translates OpenFOAM data to EnSight format"; - -foamToEnsightDict -{ - type dictionary; - description "foamToEnsight control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/patches.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/foamToFieldview9/FoamX/foamToFieldview9.cfg b/applications/utilities/postProcessing/dataConversion/foamToFieldview9/FoamX/foamToFieldview9.cfg deleted file mode 100644 index 48e2f9f66d..0000000000 --- a/applications/utilities/postProcessing/dataConversion/foamToFieldview9/FoamX/foamToFieldview9.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamToFieldview9 tool definition - -description "Converts an OpenFOAM mesh to Fieldview-UNS format (binary)"; - -foamToFieldview9Dict -{ - type dictionary; - description "foamToFieldview9 control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/noWall.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/foamToGMV/FoamX/foamToGMV.cfg b/applications/utilities/postProcessing/dataConversion/foamToGMV/FoamX/foamToGMV.cfg deleted file mode 100644 index 0b956380e6..0000000000 --- a/applications/utilities/postProcessing/dataConversion/foamToGMV/FoamX/foamToGMV.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamToGMV tool definition - -description "Converts OpenFOAM output to GMV format"; - -foamToGMVDict -{ - type dictionary; - description "foamToGMV control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/dataConversion/smapToFoam/FoamX/smapToFoam.cfg b/applications/utilities/postProcessing/dataConversion/smapToFoam/FoamX/smapToFoam.cfg deleted file mode 100644 index fe18470215..0000000000 --- a/applications/utilities/postProcessing/dataConversion/smapToFoam/FoamX/smapToFoam.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// smapToFoam tool definition - -description "Converts field data from STAR-CD SMAP to OpenFOAM format"; - -smapToFoamDict -{ - type dictionary; - description "smapToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/dataFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/graphics/paraFoam/FoamX/paraFoam.cfg b/applications/utilities/postProcessing/graphics/paraFoam/FoamX/paraFoam.cfg deleted file mode 100644 index fea99de0bf..0000000000 --- a/applications/utilities/postProcessing/graphics/paraFoam/FoamX/paraFoam.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// paraFoam tool definition - -description "Graphics post-processing using ParaView"; - -paraFoamDict -{ - type dictionary; - description "paraFoam control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/miscellaneous/engineCompRatio/FoamX/engineCompRatio.cfg b/applications/utilities/postProcessing/miscellaneous/engineCompRatio/FoamX/engineCompRatio.cfg deleted file mode 100644 index f31f327d9b..0000000000 --- a/applications/utilities/postProcessing/miscellaneous/engineCompRatio/FoamX/engineCompRatio.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// engineCompRatio tool definition - -description "Calculates the geometric compression ratio"; - -engineCompRatioDict -{ - type dictionary; - description "engineCompRatio control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/miscellaneous/postChannel/FoamX/postChannel.cfg b/applications/utilities/postProcessing/miscellaneous/postChannel/FoamX/postChannel.cfg deleted file mode 100644 index 480c6a2e63..0000000000 --- a/applications/utilities/postProcessing/miscellaneous/postChannel/FoamX/postChannel.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// postChannel tool definition - -description "Periodic channel flow statistics; works only for meshes with i-j-k style cell numbering; j numbering can accommodate multiple blocks"; - -postChannelDict -{ - type dictionary; - description "postChannel control dictionary"; - dictionaryPath "constant"; - - entries - { - arguments - { - type rootCaseArguments; - } - - include "$FOAMX_CONFIG/entries/label/Nx.cfg"; - - Ny - { - type list; - description "Ny - number of cells in EACH BLOCK of mesh in y direction "; - elementType label; - } - - include "$FOAMX_CONFIG/entries/label/Nz.cfg"; - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/miscellaneous/ptot/FoamX/ptot.cfg b/applications/utilities/postProcessing/miscellaneous/ptot/FoamX/ptot.cfg deleted file mode 100644 index f40f6424f8..0000000000 --- a/applications/utilities/postProcessing/miscellaneous/ptot/FoamX/ptot.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// ptot tool definition - -description "Calculate the total-pressure field"; - -ptotDict -{ - type dictionary; - description "ptot control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/miscellaneous/wdot/FoamX/wdot.cfg b/applications/utilities/postProcessing/miscellaneous/wdot/FoamX/wdot.cfg deleted file mode 100644 index c9085daf70..0000000000 --- a/applications/utilities/postProcessing/miscellaneous/wdot/FoamX/wdot.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// wdot tool definition - -description "Calculate the reaction rate field for the Weller combustion model"; - -wdotDict -{ - type dictionary; - description "wdot control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/miscellaneous/writeCellCentres/FoamX/writeCellCentres.cfg b/applications/utilities/postProcessing/miscellaneous/writeCellCentres/FoamX/writeCellCentres.cfg deleted file mode 100644 index 09db66ef28..0000000000 --- a/applications/utilities/postProcessing/miscellaneous/writeCellCentres/FoamX/writeCellCentres.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// writeCellCentres tool definition - -description "Outputs components of cell centres"; - -writeCellCentresDict -{ - type dictionary; - description "writeCellCentres control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/latestTime.cfg"; - include "$FOAMX_CONFIG/entries/arguments/time.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/scalarField/pPrime2/FoamX/pPrime2.cfg b/applications/utilities/postProcessing/scalarField/pPrime2/FoamX/pPrime2.cfg deleted file mode 100644 index a87d01558f..0000000000 --- a/applications/utilities/postProcessing/scalarField/pPrime2/FoamX/pPrime2.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// pPrime2 tool definition - -description "Calculate the sqr(p') field"; - -pPrime2Dict -{ - type dictionary; - description "pPrime2 control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/stressField/stressComponents/FoamX/stressComponents.cfg b/applications/utilities/postProcessing/stressField/stressComponents/FoamX/stressComponents.cfg deleted file mode 100644 index 317f7527ed..0000000000 --- a/applications/utilities/postProcessing/stressField/stressComponents/FoamX/stressComponents.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// stressComponents tool definition - -description "Decompose stress tensor into individual components"; - -stressComponentsDict -{ - type dictionary; - description "stressComponents control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/turbulence/R/FoamX/R.cfg b/applications/utilities/postProcessing/turbulence/R/FoamX/R.cfg deleted file mode 100644 index 65e603ac04..0000000000 --- a/applications/utilities/postProcessing/turbulence/R/FoamX/R.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// R tool definition - -description "Reynolds stress calculation"; - -RDict -{ - type dictionary; - description "R control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/Co/FoamX/Co.cfg b/applications/utilities/postProcessing/velocityField/Co/FoamX/Co.cfg deleted file mode 100644 index a51966bb5a..0000000000 --- a/applications/utilities/postProcessing/velocityField/Co/FoamX/Co.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Co tool definition - -description "Create the Courant-number field"; - -CoDict -{ - type dictionary; - description "Co control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/Lambda2/FoamX/Lambda2.cfg b/applications/utilities/postProcessing/velocityField/Lambda2/FoamX/Lambda2.cfg deleted file mode 100644 index 0e48403d0a..0000000000 --- a/applications/utilities/postProcessing/velocityField/Lambda2/FoamX/Lambda2.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Lambda2 tool definition - -description "Calculate the second largest eigenvalue of the sum of the - square of the symmetrical and anti-symmetrical parts of the velocity - gradient tensor"; - -Lambda2Dict -{ - type dictionary; - description "Lambda2 control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/Mach/FoamX/Mach.cfg b/applications/utilities/postProcessing/velocityField/Mach/FoamX/Mach.cfg deleted file mode 100644 index 9503e49775..0000000000 --- a/applications/utilities/postProcessing/velocityField/Mach/FoamX/Mach.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Mach tool definition - -description "Mach number calculation"; - -MachDict -{ - type dictionary; - description "Mach control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/Pe/FoamX/Pe.cfg b/applications/utilities/postProcessing/velocityField/Pe/FoamX/Pe.cfg deleted file mode 100644 index 493150acbf..0000000000 --- a/applications/utilities/postProcessing/velocityField/Pe/FoamX/Pe.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Pe tool definition - -description "Calculate the Peclet-number field"; - -PeDict -{ - type dictionary; - description "Pe control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/Q/FoamX/Q.cfg b/applications/utilities/postProcessing/velocityField/Q/FoamX/Q.cfg deleted file mode 100644 index ee4ab9835f..0000000000 --- a/applications/utilities/postProcessing/velocityField/Q/FoamX/Q.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Q tool definition - -description "Calculate the second invariant of the velocity gradient tensor"; - -QDict -{ - type dictionary; - description "Q control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/enstrophy/FoamX/enstrophy.cfg b/applications/utilities/postProcessing/velocityField/enstrophy/FoamX/enstrophy.cfg deleted file mode 100644 index e666e63312..0000000000 --- a/applications/utilities/postProcessing/velocityField/enstrophy/FoamX/enstrophy.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// enstrophy tool definition - -description "Enstrophy calculation"; - -enstrophyDict -{ - type dictionary; - description "enstrophy control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/flowType/FoamX/flowType.cfg b/applications/utilities/postProcessing/velocityField/flowType/FoamX/flowType.cfg deleted file mode 100644 index 7e684abd18..0000000000 --- a/applications/utilities/postProcessing/velocityField/flowType/FoamX/flowType.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// flowType tool definition - -description "Create the flow-type field"; - -flowTypeDict -{ - type dictionary; - description "flowType control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/streamFunction/FoamX/streamFunction.cfg b/applications/utilities/postProcessing/velocityField/streamFunction/FoamX/streamFunction.cfg deleted file mode 100644 index e7bb2c9d48..0000000000 --- a/applications/utilities/postProcessing/velocityField/streamFunction/FoamX/streamFunction.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// streamFunction tool definition - -description "Stream function calculation"; - -streamFunctionDict -{ - type dictionary; - description "streamFunction control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/uprime/FoamX/uprime.cfg b/applications/utilities/postProcessing/velocityField/uprime/FoamX/uprime.cfg deleted file mode 100644 index ba3debf223..0000000000 --- a/applications/utilities/postProcessing/velocityField/uprime/FoamX/uprime.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// uprime tool definition - -description "Uprime calculated from k"; - -uprimeDict -{ - type dictionary; - description "uprime control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/velocityField/vorticity/FoamX/vorticity.cfg b/applications/utilities/postProcessing/velocityField/vorticity/FoamX/vorticity.cfg deleted file mode 100644 index 6cd8a6fa70..0000000000 --- a/applications/utilities/postProcessing/velocityField/vorticity/FoamX/vorticity.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// vorticity tool definition - -description "Calculate the vorticity of the velocity field curl(U)"; - -vorticityDict -{ - type dictionary; - description "vorticity control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/wall/wallGradU/FoamX/wallGradU.cfg b/applications/utilities/postProcessing/wall/wallGradU/FoamX/wallGradU.cfg deleted file mode 100644 index d878444c62..0000000000 --- a/applications/utilities/postProcessing/wall/wallGradU/FoamX/wallGradU.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// wallGradU tool definition - -description "Calculate the gradient of the velocity at the wall"; - -wallGradUDict -{ - type dictionary; - description "wallGradU control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/wall/wallHeatFlux/FoamX/wallHeatFlux.cfg b/applications/utilities/postProcessing/wall/wallHeatFlux/FoamX/wallHeatFlux.cfg deleted file mode 100644 index 054b9a8aa7..0000000000 --- a/applications/utilities/postProcessing/wall/wallHeatFlux/FoamX/wallHeatFlux.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// wallHeatFlux tool definition - -description "Calculate the wall heat-flux"; - -wallHeatFluxDict -{ - type dictionary; - description "wallHeatFlux control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/wall/wallShearStress/FoamX/wallShearStress.cfg b/applications/utilities/postProcessing/wall/wallShearStress/FoamX/wallShearStress.cfg deleted file mode 100644 index ec461a38ec..0000000000 --- a/applications/utilities/postProcessing/wall/wallShearStress/FoamX/wallShearStress.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// wallShearStress tool definition - -description "Calculate the wall shear stress"; - -wallShearStressDict -{ - type dictionary; - description "wallShearStress control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/wall/yPlusLES/FoamX/yPlusLES.cfg b/applications/utilities/postProcessing/wall/yPlusLES/FoamX/yPlusLES.cfg deleted file mode 100644 index 7e11025db5..0000000000 --- a/applications/utilities/postProcessing/wall/yPlusLES/FoamX/yPlusLES.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// yPlusLES tool definition - -description "Calculate the y+ field for LES"; - -yPlusLESDict -{ - type dictionary; - description "yPlusLES control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/postProcessing/wall/yPlusRAS/FoamX/yPlusRAS.cfg b/applications/utilities/postProcessing/wall/yPlusRAS/FoamX/yPlusRAS.cfg deleted file mode 100644 index 8e0b98c0fa..0000000000 --- a/applications/utilities/postProcessing/wall/yPlusRAS/FoamX/yPlusRAS.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// yPlusRAS tool definition - -description "Create the y+ field"; - -checkYPlusDict -{ - type dictionary; - description "yPlusRAS control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseTimeArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/Allwmake b/applications/utilities/preProcessing/FoamX/Allwmake deleted file mode 100755 index f25f6de63c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Allwmake +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -x - -(cd Idl ; make) -(cd C++ ; ./Allwmake) -(cd Java ; wmake jar) diff --git a/applications/utilities/preProcessing/FoamX/C++/Allwmake b/applications/utilities/preProcessing/FoamX/C++/Allwmake deleted file mode 100755 index d1e67270c1..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/Allwmake +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -set -x - -case $WM_ARCH in - linux*) - CMD="wmake libso" - ;; - *) - CMD="wmake lib" -esac - -(cd FoamXServer; $CMD) -(cd FoamXLib; $CMD) -(cd FoamXHostBrowser ; wmake) -(cd FoamXCaseBrowser ; wmake) -(cd FoamXCaseServer ; wmake) -#(cd FoamXCasePostServer ; wmake) diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/FoamXCaseBrowser.C b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/FoamXCaseBrowser.C deleted file mode 100644 index b824edf260..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/FoamXCaseBrowser.C +++ /dev/null @@ -1,145 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "argList.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamXErrors.H" -#include "ICaseBrowserImpl.H" -#include "LogManager.H" -#include "LogEntry.H" -#include "Paths.H" -#include "Orb.H" - -// Declare all the namespaces used by FoamX -#include "FoamXNameSpaces.H" - -using namespace FoamX; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int main(int argc, char **argv) -{ - static const char* functionName = - "FoamXCaseBrowser::main(int argc, char **argv)"; - - try - { - FatalError.throwExceptions(); - FatalIOError.throwExceptions(); - - // Make copy of raw args (since Orb modifies them) - stringList args(argc); - forAll(args, argI) - { - args[argI] = argv[argI]; - } - - // Initialise the log manager object. - LogManager logManager(Paths::tmp/"CaseBrowserLog.xml"); - - // Register the root function call. - LogEntry log(functionName, __FILE__, __LINE__); - - // Construct the ORB. - FoamX::Orb orb(argc, argv); - - // Construct argList so job gets registered. - argList::validArgs.clear(); - argList dummyArgs(argc, argv); - - // Allocate the ICaseBrowserImpl object on the heap. - // This is a reference counted object and will be deleted by - // the POA when it is no longer needed. - ICaseBrowserImpl* caseBrowserPtr = new ICaseBrowserImpl(orb, args); - - if (caseBrowserPtr == NULL) - { - FatalErrorIn(functionName) - << "Failed to instantiate ICaseBrowserImpl object." - << exit(FatalError); - } - - log << "Created ICaseBrowserImpl object" << endl; - - // Emit the IOR. - log << "IOR : " << orb.ior(caseBrowserPtr->_this()) << endl; - - Info << "CaseBrowser running....." << endl; - - // Go! Go! Go! - orb.run(); - } - catch (Foam::IOerror& fIOErr) - { - Serr<< "Caught Foam IOerror in " << functionName << " : " - << nl << fIOErr << endl; - } - catch (Foam::error& fErr) - { - Serr<< "Caught Foam error in " << functionName << " : " - << nl << fErr << endl; - } - catch (FoamXServer::FoamXIOError& fIOErr) - { - Serr<< "Caught FoamXIOError exception in " << functionName << " : " - << nl << fIOErr << endl; - } - catch (FoamXServer::FoamXError& ex) - { - Serr<< "Caught FoamXError exception in " << functionName << " : " - << nl << ex << endl; - } - catch (CORBA::COMM_FAILURE& ex) - { - Serr<< "Caught CORBA::COMM_FAILURE exception in " - << functionName << endl; - } - catch (CORBA::SystemException& ex) - { - Serr<< "Caught CORBA::SystemException exception in " - << functionName << endl; - } - catch (CORBA::Exception& ex) - { - Serr<< "Caught CORBA::Exception exception in " - << functionName << endl; - } - catch (...) - { - Serr<< "Caught system exception in " - << functionName << endl; - } - - Info<< "Finishing " << functionName << endl; - - return 0; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.C deleted file mode 100644 index 7578e62117..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.C +++ /dev/null @@ -1,2963 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "long.H" -#include "dictionary.H" -#include "IFstream.H" -#include "OFstream.H" -#include "wordList.H" -#include "stringList.H" -#include "fileNameList.H" -#include "clock.H" -#include "OSspecific.H" -#include "Pstream.H" -#include "HashSet.H" - -// FoamX header files. -#include "ICaseBrowserImpl.H" -#include "IPropertiesImpl.H" -#include "LogEntry.H" -#include "NameServer.H" -#include "DictionaryWriter.H" -#include "Orb.H" -#include "Paths.H" -#include "instantList.H" -#include "Time.H" -#include "Time.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ICaseBrowserImpl::ICaseBrowserImpl -( - Orb& orb, - const stringList& args -) -: - hostContext_(hostName()), - objectName_(hostName()/"FoamXCaseBrowser"), - orb_(orb), - args_(args), - hostBrowser_(NULL), - foamProperties_(NULL), - procControl_(dotFoam("apps/FoamX/FoamX.cfg")) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::ICaseBrowserImpl(Orb& orb)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Create the Foam system properties object. - // Allow application class authoring. - foamProperties_ = new IPropertiesImpl(false); - if (foamProperties_ == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Foam system properties object", - functionName, - __FILE__, __LINE__ - ); - } - - // Connect to the naming service. - NameServer fxNameServer(orb_.orbPtr_); - - // First get reference to hostBrowser - // Host browser should have registered itself with the name server - // under a "FoamXHostBrowser" key. - fileName hostBrowserKey = "FoamXHostBrowser"; - - if (fxNameServer.isObjectBound(hostBrowserKey)) - { - // Return server reference. - hostBrowser_ = - fxNameServer.resolve - (hostBrowserKey); - } - else - { - throw FoamXError - ( - E_FAIL, - "Hostbrowser '" + hostBrowserKey - + "' not found on name server. " - "getServerReference call timed out", - functionName, - __FILE__, __LINE__ - ); - } - - // Register myself with the naming service. - - // Do not fail if context already exists. - fxNameServer.createContext(hostContext_, false); - - // Bind object under key hostName/CaseBrowser. - FoamXServer::CaseBrowser::ICaseBrowser_var browserRef = _this(); - - // Throw exception if already bound. - fxNameServer.bindObject(objectName_, browserRef, false); - - // Decrement the reference count of the object implementation, so - // that it will be properly cleaned up when the POA has determined - // that it is no longer needed. - _remove_ref(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ICaseBrowserImpl::~ICaseBrowserImpl() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::~ICaseBrowserImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::CaseServer::IFoamProperties_ptr -FoamX::ICaseBrowserImpl::foamProperties() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::foamProperties()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return a reference to the Foam System Properties object. - IFoamProperties_ptr pFoamProperties = IFoamProperties::_nil(); - - if (foamProperties_ != NULL) - { - pFoamProperties = foamProperties_->_this(); - } - - return pFoamProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::CaseDescriptorList* FoamX::ICaseBrowserImpl::cases() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::cases()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - CaseDescriptorList* caseListPtr = new CaseDescriptorList(); - caseListPtr->length(cases_.size()); - - label i = 0; - for - ( - Foam::HashPtrTable::iterator - iter = cases_.begin(); - iter != cases_.end(); - ++iter - ) - { - (*caseListPtr)[i++] = *iter(); - } - - return caseListPtr; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::JobDescriptorList* FoamX::ICaseBrowserImpl::runningJobs() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::runningJobs()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - JobDescriptorList* jobListPtr = new JobDescriptorList(); - jobListPtr->length(runningJobs_.size()); - - label i = 0; - for - ( - JobHashTable::iterator iter = runningJobs_.begin(); - iter != runningJobs_.end(); - ++iter - ) - { - (*jobListPtr)[i++] = *iter(); - } - - return jobListPtr; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::JobDescriptorList* FoamX::ICaseBrowserImpl::finishedJobs() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::finishedJobs()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - JobDescriptorList* jobListPtr = new JobDescriptorList(); - jobListPtr->length(finishedJobs_.size()); - - label i = 0; - for - ( - JobHashTable::iterator - iter = finishedJobs_.begin(); - iter != finishedJobs_.end(); - ++iter - ) - { - (*jobListPtr)[i++] = *iter(); - } - - return jobListPtr; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::getEnv -( - const char* envName, - CORBA::String_out enval -) -{ - enval = CORBA::string_dup(Foam::getEnv(envName).c_str()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::getHostName -( - CORBA::String_out hostName -) -{ - hostName = CORBA::string_dup(Foam::hostName().c_str()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::getUserName -( - CORBA::String_out userName -) -{ - userName = CORBA::string_dup(Foam::userName().c_str()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::ICaseBrowserImpl::fileModificationDate -( - const char* fName -) -{ - if (exists(fName)) - { - return label(lastModified(fName)); - } - else - { - //mj. Ugly. Let's hope not many dates with time_t==0 - return 0; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::readFile -( - const char* fName, - CORBA::String_out contents -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::readFile" - "(const char* fName, CORBA::String_out contents)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName ffName = fName; - - log << "File = " << ffName << endl; - - // If file exists, return its contents. - if (exists(ffName)) - { - IFstream ifFile(ffName); - - if (ifFile) - { - OStringStream fileString; - - char ch; - while (ifFile.get(ch)) - { - fileString << ch; - } - - // Must duplicate string to return. - contents = CORBA::string_dup(fileString.str().c_str()); - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to read file '" + ffName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to open file '" + ffName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::writeFile -( - const char* fName, - const char* contents -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::writeFile" - "(const char* fName, const char* contents)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName ffName = fName; - - log << "File = " << ffName << endl; - - // Check if file already exists, and if so move to .bak - if (file(ffName)) - { - mv(ffName, ffName + ".bak"); - } - - // Make sure path exists. - if (!dir(ffName.path()) && !mkDir(ffName.path())) - { - throw FoamXError - ( - E_FAIL, - "Failed to create directory '" + ffName.path() + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Write file contents. - OFstream ofFile(ffName); - if (ofFile) - { - ofFile << contents; - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to write file '" + ffName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::ICaseBrowserImpl::invokeUtility -( - const char* hostName, - const char* utilityName, - const FoamXServer::StringList& arguments, - const char* logName, - CORBA::Boolean background -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::invokeUtility" - "(const char* hostName, const char* utilityName, " - "const FoamXServer::StringList& arguments, const char* logName" - "CORBA::Boolean background)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - pid_t pid = -1; - - try - { - log << "Invoking utility " << utilityName << endl; - - stringList args(arguments.length() + 1); - - - // Convert args to Foam type and add application - unsigned int argi = 0; - - args[argi++] = utilityName; - for (unsigned int i = 0; i (arguments[i]); - } - - if (hostName == Foam::hostName()) - { - // Running on same host. - pid = ProcessControl::fork(args, logName); - - if (!background && pid > 0) - { - // Wait for process to finish. - ProcessControl::waitpid(pid); - } - } - else - { - // Running on different host. No easy way of obtaining pid so - // use plain system. - - int err = procControl_.system - ( - procControl_.remoteShellArgs - ( - userName(), - hostName, - args, - string(logName), - background - ), - background ? procControl_.timeOut() : 0 - ); - - if (err != 0) - { - string msg("Error executing utility "); - msg += utilityName; - - if (err == ProcessControl::TIMEDOUT) - { - // Timeout will only occur if running in foreground. - // (something seriously wrong if spawn does not work in - // timeout) - msg += - "\nHost " - + string(hostName) - + " can not be reached (timeout)."; - - if (!background) - { - throw FoamXSYSError - ( - E_FAIL, - msg, - hostName, - functionName, - __FILE__, __LINE__ - ); - } - } - if (err == -1) - { - msg += "\nCall to system() returned -1"; - } - else if (err == 127) - { - msg += "\nCall to system() returned 127"; - } - else - { - msg += - "\nThe utility exited with error code " - + name(err); - } - - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - } - } - CATCH_ALL(functionName); - - return pid; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::openCase -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::openCase" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - caseIsInError(caseDesc); - - fileName expandedRootDir = fileName(caseDesc.rootDir).expand(); - fileName caseDir = expandedRootDir/fileName(caseDesc.caseName); - fileName caseFileName = caseDir/"system/controlDict"; - fileName lockFileName = caseDir/".fxLock"; - - if - ( - orb_.isObjectBound - ( - caseServerKey(caseDesc.rootDir, caseDesc.caseName) - ) - ) - { - throw FoamXError - ( - E_FAIL, - "Case " + caseDir - + " is already registered with nameserver", - functionName, - __FILE__, __LINE__ - ); - } - - // Check that the control dictionary exists. - if (!exists(caseFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary not found at '" + caseFileName + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // See if this case is being pre-processed by someone - // (or something?) else. - if (exists(lockFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case " + caseDir + " locked", - functionName, - __FILE__, __LINE__ - ); - } - - // Everything is pucker so run the case server process. - log << "Spawning CaseServer process to open the case " - << caseDir << endl; - - stringList serverArgs(args_.size() + 3); - label argI = 0; - - serverArgs[argI++] = "FoamXCaseServer"; - - // Pass through caseBrowser args - for(label i = 1; i < args_.size(); i++) - { - serverArgs[argI++] = args_[i]; - } - serverArgs[argI++] = - "-case " + expandedRootDir/fileName(caseDesc.caseName); - serverArgs[argI++] = "-open"; - serverArgs[argI++] = "&"; - - if (procControl_.system(serverArgs, procControl_.timeOut()) != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing CaseServer process", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::openCasePost -( - const FoamXServer::CaseDescriptor& caseDesc, - const CORBA::Long nProcs -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::openCasePost" - "(const FoamXServer::CaseDescriptor& caseDesc," - " const CORBA::Long nProcs)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName expandedRootDir = fileName(caseDesc.rootDir).expand(); - fileName caseDir = expandedRootDir/fileName(caseDesc.caseName); - fileName caseFileName = caseDir/"system/controlDict"; - fileName lockFileName = caseDir/".fxLock"; - - // Check that the control dictionary exists. - if (!exists(caseFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary not found at '" + caseFileName + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Everything is pucker so run the case server process. - log << "Spawning CasePostServer process to postprocess the case " - << caseDir << endl; - - stringList serverArgs; - - label argI = 0; - - if (nProcs == 1) - { - serverArgs.setSize(args_.size() + 3); - } - else - { - serverArgs.setSize(args_.size() + 5); - serverArgs[argI++] = "foamJob"; - serverArgs[argI++] = "-ofd"; - } - - serverArgs[argI++] = "FoamXCasePostServer"; - - // Pass through caseBrowser args - for(label i = 1; i < args_.size(); i++) - { - serverArgs[argI++] = args_[i]; - } - - serverArgs[argI++] = - "-case " + expandedRootDir/fileName(caseDesc.caseName); - serverArgs[argI++] = "-post"; - serverArgs[argI++] = "&"; - - Info<< "Spawning:" << serverArgs << endl; - - if (procControl_.system(serverArgs, procControl_.timeOut()) != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing CasePostServer process", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::newCase -( - const char* rootDir, - const char* caseName, - const char* app -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::newCase" - "(const char* rootDir, const char* caseName, const char* app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName expandedRootDir = fileName(rootDir).expand(); - fileName caseDir = expandedRootDir/caseName; - fileName caseFileName = caseDir/"system/controlDict"; - fileName lockFileName = caseDir/".fxLock"; - - if (orb_.isObjectBound(caseServerKey(rootDir, caseName))) - { - throw FoamXError - ( - E_FAIL, - "Case " + caseDir + " is already registered with nameserver", - functionName, - __FILE__, __LINE__ - ); - } - - // Check that the control dictionary doesn't exist. - if (dir(caseDir)) - { - throw FoamXError - ( - E_FAIL, - "Directory already exists at '" - + caseDir + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Everything is pucker so run the case server process. - log << "Spawning CaseServer process to create the case " - << caseDir << " for application " << app << endl; - - stringList serverArgs(args_.size() + 4); - - label argI = 0; - - serverArgs[argI++] = "FoamXCaseServer"; - - // Pass through caseBrowser args - for(label i = 1; i < args_.size(); i++) - { - serverArgs[argI++] = args_[i]; - } - - serverArgs[argI++] = "-case " + expandedRootDir/fileName(caseName); - serverArgs[argI++] = "-create"; - serverArgs[argI++] = app; - serverArgs[argI++] = "&"; - - if (procControl_.system(serverArgs, procControl_.timeOut()) != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing CaseServer process", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::importCase -( - const char* rootDir, - const char* caseName, - const char* app -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::importCase" - "(const char* rootDir, const char* caseName, const char* app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName expandedRootDir = fileName(rootDir).expand(); - fileName caseDir = expandedRootDir/caseName; - fileName caseFileName = caseDir/"system/controlDict"; - fileName lockFileName = caseDir/".fxLock"; - - if - ( - orb_.isObjectBound - ( - caseServerKey(rootDir, caseName) - ) - ) - { - throw FoamXError - ( - E_FAIL, - "Case " + caseDir + " is already registered with nameserver", - functionName, - __FILE__, __LINE__ - ); - } - - // Check that the control dictionary exists. - if (!exists(caseFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary not found at '" + caseFileName + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // See if this is being pre-processed by someone (or something?) else. - if (exists(lockFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case locked", - functionName, - __FILE__, __LINE__ - ); - } - - // Everything is pucker so run the case server process. - log << "Spawning CaseServer process to import the case " - << caseDir << " for application " << app << endl; - - stringList serverArgs(args_.size() + 4); - - label argI = 0; - - serverArgs[argI++] = "FoamXCaseServer"; - - // Pass through caseBrowser args - for(label i = 1; i < args_.size(); i++) - { - serverArgs[argI++] = args_[i]; - } - - serverArgs[argI++] = "-case " + expandedRootDir/fileName(caseName); - serverArgs[argI++] = "-import"; - serverArgs[argI++] = app; - serverArgs[argI++] = "&"; - - if (procControl_.system(serverArgs, procControl_.timeOut()) != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing CaseServer process", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::deleteCase -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::deleteCase" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName expandedRootDir = fileName(caseDesc.rootDir).expand(); - fileName caseDir = expandedRootDir/fileName(caseDesc.caseName); - fileName caseFileName = caseDir/"system/controlDict"; - fileName lockFileName = caseDir/".fxLock"; - - // Check that the control dictionary exists. - if (!exists(caseDir)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary not found at '" + caseDir + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // See if this is being pre-processed by someone (or something?) else. - if (exists(lockFileName)) - { - throw FoamXError - ( - E_FAIL, - "Case locked", - functionName, - __FILE__, __LINE__ - ); - } - - log << "Deleting case " << caseDir << endl; - - // Delete all the case dictionaries and data files. - rmDir(caseDir); - - // Remove case from list. - Foam::HashPtrTable::iterator - iter = cases_.find(caseDir); - - if (iter != cases_.end()) - { - cases_.erase(iter); - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot remove case " + caseDir + " from case list", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::cloneCase -( - const FoamXServer::CaseDescriptor& caseDesc, - const char* newRootDir, - const char* newCaseName, - const char* newAppClassName, - const char* timeSel -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::cloneCase" - "(const FoamXServer::CaseDescriptor& caseDesc," - " const char* newRootDir, const char* newCaseName," - " const char* newAppClassName, const char* timeSel)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName expandedRootDir = fileName(caseDesc.rootDir).expand(); - fileName caseDir = expandedRootDir/fileName(caseDesc.caseName); - fileName caseFileName = caseDir/"system/controlDict"; - fileName expandedNewRootDir = fileName(newRootDir).expand(); - fileName newCaseDir = expandedNewRootDir/newCaseName; - - // Check that the source control dictionary exists. - if (!exists(caseFileName)) - { - throw FoamXError - ( - E_FAIL, - "Source case control dictionary not found at '" - + caseFileName + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Check that the source and destination cases aren't the same. - if (caseDir == newCaseDir) - { - throw FoamXError - ( - E_FAIL, - "Invalid destination case name", - functionName, - __FILE__, __LINE__ - ); - } - - // Check that the destination case does not yet exist. - if (exists(newCaseDir)) - { - throw FoamXError - ( - E_FAIL, - "Destination directory '" - + newCaseDir - + "' already exists", - functionName, - __FILE__, __LINE__ - ); - } - - log << "Copying case " << caseDir << " to "<< newCaseDir << endl; - - if - ( - !mkDir(newCaseDir) - || !cp(caseDir/"system", newCaseDir) - || !cp(caseDir/"constant", newCaseDir) - ) - { - throw FoamXError - ( - E_FAIL, - "Could not copy system and/or constant directory to '" - + newCaseDir, - functionName, - __FILE__, __LINE__ - ); - } - - instantList times(Time::findTimes(caseDir)); - - label firstTimeI = 0; - label lastTimeI = -1; - - word timeSelMode(timeSel); - - if (timeSelMode == "latestTime") - { - firstTimeI = times.size() - 1; - lastTimeI = firstTimeI; - } - else if (timeSelMode == "firstTime") - { - firstTimeI = 0; - lastTimeI = firstTimeI; - } - else if (timeSelMode == "noTime") - { - firstTimeI = labelMax; - lastTimeI = labelMin; - } - else if (timeSelMode == "allTime") - { - firstTimeI = 0; - lastTimeI = times.size() - 1; - } - else - { - throw FoamXError - ( - E_FAIL, - "Illegal time selection " - + timeSelMode, - functionName, - __FILE__, __LINE__ - ); - } - - for - ( - label timeI = firstTimeI; - (timeI <= lastTimeI) && (timeI < times.size()); - timeI++ - ) - { - log << "Copying time directory " - << caseDir/times[timeI].name() << endl; - - if (!cp(caseDir/times[timeI].name(), newCaseDir)) - { - throw FoamXError - ( - E_FAIL, - "Could not copy time directory '" - + caseDir/times[timeI].name() - + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - - // Create a temporary foam database. - Time db(Time::controlDictName, newRootDir, newCaseName); - - // Read controlDict, change application and save - IOdictionary controlDict - ( - IOobject - ( - Time::controlDictName, - db.system(), - db, - IOobject::MUST_READ, - IOobject::NO_WRITE - ) - ); - - if - ( - !controlDict.remove("application") - && !controlDict.remove("applicationClass") - ) - { - throw FoamXIOError - ( - "Could not find application entry in controlDict", - controlDict.name(), - controlDict.startLineNumber(), - controlDict.endLineNumber(), - functionName, - __FILE__, __LINE__ - ); - } - - controlDict.add("application", newAppClassName); - - if (!controlDict.regIOobject::write()) - { - throw FoamXError - ( - E_FAIL, - "Could not write controlDict '" - + controlDict.path() - + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Add the new case to the case list - addCase - ( - expandedNewRootDir.c_str(), - newRootDir, - newCaseName, - newAppClassName - ); - - // Unlock the new case if it is locked - unlockCase(expandedNewRootDir.c_str(), newCaseName); - - // TODO : Change the root header entry in all case dictionaries. - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseBrowserImpl::caseLocked -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::caseLocked" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // See if this is being pre-processed by someone (or something?) else. - fileName lockFileName = - fileName(caseDesc.rootDir).expand()/fileName(caseDesc.caseName) - /".fxLock"; - - return exists(lockFileName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::unlockCase -( - const char* rootDir, - const char* caseName -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::unlockCase" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName caseDir = fileName(rootDir)/caseName; - fileName lockFileName = caseDir/".fxLock"; - - log << "Unlocking case " << caseDir << endl; - - if (exists(lockFileName)) - { - rm(lockFileName); - } - - Foam::HashPtrTable::iterator - iter = cases_.find(caseDir); - - if (iter != cases_.end()) - { - iter()->locked = false; - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot unlock case " + caseDir + ", not in case list", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::unlockCaseDescriptor -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::unlockCase" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - unlockCase(caseDesc.rootDir, caseDesc.caseName); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::CaseDescriptor* FoamX::ICaseBrowserImpl::caseDescriptor -( - const fileName& rootDir, - const fileName& rawRootDir, - const fileName& caseName -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::caseDescriptor" - "(const fileName& rootDir, const fileName& rawRootDir, " - "const fileName& caseName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName caseDir = fileName(rootDir)/fileName(caseName); - - try - { - log << "Considering case " << caseDir << endl; - - CaseDescriptor* caseDescPtr = new FoamXServer::CaseDescriptor(); - - if (caseDescPtr == NULL) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to create case descriptor for case '" + caseDir, - functionName, - __FILE__, __LINE__ - ); - } - - CaseDescriptor& caseDesc = *caseDescPtr; - - // Fill the caseDescriptor - caseDesc.rootDir = rootDir.c_str(); - caseDesc.rawRootDir = rawRootDir.c_str(); - caseDesc.caseName = caseName.c_str(); - caseDesc.app = ""; - - - // Get number of processors - label nProcs = 0; - while(exists(fileName(caseDir/"processor" + name(nProcs)))) - { - nProcs++; - } - if (nProcs == 0) - { - nProcs = 1; - } - caseDesc.nProcs = nProcs; - - - fileName lockFile = caseDir/".fxLock"; - - // See if this case is locked by another user. - caseDesc.locked = exists(lockFile); - - // Set the error state to false - caseDesc.error = false; - - // See if the lock file contains an error state - if (caseDesc.locked) - { - // Extract the IOR of the FoamX case server - IFstream lockFileStream(lockFile); - word ior(lockFileStream); - - if (ior == "FatalError") - { - //reThrow(lockFileStream); - caseDesc.error = true; - } - } - - // See if this is a FoamX managed case - // (ie, the application entry in the - // controlDict is defined). - fileName controlDictFileName = caseDir/"system/controlDict"; - - dictionary controlDict((IFstream(controlDictFileName)())); - - if (controlDict.found("application")) - { - caseDesc.managed = true; - word app = controlDict.lookup("application"); - caseDesc.app = app.c_str(); - } - else if (controlDict.found("applicationClass")) - { - caseDesc.managed = true; - word app = controlDict.lookup("applicationClass"); - caseDesc.app = app.c_str(); - } - - log << "Found case " << caseDir << endl; - - return caseDescPtr; - } - CATCH_ALL(functionName); - - return NULL; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::addCase -( - const char* rootDir, - const char* rawRootDir, - const char* caseName, - const char* appName -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::addCase" - "(const fileName& rootDir, const fileName& rawRootDir, " - "const fileName& caseName, const fileName& appName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName caseDir = fileName(rootDir)/fileName(caseName); - - log << "Adding case " << caseDir << endl; - - CaseDescriptor* caseDescPtr = new FoamXServer::CaseDescriptor(); - CaseDescriptor& caseDescriptor = *caseDescPtr; - - caseDescriptor.rootDir = rootDir; - caseDescriptor.rawRootDir = rawRootDir; - caseDescriptor.caseName = caseName; - caseDescriptor.app = appName; - caseDescriptor.managed = true; - caseDescriptor.locked = true; - caseDescriptor.error = false; - - if (!cases_.insert(caseDir, caseDescPtr)) - { - delete caseDescPtr; - caseDescPtr = NULL; - - throw FoamXError - ( - E_UNEXPECTED, - "Failed to add case '" + caseDir - + "' to case list. It is probably already in list", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::caseOpen -( - const char* rootDir, - const char* caseName -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::caseOpen" - "(const fileName& rootDir, const fileName& caseName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName caseDir = fileName(rootDir)/fileName(caseName); - - // Remove case from list. - Foam::HashPtrTable::iterator - iter = cases_.find(caseDir); - - if (iter != cases_.end()) - { - iter()->locked = true; - iter()->error = false; - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot find case " + caseDir + " in case list", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseBrowserImpl::isCaseInError -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::isCaseInError" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // See if this is being pre-processed by someone (or something?) else. - fileName lockFile = - fileName(caseDesc.rootDir).expand()/fileName(caseDesc.caseName) - /".fxLock"; - - // See if the lock file contains an error state - if (exists(lockFile)) - { - // Extract the IOR of the FoamX case server - IFstream lockFileStream(lockFile); - word ior(lockFileStream); - - if (ior == "FatalError") - { - reThrow(lockFileStream); - return true; - } - } - - return false; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::caseIsInError -( - const FoamXServer::CaseDescriptor& caseDesc -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::caseIsInError" - "(const FoamXServer::CaseDescriptor& caseDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName caseDir = - fileName(caseDesc.rootDir)/fileName(caseDesc.caseName); - - // Remove case from list. - Foam::HashPtrTable::iterator - iter = cases_.find(caseDir); - - if (iter != cases_.end()) - { - iter()->locked = true; - iter()->error = true; - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot find case " + caseDir + " in case list", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::refreshCaseList() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::refreshCaseList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Collect used roots - HashTable usedRoots; - - for - ( - Foam::HashPtrTable::iterator - iter = cases_.begin(); - iter != cases_.end(); - ++iter - ) - { - fileName fName(iter()->rootDir); - - if (!usedRoots.found(fName)) - { - usedRoots.insert(fName, fName); - } - } - - // Clear the existing list - cases_.clear(); - - forAll(usedRoots.toc(), rootI) - { - addToCaseList(usedRoots.toc()[rootI].c_str()); - } -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::addToCaseList(const char* dir) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::refreshCaseList(const char*)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Get case root list. - StringList_var rootDirs = foamProperties_->rootDirectories(); - StringList_var rawRootDirs = foamProperties_->rawRootDirectories(); - - // Loop over all case roots - unsigned int rootIndex = 0; - bool rootFound = false; - - for (unsigned int i = 0; i < rootDirs->length(); i++ ) - { - fileName storedRootDir(rootDirs[i]); - - if (exists(storedRootDir) && (storedRootDir == dir)) - { - rootFound = true; - rootIndex = i; - break; - } - } - if (!rootFound) - { - throw FoamXError - ( - E_FAIL, - "Cannot find root " + fileName(dir) + " in list of roots", - functionName, - __FILE__, __LINE__ - ); - } - - fileName rootDir(rootDirs[rootIndex]); - fileName rawRootDir(rawRootDirs[rootIndex]); - - // Get a list of directories under this root. - fileNameList caseDirs - ( - readDir(rootDir, fileName::DIRECTORY) - ); - - // Search each potential case for a control dictionary. - for (int nCaseDir = 0; nCaseDir < caseDirs.size(); nCaseDir++) - { - try - { - fileName controlDictFileName = - rootDir/caseDirs[nCaseDir]/"system/controlDict"; - - if (exists(controlDictFileName)) - { - CaseDescriptor* caseDescPtr = caseDescriptor - ( - rootDir, - fileName(rawRootDir), - caseDirs[nCaseDir] - ); - - if (caseDescPtr) - { - cases_.insert - ( - rootDir/caseDirs[nCaseDir], - caseDescPtr - ); - } - else - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to create caseDescriptor for case '" - + rootDir/caseDirs[nCaseDir] + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - } - catch (error& fErr) - { - log << fErr << " failed to open case " - << rootDir/caseDirs[nCaseDir] << endl; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::label FoamX::ICaseBrowserImpl::getEntry -( - const dictionary& dict, - const word& key, - const label defaultValue -) -{ - if (dict.found(key)) - { - return readLabel(dict[key]); - } - else - { - return defaultValue; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::string FoamX::ICaseBrowserImpl::getEntry -( - const dictionary& dict, - const word& key, - const string& defaultValue -) -{ - if (dict.found(key)) - { - return dict[key]; - } - else - { - return defaultValue; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::readJobs -( - JobHashTable& jobsList, - const fileName& dir, - const bool throwOnError -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::readJobs" - "(JobHashTable& jobsList, const fileName& dir)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Clear the existing list - jobsList.clear(); - - // Read the names of all the job files - fileNameList jobFiles = readDir(dir, fileName::FILE); - - forAll (jobFiles, i) - { - const fileName& jobFile = jobFiles[i]; - - try - { - if (size(dir/jobFile) > 0) - { - dictionary jobDict(IFstream(dir/jobFile)()); - - // Required entries - - JobDescriptor* jobDescPtr = new JobDescriptor(); - - string::size_type dotPos = - jobFile.find_last_of('.'); - - jobDescPtr->jobID.hostName = jobFile(0, dotPos).c_str(); - - jobDescPtr->jobID.processID = - atoi(jobFile(dotPos + 1, string::npos).c_str()); - - jobDescPtr->startDate = - getEntry(jobDict, "startDate", "").c_str(); - - jobDescPtr->startTime = - getEntry(jobDict, "startTime", "").c_str(); - - - // Cannot use getEntry since returns string which is - // invalid word. - word foamUser(""); - if (jobDict.found("userName")) - { - foamUser = word(jobDict["userName"]); - } - jobDescPtr->userName = foamUser.c_str(); - - word foamVersion("0.0"); - if (jobDict.found("foamVersion")) - { - foamVersion = token(jobDict["foamVersion"]).wordToken(); - } - jobDescPtr->foamVersion = foamVersion.c_str(); - - word foamCode(""); - if (jobDict.found("code")) - { - foamCode = word(jobDict["code"]); - } - jobDescPtr->code = foamCode.c_str(); - - jobDescPtr->argList = - getEntry(jobDict, "argList", "").c_str(); - - jobDescPtr->currentDir = - getEntry(jobDict, "currentDir", "").c_str(); - - jobDescPtr->pgid = - getEntry(jobDict, "PGID", 0); - - jobDescPtr->ppid = 0; - getEntry(jobDict, "PPID", 0); - - fileName root = - getEntry(jobDict, "root", ""); - - if ((root.size() > 0) && (root[0] != '/')) - { - jobDescPtr->rootDir = - ( - fileName(jobDescPtr->currentDir) - + "/" + root - ).c_str(); - } - else - { - jobDescPtr->rootDir = - root.c_str(); - } - - jobDescPtr->caseName = - getEntry(jobDict, "case", "").c_str(); - - jobDescPtr->nProcs = - getEntry(jobDict, "nProcs", 1); - - if (jobDict.found("slaves")) - { - wordList slaveJobs(jobDict.lookup("slaves")); - jobDescPtr->slaves.length(slaveJobs.size()); - - forAll(slaveJobs, i) - { - const word& sl = slaveJobs[i]; - - string::size_type dotPos = - sl.find_last_of('.'); - - jobDescPtr->slaves[i].hostName = - sl(0, dotPos).c_str(); - jobDescPtr->slaves[i].processID = - atoi(sl(dotPos + 1, string::npos).c_str()); - } - } - else - { - jobDescPtr->slaves.length(0); - } - - jobDescPtr->nCountedProcs = - getEntry(jobDict, "nCountedProcs", 0); - - if (jobDict.found("cpuTime")) - { - jobDescPtr->cpuTime = - readScalar(jobDict["cpuTime"]); - } - else - { - jobDescPtr->cpuTime = 0.0; - } - - jobDescPtr->endDate = - getEntry(jobDict, "endDate", "").c_str(); - - jobDescPtr->endTime = - getEntry(jobDict, "endTime", "").c_str(); - - jobDescPtr->status = JOB_UNDEFINED; - - if (jobDict.found("termination")) - { - word termination(jobDict.lookup("termination")); - - if (termination == "normal") - { - jobDescPtr->status = JOB_FINISHED; - } - else - { - jobDescPtr->status = JOB_ABORTED; - } - } - - jobsList.insert(jobDescPtr->jobID, jobDescPtr); - } - } - catch (...) - { - fileName fName(dir/jobFile); - - - if (throwOnError) - { - throw FoamXIOError - ( - "Error in job description file", - fName, - -1, -1, - functionName, - __FILE__, __LINE__ - ); - } - else - { - WarningIn(functionName) - << "Removing illegal jobInfo file " << fName - << endl; - - // Try removing jobInfo file (try since we might not own it) - rm(fName); - } - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::refreshJobsLists() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::refreshJobsLists()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!env("FOAM_JOB_DIR")) - { - throw FoamXError - ( - E_FAIL, - "Cannot get essential environment variable 'FOAM_JOB_DIR'", - functionName, - __FILE__, __LINE__ - ); - } - - fileName licenceDir = Foam::getEnv("FOAM_JOB_DIR"); - - // Throw error for illegal job entry files. Don't remove since might - // upset licensing. - readJobs(runningJobs_, licenceDir/"runningJobs", true); - // Remove any illegal job entry files - readJobs(finishedJobs_, licenceDir/"finishedJobs", false); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::checkRunningJobs() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::checkRunningJobs()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName licenceDir = Foam::getEnv("FOAM_JOB_DIR"); - - - // Get hashtable of all hosts running jobs - - HashSet machines; - - try - { - if (!env("FOAM_JOB_DIR")) - { - throw FoamXError - ( - E_FAIL, - "Cannot get essential environment variable 'FOAM_JOB_DIR'", - functionName, - __FILE__, __LINE__ - ); - } - - - for - ( - JobHashTable::const_iterator iter = runningJobs_.begin(); - iter != runningJobs_.end(); - ++iter - ) - { - machines.insert(word(iter.key().hostName)); - } - } - CATCH_ALL(functionName); - - - try - { - - // Run external utility foamProcessInfo to get processes running on - // hosts. It writes file (see processLogFileName below) which is gives - // for every process the status. - - stringList args(2); - args[0] = "foamProcessInfo"; - - - HashSet unLicensedMachines; - string unLicensedMsg = ""; - - for - ( - HashSet::const_iterator hostIter = machines.begin(); - hostIter != machines.end(); - ++hostIter - ) - { - const word& hostName = hostIter.key(); - - log << "Checking host " << hostName << endl; - - try - { - if (!hostBrowser_->isHostAlive(hostName.c_str())) - { - log << "Skipping non-accessible host " << hostName << endl; - continue; - } - } - catch (FoamXServer::FoamXError& fxErr) - { - log << "Non-licensed host " << hostName << endl; - - unLicensedMachines.insert(hostName); - - unLicensedMsg += hostName + " "; - - continue; - } - - fileName processLogFileName = - licenceDir/(userName() + '@' + hostName + ".log"); - - args[1] = processLogFileName; - - stringList systemArgs = procControl_.remoteShellArgs - ( - userName(), - hostName, - args, - "", - false - ); - int sysStatus = procControl_.system - ( - systemArgs, - procControl_.timeOut() - ); - - if (sysStatus == ProcessControl::TIMEDOUT) - { - string msg = - "Error executing " - + procControl_.commandString(systemArgs) - + "\nHost " + hostName + " can not be reached (timeout)."; - - // Tell Java that machine is non-accessible - throw FoamXSYSError - ( - E_FAIL, - msg, - hostName, - functionName, - __FILE__, __LINE__ - ); - } - else if (sysStatus != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing " - + procControl_.commandString(systemArgs), - functionName, - __FILE__, __LINE__ - ); - } - - IFstream processLogFile(processLogFileName); - - if (!processLogFile) - { - throw FoamXIOError - ( - "Error opening file", - processLogFileName, - -1, -1, - functionName, - __FILE__, __LINE__ - ); - } - - // Convert output from foamProcessInfo into hashtable - HashTable > processTable(processLogFile); - rm(processLogFileName); - - // Check for each process in runningJobs whether it is - // in the processLogFile - - for - ( - JobHashTable::iterator jobIter = runningJobs_.begin(); - jobIter != runningJobs_.end(); - ++jobIter - ) - { - if (word(jobIter.key().hostName) == hostName) - { - // See if this process is mentioned in the processTable - - HashTable >::const_iterator - processFnd = processTable.find(jobIter.key().processID); - - if (processFnd != processTable.end()) - { - const word& status = processFnd(); - - if (status == "RUNN") - { - // Preserve 'ending' status - if (jobIter()->status != JOB_STOPPING) - { - jobIter()->status = JOB_RUNNING; - } - } - else if (status == "SUSP") - { - jobIter()->status = JOB_SUSPENDED; - } - else if (status == "OTHR") - { - jobIter()->status = JOB_UNDEFINED; - } - else - { - - throw FoamXIOError - ( - "Unknown job status " + status + " in file ", - processLogFileName, - -1, -1, - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - jobIter()->status = JOB_ABORTED; - } - } - } - } - if (unLicensedMachines.size() > 0) - { - // Purge runningJobs entries belonging to unlicensed hosts. - for - ( - JobHashTable::iterator jobIter = runningJobs_.begin(); - jobIter != runningJobs_.end(); - ++jobIter - ) - { - if (unLicensedMachines.found(word(jobIter.key().hostName))) - { - jobIter()->status = JOB_ABORTED; - } - } - purgeRunningJobs(); - - string msg = - "Detected unlicensed hosts\n" - + unLicensedMsg - + "\nPurged jobs from runningJobs/."; - - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::purgeRunningJobs() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::purgeRunningJobs()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!env("FOAM_JOB_DIR")) - { - throw FoamXError - ( - E_FAIL, - "Cannot get essential environment variable 'FOAM_JOB_DIR'", - functionName, - __FILE__, __LINE__ - ); - } - - fileName licenceDir = Foam::getEnv("FOAM_JOB_DIR"); - fileName runningJobsDir = licenceDir/"runningJobs"; - fileName finishedJobsDir = licenceDir/"finishedJobs"; - - // 1. Mark jobs to be removed. Cannot remove from runningJobs here since - // we're looping over it. - DynamicList toBeRemoved; - - for - ( - JobHashTable::const_iterator iter = runningJobs_.begin(); - iter != runningJobs_.end(); - ++iter - ) - { - if (iter()->status == JOB_ABORTED || iter()->status == JOB_FINISHED) - { - toBeRemoved.append(iter.key()); - } - } - - // 2. Actually remove - forAll(toBeRemoved, i) - { - const JobID& jobID = toBeRemoved[i]; - - // Remove any identically named entries in finishedJobs (if any) - JobHashTable::iterator finishFnd = finishedJobs_.find(jobID); - - if (finishFnd != finishedJobs_.end()) - { - finishedJobs_.erase(finishFnd); - } - - // Transfer jobId from runningJobs to finishedJobs - JobHashTable::iterator runFnd = runningJobs_.find(jobID); - - if (runFnd != runningJobs_.end()) - { - finishedJobs_.insert(jobID, runningJobs_.remove(runFnd)); - } - - fileName jobFileName = - word(jobID.hostName) - + '.' - + name(jobID.processID); - - if (exists(runningJobsDir/jobFileName)) - { - mv(runningJobsDir/jobFileName, finishedJobsDir); - } - } - - // 3. Remove zero sized files - fileNameList jobFiles = readDir(runningJobsDir, fileName::FILE); - - forAll (jobFiles, i) - { - fileName jobFileName = runningJobsDir/jobFiles[i]; - - if (size(jobFileName) == 0) - { - rm(jobFileName); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::purgeFinishedJob(const FoamXServer::JobID& jobID) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::purgeFinishedJob(const FoamXServer::JobID&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!env("FOAM_JOB_DIR")) - { - throw FoamXError - ( - E_FAIL, - "Cannot get essential environment variable 'FOAM_JOB_DIR'", - functionName, - __FILE__, __LINE__ - ); - } - - fileName finishedJobsDir = Foam::getEnv("FOAM_JOB_DIR")/"finishedJobs"; - - fileName jobFileName = - finishedJobsDir - /(word(jobID.hostName) + '.' + name(jobID.processID)); - - rm(jobFileName); - - JobHashTable::iterator finishFnd = finishedJobs_.find(jobID); - - if (finishFnd != finishedJobs_.end()) - { - finishedJobs_.erase(finishFnd); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::purgeFinishedJobs(CORBA::Long nDays) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::purgeFinishedJobs(CORBA::Long nDays)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!env("FOAM_JOB_DIR")) - { - throw FoamXError - ( - E_FAIL, - "Cannot get essential environment variable 'FOAM_JOB_DIR'", - functionName, - __FILE__, __LINE__ - ); - } - - fileName finishedJobsDir = Foam::getEnv("FOAM_JOB_DIR")/"finishedJobs"; - fileName runningJobsDir = Foam::getEnv("FOAM_JOB_DIR")/"runningJobs"; - - // Current time to compare against file modification time. - time_t now = Foam::clock::getTime(); - - // 1. Mark jobs to be removed. Cannot remove from finishedJobs here - // since we're looping over it. - DynamicList toBeRemoved; - - for - ( - JobHashTable::const_iterator iter = finishedJobs_.begin(); - iter != finishedJobs_.end(); - ++iter - ) - { - fileName jobName = - word(iter.key().hostName) - + '.' - + name(iter.key().processID); - - - fileName jobFileName = finishedJobsDir/jobName; - - if (exists(jobFileName)) - { - if (size(jobFileName) > 0) - { - if ((now - lastModified(jobFileName))/86400 > nDays) - { - // File older than nDays days - rm(jobFileName); - toBeRemoved.append(iter.key()); - } - else - { - //keep file - } - } - else - { - // Zero sized file. Keep if has runningJobs equivalence - if (!exists(runningJobsDir/jobName)) - { - rm(jobFileName); - toBeRemoved.append(iter.key()); - } - } - } - else - { - // Does not exist in finishedJobs anymore - toBeRemoved.append(iter.key()); - } - } - - - // 2. Actually remove - forAll(toBeRemoved, i) - { - JobHashTable::iterator finishFnd = - finishedJobs_.find(toBeRemoved[i]); - - if (finishFnd != finishedJobs_.end()) - { - finishedJobs_.erase(finishFnd); - } - } - - // 3. Zero size files not in finishedJobs - fileNameList jobFiles = readDir(finishedJobsDir, fileName::FILE); - - forAll (jobFiles, i) - { - fileName jobFileName = finishedJobsDir/jobFiles[i]; - - if (size(jobFileName) == 0) - { - // Zero sized file. Keep if has runningJobs equivalence - if (!exists(runningJobsDir/jobFiles[i])) - { - rm(jobFileName); - } - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::kill(const JobID& jobID) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::kill(const JobID&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - int retVal = procControl_.kill(word(jobID.hostName), jobID.processID); - - if (retVal == ProcessControl::TIMEDOUT) - { - string msg = - "Error killing job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID) - + "\nHost " + word(jobID.hostName) - + " can not be reached (timeout)."; - - throw FoamXSYSError - ( - E_FAIL, - msg, - word(jobID.hostName), - functionName, - __FILE__, __LINE__ - ); - } - else if (retVal == -1) - { - throw FoamXError - ( - E_FAIL, - "Error killing job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID), - functionName, - __FILE__, __LINE__ - ); - } - else - { - JobHashTable::iterator iter = runningJobs_.find(jobID); - - if (iter != runningJobs_.end()) - { - // Note: make copy of key. Needed because key gets destroyed - // in remove below. - JobID job(iter.key()); - - iter()->status = JOB_ABORTED; - - // Remove from finishedJobs if already present - JobHashTable::iterator finishFnd = finishedJobs_.find(jobID); - - if (finishFnd != finishedJobs_.end()) - { - finishedJobs_.erase(finishFnd); - } - - // Transfer from runningJobs to finishedJobs. - finishedJobs_.insert(job, runningJobs_.remove(iter)); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::suspend(const JobID& jobID) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::suspend(const JobID&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - int retVal = procControl_.suspend - ( - word(jobID.hostName), - jobID.processID - ); - if (retVal == ProcessControl::TIMEDOUT) - { - string msg = - "Error killing job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID) - + "\nHost " + word(jobID.hostName) - + " can not be reached (timeout)."; - - throw FoamXSYSError - ( - E_FAIL, - msg, - word(jobID.hostName), - functionName, - __FILE__, __LINE__ - ); - } - else if (retVal == -1) - { - throw FoamXError - ( - E_FAIL, - "Error suspending job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID), - functionName, - __FILE__, __LINE__ - ); - } - else - { - JobHashTable::iterator iter = runningJobs_.find(jobID); - - if (iter != runningJobs_.end()) - { - iter()->status = JOB_SUSPENDED; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::cont(const JobID& jobID) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::cont(const JobID&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - int retVal = procControl_.cont(word(jobID.hostName), jobID.processID); - - if (retVal == ProcessControl::TIMEDOUT) - { - string msg = - "Error killing job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID) - + "\nHost " + word(jobID.hostName) - + " can not be reached (timeout)."; - - throw FoamXSYSError - ( - E_FAIL, - msg, - word(jobID.hostName), - functionName, - __FILE__, __LINE__ - ); - } - if (retVal == -1) - { - throw FoamXError - ( - E_FAIL, - "Error continuing job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID), - functionName, - __FILE__, __LINE__ - ); - } - else - { - JobHashTable::iterator iter = runningJobs_.find(jobID); - - if (iter != runningJobs_.end()) - { - iter()->status = JOB_RUNNING; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::end -( - const JobID& jobID, - const char* rootDir, - const char* caseName, - const CORBA::Boolean now -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::end" - "(const JobID&, const char*, const char*, CORBA::Boolean)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - int argsLen = 3; - - if (now) - { - argsLen = 4; - } - - stringList args(argsLen); - - int argi = 0; - - args[argi++] = "foamEndJob"; - if (now) - { - args[argi++] = "-n"; - } - args[argi++] = "-case " + fileName(rootDir)/fileName(caseName); - args[argi++] = name(jobID.processID); - - stringList systemArgs = procControl_.remoteShellArgs - ( - userName(), - word(jobID.hostName), - args, - "", - true - ); - - int sysStatus = procControl_.system - ( - systemArgs, - procControl_.timeOut() - ); - - if (sysStatus == ProcessControl::TIMEDOUT) - { - string msg = - "Error executing " - + procControl_.commandString(systemArgs) - + "\nHost " + word(jobID.hostName) - + " can not be reached (timeout)."; - - throw FoamXSYSError - ( - E_FAIL, - msg, - word(jobID.hostName), - functionName, - __FILE__, __LINE__ - ); - } - else if (sysStatus != 0) - { - throw FoamXError - ( - E_FAIL, - "Error executing " - + procControl_.commandString(systemArgs), - functionName, - __FILE__, __LINE__ - ); - } - else - { - JobHashTable::iterator iter = runningJobs_.find(jobID); - - if (iter != runningJobs_.end()) - { - iter()->status = JOB_STOPPING; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::setStatus -( - const FoamXServer::JobID& jobID, - FoamXServer::JobStatus jobStatus -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::setStatus" - "(const FoamXServer::JobID&, FoamXServer::JobStatus)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - JobHashTable::iterator iter = runningJobs_.find(jobID); - - if (iter != runningJobs_.end()) - { - iter()->status = jobStatus; - } - else - { - throw FoamXError - ( - E_FAIL, - "Error setting status for job on " + word(jobID.hostName) - + " with PID " + name(jobID.processID) - + ", job not in runningJobs list.", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::close() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::close()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Release Foam System Properties object. - if (foamProperties_ != NULL) - { - foamProperties_->_remove_ref(); - } - - // Unregister object from name server. - NameServer fxNameServer(orb_.orbPtr_); - fxNameServer.unbindObject(objectName_); - - fxNameServer.removeContext(hostContext_); - - // Explicit disconnect (before orb shutdown) - fxNameServer.disconnect(); - - // Shutdown th'Orb. - // Removed because it screws-up Java 1.4 CORBA connection - orb_.orbPtr_->shutdown(false); // Do not wait for completion. - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::validate() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseBrowserImpl::save() -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::save()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Get the properties object to save the user properties. - foamProperties_->saveUserProperties(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::fileName FoamX::ICaseBrowserImpl::caseServerKey -( - const char* rootDir, - const char* caseName -) -{ - return hostName()/userName()/fileName(rootDir)/caseName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseBrowserImpl::getCaseServerReference -( - const char* rootDir, - const char* caseName, - FoamXServer::CaseServer::ICaseServer_out caseObj -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::getCaseServerReference" - "(const char* rootDir, const char* caseName, " - "FoamXServer::CaseServer::ICaseServer_out caseObj)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName lockFile = fileName(rootDir)/fileName(caseName)/".fxLock"; - - if (exists(lockFile)) - { - // Extract the IOR of the FoamX case server process. - IFstream lockFileStream(lockFile); - word ior(lockFileStream); - - if (ior == "FatalError") - { - reThrow(lockFileStream); - } - - log << "IOR : " << ior << endl; - - CORBA::Object_var obj = orb_.orbPtr_->string_to_object(ior.c_str()); - ICaseServer_var ref = ICaseServer::_narrow(obj); - - if (CORBA::is_nil(ref)) - { - throw FoamXError - ( - E_FAIL, - "Can't get narrow reference to type ICaseServer " - "(or it was nil)", - functionName, - __FILE__, __LINE__ - ); - } - - // Return reference to the case server object. - caseObj = ICaseServer::_duplicate(ref); - - return true; - } - else - { - return false; - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseBrowserImpl::getCasePostServerReference -( - const char* rootDir, - const char* caseName, - CORBA::Long nProcs, - FoamXServer::CasePostServer::ICasePostServer_out caseObj -) -{ - static const char* functionName = - "FoamX::ICaseBrowserImpl::getCasePostServerReference" - "(const char* rootDir, const char* caseName, CORBA::Long nProcs, " - "FoamXServer::CasePostServer::ICasePostServer_out caseObj)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - if (nProcs == 0) - { - nProcs = 1; - } - fileNameList serverKeys(nProcs); - - serverKeys[0] = - "FoamXCasePostServer"/userName() - /string::validate(rootDir)/caseName; - - for(label procIndex = 1; procIndex < nProcs; procIndex++) - { - serverKeys[procIndex] = - "FoamXCasePostServer"/userName()/string::validate(rootDir) - / word(caseName/("processor" + name(procIndex))); - } - - try - { - // Connect to name server. - NameServer fxNameServer(orb_.orbPtr_); - - string procLabel = '[' + word(name(Pstream::myProcNo())) + "]-"; - - // See if all processors bound - forAll(serverKeys, keyI) - { - if (!fxNameServer.isObjectBound(serverKeys[keyI])) - { - Pout<< serverKeys[keyI] - << " not yet resolved." << endl; - - return false; - } - } - - // Resolve and return master - caseObj = - fxNameServer.resolve - ( - serverKeys[0] - ); - - return true; - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.H deleted file mode 100644 index a986ed70a4..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/ICaseBrowserImpl.H +++ /dev/null @@ -1,396 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ICaseServerImpl - -Description - -SourceFiles - ICaseBrowserImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef ICaseBrowserImpl_H -#define ICaseBrowserImpl_H - -// Foam header files. -#include "fileName.H" -#include "HashPtrTable.H" -#include "long.H" -#include "stringList.H" - -// FoamX header files. -#include "FoamX.H" -#include "ProcessControl.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - inline bool operator== - ( - const FoamXServer::JobID& jid1, - const FoamXServer::JobID& jid2 - ) - { - return - ( - jid1.processID == jid2.processID - && Foam::word(jid1.hostName) == Foam::word(jid2.hostName) - ); - } - - inline Ostream& operator<< - ( - Ostream& os, - const FoamXServer::JobID& jid - ) - { - os << Foam::word(jid.hostName) << '.' << jid.processID; - - return os; - } -}; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class IPropertiesImpl; -class Orb; - -/*---------------------------------------------------------------------------*\ - Class ICaseBrowserImpl Declaration -\*---------------------------------------------------------------------------*/ - -class ICaseBrowserImpl -: - public POA_FoamXServer::CaseBrowser::ICaseBrowser, - public PortableServer::RefCountServantBase -{ - // Private data - - //- Context name for name server registration. - Foam::fileName hostContext_; - - //- Object name for name server registration. - Foam::fileName objectName_; - - //- Reference to the ORB - Orb& orb_; - - //- Argument list - Foam::stringList args_; - - //- Reference to the host browser - FoamXServer::HostBrowser::IHostBrowser_var hostBrowser_; - - //- Foam system properties for this server. - IPropertiesImpl* foamProperties_; - - //- Case list. - Foam::HashPtrTable cases_; - - class hashJobID - { - - public: - - hashJobID() - {} - - Foam::label operator() - ( - const FoamXServer::JobID& key, - const Foam::label tableSize - ) const - { - return Foam::mag(Foam::label(key.processID%tableSize)); - } - }; - - typedef Foam::HashPtrTable - - JobHashTable; - - //- Running jobs list. - JobHashTable runningJobs_; - - //- Finished jobs list. - JobHashTable finishedJobs_; - - //- Process controls - FoamX::ProcessControl procControl_; - - - // Private member functions. - - // Return the case server key for the given root and case - static Foam::fileName caseServerKey - ( - const char* rootDir, - const char* caseName - ); - - void getCaseServerReference - ( - const Foam::fileName& lockFile, - FoamXServer::CaseServer::ICaseServer_out caseObj - ); - - static FoamXServer::CaseDescriptor* caseDescriptor - ( - const Foam::fileName& rootDir, - const Foam::fileName& rawRootDir, - const Foam::fileName& caseFileName - ); - - //- Get dictionary entry or default value. - static Foam::label getEntry - ( - const Foam::dictionary&, - const Foam::word& key, - const Foam::label defaultValue - ); - - //- Get dictionary entry or default value. - static Foam::string getEntry - ( - const Foam::dictionary&, - const Foam::word& key, - const Foam::string& defaultValue - ); - - static void readJobs - ( - JobHashTable& jobsList, - const Foam::fileName& dir, - const bool throwOnError - ); - -public: - - // Constructors - - ICaseBrowserImpl(Orb& orb, const Foam::stringList& args); - - - // Destructor - - virtual ~ICaseBrowserImpl(); - - - // Member Functions - - // Implemented ICaseBrowser methods. - - //- Foam system properties (user data editable). - virtual FoamXServer::CaseServer::IFoamProperties_ptr - foamProperties(); - - //- Managed cases list. - virtual FoamXServer::CaseDescriptorList* cases(); - - //- Running jobs list. - virtual FoamXServer::JobDescriptorList* runningJobs(); - - //- Finished jobs list. - virtual FoamXServer::JobDescriptorList* finishedJobs(); - - virtual void getEnv - ( - const char* envName, - CORBA::String_out enval - ); - - virtual void getHostName(CORBA::String_out hostName); - - virtual void getUserName(CORBA::String_out userName); - - virtual CORBA::Long fileModificationDate(const char* fName); - - virtual void readFile - ( - const char* fName, - CORBA::String_out contents - ); - - virtual void writeFile - ( - const char* fName, - const char* contents - ); - - virtual CORBA::Long invokeUtility - ( - const char* hostName, - const char* utilityName, - const FoamXServer::StringList& arguments, - const char* logName, - CORBA::Boolean background - ); - - virtual void openCase - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void openCasePost - ( - const FoamXServer::CaseDescriptor& caseDesc, - const CORBA::Long nProcs - ); - - virtual void newCase - ( - const char* rootDir, - const char* caseName, - const char* app - ); - - virtual void importCase - ( - const char* rootDir, - const char* caseName, - const char* app - ); - - virtual void deleteCase - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void cloneCase - ( - const FoamXServer::CaseDescriptor& caseDesc, - const char* newRootDir, - const char* newCaseName, - const char* newAppClassName, - const char* timeSel - ); - - virtual CORBA::Boolean getCaseServerReference - ( - const char* rootDir, - const char* caseName, - FoamXServer::CaseServer::ICaseServer_out caseObj - ); - - virtual CORBA::Boolean getCasePostServerReference - ( - const char* rootDir, - const char* caseName, - CORBA::Long nProcs, - FoamXServer::CasePostServer::ICasePostServer_out caseObj - ); - - virtual CORBA::Boolean caseLocked - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void unlockCase - ( - const char* rootDir, - const char* caseName - ); - - virtual void unlockCaseDescriptor - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void addCase - ( - const char* rootDir, - const char* rawRootDir, - const char* caseName, - const char* appName - ); - - virtual void caseOpen - ( - const char* rootDir, - const char* caseName - ); - - virtual CORBA::Boolean isCaseInError - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void caseIsInError - ( - const FoamXServer::CaseDescriptor& caseDesc - ); - - virtual void refreshCaseList(); - - virtual void addToCaseList(const char* rootDir); - - - // Process control - - virtual void refreshJobsLists(); - virtual void checkRunningJobs(); - virtual void purgeRunningJobs(); - virtual void purgeFinishedJob(const FoamXServer::JobID& jobID); - virtual void purgeFinishedJobs(CORBA::Long nDays); - virtual void kill(const FoamXServer::JobID& jobID); - virtual void suspend(const FoamXServer::JobID& jobID); - virtual void cont(const FoamXServer::JobID& jobID); - virtual void end - ( - const FoamXServer::JobID& jobID, - const char* rootDir, - const char* caseName, - const CORBA::Boolean now - ); - virtual void setStatus - ( - const FoamXServer::JobID& jobID, - FoamXServer::JobStatus jobStatus - ); - - - // IO - - virtual void validate(); - virtual void save(); - virtual void close(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/files b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/files deleted file mode 100644 index 5b8b21a478..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/files +++ /dev/null @@ -1,4 +0,0 @@ -ICaseBrowserImpl.C -FoamXCaseBrowser.C - -EXE = $(FOAM_APPBIN)/FoamXCaseBrowser diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/options b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/options deleted file mode 100644 index 92e0f66b0d..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseBrowser/Make/options +++ /dev/null @@ -1,13 +0,0 @@ -#include "../../FoamXLib/Make/orbOptions" - -EXE_INC = \ - $(ORB_INC) \ - -I../FoamXLib/lnInclude \ - -I../FoamXServer \ - -EXE_LIBS = \ - -lFoamX \ - -lFoamXServer \ - $(ORB_LIBS) - - diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/FoamXCaseServer.C b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/FoamXCaseServer.C deleted file mode 100644 index b9d28fabbc..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/FoamXCaseServer.C +++ /dev/null @@ -1,225 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "dictionary.H" -#include "argList.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamXErrors.H" -#include "ICaseServerImpl.H" -#include "LogManager.H" -#include "LogEntry.H" -#include "Orb.H" - -// Declare all the namespaces used by FoamX -#include "FoamXNameSpaces.H" - -using namespace FoamX; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int main(int argc, char **argv) -{ - static const char* functionName = - "FoamXCaseServer::main(int argc, char **argv)"; - - fileName lockFileName; - - try - { - FatalError.throwExceptions(); - FatalIOError.throwExceptions(); - - // Construct the ORB, remove ORB arguments - Orb orb(argc, argv); - - argList::validOptions.insert("open", ""); - argList::validOptions.insert("create", "app"); - argList::validOptions.insert("import", "app"); - //argList::validOptions.insert("test", ""); - argList args(argc, argv); - - lockFileName = args.path()/".fxLock"; - - // Initialise the log manager object. - // Write the log into the case directory. - LogManager logMgr(args.path()/"CaseServerLog.xml"); - - // Register the root function call. - LogEntry log(functionName, __FILE__, __LINE__); - - word mode; - word app; - if (args.options().found("open")) - { - mode = "open"; - } - else if (args.options().found("create")) - { - mode = "create"; - app = args.options()["create"]; - } - else if (args.options().found("import")) - { - mode = "import"; - app = args.options()["import"]; - } - else - { - FatalErrorIn(functionName) - << "Essential option not given" << endl; - args.printUsage(); - FatalError.abort(); - } - - // Allocate the ICaseServerImpl object on the heap. - // This is a reference counted object and will be deleted by - // the POA when it is no longer needed. - ICaseServerImpl* caseServerPtr = new ICaseServerImpl - ( - orb, - args.rootPath(), - args.caseName(), - mode, - app - ); - - if (caseServerPtr == NULL) - { - FatalErrorIn(functionName) - << "Failed to instantiate ICaseServerImpl object." - << exit(FatalError); - } - - log << "Created ICaseServerImpl object." << endl; - - // Get the object IOR and write to lock file. - string ior = orb.ior(caseServerPtr->_this()); - - log << "IOR : " << ior << "." << endl; - - { - OFstream ofLock(lockFileName); - - if (ofLock.good()) - { - ofLock << ior.c_str(); - } - else - { - throw FoamX::FoamXError - ( - E_FAIL, - "Failed to open lock file " + lockFileName, - functionName, - __FILE__, __LINE__ - ); - } - } - - if (args.options().found("test")) - { - caseServerPtr->readMesh(); - caseServerPtr->save(); - } - else - { - log << "CaseServer running....." << endl; - Info << "CaseServer running....." << endl; - - // Go! - orb.run(); - - // Clean up all the resources. - log << "Shutting down Case Server." << endl; - } - } - catch (Foam::IOerror& fIOErr) - { - Serr<< "Caught Foam IOerror in " << functionName << " : " - << nl << fIOErr << endl; - - writeException(fIOErr, lockFileName); - } - catch (Foam::error& fErr) - { - Serr<< "Caught Foam error in " << functionName << " : " - << nl << fErr << endl; - - writeException(fErr, lockFileName); - } - catch (FoamXServer::FoamXIOError& fIOErr) - { - Serr<< "Caught FoamXIOError exception in " << functionName << " : " - << nl << fIOErr << endl; - - writeException(fIOErr, lockFileName); - } - catch (FoamXServer::FoamXError& ex) - { - Serr<< "Caught FoamXError exception in " << functionName << " : " - << nl << ex << endl; - - writeException(ex, lockFileName); - } - catch (CORBA::COMM_FAILURE& ex) - { - Serr<< "Caught CORBA::COMM_FAILURE exception in " - << functionName << endl; - - writeException(ex, lockFileName); - } - catch (CORBA::SystemException& ex) - { - Serr<< "Caught CORBA::SystemException exception in " - << functionName << endl; - - writeException(ex, lockFileName); - } - catch (CORBA::Exception& ex) - { - Serr<< "Caught CORBA::Exception exception in " - << functionName << endl; - - writeException(ex, lockFileName); - } - catch (...) - { - Serr<< "Caught system exception in " - << functionName << endl; - - writeException(systemError(), lockFileName); - } - - Info<< "Finishing " << functionName << endl; - - return 0; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.C deleted file mode 100644 index 8b7587e326..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.C +++ /dev/null @@ -1,1870 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -#include - -// Foam header files. -#include "long.H" -#include "dictionary.H" -#include "wordList.H" -#include "stringList.H" -#include "fileNameList.H" -#include "IFstream.H" -#include "OStringStream.H" -#include "instantList.H" -#include "IOPtrList.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamXErrors.H" -#include "ICaseServerImpl.H" -#include "DictionaryWriter.H" -#include "RootDictionary.H" -#include "IGeometricFieldImpl.H" -#include "LogEntry.H" -#include "NameServer.H" -#include "PatchProperties.H" -#include "Orb.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -// Define word for IOPtrList. -template<> -const Foam::word Foam::IOPtrList::typeName("polyBoundaryMesh"); - - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -Foam::Time& FoamX::ICaseServerImpl::time() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::time()"; - - if (!dbPtr_) - { - throw FoamXError - ( - E_FAIL, - "database not yet constructed", - functionName, - __FILE__, __LINE__ - ); - } - return *dbPtr_; -} - - -void FoamX::ICaseServerImpl::saveControlDict() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::saveControlDict()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - //---------------------------------------------------------------------- - // Make sure the control dictionary is saved. - IDictionaryEntry_var controlDict; // Auto Release. - getDictionary(Time::controlDictName.c_str(), false, controlDict.out()); - if (CORBA::is_nil(controlDict)) - { - throw FoamXError - ( - E_FAIL, - "Failed to open control dictionary entry object", - functionName, - __FILE__, __LINE__ - ); - } - - // Make sure the control dictionary is saved. - controlDict->save(); -} - - -void FoamX::ICaseServerImpl::writePatchData() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::writePatchData()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Create the polyMesh directory if required. - fileName polyMeshDir = rootDir_/caseName_/"constant"/"polyMesh"; - if (!dir(polyMeshDir) && !mkDir(polyMeshDir)) - { - throw FoamXError - ( - E_FAIL, - "Mesh directory '" + polyMeshDir + "' could not be created", - functionName, - __FILE__, __LINE__ - ); - } - - // Write boundary file (fixed form). - DictionaryWriter dict - ( - rootDir_, - caseName_, - "constant/polyMesh", - "boundary" - ); - dict.writeHeader - ( - "FoamX Mesh Description File", - "polyBoundaryMesh" - ); - - // Start list. - dict.startList(patchMap_.size()); - - // Write patch boundary information. - for - ( - Dictionary::iterator iter = patchMap_.begin(); - iter != patchMap_.end(); - ++iter - ) - { - dict.writeEndl(); - iter().save(dict); - } - - // End list. - dict.endList(); - - dict.writeEndl(); - dict.writeEndBar(); - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// patchPhysicalType is the name of the boundary type name, not the definition key. - -void FoamX::ICaseServerImpl::addPatch -( - const char* patchName, - const char* patchPhysicalType -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::addPatch" - "(const char* patchName, const char* patchPhysicalType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Patch = " << patchName - << ", Boundary (Physical) Type = " << patchPhysicalType << endl; - - // Create a new patch descriptor object for this patch. - PatchProperties* patchProps = new PatchProperties(patchName); - - if (patchProps == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Patch Properties object", - functionName, - __FILE__, __LINE__ - ); - } - - IPatchPhysicalTypeDescriptor_var boundaryDescriptor; - app_->getPatchPhysicalType(patchPhysicalType, boundaryDescriptor.out()); - patchProps->patchType(boundaryDescriptor->patchType()); - - patchProps->physicalType(patchPhysicalType); - - // Append to patch descriptor list. - addPatch(patchProps); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool FoamX::ICaseServerImpl::fieldsMatchPatchPhysicalType(const word& patchName) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::fieldsMatchPatchPhysicalType" - "(const char* patchName)"; - - // Get properties read from boundary file. - PatchProperties* patchProps = patchMap_.lookup(patchName); - - Info<< "Trying to match patch " << patchName << " physical type " - << patchProps->physicalType() << endl; - - // Get the specified boundary type descriptor object (ultimately from the - // application class. - IPatchPhysicalTypeDescriptor_var boundaryDescriptor; - app_->getPatchPhysicalType - ( - patchProps->physicalType().c_str(), - boundaryDescriptor.out() - ); - - // Get the types for individual fields - StringPairList_var patchFieldTypes = - boundaryDescriptor->patchFieldTypes(); - - // Try to see if all fields specified have the correct type - for (unsigned int i = 0; i length(); i++) - { - word fieldName(patchFieldTypes[i].name); - - Info<< " name:" << fieldName - << " type:" << patchFieldTypes[i].value << endl; - - - if (fieldValueMap_.found(fieldName)) - { - // Convert between the patch field type key and the Foam name. - - // Get the PatchFieldDescriptor object. - ITypeDescriptor_var pfDescriptor; - foamProperties_->getPatchFieldType - ( - patchFieldTypes[i].value, - pfDescriptor.out() - ); - CORBA::String_var pfName = pfDescriptor->name(); - - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - - IDictionaryEntry_var pfParams; - pFieldValue->getPatchFieldParameters(patchName.c_str(), pfParams); - - DictionaryEntryList* subElemsPtr = pfParams->subElements(); - - for - ( - unsigned int elemI = 0; - elemI < subElemsPtr->length(); - elemI++ - ) - { - FoamXServer::FoamXAny* subValPtr = - (*subElemsPtr)[elemI]->value(); - - void* nasty = &(subValPtr->value); - - Info<< " " << elemI << "type:" << subValPtr->type - << " value:" << long(nasty) << endl; - } - } - else - { - WarningIn(functionName) - << "Did not find field " << fieldName - << " specified in physical patch type " - << patchProps->physicalType() - << endl; - } - } - return true; -} - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -FoamX::ICaseServerImpl::ICaseServerImpl -( - Orb& orb, - const fileName& rootDir, - const fileName& caseName, - const word& mode, - const word& app -) -: - rootDir_(rootDir), - caseName_(caseName), - hostContext_(hostName()), - userContext_(userName()), - objectName_(hostContext_/userContext_/string::validate(rootDir_)/caseName_), - caseDictName_(rootDir_/caseName_/"system/controlDict"), - appName_(app), - orb_(orb), - dbPtr_(NULL), - caseBrowser_(NULL), - foamProperties_(NULL), - app_(NULL), - managed_(false), - procControl_(dotFoam("apps/FoamX/FoamX.cfg")), - pid_(-1) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::ICaseServerImpl" - "(Orb& orb, const fileName& rootDir, const fileName& caseName, " - "const word& mode, const word& app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Connect to name server. - NameServer fxNameServer(orb_.orbPtr_); - - // Case browser should have registered itself with the name server under - // a "hostName/"FoamXCaseBrowser"" key. - fileName caseBrowserKey = hostName()/"FoamXCaseBrowser"; - - if (fxNameServer.isObjectBound(caseBrowserKey)) - { - // Return server reference. - caseBrowser_ = - fxNameServer.resolve - (caseBrowserKey); - } - else - { - throw FoamXError - ( - E_FAIL, - "Server '" + caseBrowserKey + "' not found on name server. " - "getServerReference call timed out", - functionName, - __FILE__, __LINE__ - ); - } - - foamProperties_ = caseBrowser_->foamProperties(); - - - //---------------------------------------------------------------------- - // See if we are opening an existing case or creating/importing - // a new case. - if (mode == "open") - { - // Control dictionary must exist. - if (!exists(caseDictName_)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary '" + caseDictName_ + "' not found", - functionName, - __FILE__, __LINE__ - ); - } - - // Open the case configuration dictionary and get the - // application class name. - dictionary caseDict((IFstream(caseDictName_)())); - - if (caseDict.found("application")) - { - caseDict.lookup("application")>> appName_; - } - else if (caseDict.found("applicationClass")) - { - caseDict.lookup("applicationClass")>> appName_; - } - else - { - throw FoamXError - ( - E_FAIL, - "Application class entry not found in '" + caseDictName_ - + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - else if (mode == "import") - { - // Control dictionary must exist. - if (!exists(caseDictName_)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary '" + caseDictName_ - + "' not found", - functionName, - __FILE__, __LINE__ - ); - } - - // Open the case configuration dictionary and get the - // application class name. - dictionary caseDict((IFstream(caseDictName_)())); - - // If not found, use the command line argument. - if (caseDict.found("application")) - { - caseDict.lookup("application") >> appName_; - } - } - else if (mode == "create") - { - // Control dictionary must not exist. - if (exists(caseDictName_)) - { - throw FoamXError - ( - E_FAIL, - "Case control dictionary '" + caseDictName_ - + "' exists. Cannot create new case", - functionName, - __FILE__, __LINE__ - ); - } - // Create the case directory if required. - fileName caseDir = rootDir_/caseName_; - if (!dir(caseDir) && !mkDir(caseDir)) - { - throw FoamXError - ( - E_FAIL, - "Case directory '" + caseDir + "' could not be created", - functionName, - __FILE__, __LINE__ - ); - } - - // Create the constant directory if required. - fileName constDir = caseDir/"constant"; - if (!dir(constDir ) && !mkDir(constDir ) ) - { - throw FoamXError - ( - E_FAIL, - "Case directory '" + constDir + "' could not be created", - functionName, - __FILE__, __LINE__ - ); - } - - // Create the polyMesh directory if required. - fileName meshDir = constDir/"polyMesh"; - if (!dir(meshDir) && !mkDir(meshDir)) - { - throw FoamXError - ( - E_FAIL, - "Case directory '" + meshDir + "' could not be created", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - throw FoamXError - ( - E_FAIL, - "Invalid argument '" + mode + "'", - functionName, - __FILE__, __LINE__ - ); - } - - //---------------------------------------------------------------------- - // Create the Application and FoamProperties objects. - if (appName_.size() == 0) - { - throw FoamXError - ( - E_FAIL, - "Invalid application class name '" + appName_ + "'", - functionName, - __FILE__, __LINE__ - ); - } - - foamProperties_->getApplication(appName_.c_str(), app_); - - //---------------------------------------------------------------------- - // Create the FieldValues objects. - StringList_var fieldNames = app_->fields(); - - for (unsigned int i = 0; i length(); i++) - { - word fieldName(fieldNames[i]); - - // Get reference to field descriptor. - IGeometricFieldDescriptor_var fieldDescriptorRef; // Auto-release. - app_->getField(fieldName.c_str(), fieldDescriptorRef.out()); - - // Create default FieldValues object for this field. - IGeometricFieldImpl* pFieldValues = new IGeometricFieldImpl - ( - fieldDescriptorRef, - foamProperties_ - ); - - if (pFieldValues == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create field value object", - functionName, - __FILE__, __LINE__ - ); - } - fieldValueMap_.insert(fieldName, pFieldValues); - } - - //---------------------------------------------------------------------- - // Register object with the naming service. Will throw an exception - // if any errors occurs. - - // Do not fail if context already exists. - fxNameServer.createContext(hostContext_, false); - - // Do not fail if context already exists. - fxNameServer.createContext(hostContext_/userContext_, false); - - // Do not fail if context already exists. - fxNameServer.createContext - ( - hostContext_/userContext_/string::validate(rootDir_), - false - ); - - // Bind object under key hostName/userName/caseroot/casename. - FoamXServer::CaseServer::ICaseServer_var caseRef = _this(); - - // Throw exception if already bound. - fxNameServer.bindObject(objectName_, caseRef, false); - - // Decrement the reference count of the object implementation, so - // that it will be properly cleaned up when the POA has determined - // that it is no longer needed. - _remove_ref(); - - if (mode == "import" || mode == "create") - { - // Make valid control dict so we can instantiate a database - saveControlDict(); - - dbPtr_ = new Time(Time::controlDictName, rootDir_, caseName_); - - // Make valid set of files - save(); - - caseBrowser_->addCase - ( - rootDir_.c_str(), - rootDir_.c_str(), - caseName_.c_str(), - appName_.c_str() - ); - } - else - { - dbPtr_ = new Time(Time::controlDictName, rootDir_, caseName_); - - caseBrowser_->caseOpen - ( - rootDir_.c_str(), - caseName_.c_str() - ); - } - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -FoamX::ICaseServerImpl::~ICaseServerImpl() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::~ICaseServerImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Delete database - if (dbPtr_) - { - delete dbPtr_; - dbPtr_ = NULL; - } -} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseServerImpl::managed() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::managed()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return managed_; -} - -void FoamX::ICaseServerImpl::managed(CORBA::Boolean managed) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::managed(CORBA::Boolean managed)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - managed_ = managed; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ICaseServerImpl::caseRoot() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::caseRoot()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(rootDir_.c_str()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ICaseServerImpl::caseName() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::caseName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(caseName_.c_str()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IFoamProperties_ptr FoamX::ICaseServerImpl::foamProperties() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::foamProperties()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return a reference to the TypeDescriptor object. - IFoamProperties_ptr pProperties = IFoamProperties::_nil(); - - if (!CORBA::is_nil(foamProperties_)) - { - pProperties = IFoamProperties::_duplicate(foamProperties_); - } - - return pProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IApplication_ptr FoamX::ICaseServerImpl::application() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::application()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return a reference to the Application object. - IApplication_ptr pAppClass = IApplication::_nil(); - - if (static_cast(app_) != NULL) - { - pAppClass = IApplication::_duplicate(app_); - } - - return pAppClass; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::ICaseServerImpl::availableTimeSteps() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::availableTimeSteps()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - StringList* timeStepList = NULL; - - try - { - // Get list of time directories. - instantList times = time().times(); - - // Copy time steps into a new string list and return. - timeStepList = new StringList(); - timeStepList->length(times.size()); - forAll(times, i) - { - (*timeStepList)[i] = times[i].name().c_str(); - } - } - CATCH_ALL(functionName); - - return timeStepList; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ICaseServerImpl::getTime() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::getTime()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Duplicate and return. - return CORBA::string_dup(time().timeName().c_str()); - } - CATCH_ALL(functionName); - - return CORBA::string_dup(""); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::setTime -( - const char* timeName, - const CORBA::Long timeIndex -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::setTime(const char*, const CORBA::Long)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - scalar timeValue(readScalar(IStringStream(timeName)())); - - time().setTime(timeValue, timeIndex); - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseServerImpl::meshDefined() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::meshDefined()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return true if a mesh description dictionary - fileName meshDict = - rootDir_/caseName_/fileName("constant/polyMesh/boundary"); - - return exists(meshDict); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::readMesh() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::readMesh()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // See if the mesh has been defined. - if (!meshDefined()) - { - throw FoamXError - ( - E_FAIL, - "Mesh description dictionary not found", - functionName, - __FILE__, __LINE__ - ); - } - - // Create a list of entries from the boundary file. - IOPtrList patchEntries - ( - IOobject - ( - "boundary", - time().constant(), - "polyMesh", - time(), - IOobject::MUST_READ, - IOobject::NO_WRITE, - false - ) - ); - - log << "Deleting all patches" << endl; - - // Delete all previous patch information. - deleteAllPatches(); - - log << "Adding new patches.." << endl; - - // Add patch objects for each patch defined in the mesh. - forAll(patchEntries, i) - { - // Read boundary type for this patch from the - // mesh description dictionary. - word patchName(patchEntries[i].keyword()); - log << "Adding patch " << patchName << ".." << endl; - - // Create a new patch descriptor object for this patch - // and load patch data from the dictionary. - PatchProperties* patchProps = new PatchProperties(patchName); - - if (patchProps == NULL) - { - throw FoamXError - ( - E_INVALID_ARG, - "Failed to create PatchProperties object", - functionName, - __FILE__, __LINE__ - ); - } - - patchProps->load(patchEntries[i].dict()); - - // Add new patch to list. - addPatch(patchProps); - } - - // Read the field values from the field dictionaries. - StringList_var fieldNames = app_->fields(); // Auto-release. - for (unsigned int i = 0; i < fieldNames->length(); i++) - { - word fieldName(fieldNames[i]); - - // See if the field dictionary exists. - fileName fieldDictName = time().timePath()/fieldName; - - if (exists(fieldDictName)) - { - // Get the field object. - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - - // Read the values from the field dictionary. - dictionary fieldDict((IFstream(fieldDictName)())); - pFieldValue->load(fieldDict); - } - } - - - // Correct all the field boundary conditions for changes in mesh - for - ( - Dictionary::iterator iter = patchMap_.begin(); - iter != patchMap_.end(); - ++iter - ) - { - ///Info<< "Trying to match fields to " << iter().physicalType() - // << endl; - //bool matches = fieldsMatchPatchPhysicalType(iter().physicalType()); - //Info<< "Matches:" << matches << endl; - - setPatchPhysicalType - ( - iter().patchName().c_str(), - iter().physicalType().c_str() - ); - - // In sync with file - iter().modified(false); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::importMesh -( - const char* hostName, - const char* rootDir, - const char* caseName -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::importMesh(const char* hostName, " - "const char* rootDir, const char* caseName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName importMeshDir = fileName(rootDir)/caseName/"constant/polyMesh"; - fileName destConstDir = rootDir_/caseName_/"constant"; - - if (hostName == Foam::hostName()) - { - if (dir(importMeshDir)) - { - cp(importMeshDir, destConstDir); - } - else - { - throw FoamXError - ( - E_FAIL, - "Source directory " + importMeshDir - + " does not exist or is unreadable", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - stringList argsList = procControl_.remoteCpArgs - ( - userName(), - hostName, - importMeshDir, - destConstDir - ); - - if (procControl_.system(argsList) != 0) - { - throw FoamXError - ( - E_FAIL, - "Error while copying directory " + importMeshDir + " to " - + destConstDir + " using remote copy command " - + procControl_.commandString(argsList), - functionName, - __FILE__, __LINE__ - ); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::getFieldValues -( - const char* fieldName, - IGeometricField_out fieldValues -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::getFieldValues" - "(const char* fieldName, IGeometricField_out fieldValues)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check for a valid field name. - if (!fieldValueMap_.found(fieldName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid field name", - functionName, - __FILE__, __LINE__ - ); - } - - fieldValues = fieldValueMap_[fieldName]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::ICaseServerImpl::patchNames() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::patchNames()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return the patch name list. - return new StringList - ( - FoamXWordList(static_cast(patchMap_.toc())) - ); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::addPatch(PatchProperties* patchProps) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::addPatch(PatchProperties* patchProps)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Get the patch name and the boundary type. - // patchPhysicalType is the name of the boundary type name, not the - // definition key. - const word& patchName = patchProps->patchName(); - const word& patchPhysicalType = patchProps->physicalType(); - - log << "Patch = " << patchName << endl; - - // Check patch name. - if (patchMap_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the specified boundary type descriptor object. - // If the boundary type name is not valid, an exception will be thrown. - IPatchPhysicalTypeDescriptor_var boundaryDescriptor; - app_->findPatchPhysicalType - ( - patchPhysicalType.c_str(), - boundaryDescriptor.out() - ); - - // Make sure that the boundary type name is valid. - if (CORBA::is_nil(boundaryDescriptor)) - { - throw FoamXError - ( - E_FAIL, - "Invalid boundary type name '" + patchPhysicalType + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Append patch descriptor to list. - patchMap_.append(patchName, patchProps); - - // Get patch field types from boundary descriptor. - StringPairList_var patchFieldTypes = - boundaryDescriptor->patchFieldTypes(); - - // Add this patch to all field value objects. - for (unsigned int i = 0; i length(); i++) - { - word fieldName(patchFieldTypes[i].name); - - if (fieldValueMap_.found(fieldName)) - { - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - - // Convert between the patch field type key and the Foam name. - - // Get the PatchFieldDescriptor object. - ITypeDescriptor_var pfDescriptor; - foamProperties_->getPatchFieldType - ( - patchFieldTypes[i].value, - pfDescriptor.out() - ); - - // Make sure that the patch field type name is valid. - if (CORBA::is_nil(pfDescriptor)) - { - throw FoamXError - ( - E_FAIL, - "Invalid patch field type key '" - + word(patchFieldTypes[i].value) - + "' for boundary type '" + patchPhysicalType + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the Foam name and set the patch field type. - CORBA::String_var patchFieldType = pfDescriptor->name(); - pFieldValue->addPatch(patchName.c_str(), patchFieldType); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::deletePatch(const char* patchName) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::deletePatch(const char* patchName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check patch name. - if (!patchMap_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name", - functionName, - __FILE__, __LINE__ - ); - } - patchMap_.remove(patchName); - - // Remove this patch from all field value objects. - StringList_var fieldNames = app_->fields(); // Auto-release. - for (unsigned int i=0; i length(); i++) - { - word fieldName(fieldNames[i]); - if (fieldValueMap_.found(fieldName)) - { - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - pFieldValue->deletePatch(patchName); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::deleteAllPatches() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::deleteAllPatches()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Delete all currently defined patch information. - wordList patchNames(patchMap_.toc()); - forAll(patchNames, i) - { - deletePatch(patchNames[i].c_str()); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::setPatchPhysicalType -( - const char* patchName, - const char* patchPhysicalType -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::setPatchPhysicalType" - "(const char* patchName, const char* patchPhysicalType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check patch name. - if (!patchMap_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the specified boundary type descriptor object. - // If the boundary type name is not valid, an exception will be thrown. - IPatchPhysicalTypeDescriptor_var boundaryDescriptor; - app_->getPatchPhysicalType(patchPhysicalType, boundaryDescriptor.out()); - - // Make sure that the boundary type name is valid. - if (CORBA::is_nil(boundaryDescriptor)) - { - throw FoamXError - ( - E_FAIL, - "Invalid boundary type name '" + word(patchPhysicalType) + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Update the patch properties object. - PatchProperties* patchProps = patchMap_.lookup(patchName); - - patchProps->patchType(boundaryDescriptor->patchType()); - patchProps->physicalType(patchPhysicalType); - - // Get patch field types from boundary descriptor. - StringPairList_var patchFieldTypes = - boundaryDescriptor->patchFieldTypes(); - - // Loop over all fields and update the field value objects. - for (unsigned int i = 0; i length(); i++) - { - word fieldName(patchFieldTypes[i].name); - - if (fieldValueMap_.found(fieldName)) - { - // Get the patch field type descriptor. - ITypeDescriptor_var pfDescriptor; - foamProperties_->getPatchFieldType - ( - patchFieldTypes[i].value, - pfDescriptor.out() - ); - - // Need to pass the foam name, not the key, - // for the patch field type. - CORBA::String_var pfName = pfDescriptor->name(); - - // Get the field object. - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - - pFieldValue->setPatchFieldType(patchName, pfName); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::getPatchPhysicalType -( - const char* patchName, - CORBA::String_out patchPhysicalType -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::getPatchPhysicalType" - "(const char* patchName, CORBA::String_out patchPhysicalType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Patch = " << patchName << endl; - - // Check for a valid patch name. - if (!patchMap_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name", - functionName, - __FILE__, __LINE__ - ); - } - - // Return the boundary type for this patch. - PatchProperties* patchProps = patchMap_.lookup(patchName); - - patchPhysicalType = CORBA::string_dup(patchProps->physicalType().c_str()); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::getDictionary -( - const char* dictionaryName, - CORBA::Boolean forceRead, - IDictionaryEntry_out dictRoot -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::getDictionary" - "(const char*, CORBA::Boolean, IDictionaryEntry_out)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - RootDictionary* pDictRoot = NULL; - - // Force rereading just by clearing the cache. - if (forceRead) - { - ObjRefHashTable::iterator iter = - dictionaryMap_.find(dictionaryName); - - dictionaryMap_.erase(iter); - } - - // See if we have this dictionary entry object cached. - if (dictionaryMap_.found(dictionaryName)) - { - log << "Dictionary " << dictionaryName << " existing" << endl; - - pDictRoot = dictionaryMap_[dictionaryName]; - } - else - { - log << "Creating new dictionary " << dictionaryName << endl; - - // Create and initialise a new dictionary entry object. - ITypeDescriptor_var typeDescRef; // Auto release. - app_->getDictionary(dictionaryName, typeDescRef.out()); - - // Create a default RootDictionary object for this dictionary. - pDictRoot = new RootDictionary - ( - typeDescRef, - rootDir_, - caseName_ - ); - if (pDictRoot == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create dictionary entry object", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the values from the file if it exists - pDictRoot->load(); - - // Add to dictionary map. - dictionaryMap_.insert(dictionaryName, pDictRoot); - } - - // Return a reference to the dictionary entry object. - dictRoot = pDictRoot->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::ICaseServerImpl::fileModificationDate -( - const char* dictionaryName -) -{ - fileName fName(rootDir_/caseName_/dictionaryName); - - if (exists(fName)) - { - return label(lastModified(fName)); - } - else - { - // Ugly. Let's hope not many dates with time_t==0 - return 0; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::readFile -( - const char* fName, - CORBA::String_out contents -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::readRawDictionary" - "(const char* fName, CORBA::String_out contents)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName dictName = rootDir_/caseName_/fName; - - log << "File = " << dictName << endl; - - // If file exists, return its contents. - if (exists(dictName)) - { - IFstream ifFile(dictName); - - if (ifFile) - { - OStringStream fileString; - - char ch; - while (ifFile.get(ch)) - { - fileString << ch; - } - - // Must duplicate string to return. - contents = CORBA::string_dup(fileString.str().c_str()); - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to read file '" + dictName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to open file '" + dictName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::writeFile -( - const char* fName, - const char* contents -) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::writeRawDictionary" - "(const char* fName, const char* contents)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName dictName = rootDir_/caseName_/fName; - - log << "File = " << dictName << endl; - - // Check if dictionary already exists, and if so move to .bak - if (file(dictName)) - { - mv(dictName, dictName + ".bak"); - } - - // Make sure path exists. - if (!dir(dictName.path()) && !mkDir(dictName.path())) - { - throw FoamXError - ( - E_FAIL, - "Failed to create directory '" + dictName.path() + "'", - functionName, - __FILE__, __LINE__ - ); - } - - // Write dictionary contents. - OFstream ofFile(dictName); - if (ofFile) - { - ofFile << contents; - } - else - { - throw FoamXError - ( - E_FAIL, - "Failed to write file '" + dictName + "'", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::ICaseServerImpl::runCase(const char* arguments) -{ - static const char* functionName = - "FoamX::ICaseServerImpl::runCase(const char* arguments)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Convert the arguments into a stringList and start - // the calculation process. - - string stringArgs(arguments); - - int nArgs = 1; - if (stringArgs.size() != 0) - { - nArgs += 1 + stringArgs.count(' '); - } - stringList args(nArgs + 1); - args[0] = word(app_->name()); - - int argi = 1; - args[argi++] = "-case " + rootDir_/caseName_; - - size_t startPos = 0; - int endPos; - while ((endPos = stringArgs.find(" ", startPos)) != -1) - { - string oneArg(stringArgs(startPos, (endPos - startPos))); - args[argi++] = oneArg; - startPos = endPos + 1; - } - - if ((stringArgs.size() != 0) && (startPos != (stringArgs.size() - 1))) - { - string oneArg - ( - stringArgs - ( - startPos, - stringArgs.size() - 1 - startPos - ) - ); - args[argi++] = oneArg; - } - - pid_ = procControl_.fork(args, ""); - - if (pid_ == -1) - { - throw FoamXError - ( - E_FAIL, - "Error executing foam calculation process", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); - - return pid_; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::killCase() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::killCase()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - if (pid_ > 0) - { - if (procControl_.kill(pid_) != 0) - { - throw FoamXError - ( - E_FAIL, - string("Error killing job with PID ") + name(pid_), - functionName, - __FILE__, __LINE__ - ); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::validate() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ICaseServerImpl::modified() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::modified()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - for - ( - ObjRefHashTable::iterator iter = - fieldValueMap_.begin(); - iter != fieldValueMap_.end(); - ++iter - ) - { - if (iter()->modified()) return true; - } - - for - ( - ObjRefHashTable::iterator iter = - dictionaryMap_.begin(); - iter != dictionaryMap_.end(); - ++iter - ) - { - if (iter()->modified()) return true; - } - - for - ( - Dictionary::iterator iter = patchMap_.begin(); - iter != patchMap_.end(); - ++iter - ) - { - if (iter().modified()) return true; - } - } - CATCH_ALL(functionName); - - return false; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::save() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::save()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Save (default) controlDict - saveControlDict(); - - // Delete time and reconstruct to force reading of startTime - // setting (Time::read does not reread startTime) - if (dbPtr_) - { - delete dbPtr_; - dbPtr_ = NULL; - } - dbPtr_ = new Time(Time::controlDictName, rootDir_, caseName_); - - - // Make sure that the time directory exists. - if (!dir(time().timePath())) - { - log << "Creating time directory " << time().timePath() << endl; - - if (!mkDir(time().timePath())) - { - // Throw a wobbler. - throw FoamXError - ( - E_FAIL, - "Failed to create time directory", - functionName, - __FILE__, __LINE__ - ); - } - } - - // For dictionaries that do not exist, make sure that a default - // dictionary is cached. - StringList_var dictNames = app_->dictionaries(); - for (unsigned int i = 0; i length(); i++) - { - word dictName(dictNames[i]); - - // Get dictionary type descriptor. - ITypeDescriptor_var typeDescRef; // Auto release. - app_->getDictionary(dictName.c_str(), typeDescRef.out()); - - // Get dictionary full file name - // (using the path information in the type descriptor). - CORBA::String_var name = typeDescRef->name(); - - fileName dictPathName = RootDictionary::path - ( - rootDir_, - caseName_, - typeDescRef->dictionaryPath() - )/fileName(name); - - if (!exists(dictPathName)) - { - IDictionaryEntry_var dict; // Auto Release. - getDictionary(name, false, dict.out()); - } - } - - // Now save the case's dictionaries. - // Only need to save the dictionaries in the cache. - for - ( - HashTable::iterator iter = - dictionaryMap_.begin(); - iter != dictionaryMap_.end(); - ++iter - ) - { - // Validate the dictionary before we save. - try - { - iter()->validate(); - iter()->save(); - } - catch (ValidationError vex) - { - log << "Dictionary validation failed : " - << vex.errorMessage << " at path '" << vex.itemPath - << "'" << endl; - } - } - - - // Save the patch and boundary condition information. - writePatchData(); - - // Get an ordered list of the patch names - // Used to ensure the patchFields are written in the same order - wordList patchNames(patchMap_.size()); - label i = 0; - for - ( - Dictionary::iterator iter = patchMap_.begin(); - iter != patchMap_.end(); - ++iter - ) - { - patchNames[i++] = iter().patchName(); - } - - // Save field dictionaries. - StringList_var fieldNames = app_->fields(); // Auto-release. - for (unsigned int i = 0; i length(); i++) - { - word fieldName(fieldNames[i]); - - // Get field value object. - IGeometricFieldImpl* pFieldValue = fieldValueMap_[fieldName]; - - // Create dictionary writer object. - DictionaryWriter dictWriter - ( - rootDir_, - caseName_, - time().timeName(), - fieldName - ); - - pFieldValue->save(dictWriter, patchNames); - } - - log << "Case " << time().path() << " saved successfully" << endl; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ICaseServerImpl::close() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::close()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - caseBrowser_->unlockCase(rootDir_.c_str(), caseName_.c_str()); - - // Unregister object from the naming service. - NameServer fxNameServer(orb_.orbPtr_); - fxNameServer.unbindObject(objectName_); - - // Remove case context - fxNameServer.removeContext - ( - hostContext_/userContext_/string::validate(rootDir_) - ); - - // Remove user context - fxNameServer.removeContext(hostContext_/userContext_); - - fxNameServer.disconnect(); - - // Delete database - if (dbPtr_) - { - delete dbPtr_; - dbPtr_ = NULL; - } - - // Shutdown th'Orb. - // Removed because it screws-up Java 1.4 CORBA connection - orb_.orbPtr_->shutdown(false); // Do not wait for completion. - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.H deleted file mode 100644 index 2bd887df18..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/ICaseServerImpl.H +++ /dev/null @@ -1,280 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ICaseServerImpl - -Description - -SourceFiles - ICaseServerImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef ICaseServerImpl_H -#define ICaseServerImpl_H - -// Foam header files. -#include "word.H" -#include "stringList.H" -#include "fileName.H" -#include "Dictionary.H" -#include "Time.H" - -// FoamX header files. -#include "FoamX.H" -#include "ProcessControl.H" -#include "ObjRefHashTable.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class IGeometricFieldImpl; -class RootDictionary; -class PatchProperties; -class Orb; - -/*---------------------------------------------------------------------------*\ - Class ICaseServerImpl Declaration -\*---------------------------------------------------------------------------*/ - -class ICaseServerImpl -: - public POA_FoamXServer::CaseServer::ICaseServer, - public PortableServer::RefCountServantBase -{ - // Private data - - //- Case root directory. - Foam::fileName rootDir_; - - //- Case name. - Foam::fileName caseName_; - - //- Context name for name server registration. - Foam::fileName hostContext_; - - //- Context name for name server registration. - Foam::fileName userContext_; - - //- Object name for name server registration. - Foam::fileName objectName_; - - //- Case dictionary filename. - Foam::fileName caseDictName_; - - //- Name of the application class for this case. - Foam::word appName_; - - //- Reference to the ORB - Orb& orb_; - - //- Current database (only in 'open' mode) - Foam::Time* dbPtr_; - - //- Reference to the case browser - FoamXServer::CaseBrowser::ICaseBrowser_var caseBrowser_; - - //- Reference to the FoamProperties object. - FoamXServer::CaseServer::IFoamProperties_var foamProperties_; - - //- Reference to the Application object for this case. - FoamXServer::CaseServer::IApplication_var app_; - - //- Managed flag. - bool managed_; - - //- Process controls - FoamX::ProcessControl procControl_; - - //- Pid of running case. - pid_t pid_; - - //- Managed Dictionary of patch name to PatchProperties objects. - Foam::Dictionary patchMap_; - - //- Map of field name to FieldValues objects. - ObjRefHashTable fieldValueMap_; - - //- Map of dictionary name to Dictionary objects. - ObjRefHashTable dictionaryMap_; - - - // Private member functions. - - //- Access database - Foam::Time& time(); - - //- Save (default) controlDict - void saveControlDict(); - - void writePatchData(); - void addPatch(PatchProperties* patchProps); - bool fieldsMatchPatchPhysicalType(const Foam::word& patchPhysicalType); - - -public: - - // Constructors - - ICaseServerImpl - ( - Orb& orb, - const Foam::fileName& rootDir, - const Foam::fileName& caseName, - const Foam::word& mode, - const Foam::word& app - ); - - - // Destructor - - virtual ~ICaseServerImpl(); - - - // Member Functions - - // Implemented ICaseServerImpl functions. - - virtual CORBA::Boolean managed(); - virtual void managed(CORBA::Boolean); - virtual char* caseRoot(); - virtual char* caseName(); - - - //- Application class for this case (read only). - virtual FoamXServer::CaseServer::IApplication_ptr application(); - - //- Foam system properties (read only). - virtual FoamXServer::CaseServer::IFoamProperties_ptr foamProperties(); - - //- Time-steps. - virtual FoamXServer::StringList* availableTimeSteps(); - virtual char* getTime(); - virtual void setTime(const char*, const CORBA::Long); - - // Mesh. - - virtual CORBA::Boolean meshDefined(); - virtual void readMesh(); - virtual void importMesh - ( - const char* hostname, - const char* rootDir, - const char* caseName - ); - - - //- Field values. - virtual void getFieldValues - ( - const char* fieldName, - FoamXServer::CaseServer::IGeometricField_out fieldValues - ); - - - // Patches. - - virtual FoamXServer::StringList* patchNames(); - - virtual void addPatch - ( - const char* patchName, - const char* patchPhysicalType - ); - - virtual void deletePatch(const char* patchName); - - virtual void deleteAllPatches(); - - - // Patch boundary conditions. - - virtual void setPatchPhysicalType - ( - const char* patchName, - const char* patchPhysicalType - ); - - virtual void getPatchPhysicalType - ( - const char* patchName, - CORBA::String_out patchPhysicalType - ); - - - // Dictionaries. - - virtual void getDictionary - ( - const char* dictionaryName, - CORBA::Boolean, - FoamXServer::IDictionaryEntry_out dictRoot - ); - - virtual CORBA::Long fileModificationDate(const char* dictName); - - virtual void readFile - ( - const char* name, - CORBA::String_out contents - ); - - virtual void writeFile - ( - const char* name, - const char* contents - ); - - //- Calculation control. - virtual CORBA::Long runCase(const char* arguments); - - virtual void killCase(); - - //- Validation. - virtual void validate(); - - //- Has it been modified? - virtual CORBA::Boolean modified(); - - //- Persistence. - virtual void save(); - - //- Lifetime management. - virtual void close(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/files b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/files deleted file mode 100644 index a3731fd400..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/files +++ /dev/null @@ -1,4 +0,0 @@ -ICaseServerImpl.C -FoamXCaseServer.C - -EXE = $(FOAM_APPBIN)/FoamXCaseServer diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/options b/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/options deleted file mode 100644 index f62d011b85..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXCaseServer/Make/options +++ /dev/null @@ -1,12 +0,0 @@ -#include "../../FoamXLib/Make/orbOptions" - -EXE_INC = \ - $(ORB_INC) \ - -I../FoamXLib/lnInclude \ - -I../FoamXServer - - -EXE_LIBS = \ - -lFoamX \ - -lFoamXServer \ - $(ORB_LIBS) diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/FoamXHostBrowser.C b/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/FoamXHostBrowser.C deleted file mode 100644 index be0e3f6d7f..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/FoamXHostBrowser.C +++ /dev/null @@ -1,155 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "argList.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamXErrors.H" -#include "IHostBrowserImpl.H" -#include "LogManager.H" -#include "LogEntry.H" -#include "Paths.H" -#include "Orb.H" - -// Declare all the namespaces used by FoamX -#include "FoamXNameSpaces.H" - -using namespace FoamX; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int main(int argc, char **argv) -{ - static const char* functionName = - "FoamXHostBrowser::main(int argc, char **argv)"; - - try - { - FatalError.throwExceptions(); - FatalIOError.throwExceptions(); - - // Make copy of raw args (since Orb modifies them) - stringList args(argc); - forAll(args, argI) - { - args[argI] = argv[argI]; - } - - fileName logFile(Paths::tmp/"HostBrowserLog.xml"); - - // Initialise the log manager object. - LogManager logManager(logFile); - - // Register the root function call. - LogEntry log(functionName, __FILE__, __LINE__); - - // Construct the ORB, remove ORB arguments - Orb orb(argc, argv); - - // Construct argList so job gets registered. - argList::validArgs.clear(); - argList dummyArgs(argc, argv); - - // Allocate the IHostBrowserImpl object on the heap. - // This is a reference counted object and will be deleted by - // the POA when it is no longer needed. - IHostBrowserImpl* hostBrowserPtr = - new IHostBrowserImpl(orb, args); - - if (hostBrowserPtr == NULL) - { - FatalErrorIn(functionName) - << "Failed to instantiate IHostBrowserImpl object." - << exit(FatalError); - } - - log << "Created IHostBrowserImpl object" << endl; - - // Emit the IOR. - log << "IOR : " << orb.ior(hostBrowserPtr->_this()) << endl; - - Info << "HostBrowser running....." << endl; - - // Make sure the log file exists even if debugging switched off. - // (Is used to signal to start the java part) - if (!exists(logFile)) - { - OFstream logStream(logFile); - } - - // Go! Go! Go! - orb.run(); - } - catch (Foam::IOerror& fIOErr) - { - Serr<< "Caught Foam IOerror in " << functionName << " : " - << nl << fIOErr << endl; - } - catch (Foam::error& fErr) - { - Serr<< "Caught Foam error in " << functionName << " : " - << nl << fErr << endl; - } - catch (FoamXServer::FoamXIOError& fIOErr) - { - Serr<< "Caught FoamXIOError exception in " << functionName << " : " - << nl << fIOErr << endl; - } - catch (FoamXServer::FoamXError& ex) - { - Serr<< "Caught FoamXError exception in " << functionName << " : " - << nl << ex << endl; - } - catch (CORBA::COMM_FAILURE& ex) - { - Serr<< "Caught CORBA::COMM_FAILURE exception in " - << functionName << endl; - } - catch (CORBA::SystemException& ex) - { - Serr<< "Caught CORBA::SystemException exception in " - << functionName << endl; - } - catch (CORBA::Exception& ex) - { - Serr<< "Caught CORBA::Exception exception in " - << functionName << endl; - } - catch (...) - { - Serr<< "Caught system exception in " - << functionName << endl; - } - - Info<< "Finishing " << functionName << endl; - - return 0; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.C deleted file mode 100644 index c5e1602286..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.C +++ /dev/null @@ -1,442 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "dictionary.H" -#include "wordList.H" -#include "stringList.H" -#include "fileNameList.H" -#include "IFstream.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamXErrors.H" -#include "IHostBrowserImpl.H" -#include "LogEntry.H" -#include "NameServer.H" -#include "Orb.H" -#include "Paths.H" - -// Declare all the namespaces used by FoamX. -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IHostBrowserImpl::IHostBrowserImpl -( - Orb& orb, - const stringList& args -) -: - orb_(orb), - args_(args), - objectName_("FoamXHostBrowser"), - procControl_(dotFoam("apps/FoamX/FoamX.cfg")) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::IHostBrowserImpl(Orb& orb)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - wordList hosts(1, hostName()); - - // Open the user's Foam control dictionary. - fileName controlDictFileName = dotFoam("controlDict"); - if (exists(controlDictFileName)) - { - dictionary controlDict((IFstream(controlDictFileName)())); - - // Read hosts list - if (controlDict.found("hosts")) - { - wordList controlDictHosts(controlDict.lookup("hosts")); - if (controlDictHosts.size()) - { - hosts = controlDictHosts; - } - } - } - - forAll(hosts, i) - { - FoamXServer::HostDescriptor* hostDescPtr = - new FoamXServer::HostDescriptor(); - - hostDescPtr->name = hosts[i].c_str(); - hostDescPtr->alive = true; - - hosts_.insert(hosts[i], hostDescPtr); - } - - // Register this object with the name server. - // Will throw an exception if any error occurs. - NameServer fxNameServer(orb_.orbPtr_); - FoamXServer::HostBrowser::IHostBrowser_var ref = _this(); - - // Rebind if necessary. - fxNameServer.bindObject(objectName_, ref, true); - - // Decrement the reference count of the object implementation, so - // that it will be properly cleaned up when the POA has determined - // that it is no longer needed. - _remove_ref(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IHostBrowserImpl::~IHostBrowserImpl() -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::~IHostBrowserImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::HostDescriptorList* FoamX::IHostBrowserImpl::hosts() -{ - static const char* functionName = - "FoamXServer::StringList* FoamX::IHostBrowserImpl::hosts()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - - HostDescriptorList* hostListPtr = new HostDescriptorList(); - hostListPtr->length(hosts_.size()); - - label i = 0; - for - ( - Foam::HashPtrTable::iterator - iter = hosts_.begin(); - iter != hosts_.end(); - ++iter - ) - { - (*hostListPtr)[i++] = *iter(); - } - - return hostListPtr; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::refreshHostList() -{ - static const char* functionName = - "void FoamX::IHostBrowserImpl::refreshHostList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - for - ( - Foam::HashPtrTable:: - iterator iter = hosts_.begin(); - iter != hosts_.end(); - ++iter - ) - { - try - { - iter()->alive = - ping(word(iter()->name), procControl_.timeOut()); - } - catch (error& fErr) - { - /* even ping gives problems so rsh/ssh will certainly fail */ - iter()->alive = false; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IHostBrowserImpl::isHostAlive(const char* hostName) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::isHostAlive(const char* hostName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - Foam::HashPtrTable::iterator - iter = hosts_.find(hostName); - - if (iter != hosts_.end()) - { - return iter()->alive; - } - else - { - // Note: don't throw FoamXSYSError since whole host is unknown. - throw FoamXError - ( - E_FAIL, - "Cannot find host '" + word(hostName) - + "' in list of licenced hosts", - functionName, - __FILE__, __LINE__ - ); - } - - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::hostIsAlive(const char* hostName) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::hostIsAlive(const char* hostName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - Foam::HashPtrTable::iterator - iter = hosts_.find(hostName); - - if (iter != hosts_.end()) - { - iter()->alive = true; - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot find host '" + word(hostName) - + "' in list of licenced hosts", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::hostIsDead(const char* hostName) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::hostIsDead(const char* hostName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - Foam::HashPtrTable::iterator - iter = hosts_.find(hostName); - - if (iter != hosts_.end()) - { - iter()->alive = false; - } - else - { - throw FoamXError - ( - E_FAIL, - "Cannot find host '" + word(hostName) - + "' in list of licenced hosts", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::openCaseBrowser -( - const char* hostName -) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::openCaseBrowser" - "(const char* hostName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Case browser will register itself with the name server under - // a "hostName/"FoamXCaseBrowser"" key. - fileName caseBrowserObjectName = fileName(hostName)/"FoamXCaseBrowser"; - - - if (orb_.isObjectBound(caseBrowserObjectName)) - { - throw FoamXError - ( - E_FAIL, - string("CaseBrowser already running on ") + hostName - + " according to nameserver", - functionName, - __FILE__, __LINE__ - ); - } - - // Start a case browser process on the specified host. Pass through - // arguments with which HostBrowser was called. - stringList browserArgs(args_); - - browserArgs[0] = "FoamXCaseBrowser"; - - stringList argList - ( - procControl_.remoteShellArgs - ( - userName(), - hostName, - browserArgs, - "", // no log file - true // run in background - ) - ); - - if (procControl_.system(argList) != 0) - { - hostIsDead(hostName); - - throw FoamXSYSError - ( - E_FAIL, - "Server '" + caseBrowserObjectName + "' timed-out.", - hostName, - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IHostBrowserImpl::getCaseBrowserReference -( - const char *hostName, - FoamXServer::CaseBrowser::ICaseBrowser_out browserObj -) -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::getCaseBrowserReference" - "(const char *hostName, " - "FoamXServer::CaseBrowser::ICaseBrowser_out browserObj)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName browserKey(fileName(hostName)/"FoamXCaseBrowser"); - - try - { - // Connect to name server. - NameServer fxNameServer(orb_.orbPtr_); - - if (fxNameServer.isObjectBound(browserKey)) - { - // Return server reference. - browserObj = - fxNameServer.resolve - (browserKey); - - return true; - } - return false; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::validate() -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::save() -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::save()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IHostBrowserImpl::close() -{ - static const char* functionName = - "FoamX::IHostBrowserImpl::close()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Unregister object from the naming service. - NameServer fxNameServer(orb_.orbPtr_); - fxNameServer.unbindObject(objectName_); - fxNameServer.disconnect(); - - // Shutdown th'Orb. - // Remove for Java 1.4 since it messes up CORBA connectionx - orb_.orbPtr_->shutdown(false); - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.H deleted file mode 100644 index 8af175e790..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/IHostBrowserImpl.H +++ /dev/null @@ -1,138 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ICaseServerImpl - -Description - -SourceFiles - IHostBrowserImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IHostBrowserImpl_H -#define IHostBrowserImpl_H - -// Foam header files. -#include "HashPtrTable.H" -#include "stringList.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXWordList.H" -#include "ProcessControl.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class Orb; - -/*---------------------------------------------------------------------------*\ - Class IHostBrowserImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IHostBrowserImpl -: - public POA_FoamXServer::HostBrowser::IHostBrowser, - public PortableServer::RefCountServantBase -{ - // Private data - - //- Reference to the ORB - Orb& orb_; - - //- Command line arguments - Foam::stringList args_; - - //- Object name for name server registration. - Foam::fileName objectName_; - - //- List of licenced host names. - Foam::HashPtrTable hosts_; - - //- Process controls - FoamX::ProcessControl procControl_; - - - // Protected member functions. - - void getServerReference - ( - const char *hostName, - const Foam::fileName& objectKey, - FoamXServer::CaseBrowser::ICaseBrowser_out caseBrowser - ); - - -public: - - // Constructors - - IHostBrowserImpl(Orb& orb, const Foam::stringList& args); - - - // Destructor - - virtual ~IHostBrowserImpl(); - - - // Member Functions - - // Implemented IHostBrowser methods. - - virtual FoamXServer::HostDescriptorList* hosts(); - virtual void refreshHostList(); - virtual CORBA::Boolean isHostAlive(const char* hostname); - virtual void hostIsAlive(const char* hostname); - virtual void hostIsDead(const char* hostname); - virtual void validate(); - virtual void save(); - virtual void close(); - - virtual void openCaseBrowser - ( - const char* hostname - ); - - virtual CORBA::Boolean getCaseBrowserReference - ( - const char* hostname, - FoamXServer::CaseBrowser::ICaseBrowser_out browserObj - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/files b/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/files deleted file mode 100644 index 5e54c2b4ec..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/files +++ /dev/null @@ -1,4 +0,0 @@ -FoamXHostBrowser.C -IHostBrowserImpl.C - -EXE = $(FOAM_APPBIN)/FoamXHostBrowser diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/options b/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/options deleted file mode 100644 index a40730165d..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXHostBrowser/Make/options +++ /dev/null @@ -1,12 +0,0 @@ -#include "../../FoamXLib/Make/orbOptions" - -EXE_INC = \ - $(ORB_INC) \ - -I../FoamXLib/lnInclude \ - -I../FoamXServer \ - - -EXE_LIBS = \ - -lFoamX \ - -lFoamXServer \ - $(ORB_LIBS) diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/DictionaryWriter.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/DictionaryWriter.C deleted file mode 100644 index c154962d8d..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/DictionaryWriter.C +++ /dev/null @@ -1,555 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "fileName.H" -#include "OFstream.H" -#include "IOobject.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "DictionaryWriter.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::DictionaryWriter::DictionaryWriter(const fileName& fileName) -: - pFileStream_(NULL), - fileName_(fileName), - caseRoot_(""), - caseName_(""), - instance_(fileName_.path()), - object_(fileName_.name()), - entryNameSize_(20) -{ - static const char* functionName = - "FoamX::DictionaryWriter::DictionaryWriter(const fileName& fileName)"; - - try - { - // Make directory if required. - if (!dir(fileName_.path()) && !mkDir(fileName_.path())) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to create directory '" + fileName_.path() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Backup existing file. TODO : Make this behaviour configurable. - if (Foam::file(fileName_)) - { - mv(fileName_, fileName_ + ".bak"); - } - - // Open the file stream. - pFileStream_ = new OFstream(fileName_); - - if (!pFileStream_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to open file '" + fileName_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::DictionaryWriter::DictionaryWriter -( - const fileName& caseRoot, - const fileName& caseName, - const fileName& instance, - const fileName& object -) -: - pFileStream_(NULL), - caseRoot_(caseRoot), - caseName_(caseName), - instance_(instance), - object_(object), - entryNameSize_(20) -{ - static const char* functionName = - "FoamX::DictionaryWriter::DictionaryWriter" - "(const fileName& caseRoot, const fileName& caseName, " - "const fileName& instance, const fileName& object)"; - - try - { - // Make directory if required. - fileName_ = caseRoot_ / caseName_ / instance_ / object_; - if (!dir(fileName_.path()) && !mkDir(fileName_.path())) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to create directory '" + fileName_.path() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Backup existing file. TODO : Make this behaviour configurable. - if (Foam::file(fileName_)) - { - mv(fileName_, fileName_ + ".bak"); - } - - // Open the file stream. - pFileStream_ = new OFstream(fileName_); - - if (!pFileStream_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to open file '" + fileName_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::DictionaryWriter::~DictionaryWriter() -{ - if (pFileStream_ != NULL) - { - delete pFileStream_; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeHeader -( - const string& title, - const word& className -) -{ - IOobject::writeBanner(file()); - file() << endl; - writeComment(title); - writeEndl(); - startSubDict("FoamFile"); - writeEntry("version", IOstream::currentVersion.str().c_str()); - writeEntry("format", word("ascii")); - writeEndl(); - writeEntry("root", caseRoot_); - writeEntry("case", caseName_); - writeEntry("instance", instance_); - writeEntry("local", string("")); - writeEndl(); - writeEntry("class", className); - writeEntry("object", fileName_.name()); - endSubDict(); - writeEndl(); - writeBar(); - writeEndl(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeSectionHeader(const string& name) -{ - file() << endl << "// " << name.c_str() << endl << "// "; - writeChars('~', name.size()); - writeEndl(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeKeyword(const word& name) -{ - file().writeKeyword(name); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeKeywordOnly(const word& name) -{ - file().indent(); - file() << name; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const char* value -) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const FoamXString& value -) -{ - writeKeyword(name); - value.write(file()); - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const string& value -) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry(const word& name, const word& value) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry(const word& name, const label& value) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const scalar& value -) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const bool& value -) -{ - writeKeyword(name); - file() << value; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const FoamX::FoamXAny& value -) -{ - writeKeyword(name); - writeValue(value); - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const FoamXServer::DimensionSet& entry -) -{ - writeKeyword(name); - file() << token::BEGIN_SQR - << entry.mass - << " " << entry.length - << " " << entry.time - << " " << entry.temperature - << " " << entry.moles - << " " << entry.current - << " " << entry.luminousIntensity - << token::END_SQR; - endEntry(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::startFixedList() -{ - file() << token::BEGIN_LIST; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::endFixedList() -{ - file() << token::END_LIST; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::startList(const label& numElements) -{ - file() << nl; - - if (numElements > 100) - { - file() << Foam::indent << numElements << nl; - } - - file() << Foam::indent << token::BEGIN_LIST << incrIndent; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::endList() -{ - file() << nl << decrIndent << Foam::indent << token::END_LIST; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::DictionaryWriter::writeEntry -( - const word& name, - const FoamXServer::StringList& list -) -{ - writeKeyword(name); - - startList(list.length()); - - for (unsigned int i = 0; i tk_boolean any type. - value <<= CORBA::Any::from_boolean(bool(t.labelToken())); - } - break; - - case Type_Char: - case Type_Word: - { - token t(is); - // Char, Word -> tk_string any type. - value <<= t.wordToken().c_str(); - } - break; - - case Type_String: - case Type_RootDir: - case Type_RootAndCase: - case Type_CaseName: - case Type_HostName: - case Type_File: - case Type_Directory: - case Type_Time: - { - token t(is); - // String -> tk_string any type. - value <<= t.stringToken().c_str(); - } - break; - - case Type_Label: - { - token t(is); - // Label -> tk_long any type. - value <<= CORBA::Long(t.labelToken()); - } - break; - - case Type_Scalar: - { - token t(is); - // Scalar -> tk_double any type. - value <<= t.number(); - } - break; - - case Type_DimensionSet: - { - // Construct a dimensionSet object and copy into - // DimensionSet structure. - DimensionSet fdm; - fdm == dimensionSet(is); - value <<= fdm; - } - break; - - case Type_FixedList: - case Type_List: - case Type_Dictionary: - case Type_Compound: - case Type_Selection: - case Type_Undefined: - case Type_Field: - default: - throw FoamXError - ( - E_INVALID_ARG, - "Invalid type " + FoamXTypes::typeName(type), - functionName, - __FILE__, __LINE__ - ); - } - - // Check stream status. - is.check("FoamX::FoamXAny::read(Istream&)"); - } - CATCH_ALL(functionName); -} - - -void FoamX::FoamXAny::write(Foam::Ostream& os) const -{ - static const char* functionName = - "FoamX::FoamXAny::write(Foam::Ostream& os) const"; - - try - { - if (!IsSet()) - { - os << ""; - return; - } - - // Write current value. - switch(type) - { - case Type_Boolean: - { - // Extract into a boolean. - CORBA::Boolean b = 0; - CORBA::Any::to_boolean tb(b); - if (!(value >>= tb)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Boolean output.", - functionName, - __FILE__, __LINE__ - ); - } - os << Foam::label(b); - } - break; - - case Type_Char: - case Type_Word: - { - // Extract into a string. - const char* str = NULL; - if (!(value >>= str)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Char/Word output.", - functionName, - __FILE__, __LINE__ - ); - } - os << Foam::word(str); - } - break; - - case Type_String: - case Type_RootDir: - case Type_RootAndCase: - case Type_CaseName: - case Type_HostName: - case Type_File: - case Type_Time: - { - // Extract into a string. - const char* str = NULL; - if (!(value >>= str)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for String output.", - functionName, - __FILE__, __LINE__ - ); - } - os << Foam::string(str); - } - break; - - case Type_Label: - { - // Extract into a long int. - CORBA::Long lb = 0; - if (!(value >>= lb)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Label output.", - functionName, - __FILE__, __LINE__ - ); - } - os << Foam::label(lb); - } - break; - - case Type_Scalar: - { - // Extract into a scalar. - CORBA::Double sc = 0.0; - if (!(value >>= sc)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Scalar output.", - functionName, - __FILE__, __LINE__ - ); - } - os << Foam::scalar(sc); - } - break; - - case Type_DimensionSet: - { - // Extract into dimension set. - const DimensionSet* fdm = NULL; - if (!(value >>= fdm)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for DimensionSet output.", - functionName, - __FILE__, __LINE__ - ); - } - os << token::BEGIN_SQR - << fdm->mass - << " " << fdm->length - << " " << fdm->time - << " " << fdm->temperature - << " " << fdm->moles - << " " << fdm->current - << " " << fdm->luminousIntensity - << token::END_SQR; - } - break; - - case Type_FixedList: - case Type_List: - case Type_Dictionary: - case Type_Compound: - case Type_Selection: - case Type_Undefined: - default: - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type.", - functionName, - __FILE__, __LINE__ - ); - } - - // Check stream status. - os.check("FoamX::FoamXAny::write(Ostream&)"); - } - CATCH_ALL(functionName); -} - - -void FoamX::FoamXAny::setDefaultValue() -{ - static const char* functionName = - "FoamX::FoamXAny::setDefaultValue()"; - - try - { - switch(type) - { - case Type_Boolean: - { - value <<= CORBA::Any::from_boolean(false); - } - break; - - case Type_Char: - { - value <<= static_cast("?"); - } - break; - - case Type_Word: - { - value <<= static_cast("<>"); - } - break; - - case Type_String: - case Type_RootDir: - case Type_RootAndCase: - case Type_CaseName: - case Type_HostName: - case Type_File: - case Type_Time: - { - value <<= static_cast(""); - } - break; - - case Type_Label: - { - value <<= CORBA::Long(0); - } - break; - - case Type_Scalar: - { - value <<= CORBA::Double(0.0); - } - break; - - case Type_DimensionSet: - { - DimensionSet fdm; - fdm.mass = 0; - fdm.length = 0; - fdm.time = 0; - fdm.temperature = 0; - fdm.moles = 0; - fdm.current = 0; - fdm.luminousIntensity = 0; - - value <<= fdm; - } - break; - - default: - // No default value required for any other types. - break; - } - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // - -void FoamX::FoamXAny::operator=(const FoamXServer::FoamXAny& any) -{ - static const char* functionName = - "FoamX::FoamXAny::operator=(const FoamXServer::FoamXAny& any)"; - - try - { - if (type != any.type) - { - throw FoamXError - ( - E_INVALID_ARG, - "Type mismatch, expected " + FoamXTypes::typeName(type) - + ", got " + FoamXTypes::typeName(any.type), - functionName, - __FILE__, __LINE__ - ); - } - - FoamXServer::FoamXAny::operator=(any); - } - CATCH_ALL(functionName); -} - - -void FoamX::FoamXAny::operator=(const FoamXAny& any) -{ - // Check for assignment to self. - if (this != & any) - { - // Copy type. - type = any.type; - - // Copy value - value = any.value; - } -} - - -bool FoamX::FoamXAny::operator==(const FoamXServer::FoamXAny& any) const -{ - return (type == any.type && value == any.value); -} - - -bool FoamX::FoamXAny::operator!=(const FoamXServer::FoamXAny& any) const -{ - return !operator==(any); -} - - -void FoamX::operator> -( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 -) -{ - static const char* functionName = - "FoamX::operator>" - "(const FoamXServer::FoamXAny& any1 const FoamXServer::FoamXAny& any2)"; - - try - { - if (any1.type != any2.type) - { - throw FoamXError - ( - E_UNEXPECTED, - "Incompatible types for operation >. " - "Expected scalars or labels, found a " - + FoamXTypes::typeName(any1.type) + " and a " - + FoamXTypes::typeName(any2.type), - functionName, - __FILE__, __LINE__ - ); - } - - switch(any1.type) - { - case Type_Label: - { - // Extract this into a long int. - CORBA::Long lb1 = 0; - if (!(any1.value >>= lb1)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Label output.", - functionName, - __FILE__, __LINE__ - ); - } - - // Extract the any into a long int. - CORBA::Long lb2 = 0; - if (!(any2.value >>= lb2)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Label output.", - functionName, - __FILE__, __LINE__ - ); - } - - if (lb1 > lb2) - { - throw FoamXError - ( - E_UNEXPECTED, - "Label value " + name(label(lb1)) - + " is greater than the maximum " + name(label(lb2)), - functionName, - __FILE__, __LINE__ - ); - } - } - break; - - case Type_Scalar: - { - // Extract this into a scalar. - CORBA::Double sc1 = 0.0; - if (!(any1.value >>= sc1)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Scalar output.", - functionName, - __FILE__, __LINE__ - ); - } - - // Extract the any into a scalar. - CORBA::Double sc2 = 0.0; - if (!(any2.value >>= sc2)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Scalar output.", - functionName, - __FILE__, __LINE__ - ); - } - - if (sc1 > sc2) - { - throw FoamXError - ( - E_UNEXPECTED, - "Label value " + name(scalar(sc1)) - + " is greater than the maximum " + name(scalar(sc2)), - functionName, - __FILE__, __LINE__ - ); - } - } - break; - - default: - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for operation >. " - "Expected scalars or labels, found " - + FoamXTypes::typeName(any1.type), - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - - -void FoamX::operator< -( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 -) -{ - static const char* functionName = - "FoamX::operator<" - "(const FoamXServer::FoamXAny& any1 const FoamXServer::FoamXAny& any2)"; - - try - { - if (any1.type != any2.type) - { - throw FoamXError - ( - E_UNEXPECTED, - "Incompatible types for operation <. " - "Expected scalars or labels, found a " - + FoamXTypes::typeName(any1.type) + " and a " - + FoamXTypes::typeName(any2.type), - functionName, - __FILE__, __LINE__ - ); - } - - switch(any1.type) - { - case Type_Label: - { - // Extract this into a long int. - CORBA::Long lb1 = 0; - if (!(any1.value >>= lb1)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Label output.", - functionName, - __FILE__, __LINE__ - ); - } - - // Extract the any into a long int. - CORBA::Long lb2 = 0; - if (!(any2.value >>= lb2)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Label output.", - functionName, - __FILE__, __LINE__ - ); - } - - if (lb1 < lb2) - { - throw FoamXError - ( - E_UNEXPECTED, - "Label value " + name(label(lb1)) - + " is greater than the maximum " + name(label(lb2)), - functionName, - __FILE__, __LINE__ - ); - } - } - break; - - case Type_Scalar: - { - // Extract this into a scalar. - CORBA::Double sc1 = 0.0; - if (!(any1.value >>= sc1)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Scalar output.", - functionName, - __FILE__, __LINE__ - ); - } - - // Extract the any into a scalar. - CORBA::Double sc2 = 0.0; - if (!(any2.value >>= sc2)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for Scalar output.", - functionName, - __FILE__, __LINE__ - ); - } - - if (sc1 < sc2) - { - throw FoamXError - ( - E_UNEXPECTED, - "Label value " + name(scalar(sc1)) - + " is greater than the maximum " + name(scalar(sc2)), - functionName, - __FILE__, __LINE__ - ); - } - } - break; - - default: - throw FoamXError - ( - E_UNEXPECTED, - "Invalid type for operation <. " - "Expected scalars or labels, found " - + FoamXTypes::typeName(any1.type), - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAny.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAny.H deleted file mode 100644 index 8d0ac24ee1..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAny.H +++ /dev/null @@ -1,158 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXAny - -Description - Class to manage the mapping between Foam types, FoamX types and the - CORBA Any type. - -SourceFiles - FoamXAny.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamX_H -#define FoamX_H - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of friend functions and operators - -class FoamXAny; - -void operator> -( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 -); - -void operator< -( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 -); - - -/*---------------------------------------------------------------------------*\ - Class Any Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXAny -: - public FoamXServer::FoamXAny -{ - // Private member functions - - void setDefaultValue(); - - -public: - - // Constructors - - //- Default constructor - FoamXAny(FoamXServer::FoamXType type = FoamXServer::Type_Undefined); - - //- Read constructor given type - FoamXAny(FoamXServer::FoamXType type, Foam::Istream& is); - - //- Copy constructor - FoamXAny(const FoamXAny& any); - - - //- Destructor - - virtual ~FoamXAny(); - - - // Member Functions - - // Access - - void setType(FoamXServer::FoamXType type); - - //- Sets the value of this object. Throws an exception if the types - // are incompatible. - void setValue(const FoamXServer::FoamXAny& any); - - //- Returns true if the value of this object has been set. - bool IsSet() const - { - return (value.type()->kind() != CORBA::tk_null); - } - - void setMin(); - void setMax(); - - - // Read - - void read(Foam::Istream& is); - - - // Write - - void write(Foam::Ostream& os) const; - - - // Member Operators - - void operator=(const FoamXServer::FoamXAny& any); - void operator=(const FoamXAny& any); - - bool operator==(const FoamXServer::FoamXAny& any) const; - bool operator!=(const FoamXServer::FoamXAny& any) const; - - friend void operator> - ( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 - ); - - friend void operator< - ( - const FoamXServer::FoamXAny& any1, - const FoamXServer::FoamXAny& any2 - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAnyList.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAnyList.H deleted file mode 100644 index 7e8b6a1ee6..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXAnyList.H +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Type - FoamXAnyList - -Description - List of FoamXAny. - -\*---------------------------------------------------------------------------*/ -// -------------------------------------------------------------------------- // - -#ifndef FoamXAnyList_H -#define FoamXAnyList_H - -// Foam header files. -#include "List.H" - -// FoamX header files. -#include "FoamXAny.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - typedef Foam::List FoamXAnyList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.C deleted file mode 100644 index ac92a0f9e9..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.C +++ /dev/null @@ -1,380 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -#include "long.H" -#include "string.H" -#include "fileName.H" -#include "dictionary.H" -#include "LogEntry.H" - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -defineTypeNameAndDebug(FoamX::FoamXError, 0); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXError::FoamXError -( - FoamXServer::ErrorCode errCode, - const string& message, - const char* function, - const char* fName, - label lineNo -) -: - FoamXServer::FoamXError - ( - errCode, - message.c_str(), - function, - fName, - lineNo - ) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXError" - "(FoamXServer::ErrorCode errCode, const string& message," - "const char* functionName, const char* fName, label lineNo)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -FoamX::FoamXError::FoamXError(const FoamXServer::FoamXError& fErr) -: - FoamXServer::FoamXError(fErr) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXError(const FoamXServer::FoamXError& fErr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -FoamX::FoamXError::FoamXError(const error& fErr) -: - FoamXServer::FoamXError - ( - FoamXServer::E_FOAM, - fErr.message().c_str(), - fErr.functionName().c_str(), - fErr.sourceFileName().c_str(), - fErr.sourceFileLineNumber() - ) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXError(const error& fErr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - - -Foam::Ostream& FoamX::operator<< -( - Ostream& os, - const FoamXServer::FoamXError& fxErr -) -{ - os << "FoamXError " << string(fxErr.errorMessage) << nl - << "In function " << string(fxErr.methodName) << nl - << "in file " << fileName(fxErr.fileName) - << " at line " << fxErr.lineNo; - - return os; -} - - -FoamX::FoamXSYSError::FoamXSYSError -( - FoamXServer::ErrorCode errCode, - const string& message, - const string& hostName, - const char* function, - const char* fName, - label lineNo -) -: - FoamXServer::FoamXSYSError - ( - errCode, - message.c_str(), - hostName.c_str(), - function, - fName, - lineNo - ) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXSYSError" - "(FoamXServer::ErrorCode errCode, const string& messsage, " - "const string& hostName, " - "const char* functionName, const char* fName, label lineNo)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -FoamX::FoamXSYSError::FoamXSYSError(const FoamXServer::FoamXSYSError& sysErr) -: - FoamXServer::FoamXSYSError(sysErr) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXError" - "(const FoamXServer::FoamXSYSError& sysErr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -Foam::Ostream& FoamX::operator<< -( - Ostream& os, - const FoamXServer::FoamXSYSError& sysErr -) -{ - os << "FoamXSYSError " << string(sysErr.errorMessage) << nl - << "Problem with machine " << string(sysErr.hostName) << nl - << "In function " << string(sysErr.methodName) << nl - << "in file " << fileName(sysErr.fileName) - << " at line " << sysErr.lineNo; - - return os; -} - - -FoamX::FoamXIOError::FoamXIOError -( - const string& message, - const string& ioFileName, - label ioStartLineNumber, - label ioEndLineNumber, - const char* function, - const char* fName, - label lineNo -) -: - FoamXServer::FoamXIOError - ( - message.c_str(), - ioFileName.c_str(), - ioStartLineNumber, - ioEndLineNumber, - function, - fName, - lineNo - ) -{ - static const char* functionName = - "FoamX::FoamXError::FoamXError" - "(const string& message, const string& ioFileName, " - "label ioStartLineNumber, label ioEndLineNumber, " - "const char* functionName, const char* fName, label lineNo)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -FoamX::FoamXIOError::FoamXIOError(const FoamXServer::FoamXIOError& fErr) -: - FoamXServer::FoamXIOError(fErr) -{ - static const char* functionName = - "FoamX::FoamXIOError::FoamXIOError" - "(const FoamXServer::FoamXIOError& fErr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - -FoamX::FoamXIOError::FoamXIOError(const IOerror& fIOErr) -: - FoamXServer::FoamXIOError - ( - fIOErr.message().c_str(), - fIOErr.ioFileName().c_str(), - fIOErr.ioStartLineNumber(), - fIOErr.ioEndLineNumber(), - fIOErr.functionName().c_str(), - fIOErr.sourceFileName().c_str(), - fIOErr.sourceFileLineNumber() - ) -{ - static const char* functionName = - "FoamX::foamXError(const IOerror& fIOErr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - log << *this << endl; -} - - -Foam::Ostream& FoamX::operator<< -( - Ostream& os, - const FoamXServer::FoamXIOError& fIOErr -) -{ - os << "FoamXIOError " << string(fIOErr.errorMessage) << nl - << "File " << fileName(fIOErr.ioFileName) - << " starting at line " << fIOErr.ioStartLineNo - << " ending at line " << fIOErr.ioEndLineNo << nl - << "In function " << string(fIOErr.methodName) << nl - << "in file " << fileName(fIOErr.fileName) - << " at line " << fIOErr.lineNo; - - return os; -} - - - -Foam::dictionary FoamX::dict(const error& fErr) -{ - return fErr; -} - -Foam::dictionary FoamX::dict(const IOerror& fIOErr) -{ - return fIOErr; -} - -Foam::dictionary FoamX::dict(const FoamXServer::FoamXError& fxErr) -{ - dictionary fxErrDict; - fxErrDict.add("type", word("FoamXServer::FoamXError")); - fxErrDict.add("errorCode", label(fxErr.errorCode)); - fxErrDict.add("message", string(fxErr.errorMessage)); - fxErrDict.add("function", string(fxErr.methodName)); - fxErrDict.add("sourceFile", fileName(fxErr.fileName)); - fxErrDict.add("sourceFileLineNumber", fxErr.lineNo); - - return fxErrDict; -} - -Foam::dictionary FoamX::dict(const FoamXServer::FoamXIOError& fIOErr) -{ - dictionary fIOErrDict; - fIOErrDict.add("type", word("FoamXServer::FoamXIOError")); - fIOErrDict.add("message", string(fIOErr.errorMessage)); - fIOErrDict.add("ioFileName", fileName(fIOErr.ioFileName)); - fIOErrDict.add("ioStartLineNumber", fIOErr.ioStartLineNo); - fIOErrDict.add("ioEndLineNumber", fIOErr.ioEndLineNo); - fIOErrDict.add("function", string(fIOErr.methodName)); - fIOErrDict.add("sourceFile", fileName(fIOErr.fileName)); - fIOErrDict.add("sourceFileLineNumber", fIOErr.lineNo); - - return fIOErrDict; -} - -Foam::dictionary FoamX::dict(const CORBA::COMM_FAILURE& ex) -{ - dictionary exDict; - exDict.add("type", word("CORBA::COMM_FAILURE")); - return exDict; -} - -Foam::dictionary FoamX::dict(const CORBA::SystemException& ex) -{ - dictionary exDict; - exDict.add("type", word("CORBA::SystemException")); - return exDict; -} - -Foam::dictionary FoamX::dict(const CORBA::Exception& ex) -{ - dictionary exDict; - exDict.add("type", word("CORBA::Exception")); - return exDict; -} - -Foam::dictionary FoamX::dict(const FoamX::systemError& ex) -{ - dictionary exDict; - exDict.add("type", word("::systemError")); - return exDict; -} - - -void FoamX::reThrow(const dictionary& errorDict) -{ - word errorType(errorDict.lookup("type")); - - if (errorType == "error") - { - throw FoamXError(error(errorDict)); - } - else if (errorType == "IOerror") - { - throw FoamXIOError(IOerror(errorDict)); - } - else if (errorType == "FoamXServer::FoamXError") - { - throw FoamXError - ( - FoamXServer::ErrorCode - ( - readLabel(errorDict.lookup("errorCode")) - ), - string(errorDict.lookup("message")), - string(errorDict.lookup("function")).c_str(), - string(errorDict.lookup("sourceFile")).c_str(), - readLabel(errorDict.lookup("sourceFileLineNumber")) - ); - } - else if (errorType == "FoamXServer::FoamXIOError") - { - throw FoamXIOError - ( - string(errorDict.lookup("message")), - string(errorDict.lookup("ioFileName")), - readLabel(errorDict.lookup("ioStartLineNumber")), - readLabel(errorDict.lookup("ioEndLineNumber")), - string(errorDict.lookup("function")).c_str(), - string(errorDict.lookup("sourceFile")).c_str(), - readLabel(errorDict.lookup("sourceFileLineNumber")) - ); - } - else - { - throw FoamXError - ( - FoamXServer::E_UNEXPECTED, - "Unexpected error: " + errorType, - "FoamX::reThrow(const dictionary& errorDict)", - __FILE__, __LINE__ - ); - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.H deleted file mode 100644 index a68d4af578..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXErrors.H +++ /dev/null @@ -1,249 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXError - -Description - -SourceFiles - FoamXErrors.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXError_H -#define FoamXError_H - -// Foam header files. -#include "error.H" -#include "dictionaryEntry.H" -#include "OSstream.H" -#include "OFstream.H" -#include "className.H" - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -class systemError -{}; - - -class FoamXError -: - public FoamXServer::FoamXError -{ -public: - - // Declare name of the class and it's debug switch - ClassName("FoamXError"); - - FoamXError - ( - FoamXServer::ErrorCode, - const Foam::string& message, - const char* functionName, - const char* sourceName, - Foam::label sourceLineNo - ); - - FoamXError(const FoamXServer::FoamXError&); - - FoamXError(const Foam::error&); -}; - -Foam::Ostream& operator<< -( - Foam::Ostream& os, - const FoamXServer::FoamXError& fxErr -); - - -class FoamXSYSError -: - public FoamXServer::FoamXSYSError -{ -public: - - FoamXSYSError - ( - FoamXServer::ErrorCode, - const Foam::string& message, - const Foam::string& hostName, - const char* functionName, - const char* sourceName, - Foam::label sourceLineNo - ); - - FoamXSYSError(const FoamXServer::FoamXSYSError&); - - FoamXSYSError(const Foam::error&); -}; - -Foam::Ostream& operator<< -( - Foam::Ostream& os, - const FoamXServer::FoamXSYSError& fIOErr -); - - -class FoamXIOError -: - public FoamXServer::FoamXIOError -{ -public: - - FoamXIOError - ( - const Foam::string& message, - const Foam::string& ioFileName, - Foam::label ioStartLineNumber, - Foam::label ioEndLineNumber, - const char* functionName, - const char* sourceName, - Foam::label sourceLineNo - ); - - FoamXIOError(const FoamXServer::FoamXIOError&); - - FoamXIOError(const Foam::IOerror&); -}; - -Foam::Ostream& operator<< -( - Foam::Ostream& os, - const FoamXServer::FoamXIOError& fIOErr -); - - -Foam::dictionary dict(const Foam::error& fErr); -Foam::dictionary dict(const Foam::IOerror& fIOErr); -Foam::dictionary dict(const FoamXServer::FoamXError& fxErr); -Foam::dictionary dict(const FoamXServer::FoamXIOError& fxIOErr); -Foam::dictionary dict(const CORBA::COMM_FAILURE& ex); -Foam::dictionary dict(const CORBA::SystemException& ex); -Foam::dictionary dict(const CORBA::Exception& ex); -Foam::dictionary dict(const FoamX::systemError& ex); - - -void reThrow(const Foam::dictionary& errorDict); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -template -inline void writeException(const Exception& ex, const Foam::fileName& fName) -{ - if (fName.size()) - { - Foam::OFstream ofStream(fName); - - if (ofStream.good()) - { - ofStream - << Foam::dictionaryEntry - ( - "FatalError", - Foam::dictionary::null, - dict(ex) - ) - << Foam::endl; - } - } -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End of namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#define CATCH_ALL(functionName) \ - \ - catch (Foam::IOerror& fIOErr) \ - { \ - /* Convert the Foam::IOerror into a FoamX::IOerror error \ - and re-throw */ \ - throw FoamX::FoamXIOError(fIOErr); \ - } \ - catch (Foam::error& fErr) \ - { \ - /* Convert the Foam error into a FoamX error and re-throw */ \ - throw FoamX::FoamXError(fErr); \ - } \ - catch (FoamX::FoamXError& fxErr) \ - { \ - /* Bounce exception up to client */ \ - throw fxErr; \ - } \ - catch (FoamXServer::FoamXError& fxErr) \ - { \ - /* Convert into FoamX error and bounce up to client */ \ - throw FoamX::FoamXError(fxErr); \ - } \ - catch (FoamX::FoamXSYSError& sysErr) \ - { \ - /* Bounce exception up to client */ \ - throw sysErr; \ - } \ - catch (FoamXServer::FoamXSYSError& sysErr) \ - { \ - /* Convert into FoamX error and bounce up to client */ \ - throw FoamX::FoamXSYSError(sysErr); \ - } \ - catch (FoamX::FoamXIOError& fIOErr) \ - { \ - /* Bounce exception up to client */ \ - throw fIOErr; \ - } \ - catch (FoamXServer::FoamXIOError& fIOErr) \ - { \ - /* Convert into FoamX error and bounce up to client */ \ - throw FoamX::FoamXIOError(fIOErr); \ - } \ - catch (...) \ - { \ - throw FoamX::FoamXError \ - ( \ - FoamXServer::E_UNEXPECTED, \ - "Unexpected error.", \ - functionName, \ - __FILE__, __LINE__ \ - ); \ - } - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.C deleted file mode 100644 index 6979581895..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.C +++ /dev/null @@ -1,82 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXFileNameList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXFileNameList::FoamXFileNameList() -{} - -FoamX::FoamXFileNameList::FoamXFileNameList(const Foam::fileNameList& list) -{ - // Reset list length. - length(list.size()); - - // Copy list elements. - forAll(list, i) - { - (*this)[i] = (const char*)list[i].c_str(); - } -} - -FoamX::FoamXFileNameList::FoamXFileNameList(Foam::Istream& is) -: - FoamXStringList(is) -{} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXFileNameList& FoamX::FoamXFileNameList::operator= -( - const FoamXServer::StringList& list -) -{ - // Copy string values. Need to call base classes assignment operator. - FoamXServer::StringList::operator=(list); - - return *this; -} - -FoamX::FoamXFileNameList& FoamX::FoamXFileNameList::operator= -( - const Foam::fileNameList& list -) -{ - length(list.size()); - - forAll(list, i) - { - operator[](i) = list[i].c_str(); - } - - return *this; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.H deleted file mode 100644 index 25f5bb204c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXFileNameList.H +++ /dev/null @@ -1,84 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXString - -Description - -SourceFiles - FoamXFileNameList.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXFileNameList_H -#define FoamXFileNameList_H - -// Foam header files. -#include "fileNameList.H" - -// FoamX header files. -#include "FoamXStringList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class FoamXFileNameList Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXFileNameList -: - public FoamXStringList -{ - -public: - - // Constructors - - FoamXFileNameList(); - - FoamXFileNameList(const Foam::fileNameList&); - - FoamXFileNameList(Foam::Istream& is); - - - // Member Operators - - FoamXFileNameList& operator=(const FoamXServer::StringList&); - FoamXFileNameList& operator=(const Foam::fileNameList&); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXNameSpaces.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXNameSpaces.H deleted file mode 100644 index d4c15a48c2..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXNameSpaces.H +++ /dev/null @@ -1,59 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Namespace - FoamXNameSpaces - -Description - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXNameSpaces_H -#define FoamXNameSpaces_H - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam {} - -namespace FoamXServer -{ - namespace CaseServer {} - namespace CasePostServer {} -} - -namespace FoamX -{ - using namespace Foam; - - using namespace FoamXServer; - using namespace FoamXServer::CaseServer; - using namespace FoamXServer::CasePostServer; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.C deleted file mode 100644 index f886a07022..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.C +++ /dev/null @@ -1,190 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXString.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString() -{ - tokenType_ = token::STRING; - foamXType_ = FoamXServer::Type_String; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString(const FoamX::FoamXString& str) -: - String_var(str) -{ - tokenType_ = str.tokenType_; - foamXType_ = str.foamXType_; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString(const Foam::word& str) -: - String_var(str.c_str()) -{ - tokenType_ = token::WORD; - foamXType_ = FoamXServer::Type_Word; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString(const Foam::string& str) -: - String_var(str.c_str()) -{ - tokenType_ = token::STRING; - foamXType_ = FoamXServer::Type_String; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString(const char* str) -: - String_var(str) -{ - tokenType_ = token::STRING; - foamXType_ = FoamXServer::Type_String; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::FoamXString(Foam::Istream& is) -{ - read(is); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString::~FoamXString() -{} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString& FoamX::FoamXString::operator=(const FoamXString& str) -{ - tokenType_ = str.tokenType_; - foamXType_ = str.foamXType_; - - // Copy string value. Need to call base classes assignment operator. - CORBA::String_var::operator=(str); - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString& FoamX::FoamXString::operator=(const Foam::string& str) -{ - tokenType_ = token::STRING; - foamXType_ = FoamXServer::Type_String; - - // Copy string value. Need to call base classes assignment operator. - CORBA::String_var::operator=(str.c_str()); - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString& FoamX::FoamXString::operator=(const Foam::word& str) -{ - tokenType_ = token::WORD; - foamXType_ = FoamXServer::Type_Word; - - // Copy string value. Need to call base classes assignment operator. - CORBA::String_var::operator=(str.c_str()); - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXString& FoamX::FoamXString::operator=(const char* str) -{ - // Do not reset the type. - - // Copy string value. Need to call base classes assignment operator. - CORBA::String_var::operator=(str); - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXString::read(Foam::Istream& is) -{ - // Construct token from Istream. - token tok(is); - - // Store the token type. - tokenType_ = tok.type(); - - if (tokenType_ == token::WORD) - { - CORBA::String_var::operator=(tok.wordToken().c_str()); - foamXType_ = FoamXServer::Type_Word; - } - else if (tokenType_ == token::STRING) - { - CORBA::String_var::operator=(tok.stringToken().c_str()); - foamXType_ = FoamXServer::Type_String; - } - else - { - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXString::write(Foam::Ostream& os) const -{ - // Convert this string to the appropriate token type and output. - - if (tokenType_ == token::WORD) - { - os << Foam::word(this->in()); // In method returns const char*. - } - else if (tokenType_ == token::STRING) - { - os << Foam::string(this->in()); // In method returns const char*. - } - else - { - WarningIn("FoamX::FoamXString::write(Foam::Ostream& os) const") - << "Expected word or string token." - << Foam::endl; - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.H deleted file mode 100644 index 28e98e1c00..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXString.H +++ /dev/null @@ -1,124 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXString - -Description - -SourceFiles - FoamXString.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXString_H -#define FoamXString_H - -// Foam header files. -#include "Istream.H" -#include "Ostream.H" -#include "token.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class FoamXString Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXString -: - public CORBA::String_var -{ - // Private data - - // Additional information to allow mapping between CORBA and Foam types. - - //- Foam type - WORD or STRING. - Foam::token::tokenType tokenType_; - - //- FoamX type - Type_Char, Type_Word or Type_String. - FoamXServer::FoamXType foamXType_; - - -public: - - // Constructors - - FoamXString(); - - FoamXString(const FoamXString&); - - FoamXString(const Foam::string&); - - FoamXString(const Foam::word&); - - FoamXString(const char* str); - - FoamXString(Foam::Istream& is); - - - // Destructor - - ~FoamXString(); - - - // Member Functions - - // I/O methods. - - void write(Foam::Ostream& os) const; - - void read(Foam::Istream& is); - - - // Member Operators - - // Assignment operators. - - FoamXString& operator=(const FoamXString&); - - FoamXString& operator=(const Foam::string&); - - FoamXString& operator=(const Foam::word&); - - FoamXString& operator=(const char*); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.C deleted file mode 100644 index 0b49869c55..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.C +++ /dev/null @@ -1,169 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXStringList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXStringList::FoamXStringList() -{} - -FoamX::FoamXStringList::FoamXStringList(const FoamX::FoamXStringList& list) -: - StringSequenceTmpl() -{ - // Copy string values. Need to call base classes assignment operator. - FoamXServer::StringList::operator=(list); -} - -FoamX::FoamXStringList::FoamXStringList(const Foam::stringList& list) -{ - // Reset list length. - length(list.size()); - - // Copy list elements. - forAll(list, i) - { - (*this)[i] = list[i].c_str(); - } -} - -FoamX::FoamXStringList::FoamXStringList(Foam::Istream& is) -{ - read(is); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXStringList& FoamX::FoamXStringList::operator= -( - const FoamXServer::StringList& list -) -{ - // Copy string values. Need to call base classes assignment operator. - FoamXServer::StringList::operator=(list); - - return *this; -} - -FoamX::FoamXStringList& FoamX::FoamXStringList::operator= -( - const Foam::stringList& list -) -{ - length(list.size()); - - forAll(list, i) - { - operator[](i) = list[i].c_str(); - } - - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXStringList::append(const char* str) -{ - // Append string to list. - length(length() + 1); - (*this)[length() - 1] = str; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int FoamX::FoamXStringList::find(const char* str) -{ - int ret = -1; - - for (unsigned int i = 0; i length(length() - 1); - for (unsigned int i = 0, j = 0; i (Foam::stringList(is))); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXStringList::write(Foam::Ostream& os) const -{ - //os << Foam::label(length()); - - os << Foam::token::BEGIN_LIST; - - for (unsigned int i = 0; i < length(); i++) - { - os << Foam::string(operator[](i)); - } - - os << Foam::token::END_LIST; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.H deleted file mode 100644 index 4a925daae4..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXStringList.H +++ /dev/null @@ -1,115 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXString - -Description - -SourceFiles - FoamXStringList.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXStringList_H -#define FoamXStringList_H - -// Foam header files. -#include "stringList.H" - -// FoamX header files. -#include "FoamX.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class FoamXStringList Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXStringList -: - public FoamXServer::StringList -{ - -public: - - // Constructors - - FoamXStringList(); - - FoamXStringList(const FoamXStringList&); - - FoamXStringList(const Foam::stringList&); - - FoamXStringList(Foam::Istream& is); - - - // Member Functions - - // Utility functions. - - Foam::label size() const - { - return length(); - } - - void append(const char*); - - //- Returns -1 if string not found on list, or the index otherwise. - int find(const char*); - - bool found(const char* name) - { - return (find(name) != -1); - } - - bool remove(const char*); - - - // Input/Output. - - void write(Foam::Ostream& os) const; - - void read(Foam::Istream& is); - - - // Member Operators - - FoamXStringList& operator=(const FoamXServer::StringList&); - FoamXStringList& operator=(const Foam::stringList&); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.C deleted file mode 100644 index ba554de0e3..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.C +++ /dev/null @@ -1,149 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -#include "FoamXTypes.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -Foam::wordList FoamX::FoamXTypes::typeNames_; -Foam::HashTable FoamX::FoamXTypes::types_; -Foam::word FoamX::FoamXTypes::invalidTypeName_("invalidType"); - -//- Construct dummy FoamXTypes to initialise static data -FoamX::FoamXTypes FoamXTypes_; - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -//- Construct null -FoamX::FoamXTypes::FoamXTypes() -{ - typeNames_.setSize(FoamXServer::Type_Field + 1); - - typeNames_[FoamXServer::Type_Boolean] = "boolean"; - typeNames_[FoamXServer::Type_Label] = "label"; - typeNames_[FoamXServer::Type_Scalar] = "scalar"; - typeNames_[FoamXServer::Type_Char] = "char"; - typeNames_[FoamXServer::Type_Word] = "word"; - typeNames_[FoamXServer::Type_String] = "string"; - typeNames_[FoamXServer::Type_RootDir] = "rootDir"; - typeNames_[FoamXServer::Type_RootAndCase] = "rootAndCase"; - typeNames_[FoamXServer::Type_CaseName] = "caseName"; - typeNames_[FoamXServer::Type_HostName] = "hostName"; - typeNames_[FoamXServer::Type_File] = "file"; - typeNames_[FoamXServer::Type_Directory] = "directory"; - typeNames_[FoamXServer::Type_Time] = "time"; - typeNames_[FoamXServer::Type_DimensionSet] = "dimensionSet"; - typeNames_[FoamXServer::Type_FixedList] = "fixedList"; - typeNames_[FoamXServer::Type_List] = "list"; - typeNames_[FoamXServer::Type_Dictionary] = "dictionary"; - typeNames_[FoamXServer::Type_Selection] = "selection"; - typeNames_[FoamXServer::Type_Compound] = "compound"; - typeNames_[FoamXServer::Type_Field] = "field"; - - forAll(typeNames_, i) - { - types_.insert(typeNames_[i], FoamXServer::FoamXType(i)); - } -} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -bool FoamX::FoamXTypes::found(const Foam::word& typeName) -{ - return types_.found(typeName); -} - -const Foam::word& FoamX::FoamXTypes::typeName(FoamXServer::FoamXType fxType) -{ - if - ( - fxType >= FoamXServer::Type_Boolean - && fxType <= FoamXServer::Type_Field - ) - { - return typeNames_[fxType]; - } - else - { - return invalidTypeName_; - } -} - -FoamXServer::FoamXType FoamX::FoamXTypes::lookupType(const Foam::word& typeName) -{ - return types_[typeName]; -} - -bool FoamX::FoamXTypes::isNumber(FoamXServer::FoamXType type) -{ - return - ( - type == FoamXServer::Type_Label || type == FoamXServer::Type_Scalar - ); -} - -bool FoamX::FoamXTypes::isPrimitive(FoamXServer::FoamXType type) -{ - return (type <= FoamXServer::Type_DimensionSet); -} - -bool FoamX::FoamXTypes::isPrimitive(const Foam::word& typeName) -{ - if (types_.found(typeName)) - { - return isPrimitive(*(types_.find(typeName))); - } - else - { - return false; - } -} - -bool FoamX::FoamXTypes::isCompound(FoamXServer::FoamXType type) -{ - return - ( - type >= FoamXServer::Type_FixedList - && type <= FoamXServer::Type_Compound - ); -} - -bool FoamX::FoamXTypes::isCompound(const Foam::word& typeName) -{ - if (types_.found(typeName)) - { - return isCompound(*(types_.find(typeName))); - } - else - { - return false; - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.H deleted file mode 100644 index f798f822e0..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXTypes.H +++ /dev/null @@ -1,94 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXTypes - -Description - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXTypes_H -#define FoamXTypes_H - -// Foam header files -#include "HashTable.H" -#include "wordList.H" - -// FoamX header files -#include "FoamX.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class FoamXTypes Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXTypes -{ - // Private data - - //- The names of the types - static Foam::wordList typeNames_; - - //- Lookup table of types - static Foam::HashTable types_; - - //- Return this name when the type is invalid - static Foam::word invalidTypeName_; - - -public: - - // Constructors - - //- Construct null - FoamXTypes(); - - - // Member Functions - - static bool found(const Foam::word& typeName); - static const Foam::word& typeName(FoamXServer::FoamXType fxType); - static FoamXServer::FoamXType lookupType(const Foam::word& typeName); - static bool isNumber(FoamXServer::FoamXType type); - static bool isPrimitive(FoamXServer::FoamXType type); - static bool isPrimitive(const Foam::word& typeName); - static bool isCompound(FoamXServer::FoamXType type); - static bool isCompound(const Foam::word& typeName); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.C deleted file mode 100644 index ec4ea2b803..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.C +++ /dev/null @@ -1,105 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXWordList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXWordList::FoamXWordList() -{} - -FoamX::FoamXWordList::FoamXWordList(const Foam::wordList& list) -{ - // Reset list length. - length(list.size()); - - // Copy list elements. - forAll(list, i) - { - (*this)[i] = list[i].c_str(); - } -} - -FoamX::FoamXWordList::FoamXWordList(Foam::Istream& is) -{ - read(is); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXWordList& FoamX::FoamXWordList::operator= -( - const FoamXServer::StringList& list -) -{ - // Copy string values. Need to call base classes assignment operator. - FoamXServer::StringList::operator=(list); - - return *this; -} - -FoamX::FoamXWordList& FoamX::FoamXWordList::operator= -( - const Foam::wordList& list -) -{ - length(list.size()); - - forAll(list, i) - { - operator[](i) = list[i].c_str(); - } - - return *this; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXWordList::read(Foam::Istream& is) -{ - operator=(static_cast(Foam::wordList(is))); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::FoamXWordList::write(Foam::Ostream& os) const -{ - //os << (int)length(); - - os << Foam::token::BEGIN_LIST; - - for (unsigned int i = 0; i < length(); i++) - { - os << Foam::word(operator[](i)); - } - - os << Foam::token::END_LIST; -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.H deleted file mode 100644 index 6b95fb60f5..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/FoamXWordList.H +++ /dev/null @@ -1,93 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamXString - -Description - -SourceFiles - FoamXWordList.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamXWordList_H -#define FoamXWordList_H - -// Foam header files. -#include "wordList.H" - -// FoamX header files. -#include "FoamXStringList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class FoamXWordList Declaration -\*---------------------------------------------------------------------------*/ - -class FoamXWordList -: - public FoamXStringList -{ - -public: - - // Constructors - - FoamXWordList(); - - FoamXWordList(const Foam::wordList&); - - FoamXWordList(Foam::Istream& is); - - - // Member Functions - - // Input/Output. - - void write(Foam::Ostream& os) const; - - void read(Foam::Istream& is); - - - // Member Operators - - FoamXWordList& operator=(const FoamXServer::StringList&); - FoamXWordList& operator=(const Foam::wordList&); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.C deleted file mode 100644 index c68cb98364..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.C +++ /dev/null @@ -1,1160 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files -#include "IFstream.H" -#include "polyPatch.H" -#include "OSspecific.H" - -// FoamX header files -#include "FoamX.H" -#include "FoamXErrors.H" -#include "ITypeDescriptorImpl.H" -#include "IApplicationImpl.H" -#include "IPropertiesImpl.H" -#include "IGeometricFieldDescriptorImpl.H" -#include "IPatchPhysicalTypeDescriptorImpl.H" -#include "DictionaryWriter.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IApplicationImpl::IApplicationImpl -( - const FoamXServer::ApplicationDescriptor& appDesc, - const IPropertiesImpl& foamSystemProperties -) -: - name_(appDesc.name), - description_(appDesc.name), - category_(appDesc.category), - appCfgPath_(fileName(appDesc.path)/"FoamX"), - systemClass_(appDesc.systemClass), - foamSystemProperties_(foamSystemProperties) -{ - static const char* functionName = - "FoamX::IApplicationImpl::IApplicationImpl" - "(const char* className, bool systemClass)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IApplicationImpl::~IApplicationImpl() -{ - static const char* functionName = - "FoamX::IApplicationImpl::~IApplicationImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::validate() -{ - static const char* functionName = - "FoamX::IApplicationImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::load() -{ - static const char* functionName = - "FoamX::IApplicationImpl::load()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure that the definition dictionary exists - if (!exists(appCfgPathName())) - { - throw FoamXError - ( - E_FAIL, - "Application Class definition file '" - + appCfgPathName() + "' could not be found.", - functionName, - __FILE__, __LINE__ - ); - } - - // Set the FOAMX_APP_CFG_PATH environment variable - // to the application configuration path - Foam::setEnv("FOAMX_APP_CFG_PATH", appCfgPath_, true); - - // Open the application class definition dictionary - dictionary classDict((IFstream(appCfgPathName())())); - - // Make sure we have all of the required entries - if - ( - !classDict.found("description") - || !classDict.found("dictionaries") - || !classDict.found("fields") - || !classDict.found("patchPhysicalTypes") - || !classDict.found("patchFieldsPhysicalTypes") - ) - { - throw FoamXError - ( - E_FAIL, - "Invalid application class configuration dictionary '" - + appCfgPathName() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get application class info - classDict.lookup("description") >> description_; - - if (classDict.found("modules")) - { - moduleList_.read(classDict.lookup("modules")); - } - else - { - moduleList_.append("FoamX.Modules.CaseEditor.CaseEditorModule"); - } - - const dictionary& dictionariesDict = classDict.subDict("dictionaries"); - - // Initialise the dictionary objects - for - ( - dictionary::const_iterator iter = dictionariesDict.begin(); - iter != dictionariesDict.end(); - ++iter - ) - { - const word& dictionaryName = iter().keyword(); - - // Set/correct the application name - if - ( - dictionaryName == "controlDict" - && iter().isDict() - && iter().dict().found("entries") - && iter().dict().subDict("entries").found("application") - ) - { - dictionary& applicationNameDict = const_cast - ( - iter().dict().subDict("entries").subDict("application") - ); - - applicationNameDict.remove("default"); - applicationNameDict.add("default", name_); - } - - // See if we already have a dictionary with this name - if (dictTypeDescriptorMap_.found(dictionaryName)) - { - throw FoamXError - ( - E_FAIL, - "Duplicate dictionary name '" + dictionaryName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new TypeDescriptor object for this - // dictionary - ITypeDescriptorImpl* pTypeDescriptor = new ITypeDescriptorImpl - ( - dictionaryName, - appCfgPath_, - iter(), - foamSystemProperties_.foamTypesDict() - ); - - if (pTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Dictionary TypeDescriptor object for " - "dictionary '" + dictionaryName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - dictTypeDescriptorMap_.append(dictionaryName, pTypeDescriptor); - } - - /* This does work but should only be used if it is considered useful - if (classDict.found("types")) - { - (dictionary&)foamSystemProperties_.foamTypesDict() - += classDict.subDict("types"); - } - */ - - const dictionary& fieldsDict = classDict.subDict("fields"); - - // Initialise the field objects - for - ( - dictionary::const_iterator iter = fieldsDict.begin(); - iter != fieldsDict.end(); - ++iter - ) - { - const word& fieldName = iter().keyword(); - - // See if we already have a field with this name - if (fieldDescriptorMap_.found(fieldName)) - { - throw FoamXError - ( - E_FAIL, - "Duplicate field name '" + fieldName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new FieldDescriptor object for field - IGeometricFieldDescriptorImpl* pFieldDescriptor = new - IGeometricFieldDescriptorImpl - ( - fieldName, - fieldsDict.subDict(fieldName), - foamSystemProperties_.foamTypes(), - foamSystemProperties_.geometryDescriptors() - ); - - if (pFieldDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create FieldDescriptor object for field '" - + fieldName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - fieldDescriptorMap_.append(fieldName, pFieldDescriptor); - } - - wordList fieldList = fieldDescriptorMap_.toc(); - - - wordList constranedPatchTypes = polyPatch::constraintTypes(); - - forAll(constranedPatchTypes, i) - { - // See if we already have a boundary type with this name - if (patchPhysicalTypeDescriptorMap_.found(constranedPatchTypes[i])) - { - throw FoamXError - ( - E_FAIL, - "Duplicate boundary type name '" - + constranedPatchTypes[i] + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new PatchPhysicalTypeDescriptor object - // for this field - IPatchPhysicalTypeDescriptorImpl* pBoundaryDescriptor = new - IPatchPhysicalTypeDescriptorImpl - ( - constranedPatchTypes[i], - fieldList - ); - - if (pBoundaryDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create PatchPhysicalTypeDescriptor object for " - "boundary type '" + constranedPatchTypes[i] + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - patchPhysicalTypeDescriptorMap_.append - ( - constranedPatchTypes[i], - pBoundaryDescriptor - ); - } - - if (classDict.found("patchFieldTypes")) - { - const_cast(foamSystemProperties_).addPatchFields - ( - classDict.subDict("patchFieldTypes") - ); - } - - const dictionary& patchPhysicalTypesDict - ( - classDict.subDict("patchPhysicalTypes") - ); - - const dictionary& patchFieldsPhysicalTypesDict - ( - classDict.subDict("patchFieldsPhysicalTypes") - ); - - // Initialise the boundary type information - for - ( - dictionary::const_iterator iter = patchPhysicalTypesDict.begin(); - iter != patchPhysicalTypesDict.end(); - ++iter - ) - { - const word& patchPhysicalTypeName = iter().keyword(); - - // See if we already have a boundary type with this name - if (patchPhysicalTypeDescriptorMap_.found(patchPhysicalTypeName)) - { - throw FoamXError - ( - E_FAIL, - "Duplicate boundary type name '" - + patchPhysicalTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new PatchPhysicalTypeDescriptor object - // for this field - IPatchPhysicalTypeDescriptorImpl* pBoundaryDescriptor = new - IPatchPhysicalTypeDescriptorImpl - ( - patchPhysicalTypeName, - iter().dict(), - patchPhysicalTypesDict, - patchFieldsPhysicalTypesDict, - fieldList - ); - - if (pBoundaryDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create PatchPhysicalTypeDescriptor object for " - "boundary type '" + patchPhysicalTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - patchPhysicalTypeDescriptorMap_.append - ( - patchPhysicalTypeName, - pBoundaryDescriptor - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::save() -{ - static const char* functionName = - "FoamX::IApplicationImpl::save()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Cannot save system application classes - if (systemClass_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Cannot save system application class definition file '" - + appCfgPathName() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Write the application class data - DictionaryWriter dict(appCfgPathName()); - - dict.writeHeader - ( - "FoamX Application Class Configuration File for " + name_, - "dictionary" - ); - - // Write execution info - dict.writeSectionHeader("Execution"); - dict.writeEntry("description", description_); - dict.writeEndl(); - dict.writeEntry("arguments", arguments_); - - // Write module names - dict.writeSectionHeader("FoamX Modules"); - dict.writeEntry("modules", moduleList_); - - // Write dictionary names - dict.writeSectionHeader("Dictionaries"); - wordList dictNames; - dictNames.setSize(dictTypeDescriptorMap_.size()); - label i = 0; - for - ( - Dictionary::iterator iter = - dictTypeDescriptorMap_.begin(); - iter != dictTypeDescriptorMap_.end(); - ++iter - ) - { - CORBA::String_var name = iter().name(); - dictNames[i++] = word(name); - } - - // Use the top-level dictionary names instead of the keys - dict.writeEntry("dictionaries", dictNames); - - // Write field definitions - dict.writeSectionHeader("Fields"); - dict.startSubDict("fields"); - i = 0; - - for - ( - Dictionary::iterator iter - = fieldDescriptorMap_.begin(); - iter != fieldDescriptorMap_.end(); - ++iter - ) - { - iter().save(dict); - - if (i++ < fieldDescriptorMap_.size()-1) - { - dict.writeEndl(); - } - } - dict.endSubDict(); - - // Write boundary types - dict.writeSectionHeader("Boundary Types"); - dict.startSubDict("patchPhysicalTypes"); - i = 0; - - for - ( - Dictionary::iterator iter - = patchPhysicalTypeDescriptorMap_.begin(); - iter != patchPhysicalTypeDescriptorMap_.end(); - ++iter - ) - { - iter().save(dict); - - if (i++ < patchPhysicalTypeDescriptorMap_.size()-1) - { - dict.writeEndl(); - } - } - dict.endSubDict(); - - dict.writeEndl(); - dict.writeEndBar(); - - - // Save the dictionary type definitions - for - ( - Dictionary::iterator iter = - dictTypeDescriptorMap_.begin() ; - iter != dictTypeDescriptorMap_.end() ; - ++iter - ) - { - const word& dictKey = iter().name(); - - ITypeDescriptorImpl* pDictType = dictTypeDescriptorMap_[dictKey]; - - // Create a dictionary writer object for this dictionary - - // Use the dictionary name, not the key - CORBA::String_var dictName = pDictType->name(); - - fileName dictFilePath = appCfgPath_/word(dictName) + ".cfg"; - - // Save dictionary type description - DictionaryWriter dictWriter(dictFilePath); - - dictWriter.writeHeader - ( - "FoamX Application Class Configuration File.", - "dictionary" - ); - - // Top-level type descriptor - pDictType->save(dictWriter, true); - - dictWriter.writeEndl(); - dictWriter.writeEndBar(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IApplicationImpl::name() -{ - static const char* functionName = - "FoamX::IApplicationImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return - return CORBA::string_dup(name_.c_str()); -} - -void FoamX::IApplicationImpl::name(const char* newName) -{ - static const char* functionName = - "FoamX::IApplicationImpl::name(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - name_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IApplicationImpl::description() -{ - static const char* functionName = - "FoamX::IApplicationImpl::description()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return - return CORBA::string_dup(description_.c_str()); -} - -void FoamX::IApplicationImpl::description(const char* newDescription) -{ - static const char* functionName = - "FoamX::IApplicationImpl::description(const char* newDescription)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - description_ = newDescription; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IApplicationImpl::category() -{ - static const char* functionName = - "FoamX::IApplicationImpl::category()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return - return CORBA::string_dup(category_.c_str()); -} - -void FoamX::IApplicationImpl::category(const char* newCategory) -{ - static const char* functionName = - "FoamX::IApplicationImpl::category(const char* newCategory)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - category_ = newCategory; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IApplicationImpl::modules() -{ - static const char* functionName = - "FoamX::IApplicationImpl::modules()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList(moduleList_); -} - -void FoamX::IApplicationImpl::modules -( - const FoamXServer::StringList& newList -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::modules" - "(const FoamXServer::StringList& newList)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - moduleList_ = newList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IApplicationImpl::systemClass() -{ - static const char* functionName = - "FoamX::IApplicationImpl::systemClass()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return systemClass_; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IApplicationImpl::fields() -{ - static const char* functionName = - "FoamX::IApplicationImpl::fields()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList(static_cast(fieldDescriptorMap_.toc())) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::getField -( - const char* fieldName, - IGeometricFieldDescriptor_out fieldDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::getField" - "(const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we have this field's type descriptor cached - if (!fieldDescriptorMap_.found(fieldName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid field name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the FieldDescriptor object - fieldDescriptor = fieldDescriptorMap_[fieldName]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::findField -( - const char* fieldName, - IGeometricFieldDescriptor_out fieldDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::findField" - "(const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // Loop over all known field descriptors and find the one with the - // specified name - for - ( - ObjRefDictionary::iterator iter = - fieldDescriptorMap_.begin() ; - iter != fieldDescriptorMap_.end() ; - ++iter - ) - { - // Check for matching name - CORBA::String_var fieldDescName = iter().name(); - if (strcmp(fieldDescName, fieldName) == 0) - { - fieldDescriptor = iter()._this(); - break; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::addField -( - const char* fieldName, - IGeometricFieldDescriptor_out fieldDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::addField(const char* fieldName, " - "IGeometricFieldDescriptor_out fieldDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // See if we already have a field with this name - if (fieldDescriptorMap_.found(fieldName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid field name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new FieldDescriptor - IGeometricFieldDescriptorImpl* pFieldDescriptor = - new IGeometricFieldDescriptorImpl(fieldName); - - if (pFieldDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create FieldDescriptor object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to field map - fieldDescriptorMap_.append(fieldName, pFieldDescriptor); - - // Return a reference to the FieldDescriptor object - fieldDescriptor = pFieldDescriptor->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::deleteField(const char* fieldName) -{ - static const char* functionName = - "FoamX::IApplicationImpl::deleteField(const char* fieldName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we have a field with this name - if (!fieldDescriptorMap_.found(fieldName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid field name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from field map - // Releases object reference - fieldDescriptorMap_.erase(fieldName); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IApplicationImpl::patchPhysicalTypes() -{ - static const char* functionName = - "FoamX::IApplicationImpl::patchPhysicalTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList - ( - static_cast(patchPhysicalTypeDescriptorMap_.toc()) - ) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::getPatchPhysicalType -( - const char* patchPhysicalTypeName, - IPatchPhysicalTypeDescriptor_out boundaryDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::getPatchPhysicalType" - "(const char* patchPhysicalTypeName, " - "IPatchPhysicalTypeDescriptor_out boundaryDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // See if we have this object cached - if (!patchPhysicalTypeDescriptorMap_.found(patchPhysicalTypeName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid boundary type name " - + word(patchPhysicalTypeName) + ".", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to object - boundaryDescriptor = - patchPhysicalTypeDescriptorMap_[patchPhysicalTypeName]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::findPatchPhysicalType -( - const char* patchPhysicalTypeName, - IPatchPhysicalTypeDescriptor_out boundaryDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::findPatchPhysicalType" - "(const char* patchPhysicalTypeName, " - "IPatchPhysicalTypeDescriptor_out boundaryDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Find the boundary type descriptors with the specified name - if (patchPhysicalTypeDescriptorMap_.found(patchPhysicalTypeName)) - { - boundaryDescriptor = - patchPhysicalTypeDescriptorMap_.lookup(patchPhysicalTypeName) - ->_this(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::addPatchPhysicalType -( - const char* patchPhysicalTypeName, - IPatchPhysicalTypeDescriptor_out boundaryDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::addPatchPhysicalType" - "(const char* patchPhysicalTypeName, " - "IPatchPhysicalTypeDescriptor_out boundaryDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we already have a boundary type with this name - if (patchPhysicalTypeDescriptorMap_.found(patchPhysicalTypeName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid boundary type name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new PatchPhysicalTypeDescriptor object - IPatchPhysicalTypeDescriptorImpl* pBoundaryDescriptor = - new IPatchPhysicalTypeDescriptorImpl(patchPhysicalTypeName); - - if (pBoundaryDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create PatchPhysicalTypeDescriptor object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map - patchPhysicalTypeDescriptorMap_.append - ( - patchPhysicalTypeName, - pBoundaryDescriptor - ); - - // Return a reference to the PatchPhysicalTypeDescriptor object - boundaryDescriptor = pBoundaryDescriptor->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::deletePatchPhysicalType -( - const char* patchPhysicalTypeName -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::deletePatchPhysicalType" - "(const char* patchPhysicalTypeName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "delete " << patchPhysicalTypeName << endl; - - // See if we have a boundary type with this name - if (!patchPhysicalTypeDescriptorMap_.found(patchPhysicalTypeName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid boundary type name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from map - // Releases object reference - patchPhysicalTypeDescriptorMap_.erase(patchPhysicalTypeName); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IApplicationImpl::dictionaries() -{ - static const char* functionName = - "FoamX::IApplicationImpl::dictionaries()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList - ( - static_cast(dictTypeDescriptorMap_.toc()) - ) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::getDictionary -( - const char* dictName, - ITypeDescriptor_out dictTypeDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::getDictionary" - "(const char* dictName, ITypeDescriptor_out dictTypeDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we have this dictionary's type descriptor cached - if (!dictTypeDescriptorMap_.found(dictName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid dictionary name '" + word(dictName) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the TypeDescriptor object - dictTypeDescriptor = dictTypeDescriptorMap_[dictName]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::addDictionary -( - const char* dictName, - ITypeDescriptor_out dictTypeDescriptor -) -{ - static const char* functionName = - "FoamX::IApplicationImpl::addDictionary" - "(const char* dictName, ITypeDescriptor_out dictTypeDescriptor)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we already have a dictionary with this name - if (dictTypeDescriptorMap_.found(dictName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid dictionary name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new TypeDescriptor object for a new - // dictionary - ITypeDescriptorImpl* pTypeDescriptor = new ITypeDescriptorImpl - ( - dictName, - Type_Dictionary, - dictName - ); - - if (pTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create Dictionary TypeDescriptor object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to dictionary map - dictTypeDescriptorMap_.append(dictName, pTypeDescriptor); - - // Return a reference to the TypeDescriptor object - dictTypeDescriptor = pTypeDescriptor->_this(); - } - CATCH_ALL(functionName); - - return; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IApplicationImpl::deleteDictionary(const char* dictName) -{ - static const char* functionName = - "FoamX::IApplicationImpl::deleteDictionary(const char* dictName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // See if we have a dictionary with this name - if (!dictTypeDescriptorMap_.found(dictName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid dictionary name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from dictionary map - // Releases object reference - dictTypeDescriptorMap_.erase(dictName); - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.H deleted file mode 100644 index 99474ef564..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IApplicationImpl.H +++ /dev/null @@ -1,224 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IApplicationImpl - -Description - -SourceFiles - IApplicationImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IApplicationImpl_H -#define IApplicationImpl_H - -// Foam header files. -#include "fileName.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXString.H" -#include "FoamXStringList.H" -#include "FoamXWordList.H" -#include "ObjRefDictionary.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class IGeometricFieldDescriptorImpl; -class IPatchPhysicalTypeDescriptorImpl; -class ITypeDescriptorImpl; -class IPropertiesImpl; - -/*---------------------------------------------------------------------------*\ - Class IApplicationImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IApplicationImpl -: - public POA_FoamXServer::CaseServer::IApplication, - public PortableServer::RefCountServantBase -{ - // Private data - - Foam::word name_; - Foam::string description_; - Foam::fileName category_; - - //- Path of the application class description - Foam::fileName appCfgPath_; - - //- System or user class flag. - bool systemClass_; - - //- Reference to the Foam properties class - const IPropertiesImpl& foamSystemProperties_; - - ITypeDescriptorImpl* arguments_; - FoamXWordList moduleList_; - - ObjRefDictionary fieldDescriptorMap_; - - ObjRefDictionary - patchPhysicalTypeDescriptorMap_; - - ObjRefDictionary dictTypeDescriptorMap_; - - -public: - - // Constructors - - IApplicationImpl - ( - const ApplicationDescriptor& appDesc, - const IPropertiesImpl& foamSystemProperties - ); - - - // Destructor - - virtual ~IApplicationImpl(); - - - // Member Functions - - virtual char* name(); - virtual void name(const char*); - - fileName appCfgPathName() const - { - return appCfgPath_/name_ + ".cfg"; - } - - virtual char* description(); - virtual void description(const char*); - - virtual char* category(); - virtual void category(const char*); - - virtual FoamXServer::StringList* modules(); - virtual void modules(const FoamXServer::StringList&); - - virtual CORBA::Boolean systemClass(); - - virtual FoamXServer::StringList* fields(); - - virtual void getField - ( - const char* fieldKey, - FoamXServer::CaseServer::IGeometricFieldDescriptor_out - fieldDescriptor - ); - - virtual void findField - ( - const char* fieldName, - FoamXServer::CaseServer::IGeometricFieldDescriptor_out - fieldDescriptor - ); - - virtual void addField - ( - const char* fieldKey, - FoamXServer::CaseServer::IGeometricFieldDescriptor_out - fieldDescriptor - ); - - virtual void deleteField(const char* fieldKey); - - virtual FoamXServer::StringList* patchPhysicalTypes(); - - virtual void getPatchPhysicalType - ( - const char* patchPhysicalTypeKey, - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out - boundaryDescriptor - ); - - virtual void findPatchPhysicalType - ( - const char* patchPhysicalTypeName, - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out - boundaryDescriptor - ); - - virtual void addPatchPhysicalType - ( - const char* patchPhysicalTypeKey, - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out - boundaryDescriptor - ); - - virtual void deletePatchPhysicalType - ( - const char* patchPhysicalTypeKey - ); - - virtual FoamXServer::StringList* dictionaries(); - - virtual void getDictionary - ( - const char* dictName, - FoamXServer::ITypeDescriptor_out - dictTypeDescriptor - ); - - virtual void addDictionary - ( - const char* dictName, - FoamXServer::ITypeDescriptor_out - dictTypeDescriptor - ); - - virtual void deleteDictionary(const char* dictName); - - - //- Validation. - virtual void validate(); - - //- Persistence. - virtual void save(); - - //- Load from application class definition dictionary. - void load(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.C deleted file mode 100644 index 3b78acd859..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.C +++ /dev/null @@ -1,2099 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files -#include "vector.H" -#include "tensor.H" -#include "typeInfo.H" - -// Project header files. -#include "IDictionaryEntryImpl.H" -#include "FoamX.H" -#include "FoamXErrors.H" -#include "LogEntry.H" -#include "ITypeDescriptorImpl.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IDictionaryEntryImpl::IDictionaryEntryImpl -( - ITypeDescriptor_ptr typeDesc -) -: - modified_(false), - listTokenPtr_(NULL), - selection_(0) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::IDictionaryEntryImpl" - "(ITypeDescriptor_ptr typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check parameters. - if (CORBA::is_nil(typeDesc)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid TypeDescriptor reference", - functionName, - __FILE__, __LINE__ - ); - } - - // Bind the given field type descriptor. - bindType(typeDesc); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IDictionaryEntryImpl::IDictionaryEntryImpl -( - IDictionaryEntryImpl& dictEntry -) -: - PortableServer::ServantBase(), - PortableServer::StaticImplementation(), - POA_FoamXServer::IDictionaryEntry(), - PortableServer::RefCountServantBase(), - modified_(false), - listTokenPtr_(NULL), - selection_(0) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::IDictionaryEntryImpl" - "(ITypeDescriptor_ptr typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Bind the given field type descriptor. - bindType(dictEntry.typeDescriptor()); - - operator=(dictEntry); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IDictionaryEntryImpl::~IDictionaryEntryImpl() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::~IDictionaryEntryImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Release all sub-element objects. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - iter()->_remove_ref(); - } - subElements_.clear(); - - if (listTokenPtr_) - { - delete listTokenPtr_; - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptor_ptr FoamX::IDictionaryEntryImpl::typeDescriptor() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::typeDescriptor()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return a reference to the TypeDescriptor object. - ITypeDescriptor_ptr pTypeDesc = ITypeDescriptor::_nil(); - - if (!CORBA::is_nil(typeDescriptor_)) - { - pTypeDesc = ITypeDescriptor::_duplicate(typeDescriptor_); - } - - return pTypeDesc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::FoamXAny* FoamX::IDictionaryEntryImpl::value() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::value()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return new FoamXServer::FoamXAny(value_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::value(const FoamXServer::FoamXAny& newValue) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::value(const CORBA::Any& newValue)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->editable() && value_ != newValue) - { - // Set the value of the any object. - // Will throw an exception if the incoming any is not compatible. - value_.setValue(newValue); - - // Set modified flag. - modified_ = true; - } - } - catch (...) - {} -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::setValue -( - const FoamXServer::FoamXAny& newValue -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::setValue(const CORBA::Any& newValue)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->editable() && value_ != newValue) - { - if (FoamXTypes::isNumber(typeDescriptor_->type())) - { - //***HGWnewValue > *typeDescriptor_->maxValue(); - //***HGWnewValue < *typeDescriptor_->minValue(); - } - - // Set the value of the any object. - // Will throw an exception if the incoming any is not compatible. - value_.setValue(newValue); - - // Set modified flag. - modified_ = true; - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -template -void FoamX::IDictionaryEntryImpl::expandPrimitiveList() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::expandPrimitiveList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!isA >(listTokenPtr_->compoundToken())) - { - throw FoamXError - ( - E_UNEXPECTED, - "List is not of the expected type", - functionName, - __FILE__, __LINE__ - ); - } - - const List& sl = dynamicCast > - ( - listTokenPtr_->compoundToken() - ); - - forAll (sl, i) - { - IDictionaryEntryImpl* pSubEntry = new IDictionaryEntryImpl - ( - typeDescriptor_->elementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create " - "IDictionaryEntryImpl object", - functionName, - __FILE__, __LINE__ - ); - } - - pSubEntry->value_.value <<= CorbaType(sl[i]); - - subElements_.append(pSubEntry); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -template -void FoamX::IDictionaryEntryImpl::expandFixedListList() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::" - "expandFixedListList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!isA >(listTokenPtr_->compoundToken())) - { - throw FoamXError - ( - E_UNEXPECTED, - "List is not of the expected type", - functionName, - __FILE__, __LINE__ - ); - } - - const List
& vl = dynamicCast > - ( - listTokenPtr_->compoundToken() - ); - - forAll (vl, i) - { - IDictionaryEntryImpl* pSubEntry = new IDictionaryEntryImpl - ( - typeDescriptor_->elementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create " - "IDictionaryEntryImpl object", - functionName, - __FILE__, __LINE__ - ); - } - - if (pSubEntry->subElements_.size() != Form::nComponents) - { - throw FoamXError - ( - E_UNEXPECTED, - "Number of sub-elements in Type_FixedList = " - + name(pSubEntry->subElements_.size()) + " is not equal to " - + "the number of elements in the given Form = " - + name(Form::nComponents), - functionName, - __FILE__, __LINE__ - ); - } - - // Loop over all vector-space elements. - direction j=0; - for - ( - DLList::iterator - iter = pSubEntry->subElements_.begin(); - iter != pSubEntry->subElements_.end(); - ++iter - ) - { - iter()->value_.value <<= vl[i][j++]; - } - - subElements_.append(pSubEntry); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::expandList() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::expandList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->type() != Type_List) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to expandList for non-list type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - - if (!listTokenPtr_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to expandList for expanded list", - functionName, - __FILE__, __LINE__ - ); - } - - if (listTokenPtr_->compoundToken().size() > 1000) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to expandList for list " - "larger than 1000 elements", - functionName, - __FILE__, __LINE__ - ); - } - - if - ( - isA >(listTokenPtr_->compoundToken()) - ) - { - expandPrimitiveList(); - } - else if - ( - isA >(listTokenPtr_->compoundToken()) - ) - { - expandPrimitiveList(); - } - else if - ( - isA >(listTokenPtr_->compoundToken()) - ) - { - expandFixedListList(); - } - else if - ( - isA >(listTokenPtr_->compoundToken()) - ) - { - expandFixedListList(); - } - - delete listTokenPtr_; - listTokenPtr_ = NULL; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::DictionaryEntryList* FoamX::IDictionaryEntryImpl::subElements() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::subElements()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (listTokenPtr_) - { - expandList(); - } - - // Scan for all the visible entries - int nVisibleElements = 0; - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (iter()->typeDescriptor_->visible()) - { - nVisibleElements++; - } - } - - // Construct a new DictionaryEntryList. - DictionaryEntryList* entryList = new DictionaryEntryList(); - entryList->length(nVisibleElements); - - int i = 0; - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (iter()->typeDescriptor_->visible()) - { - // Add a reference to the sub element. - (*entryList)[i++] = iter()->_this(); - } - } - - // Return the entry list. - return entryList; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::IDictionaryEntryImpl::nSubElements() -{ - if (listTokenPtr_) - { - return listTokenPtr_->compoundToken().size(); - } - else - { - return subElements_.size(); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IDictionaryEntryImpl::packedList() -{ - if (listTokenPtr_) - { - return true; - } - else - { - return false; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -//FoamX::DictionaryEntry* FoamX::IDictionaryEntryImpl::lookup -//( -// const char* entryName -//) const -//{ -// static const char* functionName = -// "FoamX::IDictionaryEntryImpl::lookup(const char*)"; -// -// LogEntry log(functionName, __FILE__, __LINE__); -// -// try -// { -// -// // Construct a new DictionaryEntryList. -// DictionaryEntry* entry = new DictionaryEntry(); -// -// int i = 0; -// for -// ( -// DLList::iterator iter = -// subElements_.begin(); -// iter != subElements_.end(); -// ++iter -// ) -// { -// if (iter()->typeDescriptor_->name() == entryName) -// { -// return new DictionaryEntry(iter()->_this()); -// } -// } -// -// throw FoamXError -// ( -// E_FAIL, -// "Did not find " + entryName, -// functionName, -// __FILE__, __LINE__ -// ); -// } -// CATCH_ALL(functionName); -//} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::IDictionaryEntryImpl::selection() -{ - return selection_; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::selection(CORBA::Long newSelection) -{ - if (selection_ != newSelection) - { - selection_ = newSelection; - - // Set modified flag. - modified_ = true; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::addElement(IDictionaryEntry_out subEntry) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::addElement" - "(IDictionaryEntry_out subEntry)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->editable()) - { - // Make sure this is a list. - if (typeDescriptor_->type() != Type_List) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to addElement for non-list type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - - // Create an appropriate sub entry object and store its reference. - IDictionaryEntryImpl* pSubEntry = new IDictionaryEntryImpl - ( - typeDescriptor_->elementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create IDictionaryEntryImpl object for " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - subElements_.append(pSubEntry); - - // Return a reference to the new element. - subEntry = pSubEntry->_this(); - - // Set modified flag. - modified_ = true; - } - else - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to addElement for non-editable type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::removeElement -( - IDictionaryEntry_ptr subEntry -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::removeElement" - "(IDictionaryEntry_ptr subEntry)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->editable()) - { - // Make sure this is a list. - if (typeDescriptor_->type() != Type_List) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to removeElement for non-list type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from List. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - IDictionaryEntry_var pElement = iter()->_this(); - - // Check for equivalence. - if (pElement->_is_equivalent(subEntry)) - { - // Release and remove from linked list. - iter()->_remove_ref(); - subElements_.remove(iter); - break; - } - } - - // Set modified flag. - modified_ = true; - } - else - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to removeElement for non-editable type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::clearSubElements() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::clearSubElements()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if - ( - static_cast(typeDescriptor_) - == ITypeDescriptor::_nil() - || typeDescriptor_->editable() - ) - { - // Release all sub-element objects. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - iter()->_remove_ref(); - } - subElements_.clear(); - } - else - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected call to clearSubElement for non-editable type " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::validate() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If primitive entry, make sure that we have a valid value - if (!typeDescriptor_->isPrimitiveType()) - { - // If this entry is not optional, - // make sure that a value has been set. - if (!value_.IsSet() && !typeDescriptor_->optional()) - { - // Return the path of this entry. - throw ValidationError - ( - E_INVALID_ARG, - "Non-optional entry does not have a value", - typeDescriptor_->path() - ); - } - - // Check that the value is in range. - if (FoamXTypes::isNumber(typeDescriptor_->type())) - { - value_ > *typeDescriptor_->maxValue(); - value_ < *typeDescriptor_->minValue(); - } - } - else - { - // Check all sub-entries. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - iter()->validate(); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IDictionaryEntryImpl::modified() -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::modified()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - if (modified_) return true; - - try - { - // Check all sub-entries. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (iter()->modified()) return true; - } - } - CATCH_ALL(functionName); - - return false; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::save() -{ - // Can't save individual entries. - // Overridden for root dictionary entries. -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::load -( - const entry& ent -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::load" - "(const entry&, bool allowNonOptional)"; - - if (ent.isStream()) - { - load(ent.stream()); - } - else if (ent.isDict()) - { - load(ent.dict()); - } - else - { - throw FoamXError - ( - E_UNEXPECTED, - "Entry is neither a stream nor a dictionary", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::load -( - const dictionary& dict, - bool allowNonOptional -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::load" - "(const dictionary&, bool allowNonOptional)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->type() != Type_Dictionary) - { - throw FoamXIOError - ( - "IDictionaryEntryImpl " + word(typeDescriptor_->name()) - + " is not a dictionary\n", - dict.name(), dict.startLineNumber(), dict.endLineNumber(), - functionName, - __FILE__, __LINE__ - ); - } - - log << "Reading Dictionary" << endl; - - // Loop over all elements. - for - ( - DLList::iterator iter - = subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - // Get the sub-entry object. - IDictionaryEntryImpl* pSubElement = iter(); - - // Get the TypeDescriptor for this entry. - ITypeDescriptor_var pSubTypeDesc = pSubElement->typeDescriptor_; - - // Get the entry name. - word paramName(pSubTypeDesc->name()); - - // Make sure this entry exists in the dictionary. - if (dict.found(paramName)) - { - pSubElement->load(dict.lookupEntry(paramName)); - } - else if (!allowNonOptional && !pSubTypeDesc->optional()) - { - throw FoamXIOError - ( - "Non-optional dictionary entry '" + paramName - + "' not found in dictionary\n" + dict.name(), - dict.name(), dict.startLineNumber(), dict.endLineNumber(), - functionName, - __FILE__, __LINE__ - ); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::load(Istream& is) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::load(Istream&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Loading DictionaryEntry for " - << CORBA::String_var(typeDescriptor_->path()) << endl; - - log << "Reading " << is.name() << " line " << is.lineNumber() << endl; - - // See if this is a primitive type. - if (typeDescriptor_->isPrimitiveType()) - { - log << "Reading non-compound value" << endl; - - // This entry is not compound so read the single value. - // Will throw an exception if a value of the required type - // cannot be extracted from the Istream. - value_.read(is); - } - else - { - switch(typeDescriptor_->type()) - { - case Type_FixedList: - { - log << "Reading FixedList" << endl; - - // Read beginning of list contents. - is.readBeginList("List"); - - // Loop over all vector elements. - for - ( - DLList::iterator - iter = subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - // Get the sub-entry object. - IDictionaryEntryImpl* pSubElement = iter(); - - // Load the element values from the Istream. - pSubElement->load(is); - } - - // Read end of contents. - is.readEndList("List"); - } - break; - - case Type_List: - { - log << "Reading List" << endl; - - // Clear old list elements since size of - // list may have changed. - clearSubElements(); - - token firstToken(is); - - is.fatalCheck - ( - "IDictionaryEntryImpl::load(Istream&, bool)" - " : reading first token" - ); - - if (firstToken.isCompound()) - { - if (listTokenPtr_) - { - delete listTokenPtr_; - } - listTokenPtr_ = new token(firstToken); - } - else if (firstToken.isLabel()) - { - label s = firstToken.labelToken(); - - // Read beginning of contents - char listDelimiter = is.readBeginList("Type_List"); - - if (s) - { - if (listDelimiter == token::BEGIN_LIST) - { - for (register label i=0; ielementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create " - "IDictionaryEntryImpl object", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the values from the Istream. - pSubEntry->load(is); - - // Add to list. - subElements_.append(pSubEntry); - } - } - else - { - // Create an appropriate sub entry object - // and store its reference. - IDictionaryEntryImpl* pSubEntry = - new IDictionaryEntryImpl - ( - typeDescriptor_->elementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl " - "object", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the values from the Istream. - pSubEntry->load(is); - - // Add to list. - subElements_.append(pSubEntry); - - for (register label i=1; ielementType() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create " - "IDictionaryEntryImpl object", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the values from the Istream. - pSubEntry->load(is); - - // Add to list. - subElements_.append(pSubEntry); - - is >> lastToken; - } - } - else - { - FatalIOErrorIn - ( - "IDictionaryEntryImpl::load(Istream&, bool)", - is - ) << "incorrect first token, " - "expected or '(', found " - << firstToken.info() - << exit(FatalIOError); - } - } - break; - - case Type_Dictionary: - { - load(dictionary(is)); - } - break; - - case Type_Selection: - { - log << "Reading Selection" << endl; - - // Read selection keyword - word keyword(is); - - log << "Keyword = " << keyword << endl; - - label i = 0; - - // Loop over all types to find selection. - for - ( - DLList::iterator iter - = subElements_.begin(); - iter != subElements_.end(); - ++iter, ++i - ) - { - // Get the sub-entry object. - IDictionaryEntryImpl* pSubElement = iter(); - - if (keyword == pSubElement->typeDescriptor_->name()) - { - selection_ = i; - - // Load the element values from the Istream. - pSubElement->load(is); - } - } - } - break; - - case Type_Compound: - { - log << "Reading Compound" << endl; - - // Loop over all vector elements. - for - ( - DLList::iterator iter - = subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - // Get the sub-entry object. - IDictionaryEntryImpl* pSubElement = iter(); - - // Load the element values from the Istream. - pSubElement->load(is); - } - } - break; - - default: - throw FoamXError - ( - E_INVALID_ARG, - "Invalid Type", - functionName, - __FILE__, __LINE__ - ); - } - } - - // Check state of Istream. - is.check(functionName); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::save -( - FoamX::DictionaryWriter& dictWriter, - bool dictEntry -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::save" - "(FoamX::DictionaryWriter& dictWriter, bool dictEntry)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - word entryName = typeDescriptor_->name(); - string comment = typeDescriptor_->comment(); - string description = typeDescriptor_->description(); - - if (dictEntry && debug::infoSwitch("FoamXwriteComments")) - { - if (comment.size() > 0) - { - dictWriter.writeComment(comment); - } - else - { - if (description.size() > 0) - { - dictWriter.writeComment(description); - } - } - } - - switch(typeDescriptor_->type()) - { - case Type_FixedList: - { - log << "Saving FixedList" << endl; - - // Write entry name if required. - if (dictEntry) dictWriter.writeKeyword(entryName); - - // Start list. Do not write the count. - dictWriter.startFixedList(); - - // Write values. - label i = 0; - for - ( - DLList::iterator iter - = subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (i++ > 0) - { - dictWriter.writeString(" "); - } - - iter()->save(dictWriter, false); - } - - dictWriter.endFixedList(); - - if (dictEntry) - { - dictWriter.endEntry(); - } - } - break; - - case Type_List: - { - log << "Saving List" << endl; - - // Write entry name if required. - if (dictEntry) dictWriter.writeKeyword(entryName); - - if (listTokenPtr_) - { - dictWriter.writeValue(*listTokenPtr_); - } - else - { - // Start list. - dictWriter.startList(subElements_.size()); - - // Write values. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (iter()->typeDescriptor()->type() != Type_List) - { - dictWriter.writeString("\n"); - dictWriter.indent(); - } - - iter()->save(dictWriter, false); - } - - dictWriter.endList(); - } - - if (dictEntry) dictWriter.endEntry(); - } - break; - - case Type_Dictionary: - { - log << "Saving Dictionary" << endl; - - // Start a sub-dictionary. - if (dictEntry) - { - dictWriter.startSubDict(entryName); - } - else - { - dictWriter.startSubDict(); - } - - // Write sub-entries. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - iter()->save(dictWriter, true); - } - - if (dictEntry) - { - dictWriter.endSubDict(); - } - else - { - dictWriter.endDict(); - } - } - break; - - case Type_Selection: - { - log << "Saving Selection" << endl; - - if (!subElements_.size()) - { - throw FoamXError - ( - E_FAIL, - string("No types given for selection '") - + typeDescriptor_->path() + "' for dictionary\n" - + dictWriter.pathName(), - functionName, - __FILE__, __LINE__ - ); - } - - // Write entry name if required. - if (dictEntry) dictWriter.writeKeyword(entryName); - - label i = 0; - - // Write current selection. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter, ++i - ) - { - if (i == selection_) - { - dictWriter.writeString - ( - word(iter()->typeDescriptor_->name()) - ); - - if - ( - iter()->typeDescriptor_->isPrimitiveType() - || iter()->subElements_.size() - || iter()->listTokenPtr_ - ) - { - dictWriter.writeString(" "); - iter()->save(dictWriter, false); - } - } - } - - if (dictEntry) dictWriter.endEntry(); - } - break; - - case Type_Compound: - { - log << "Saving Compound" << endl; - - // Write entry name if required. - if (dictEntry) - { - if (subElements_.size()) - { - dictWriter.writeKeyword(entryName); - } - else - { - dictWriter.writeKeywordOnly(entryName); - } - } - - label i = 0; - - // Write values. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - if (i++ > 0) - { - dictWriter.writeString(" "); - } - - iter()->save(dictWriter, false); - } - - if (dictEntry) dictWriter.endEntry(); - } - break; - - case Type_Boolean: - case Type_Label: - case Type_Scalar: - case Type_Char: - case Type_Word: - case Type_String: - case Type_RootDir: - case Type_RootAndCase: - case Type_CaseName: - case Type_HostName: - case Type_File: - case Type_Directory: - case Type_Time: - case Type_DimensionSet: - { - // If this entry is non-optional and a value hasn't been set, - // throw our teddy right out of the pram. - if (!typeDescriptor_->optional() && !value_.IsSet()) - { - throw FoamXError - ( - E_FAIL, - string("Non-optional dictionary entry '") - + typeDescriptor_->path() - + "' : Value not specified for dictionary\n" - + dictWriter.pathName(), - functionName, - __FILE__, __LINE__ - ); - } - - // If this entry is non-optional, or is optional and an entry - // has been set, write it to the dictionary. - if - ( - !typeDescriptor_->optional() - || (typeDescriptor_->optional() && value_.IsSet()) - ) - { - // Write entry name if required. - if (dictEntry) dictWriter.writeKeyword(entryName); - - dictWriter.writeValue(value_); - if (dictEntry) dictWriter.endEntry(); - } - } - break; - - default: - throw FoamXError - ( - E_INVALID_ARG, - "Invalid Type", - functionName, - __FILE__, __LINE__ - ); - } - - modified_ = false; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// The DictionaryEntry object tree may have built with TypeDescriptor objects of -// type "field". These need to be replaced when we know the actual field type. -// The original type descriptor holds some type information regarding the -// original parameter (of type "field") such as the name, displayName and -// Description. Thus, we need to clone the field type descriptor and replace -// its name and description parameters with those originally specified. - -void FoamX::IDictionaryEntryImpl::bindFieldType(ITypeDescriptor_ptr typeDesc) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::bindFieldType" - "(ITypeDescriptor_ptr typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check the type of the current type descriptor. - if (typeDescriptor_->type() == Type_Field) - { - // Store original name, displayName and description parameters. - CORBA::String_var name = typeDescriptor_->name(); - CORBA::String_var displayName = typeDescriptor_->displayName(); - CORBA::String_var description = typeDescriptor_->description(); - - // Clone the field type descriptor. - ITypeDescriptorImpl* fieldTypeDescriptor = new ITypeDescriptorImpl - ( - typeDesc - ); - - if (fieldTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create field TypeDescriptor object", - functionName, - __FILE__, __LINE__ - ); - } - - // Copy over the name, displayName and description information. - fieldTypeDescriptor->name(name); - fieldTypeDescriptor->displayName(displayName); - fieldTypeDescriptor->description(description); - - // Bind the given field type descriptor. - bindType(fieldTypeDescriptor->_this()); - - fieldTypeDescriptor->_remove_ref(); - } - else if (typeDescriptor_->isCompoundType()) - { - // Recurse over all sub-entries. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - iter()->bindFieldType(typeDesc); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::bindType -( - FoamXServer::ITypeDescriptor_ptr typeDesc -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::bindType" - "(FoamXServer::ITypeDescriptor_ptr typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Reset type info. - typeDescriptor_ = ITypeDescriptor::_nil(); - clearSubElements(); - - // Duplicate and store the TypeDescriptor reference. - typeDescriptor_ = ITypeDescriptor::_duplicate(typeDesc); - - log << "Constructing DictionaryEntry for " - << CORBA::String_var(typeDescriptor_->path()) << endl; - - // See if this is a primitive type. - if (typeDescriptor_->isPrimitiveType()) - { - value_.setType(typeDescriptor_->type()); - } - else - { - // Get list of the sub types from the type descriptor. - // Auto release. - TypeDescriptorList_var pSubTypes = typeDescriptor_->subTypes(); - - switch(typeDescriptor_->type()) - { - case Type_FixedList: - { - log << "Default constructing FixedList" - << endl; - - // Get size of vector. - label count = typeDescriptor_->numElements(); - - // A list type descriptor should only have one sub - // type - the type of the vector elements. - if (pSubTypes->length() != 1) - { - throw FoamXError - ( - E_FAIL, - "Invalid number of SubTypes for vector, " - " expected 1, found " - + word - ( - name(label(pSubTypes->length())) - ), - functionName, - __FILE__, __LINE__ - ); - } - - // Add specified number of default elements. - for (int i = 0; i elementType()); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl" - " object", - functionName, - __FILE__, __LINE__ - ); - } - subElements_.append(pSubEntry); - } - } - break; - - case Type_List: - { - log << "Default constructing - List (with no elements)" - << endl; - - // A list type descriptor should only have one sub - // type - the type of the list elements. - if (pSubTypes->length() != 1) - { - throw FoamXError - ( - E_FAIL, - "Invalid number of SubTypes for list", - functionName, - __FILE__, __LINE__ - ); - } - } - break; - - case Type_Dictionary: - { - log << "Default constructing Dictionary" - << endl; - - // Loop over all sub types and create a default - // sub entry for each. - for (unsigned int i = 0; i length(); i++) - { - // Create default entry. - IDictionaryEntryImpl* pSubEntry = - new IDictionaryEntryImpl(pSubTypes[i]); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl" - " object", - functionName, - __FILE__, __LINE__ - ); - } - subElements_.append(pSubEntry); - } - } - break; - - case Type_Selection: - { - log << "Default constructing Selection" - << endl; - - // Loop over all sub types and create a default - // sub entry for each. - for (unsigned int i=0; i length(); i++) - { - // Create a default sub entry object and store its - // reference. - IDictionaryEntryImpl* pSubEntry = new - IDictionaryEntryImpl(pSubTypes[i]); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl" - " object", - functionName, - __FILE__, __LINE__ - ); - } - subElements_.append(pSubEntry); - } - } - break; - - case Type_Compound: - { - log << "Default constructing Compound" - << endl; - - // Loop over all sub types and create a default - // sub entry for each. - for (unsigned int i=0; i length(); i++) - { - // Create a default sub entry object and store its - // reference. - IDictionaryEntryImpl* pSubEntry = new - IDictionaryEntryImpl(pSubTypes[i]); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl" - " object", - functionName, - __FILE__, __LINE__ - ); - } - subElements_.append(pSubEntry); - } - } - break; - - case Type_Field: - log << "Default constructing Field" << endl; - break; - - default: - throw FoamXError - ( - E_INVALID_ARG, - "Invalid Type", - functionName, - __FILE__, __LINE__ - ); - } - } - - // Set this to defaultValue for any type - if (typeDesc->hasDefaultValue()) - { - IDictionaryEntry_var dval; - typeDesc->getDefaultValue(dval.out()); - operator=(dval); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::operator= -( - const IDictionaryEntryImpl& dictEntry -) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::operator=(const IDictionaryEntryImpl&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->type() != dictEntry.typeDescriptor_->type()) - { - throw FoamXError - ( - E_INVALID_ARG, - "Type of argument " - + FoamXTypes::typeName(dictEntry.typeDescriptor_->type()) - + " does not match this type " - + FoamXTypes::typeName(typeDescriptor_->type()), - functionName, - __FILE__, __LINE__ - ); - } - - value_ = dictEntry.value_; - - if (typeDescriptor_->type() == Type_List) - { - clearSubElements(); - - for - ( - DLList::const_iterator - dictEntryIter = dictEntry.subElements_.begin(); - dictEntryIter != dictEntry.subElements_.end(); - ++dictEntryIter - ) - { - IDictionaryEntryImpl* pSubEntry = new IDictionaryEntryImpl - ( - *dictEntryIter() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create IDictionaryEntryImpl object for " - + word(typeDescriptor_->name()), - functionName, - __FILE__, __LINE__ - ); - } - - subElements_.append(pSubEntry); - } - - if (listTokenPtr_) - { - delete listTokenPtr_; - listTokenPtr_ = NULL; - } - - if (dictEntry.listTokenPtr_) - { - listTokenPtr_ = new token(*dictEntry.listTokenPtr_); - } - } - else - { - if (subElements_.size() != dictEntry.subElements_.size()) - { - throw FoamXError - ( - E_INVALID_ARG, - "Number of sub-elements in argument " - + word(name(dictEntry.subElements_.size())) - + " does not match the number in this of " - + word(name(subElements_.size())), - functionName, - __FILE__, __LINE__ - ); - } - - DLList::iterator iter = - subElements_.begin(); - - DLList::const_iterator dictEntryIter = - dictEntry.subElements_.begin(); - - for - ( - ; - iter != subElements_.end() - && dictEntryIter != dictEntry.subElements_.end(); - ++iter, ++dictEntryIter - ) - { - *iter() = *dictEntryIter(); - } - - if (typeDescriptor_->type() == Type_Selection) - { - selection_ = dictEntry.selection_; - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IDictionaryEntryImpl::operator=(IDictionaryEntry_ptr dictEntryPtr) -{ - static const char* functionName = - "FoamX::IDictionaryEntryImpl::operator=(IDictionaryEntry_ptr)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (typeDescriptor_->type() != dictEntryPtr->typeDescriptor()->type()) - { - throw FoamXError - ( - E_INVALID_ARG, - "Type of argument " - + FoamXTypes::typeName(dictEntryPtr->typeDescriptor()->type()) - + " does not match this type " - + FoamXTypes::typeName(typeDescriptor_->type()), - functionName, - __FILE__, __LINE__ - ); - } - - value_ = *dictEntryPtr->value(); - - if (typeDescriptor_->type() == Type_List) - { - clearSubElements(); - - FoamXServer::DictionaryEntryList* subElmtsPtr = - dictEntryPtr->subElements(); - - for (unsigned int i = 0; i < subElmtsPtr->length(); i++) - { - IDictionaryEntryImpl* pSubEntry = new IDictionaryEntryImpl - ( - (*subElmtsPtr)[i]->typeDescriptor() - ); - - if (pSubEntry == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create IDictionaryEntryImpl object for " - + word((*subElmtsPtr)[i]->typeDescriptor()->name()), - functionName, - __FILE__, __LINE__ - ); - } - - *pSubEntry = (*subElmtsPtr)[i]; - - subElements_.append(pSubEntry); - } - } - else - { - FoamXServer::DictionaryEntryList* subElmtsPtr = - dictEntryPtr->subElements(); - - if (subElements_.size() != label(subElmtsPtr->length())) - { - throw FoamXError - ( - E_INVALID_ARG, - "Number of sub-elements in argument " - + word(name(label(subElmtsPtr->length()))) - + " does not match the number in this of " - + word(name(subElements_.size())), - functionName, - __FILE__, __LINE__ - ); - } - - label i = 0; - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - *iter() = (*subElmtsPtr)[i++]; - } - - if (typeDescriptor_->type() == Type_Selection) - { - selection_ = dictEntryPtr->selection(); - } - } - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.H deleted file mode 100644 index fc5b6779f4..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IDictionaryEntryImpl.H +++ /dev/null @@ -1,224 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IDictionaryEntryImpl - -Description - -SourceFiles - IDictionaryEntryImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IDictionaryEntryImpl_H -#define IDictionaryEntryImpl_H - -// Foam header files. -#include "List.H" -#include "DLList.H" -#include "Istream.H" -#include "entry.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXAny.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class ITypeDescriptorImpl; - -/*---------------------------------------------------------------------------*\ - Class IDictionaryEntryImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IDictionaryEntryImpl -: - public POA_FoamXServer::IDictionaryEntry, - public PortableServer::RefCountServantBase -{ - -protected: - - // Private data - - //- Type descriptor of this entry. - FoamXServer::ITypeDescriptor_var typeDescriptor_; - - //- Modified flag. - CORBA::Boolean modified_; - - //- Value of this entry for non-compound types. - FoamXAny value_; - - //- Doubly linked list of sub-elements. - Foam::DLList subElements_; - - //- Pointer to hold the list token for large lists - Foam::token* listTokenPtr_; - - //- Current selection - label selection_; - - - // Private member functions. - - void clearSubElements(); - - template - void expandPrimitiveList(); - - template - void expandFixedListList(); - - void expandList(); - - void bindType - ( - FoamXServer::ITypeDescriptor_ptr typeDesc - ); - - -public: - - // Constructors - - //- Construct default for given type descriptor - IDictionaryEntryImpl(FoamXServer::ITypeDescriptor_ptr typeDesc); - - //- Construct as copy - IDictionaryEntryImpl(IDictionaryEntryImpl&); - - - // Destructor - - virtual ~IDictionaryEntryImpl(); - - - // Member Functions - - virtual FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - - - // Non-compound type functions. - - virtual FoamXServer::FoamXAny* value(); - virtual void value(const FoamXServer::FoamXAny& newValue); - virtual void setValue(const FoamXServer::FoamXAny& newValue); - - - // Compound type functions. - - const Foam::DLList& subElementPtrs() const - { - return subElements_; - } - - virtual FoamXServer::DictionaryEntryList* subElements(); - virtual CORBA::Long nSubElements(); - virtual CORBA::Boolean packedList(); - - // Dictionary type functions. - -// virtual CORBA::Boolean found(const char* entryName) const; -// virtual FoamXServer::DictionaryEntry* lookup -// ( -// const char* entryName -// ) const; -// virtual FoamXServer::DictionaryEntry* subDict -// ( -// const char* entryName -// ) const; - - - // Selection type functions. - - virtual CORBA::Long selection(); - virtual void selection(CORBA::Long); - - - // List type functions. - - virtual void addElement - ( - FoamXServer::IDictionaryEntry_out subEntry - ); - - virtual void removeElement - ( - FoamXServer::IDictionaryEntry_ptr subEntry - ); - - - // Recursive state functions. - - virtual void validate(); - virtual CORBA::Boolean modified(); - - - // Persistence. - - void load(const Foam::entry&); - void load(const Foam::dictionary&, bool allowNonOptional = false); - virtual void load(Foam::Istream&); - - //- Save top-level dictionary. - virtual void save(); - - void save - ( - DictionaryWriter& dictWriter, - bool dictEntry = false - ); - - - //- Method to allow field type descriptors to be late-bound. - void bindFieldType - ( - FoamXServer::ITypeDescriptor_ptr typeDesc - ); - - - // Member operators - - void operator=(const IDictionaryEntryImpl&); - void operator=(IDictionaryEntry_ptr); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.C deleted file mode 100644 index e5cda769c8..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.C +++ /dev/null @@ -1,360 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IGeometricFieldDescriptorImpl.H" -#include "ITypeDescriptorImpl.H" -#include "IGeometryDescriptorImpl.H" -#include "DimensionSet.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometricFieldDescriptorImpl::IGeometricFieldDescriptorImpl -( - const char* fieldName -) -: - fieldName_(fieldName), - fieldDescription_(fieldName), - typeDescriptor_(NULL), - geometryDescriptor_(NULL) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::IGeometricFieldDescriptorImpl" - "(const char* fieldName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Initialise dimension set. - dimensionSet_ == dimless; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometricFieldDescriptorImpl::IGeometricFieldDescriptorImpl -( - const word& fieldName, - const dictionary& fieldDict, - const ObjRefHashTable& foamTypes, - const ObjRefHashTable& geometryTypes -) -: - fieldName_(fieldName), - typeDescriptor_(NULL), - geometryDescriptor_(NULL) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::IGeometricFieldDescriptorImpl" - "(const word& fieldName, const dictionary& fieldDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Extract the field type name and description. - fieldDict.lookup("description") >> fieldDescription_; - fieldDict.lookup("fieldType") >> fieldTypeName_; - fieldDict.lookup("geometryType") >> geometryTypeName_; - - // Extract the dimension set. - dimensionSet_ == dimensionSet(fieldDict.lookup("dimensions")); - - // Get the field descriptor for the specified field type. - if (!foamTypes.found(fieldTypeName_)) - { - throw FoamXError - ( - E_FAIL, - "Type descriptor not found for " - + fieldTypeName_, - functionName, - __FILE__, __LINE__ - ); - } - typeDescriptor_ = foamTypes.find(fieldTypeName_)(); - - - // Get the field descriptor for the specified field type. - word fieldName = fieldTypeName_ + "Field"; - if (!foamTypes.found(fieldName)) - { - throw FoamXError - ( - E_FAIL, - "Type descriptor not found for field type " - + fieldName, - functionName, - __FILE__, __LINE__ - ); - } - fieldTypeDescriptor_ = foamTypes.find(fieldName)(); - - - // Get the geometry descriptor for the specified geometry type. - if (!geometryTypes.found(geometryTypeName_)) - { - throw FoamXError - ( - E_FAIL, - "Geometry descriptor not found for specified geometry type " - + geometryTypeName_, - functionName, - __FILE__, __LINE__ - ); - } - geometryDescriptor_ = geometryTypes.find(geometryTypeName_)(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometricFieldDescriptorImpl::~IGeometricFieldDescriptorImpl() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::" - "~IGeometricFieldDescriptorImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptor_ptr -FoamX::IGeometricFieldDescriptorImpl::typeDescriptor() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::typeDescriptor()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - ITypeDescriptor_ptr pTypeDesc = ITypeDescriptor::_nil(); - - if (typeDescriptor_ != NULL) - { - // Return a duplictate reference to the TypeDescriptor object. - pTypeDesc = typeDescriptor_->_this(); - } - - return pTypeDesc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptor_ptr -FoamX::IGeometricFieldDescriptorImpl::fieldTypeDescriptor() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::fieldTypeDescriptor()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - ITypeDescriptor_ptr pTypeDesc = ITypeDescriptor::_nil(); - - if (typeDescriptor_ != NULL) - { - // Return a duplictate reference to the TypeDescriptor object. - pTypeDesc = fieldTypeDescriptor_->_this(); - } - - return pTypeDesc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometryDescriptor_ptr -FoamX::IGeometricFieldDescriptorImpl::geometryDescriptor() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::geometryDescriptor()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - IGeometryDescriptor_ptr pGeomDesc = IGeometryDescriptor::_nil(); - - if (geometryDescriptor_ != NULL) - { - // Return a duplictate reference to the GeometryDescriptor object. - pGeomDesc = geometryDescriptor_->_this(); - } - - return pGeomDesc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometricFieldDescriptorImpl::name() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(fieldName_.c_str()); -} - -void FoamX::IGeometricFieldDescriptorImpl::name(const char* newName) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::name(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fieldName_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometricFieldDescriptorImpl::description() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::description()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(fieldDescription_.c_str()); -} - -void FoamX::IGeometricFieldDescriptorImpl::description -( - const char* newDescription -) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::" - "description(const char* newDescription)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fieldDescription_ = newDescription; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometricFieldDescriptorImpl::fieldTypeName() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::fieldTypeName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(fieldTypeName_.c_str()); -} - -void FoamX::IGeometricFieldDescriptorImpl::fieldTypeName(const char* newName) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::" - "fieldTypeName(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fieldTypeName_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometricFieldDescriptorImpl::geometryTypeName() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::geometryTypeName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(geometryTypeName_.c_str()); -} - -void FoamX::IGeometricFieldDescriptorImpl::geometryTypeName(const char* newName) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::" - "geometryTypeName(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - geometryTypeName_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::DimensionSet FoamX::IGeometricFieldDescriptorImpl::dimensions() -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::dimensions()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return dimensionSet_; -} - -void FoamX::IGeometricFieldDescriptorImpl::dimensions -( - const DimensionSet& newDimSet -) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::dimensions" - "(const DimensionSet& newDimSet)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - dimensionSet_ = newDimSet; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldDescriptorImpl::save(DictionaryWriter& dict) -{ - static const char* functionName = - "FoamX::IGeometricFieldDescriptorImpl::save(DictionaryWriter& dict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - - // Save this field information to the dictionary. - dict.startSubDict(fieldName_); - - dict.writeEntry("description", fieldDescription_); - dict.writeEntry("fieldType", fieldTypeName_); - dict.writeEntry("geometryType", geometryTypeName_); - dict.writeEntry("dimensions", dimensionSet_); - - dict.endSubDict(); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.H deleted file mode 100644 index 4b57909188..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldDescriptorImpl.H +++ /dev/null @@ -1,165 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IGeometricFieldDescriptorImpl - -Description - -SourceFiles - IGeometricFieldDescriptorImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IGeometricFieldDescriptorImpl_H -#define IGeometricFieldDescriptorImpl_H - -// Foam header files. -#include "IDLList.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "DictionaryWriter.H" -#include "ObjRefHashTable.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class ITypeDescriptorImpl; -class IGeometryDescriptorImpl; - -/*---------------------------------------------------------------------------*\ - Class IGeometricFieldDescriptorImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IGeometricFieldDescriptorImpl -: - public POA_FoamXServer::CaseServer::IGeometricFieldDescriptor, - public PortableServer::RefCountServantBase, - public IDLList::link -{ - // Private data - - //- Field name (eg, "p"). - Foam::word fieldName_; - - //- Field description (eg, "Pressure"). - Foam::string fieldDescription_; - - //- Field dimensions. - FoamXServer::DimensionSet dimensionSet_; - - //- Field type name (eg, "scalar"). - Foam::word fieldTypeName_; - - //- Reference to type descriptor. - ITypeDescriptorImpl* typeDescriptor_; - - //- Reference to type descriptor for the field. - ITypeDescriptorImpl* fieldTypeDescriptor_; - - //- Geometry type name (eg, "vol"). - Foam::word geometryTypeName_; - - //- Reference tp geometry descriptor for this field. - IGeometryDescriptorImpl* geometryDescriptor_; - - -public: - - // Constructors - - IGeometricFieldDescriptorImpl(const char* fieldName); - - IGeometricFieldDescriptorImpl - ( - const Foam::word& fieldName, - const Foam::dictionary& fieldDict, - const ObjRefHashTable& foamTypes, - const ObjRefHashTable& geometryTypes - ); - - - // Destructor - - virtual ~IGeometricFieldDescriptorImpl(); - - - // Member Functions - - // Foam access functions - - //- Keyword used by Dictionary - const word& keyword() const - { - return fieldName_; - } - - - // FoamServer access functions - - virtual FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - virtual FoamXServer::ITypeDescriptor_ptr fieldTypeDescriptor(); - - virtual FoamXServer::CaseServer::IGeometryDescriptor_ptr - geometryDescriptor(); - - virtual char* name(); - virtual void name(const char*); - - virtual char* description(); - virtual void description(const char*); - - virtual char* fieldTypeName(); - virtual void fieldTypeName(const char*); - - virtual char* geometryTypeName(); - virtual void geometryTypeName(const char*); - - virtual FoamXServer::DimensionSet dimensions(); - virtual void dimensions - ( - const FoamXServer::DimensionSet& - ); - - - //- Persist to file. - void save(DictionaryWriter& dict); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.C deleted file mode 100644 index 511ab1e5d7..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.C +++ /dev/null @@ -1,675 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files -#include "OSspecific.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IGeometricFieldImpl.H" -#include "IDictionaryEntryImpl.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometricFieldImpl::IGeometricFieldImpl -( - IGeometricFieldDescriptor_ptr fieldDescriptor, - IFoamProperties_ptr foamProperties -) -: - internalFieldValue_(NULL) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::IGeometricFieldImpl" - "(IGeometricFieldDescriptor_ptr fieldDescriptor, " - "IFoamProperties_ptr foamProperties)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Take references to the FieldDescriptor and FoamProperties objects. - if (CORBA::is_nil(foamProperties)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid FoamProperties reference.", - functionName, - __FILE__, __LINE__ - ); - } - if (CORBA::is_nil(fieldDescriptor)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid FieldDescriptor reference.", - functionName, - __FILE__, __LINE__ - ); - } - foamProperties_ = IFoamProperties::_duplicate(foamProperties); - fieldDescriptor_ = IGeometricFieldDescriptor::_duplicate - ( - fieldDescriptor - ); - - // Get the field name. - fieldName_ = fieldDescriptor_->name(); - - // Create the internal field value. - ITypeDescriptor_var fieldType = fieldDescriptor_->fieldTypeDescriptor(); - internalFieldValue_ = new IDictionaryEntryImpl(fieldType); - if (internalFieldValue_ == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create internal field value " - "dictionary entry object.", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometricFieldImpl::~IGeometricFieldImpl() -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::~IGeometricFieldImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Release internal value and reference level value dictionary entry objects - if (internalFieldValue_ != NULL) - { - internalFieldValue_->_remove_ref(); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometricFieldImpl::name() -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Get name from fieldDescriptor object. - if (!CORBA::is_nil(fieldDescriptor_)) - { - return fieldDescriptor_->name(); - } - else - { - return CORBA::string_dup(""); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::getInternalFieldValue -( - IDictionaryEntry_out internalFieldValue -) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::getInternalFieldValue" - "(IDictionaryEntry_out internalFieldValue)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (internalFieldValue_ == NULL) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid internal field value object.", - functionName, - __FILE__, __LINE__ - ); - } - - internalFieldValue = internalFieldValue_->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::getPatchFieldParameters -( - const char* patchName, - IDictionaryEntry_out patchFields -) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::getPatchFieldParameters" - "(const char* patchName, IDictionaryEntry_out patchFields)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // See if this patch requires extra parameters. - if - ( - patchFields_.found(patchName) - && patchFields_[patchName]->subElementPtrs().size() > 1 - ) - { - patchFields = patchFields_[patchName]->_this(); - } - else - { - patchFields = IDictionaryEntry::_nil(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Set the patch field type for the specified patch. Note that the patch -// field type parameter is the true Foam name and not the patch -// field descriptor key. - -void FoamX::IGeometricFieldImpl::addPatch -( - const char* patchName, - const char* patchFieldType -) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::addPatch" - "(const char* patchName, const char* patchFieldType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Adding patch " << patchName - << " to field " << fieldName_ << endl; - - // Check patch name. - if (patchFieldNames_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Lookup this type and see if additional parameters are required. - ITypeDescriptor_var pfDesc; - foamProperties_->findPatchFieldType(patchFieldType, pfDesc.out()); - - // Make sure that the patch field type name is valid. - if (CORBA::is_nil(pfDesc)) - { - throw FoamXError - ( - E_FAIL, - "Invalid patch field type name '" + word(patchFieldType) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Set patch field type. - patchFieldNames_.insert(patchName, patchFieldType); - - // Get the type descriptor for the extra parameters. May be nil. - if (!CORBA::is_nil(pfDesc)) - { - // Create a default DictionaryEntry object. - IDictionaryEntryImpl* patchDictEntryPtr = new IDictionaryEntryImpl - ( - pfDesc - ); - - if (patchDictEntryPtr == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create IDictionaryEntryImpl object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Bind the field type descriptor to the parameter - // dictionary entry object. - patchDictEntryPtr->bindFieldType - ( - fieldDescriptor_->fieldTypeDescriptor() - ); - - // Add to map. - patchFields_.insert(patchName, patchDictEntryPtr); - } - - log << "Added patch " << patchName - << " to field " << fieldName_ << endl; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::deletePatch(const char* patchName) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::deletePatch(const char* patchName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check patch name. - if (!patchFieldNames_.found(patchName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch name.", - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from patch field type map. - patchFieldNames_.erase(patchFieldNames_.find(patchName)); - - // Remove from patch field parameter map if necessary. - if (patchFields_.found(patchName)) - { - HashTable::iterator iter = - patchFields_.find(patchName); - patchFields_.erase(iter); // Releases reference. - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::setPatchFieldType -( - const char* patchName, - const char* patchFieldType -) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::setPatchFieldType" - "(const char* patchName, const char* patchFieldType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Set patch field type if it has changed. - if - ( - !patchFieldNames_.found(patchName) - || patchFieldType != patchFieldNames_.find(patchName)() - ) - { - deletePatch(patchName); - addPatch(patchName, patchFieldType); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::IGeometricFieldImpl::modified() -{ - static const char* functionName = - "FoamX::ICaseServerImpl::modified()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (internalFieldValue_->modified()) return true; - - for - ( - ObjRefHashTable::iterator iter = - patchFields_.begin(); - iter != patchFields_.end(); - ++iter - ) - { - if (iter()->modified()) return true; - } - } - CATCH_ALL(functionName); - - return false; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::load(const dictionary& fieldDict) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::load(const dictionary& fieldDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "loading field " << fieldName_ << endl; - - log << "Reading " << fieldDict.name() - << " start line " << fieldDict.startLineNumber() - << " end line " << fieldDict.endLineNumber() << endl; - - // Make sure the field dictionary contains the required entries. - if - ( - !fieldDict.found("internalField") - || !fieldDict.found("boundaryField") - ) - { - throw FoamXError - ( - E_FAIL, - "Malformed field dictionary.", - functionName, - __FILE__, __LINE__ - ); - } - - // Read the internal field value. - internalFieldValue_->load(fieldDict.lookup("internalField")); - - // Open boundary field dictionary. - const dictionary& boundaryFieldDict(fieldDict.subDict("boundaryField")); - - // Loop over all defined patch names and read the patch field values. - wordList patchNames = patchFieldNames_.toc(); - forAll(patchNames, i) - { - word patchName(patchNames[i]); - - if (!boundaryFieldDict.found(patchName)) - { - // Patch dictionary not found. Bugger. - log << "Warning : Patch dictionary '" << patchName - << "' not found in field dictionary '" << fieldName_ - << "'." << endl; - - WarningIn(functionName) - << "Patch dictionary '" << patchName - << "' not found in field dictionary '" << fieldName_ - << "'." << endl; - continue; - } - - // Open patch dictionary. - const dictionary& patchDict(boundaryFieldDict.subDict(patchName)); - - // Make sure the patch dictionary contains the required entries. - if (!patchDict.found("type")) - { - throw FoamXError - ( - E_FAIL, - "Patch field type not specified for patch '" + patchName - + "' in field dictionary '" + fieldName_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Read the patch field type. This is the actual type not the key. - word patchFieldType(patchDict.lookup("type")); - - // Get the PatchFieldDescriptor object. Search by type. - ITypeDescriptor_var pfDesc; - foamProperties_->findPatchFieldType - ( - patchFieldType.c_str(), - pfDesc.out() - ); - - // Make sure that the patch field type name is valid. - if (CORBA::is_nil(pfDesc)) - { - log << "Warning : Invalid patch field type '" << patchFieldType - << "' for patch '" << patchName - << "' in field dictionary '" << fieldName_ << "'." - << endl; - - WarningIn(functionName) - << "Invalid patch field type '" << patchFieldType - << "' for patch '" << patchName - << "' in field dictionary '" << fieldName_ << "'." - << endl; - - continue; - } - - // Check that the patch field type is valid for the boundary type - // specified for this patch. - word boundaryPatchFieldType = patchFieldNames_[patchName]; - if (patchFieldType != boundaryPatchFieldType) - { - log << "Warning : Incorrect patch field type '" - << patchFieldType << "' for patch '" << patchName << "'." - << endl << " Boundary condition specifies '" - << boundaryPatchFieldType - << "' for field '" << fieldName_ << "'." - << endl; - - WarningIn(functionName) - << "Incorrect patch field type '" - << patchFieldType << "' for patch '" << patchName << "'." - << endl << " Boundary condition specifies '" - << boundaryPatchFieldType - << "' for field '" << fieldName_ << "'." - << endl; - } - - // Set the patch field type. Poss over-ride default? - patchFieldNames_[patchName] = patchFieldType; - - // Release any previous patch field parameter object. - if (patchFields_.found(patchName)) - { - HashTable::iterator iter = - patchFields_.find(patchName); - patchFields_.erase(iter); - } - - // Get the type descriptor for the extra parameters. May be nil. - if (!CORBA::is_nil(pfDesc)) - { - // Create and initialise a new IDictionaryEntryImpl - // object for the parameters. - IDictionaryEntryImpl* patchDictEntryPtr = - new IDictionaryEntryImpl - ( - pfDesc - ); - if (patchDictEntryPtr == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create patch field parameter " - "DictionaryEntry Object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Bind the field type descriptor to the parameter - // dictionary entry object. - patchDictEntryPtr->bindFieldType - ( - fieldDescriptor_->fieldTypeDescriptor() - ); - - // Load values from dictionary. - // The extra parameters are defined as dictionary - // entries. Pass the entire patch dictionary through. - // Tolerate non-existent dictionary entries. - // Any missing parameters will get a default value. - - patchDictEntryPtr->load - ( - boundaryFieldDict.subDict(patchName), - true - ); - - // Add to map. - patchFields_.insert(patchName, patchDictEntryPtr); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometricFieldImpl::save -( - DictionaryWriter& dictWriter, - const wordList& patchNames -) -{ - static const char* functionName = - "FoamX::IGeometricFieldImpl::save" - "(DictionaryWriter& dictWriter, const wordList& patchNames)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Validate the dictionary entry items. - internalFieldValue_->validate(); - - // Construct class name (eg, "volScalarField"). - word className - ( - word(fieldDescriptor_->geometryDescriptor()->name()) - & word(fieldDescriptor_->fieldTypeDescriptor()->name()) - ); - - dictWriter.writeHeader - ( - "Field Dictionary", - className - ); - - dictWriter.writeEndl(); - - // Get field dimensions from field descriptor. - DimensionSet fieldDimension = fieldDescriptor_->dimensions(); - dictWriter.writeEntry("dimensions", fieldDimension); - dictWriter.writeEndl(); - - // Write internal field and reference values. - dictWriter.writeKeyword("internalField"); - internalFieldValue_->save(dictWriter, false); - dictWriter.endEntry(); - dictWriter.writeEndl(); - - // Open boundary field sub-dictionary. - dictWriter.startSubDict("boundaryField"); - - // Loop over all patchs. - forAll(patchNames, i) - { - dictWriter.writeKeyword(patchNames[i]); - - // Write value only. - patchFields_[patchNames[i]]->save(dictWriter, false); - dictWriter.writeEndl(); - - if (i < patchNames.size()-1) - { - dictWriter.writeEndl(); - } - } - - dictWriter.endSubDict(); - dictWriter.writeEndl(); - dictWriter.writeEndBar(); - } - catch (FoamXError& ex) - { - // Save failed. Remove the duff file. - if (exists(dictWriter.pathName())) - { - rm(dictWriter.pathName()); - } - - // Bounce exception up to client. - throw ex; - } - catch (...) - { - // Save failed. Remove the duff file. - if (exists(dictWriter.pathName())) - { - rm(dictWriter.pathName()); - } - - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.H deleted file mode 100644 index 81b40c52ab..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometricFieldImpl.H +++ /dev/null @@ -1,161 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IGeometricFieldDescriptorImpl - -Description - -SourceFiles - IGeometricFieldImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IGeometricFieldImpl_H -#define IGeometricFieldImpl_H - -// Foam header files. -#include "fileName.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "ObjRefHashTable.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class IDictionaryEntryImpl; - -/*---------------------------------------------------------------------------*\ - Class IGeometricFieldImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IGeometricFieldImpl -: - public POA_FoamXServer::CaseServer::IGeometricField, - public PortableServer::RefCountServantBase -{ - // Private data - - //- Field name. No, really. - Foam::word fieldName_; - - //- Reference to FoamProperties object. Used for patchField information. - FoamXServer::CaseServer::IFoamProperties_var foamProperties_; - - //- Reference to FieldDescriptor object. - FoamXServer::CaseServer::IGeometricFieldDescriptor_var fieldDescriptor_; - - //- Reference to internal field value object. - IDictionaryEntryImpl* internalFieldValue_; - - //- Map of patch name to patch field types. - Foam::HashTable patchFieldNames_; - - //- Map of patch name to patch field parameter values. - ObjRefHashTable patchFields_; - - -public: - - // Constructors - - IGeometricFieldImpl - ( - FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr - fieldDescriptor, - FoamXServer::CaseServer::IFoamProperties_ptr foamProperties - ); - - - // Destructor - - virtual ~IGeometricFieldImpl(); - - - // Member Functions - - virtual char* name(); - - virtual void getInternalFieldValue - ( - FoamXServer::IDictionaryEntry_out internalFieldValue - ); - - virtual void getPatchFieldParameters - ( - const char* patchName, - FoamXServer::IDictionaryEntry_out patchFieldParams - ); - - - // Set patch field type for a particular patch. - - virtual void addPatch - ( - const char* patchName, - const char* patchFieldType - ); - - virtual void deletePatch(const char* patchName); - - virtual void setPatchFieldType - ( - const char* patchName, - const char* patchFieldType - ); - - - // Recursive state functions. - - virtual CORBA::Boolean modified(); - - - // Persistence. - - void load(const Foam::dictionary& fieldDict); - - void save - ( - DictionaryWriter& dictWriter, - const Foam::wordList& patchNames - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.C deleted file mode 100644 index 13d013889b..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.C +++ /dev/null @@ -1,210 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IGeometryDescriptorImpl.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometryDescriptorImpl::IGeometryDescriptorImpl -( - const word& geometryName -) -: - name_(geometryName), - displayName_(geometryName), - description_(geometryName) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::IGeometryDescriptorImpl" - "(const char* geometryName)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometryDescriptorImpl::IGeometryDescriptorImpl -( - const word& geometryName, - const dictionary& outerDict -) -: - name_(geometryName) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::IGeometryDescriptorImpl" - "(const char* geometryName, dictionary& outerDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure the dictionary contains the geometry definition. - if (!outerDict.found(geometryName)) - { - throw FoamXError - ( - E_FAIL, - "Geometry definition dictionary '" + name_ + "' not found.", - functionName, - __FILE__, __LINE__ - ); - } - - const dictionary& geomDict(outerDict.subDict(geometryName)); - - // Check that the dictionary has the minimum required information. - if - ( - !geomDict.found("displayName") - || !geomDict.found("description")) - { - throw FoamXError - ( - E_FAIL, - "Malformed geometry definition dictionary for geometry type '" - + name_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the patch field properties. - geomDict.lookup("displayName")>> displayName_; - geomDict.lookup("description")>> description_; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IGeometryDescriptorImpl::~IGeometryDescriptorImpl() -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::~IGeometryDescriptorImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometryDescriptorImpl::name() -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(name_.c_str()); -} - -void FoamX::IGeometryDescriptorImpl::name(const char* newName) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::name(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - name_ = newName; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometryDescriptorImpl::displayName() -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::displayName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(displayName_.c_str()); -} - -void FoamX::IGeometryDescriptorImpl::displayName(const char* newName) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::displayName(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - displayName_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IGeometryDescriptorImpl::description() -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::description()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(description_.c_str()); -} - -void FoamX::IGeometryDescriptorImpl::description(const char* newDescription) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::description" - "(const char* newDescription)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - description_ = newDescription; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IGeometryDescriptorImpl::save(DictionaryWriter& dict) -{ - static const char* functionName = - "FoamX::IGeometryDescriptorImpl::save(DictionaryWriter& dict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Save this patch information to the dictionary. - dict.startSubDict(name_); - - dict.writeEntry("displayName", displayName_); - dict.writeEntry("description", description_); - - dict.endSubDict(); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.H deleted file mode 100644 index 6034d24668..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IGeometryDescriptorImpl.H +++ /dev/null @@ -1,112 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IPatchDescriptorImpl - -Description - -SourceFiles - IGeometryDescriptorImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IGeometryDescriptorImpl_H -#define IGeometryDescriptorImpl_H - -// Foam header files. -#include "word.H" -#include "string.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class IGeometryDescriptorImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IGeometryDescriptorImpl -: - public POA_FoamXServer::CaseServer::IGeometryDescriptor, - public PortableServer::RefCountServantBase -{ - // Private data - - Foam::word name_; - Foam::string displayName_; - Foam::string description_; - - -public: - - // Constructors - - IGeometryDescriptorImpl(const word& geometryName); - - IGeometryDescriptorImpl - ( - const word& geometryName, - const dictionary& outerDict - ); - - - // Destructor - - virtual ~IGeometryDescriptorImpl(); - - - // Member Functions - - // Properties common to all types. - - virtual char* name(); - virtual void name(const char*); - virtual char* displayName(); - virtual void displayName(const char*); - virtual char* description(); - virtual void description(const char*); - - - //- Persist to file. - void save(DictionaryWriter& dict); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.C deleted file mode 100644 index e3dfecb8c6..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.C +++ /dev/null @@ -1,208 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IPatchDescriptorImpl.H" -#include "ITypeDescriptorImpl.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPatchDescriptorImpl::IPatchDescriptorImpl(const word& patchName) -: - name_(patchName), - displayName_(patchName), - description_(patchName) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::IPatchDescriptorImpl" - "(const char* patchName)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPatchDescriptorImpl::IPatchDescriptorImpl -( - const word& patchName, - const dictionary& outerDict -) -: - name_(patchName) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::IPatchDescriptorImpl" - "(const char* patchName, dictionary& outerDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure the dictionary contains the patch field definition. - if (!outerDict.found(patchName)) - { - throw FoamXError - ( - E_FAIL, - "Patch definition dictionary '" + name_ + "' not found.", - functionName, - __FILE__, __LINE__ - ); - } - - const dictionary& patchDict(outerDict.subDict(patchName)); - - // Check that the dictionary has the minimum required information. - if - ( - !patchDict.found("displayName") - || !patchDict.found("description") - ) - { - throw FoamXError - ( - E_FAIL, - "Malformed patch definition dictionary for patch type '" - + name_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the patch field properties. - patchDict.lookup("displayName")>> displayName_; - patchDict.lookup("description")>> description_; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPatchDescriptorImpl::~IPatchDescriptorImpl() -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::~IPatchDescriptorImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IPatchDescriptorImpl::name() -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(name_.c_str()); -} - -void FoamX::IPatchDescriptorImpl::name(const char* newName) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::name(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - name_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IPatchDescriptorImpl::displayName() -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::displayName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(displayName_.c_str()); -} - -void FoamX::IPatchDescriptorImpl::displayName(const char* newName) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::displayName(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - displayName_ = newName; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::IPatchDescriptorImpl::description() -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::description()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate string and return. - return CORBA::string_dup(description_.c_str()); -} - -void FoamX::IPatchDescriptorImpl::description(const char* newDescription) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::description(const char* newDescription)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - description_ = newDescription; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPatchDescriptorImpl::save(DictionaryWriter& dict) -{ - static const char* functionName = - "FoamX::IPatchDescriptorImpl::save(DictionaryWriter& dict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - - // Save this patch information to the dictionary. - dict.startSubDict(name_); - - dict.writeEntry("displayName", displayName_); - dict.writeEntry("description", description_); - - dict.endSubDict(); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.H deleted file mode 100644 index c25f1e938d..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchDescriptorImpl.H +++ /dev/null @@ -1,110 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IPatchDescriptorImpl - -Description - -SourceFiles - IPatchDescriptorImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IPatchDescriptorImpl_H -#define IPatchDescriptorImpl_H - -// Foam header files. - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXWordList.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class IPatchDescriptorImpl Declaration -\*---------------------------------------------------------------------------*/ - -class IPatchDescriptorImpl -: - public POA_FoamXServer::CaseServer::IPatchDescriptor, - public PortableServer::RefCountServantBase -{ - // Private data - - Foam::word name_; - Foam::string displayName_; - Foam::string description_; - - -public: - - // Constructors - - IPatchDescriptorImpl(const word& patchName); - - IPatchDescriptorImpl - ( - const word& patchName, - const Foam::dictionary& outerDict - ); - - - // Destructor - - virtual ~IPatchDescriptorImpl(); - - - // Member Functions - - // Properties common to all types. - - virtual char* name(); - virtual void name(const char*); - virtual char* displayName(); - virtual void displayName(const char*); - virtual char* description(); - virtual void description(const char*); - - - //- Persist to file. - void save(DictionaryWriter& dict); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchPhysicalTypeDescriptorImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchPhysicalTypeDescriptorImpl.C deleted file mode 100644 index ef3b752684..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPatchPhysicalTypeDescriptorImpl.C +++ /dev/null @@ -1,487 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IPatchPhysicalTypeDescriptorImpl.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPatchPhysicalTypeDescriptorImpl::IPatchPhysicalTypeDescriptorImpl -( - const word& patchPhysicalTypeName -) -: - name_(patchPhysicalTypeName), - displayName_(patchPhysicalTypeName), - description_(patchPhysicalTypeName + " boundary condition"), - patchType_("patch"), - parentType_("") -{ - static const char* functionName = - "FoamX::IPatchPhysicalTypeDescriptorImpl::" - "IPatchPhysicalTypeDescriptorImpl" - "(const char* patchPhysicalTypeName)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPatchPhysicalTypeDescriptorImpl::IPatchPhysicalTypeDescriptorImpl -( - const word& patchPhysicalTypeName, - const wordList& fieldList -) -: - name_(patchPhysicalTypeName), - displayName_(patchPhysicalTypeName), - description_(patchPhysicalTypeName + " boundary condition"), - patchType_(patchPhysicalTypeName), - parentType_("") -{ - static const char* functionName = - "FoamX::IPatchPhysicalTypeDescriptorImpl::" - "IPatchPhysicalTypeDescriptorImpl" - "(const char* patchPhysicalTypeName, const wordList& fieldList)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Get list of fields - patchFieldTypes_.length(fieldList.size()); - - // Loop over all defined fields and determine the patch field types - for (int nField = 0; nField < fieldList.size(); nField++) - { - patchFieldTypes_[nField].name = fieldList[nField].c_str(); - patchFieldTypes_[nField].value = patchPhysicalTypeName.c_str(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool FoamX::IPatchPhysicalTypeDescriptorImpl::findParentPatchType -( - word& patchType, - const word& parentType, - const dictionary& patchPhysicalTypesDict -) const -{ - if (patchPhysicalTypesDict.found(parentType)) - { - const dictionary& parentPatchPhysicalTypeDict = - patchPhysicalTypesDict.subDict(parentType); - - if (parentPatchPhysicalTypeDict.found("patchType")) - { - parentPatchPhysicalTypeDict.lookup("patchType") >> patchType; - return true; - } - else if (parentPatchPhysicalTypeDict.found("parentType")) - { - return findParentPatchType - ( - patchType, - parentPatchPhysicalTypeDict.lookup("parentType"), - patchPhysicalTypesDict - ); - } - else - { - return false; - } - } - else - { - return false; - } -} - - -bool FoamX::IPatchPhysicalTypeDescriptorImpl::findPatchFieldType -( - word& patchFieldType, - const word& parentType, - const dictionary& patchPhysicalTypesDict, - const dictionary& patchFieldPhysicalTypes -) const -{ - if (patchFieldPhysicalTypes.found(parentType)) - { - patchFieldPhysicalTypes.lookup(parentType) >> patchFieldType; - return true; - } - else if - ( - patchPhysicalTypesDict.found(parentType) - && patchPhysicalTypesDict.subDict(parentType).found("parentType") - ) - { - return findPatchFieldType - ( - patchFieldType, - patchPhysicalTypesDict.subDict(parentType).lookup("parentType"), - patchPhysicalTypesDict, - patchFieldPhysicalTypes - ); - } - else - { - return false; - } -} - - -FoamX::IPatchPhysicalTypeDescriptorImpl::IPatchPhysicalTypeDescriptorImpl -( - const word& patchPhysicalTypeName, - const dictionary& patchPhysicalTypeDict, - const dictionary& patchPhysicalTypesDict, - const dictionary& patchFieldsPhysicalTypesDict, - const wordList& fieldList -) -: - name_(patchPhysicalTypeName), - displayName_(patchPhysicalTypeName), - description_(patchPhysicalTypeName + " boundary condition"), - patchType_("patch"), - parentType_("") -{ - static const char* functionName = - "FoamX::IPatchPhysicalTypeDescriptorImpl::" - "IPatchPhysicalTypeDescriptorImpl" - "(const char* patchPhysicalTypeName, " - "dictionary& patchPhysicalTypeDict, " - "dictionary& patchFieldsPhysicalTypesDict, " - "const wordList& fieldList)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Get the boundary type properties - if (patchPhysicalTypeDict.found("displayName")) - { - patchPhysicalTypeDict.lookup("displayName") >> displayName_; - } - - if (patchPhysicalTypeDict.found("description")) - { - patchPhysicalTypeDict.lookup("description") >> description_; - } - - if (patchPhysicalTypeDict.found("patchType")) - { - patchPhysicalTypeDict.lookup("patchType") >> patchType_; - } - - // Get (optional) parent type - if (patchPhysicalTypeDict.found("parentType")) - { - patchPhysicalTypeDict.lookup("parentType") >> parentType_; - - findParentPatchType - ( - patchType_, - parentType_, - patchPhysicalTypesDict - ); - } - - // Get list of fields - patchFieldTypes_.length(fieldList.size()); - - // Loop over all defined fields and determine the patch field types - for (int nField=0; nField 0) - { - dictWriter.writeEntry("parentType", parentType_); - } - - // Write the patch field types - for (unsigned int i=0; i::link -{ - // Private data - - Foam::word name_; - Foam::string displayName_; - Foam::string description_; - Foam::word patchType_; - Foam::word parentType_; - FoamXServer::StringPairList patchFieldTypes_; - - - // Private member functions - - //- Search back through the parentTypes to find the patchPhysicalType - // for which the patchType is defined - bool findParentPatchType - ( - word& patchType, - const word& parentType, - const dictionary& patchPhysicalTypesDict - ) const; - - //- Search back through the parentTypes to find the patchPhysicalType - // for which this boundary condition for this field is defined - bool findPatchFieldType - ( - word& patchFieldType, - const word& parentType, - const dictionary& patchPhysicalTypesDict, - const dictionary& patchFieldPhysicalTypes - ) const; - - -public: - - // Constructors - - IPatchPhysicalTypeDescriptorImpl - ( - const word& patchPhysicalTypeName - ); - - IPatchPhysicalTypeDescriptorImpl - ( - const word& patchPhysicalTypeName, - const Foam::wordList& fieldList - ); - - IPatchPhysicalTypeDescriptorImpl - ( - const word& patchPhysicalTypeName, - const Foam::dictionary& patchPhysicalTypes, - const dictionary& patchPhysicalTypesDict, - const Foam::dictionary& patchFieldsPhysicalTypesDict, - const Foam::wordList& fieldList - ); - - - // Destructor - - virtual ~IPatchPhysicalTypeDescriptorImpl(); - - - // Member Functions - - // Foam access functions - - //- Keyword used by Dictionary - const word& keyword() const - { - return name_; - } - - - // FoamServer access functions - - virtual char* name(); - virtual void name(const char*); - virtual char* displayName(); - virtual void displayName(const char*); - virtual char* description(); - virtual void description(const char*); - virtual char* patchType(); - virtual void patchType(const char*); - virtual char* parentType(); - virtual void parentType(const char*); - virtual FoamXServer::StringPairList* patchFieldTypes(); - virtual void patchFieldTypes(const FoamXServer::StringPairList&); - - //- Persist to file. - void save(DictionaryWriter& dict); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.C deleted file mode 100644 index 3a81bab6de..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.C +++ /dev/null @@ -1,1534 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "IFstream.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "IPropertiesImpl.H" -#include "ITypeDescriptorImpl.H" -#include "IApplicationImpl.H" -#include "IDictionaryEntryImpl.H" -#include "RootDictionary.H" -#include "IGeometryDescriptorImpl.H" -#include "IPatchDescriptorImpl.H" -#include "ITypeDescriptorImpl.H" -#include "LogEntry.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::ApplicationDescriptor* -FoamX::IPropertiesImpl::readApplicationDescriptor -( - const word& name, - const fileName& category, - const fileName& path, - const bool systemClass -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::readApplicationDescriptor" - "(const word& name, const fileName& category, " - "const bool systemClass)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Create and initialise a new ApplicationDescriptor object. - ApplicationDescriptor* pDesc = new ApplicationDescriptor(); - - pDesc->name = name.c_str(); - pDesc->category = category.c_str(); - pDesc->path = path.c_str(); - pDesc->systemClass = systemClass; - - return pDesc; - } - CATCH_ALL(functionName); -} - - -void FoamX::IPropertiesImpl::readApplicationDescriptors -( - Foam::HashPtrTable& - appDescriptorsMap, - const fileName& dir, - const fileName& category, - const bool systemClass -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::readApplicationDescriptor" - "(const fileName& dir, " - "const fileName& category, " - "const bool systemClass)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileNameList appDirs = readDir(dir, fileName::DIRECTORY); - - forAll (appDirs, i) - { - fileName path = dir/appDirs[i]; - fileName appDictPathName = - path/"FoamX"/(appDirs[i] + ".cfg"); - - if - ( - file(appDictPathName) - && !appDescriptorsMap.found(appDirs[i]) - ) - { - appDescriptorsMap.insert - ( - appDirs[i], - readApplicationDescriptor - ( - appDirs[i], - category, - path, - systemClass - ) - ); - } - - readApplicationDescriptors - ( - appDescriptorsMap, - path, - category/appDirs[i], - systemClass - ); - } - } - CATCH_ALL(functionName); -} - - -void FoamX::IPropertiesImpl::addPatchFields -( - const dictionary& patchFieldDict -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::addPatchFields" - "(const dictionary& patchFieldDict)"; - - // Initialise the patch field descriptor objects. - forAllConstIter(dictionary, patchFieldDict, iter) - { - const word& patchFieldTypeName = iter().keyword(); - - // Create and initialise a new PatchFieldDescriptor object. - ITypeDescriptorImpl* pPatchFieldDescriptor = new ITypeDescriptorImpl - ( - patchFieldTypeName, - patchFieldDict.name(), - iter(), - foamTypesDict_ - ); - - if (pPatchFieldDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create PatchFieldDescriptor object for " - "patch field type '" + patchFieldTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map. - patchFieldMap_.insert(patchFieldTypeName, pPatchFieldDescriptor); - } -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPropertiesImpl::IPropertiesImpl(bool readOnly) -: - readOnly_(readOnly) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::IPropertiesImpl(bool readOnly)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Open the FoamX system config dictionary. - fileName fxConfigFileName = dotFoam("apps/FoamX/FoamX.cfg"); - if (!exists(fxConfigFileName)) - { - throw FoamXError - ( - E_FAIL, - "Cannot find FoamX root configuration dictionary '" - + fxConfigFileName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - dictionary configDict((IFstream(fxConfigFileName)())); - - // Read list data from config dictionary. - availableModules_.read(configDict.lookup("availableModules")); - - - // Open the Foam types dictionary. - fileName foamTypesDictFileName = Paths::config/"types/types.cfg"; - - if (!exists(foamTypesDictFileName)) - { - throw FoamXError - ( - E_FAIL, - "Cannot find Foam types dictionary '" - + foamTypesDictFileName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - (IFstream(foamTypesDictFileName)()) >> foamTypesDict_; - - // Initialise the foam type descriptor objects. - forAllConstIter(dictionary, foamTypesDict_, iter) - { - const word& foamTypeName = iter().keyword(); - - // Create and initialise a new TypeDescriptor object. - ITypeDescriptorImpl* pFieldTypeDescriptor = new ITypeDescriptorImpl - ( - foamTypeName, - "FoamX:foamTypes", - iter(), - foamTypesDict_ - ); - - if (pFieldTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Foam TypeDescriptor object for " - "field type '" + foamTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map. - foamTypeMap_.insert(foamTypeName, pFieldTypeDescriptor); - } - - - dictionary geometryDict - ( - IFstream(Paths::config/"types/geometries.cfg")() - ); - - // Initialise the geometry descriptor objects. - forAllConstIter(dictionary, geometryDict, iter) - { - const word& geometricTypeName = iter().keyword(); - - // Create and initialise a new GeometryDescriptor object. - IGeometryDescriptorImpl* pGeometryTypeDescriptor = new - IGeometryDescriptorImpl - ( - geometricTypeName, - geometryDict - ); - - if (pGeometryTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create field GeometryDescriptor object for " - "geometry type '" + geometricTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map. - geometryTypeMap_.insert(geometricTypeName, pGeometryTypeDescriptor); - } - - dictionary patchDict(IFstream(Paths::config/"types/patches.cfg")()); - - // Initialise the patch descriptor objects. - forAllConstIter(dictionary, patchDict, iter) - { - const word& patchTypeName = iter().keyword(); - - // Create and initialise a new PatchDescriptor object. - IPatchDescriptorImpl* pPatchDescriptor = - new IPatchDescriptorImpl(patchTypeName, patchDict); - - if (pPatchDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create PatchDescriptor object for patch type '" - + patchTypeName + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map. - patchMap_.insert(patchTypeName, pPatchDescriptor); - } - - - dictionary patchFieldDict - ( - IFstream(Paths::config/"types/patchFields.cfg")() - ); - - addPatchFields(patchFieldDict); - - - // --------------------------------------------------------------------- - // Open the user's Foam control dictionary. - fileName controlDictFileName = dotFoam("controlDict"); - if (exists(controlDictFileName)) - { - dictionary controlDict((IFstream(controlDictFileName)())); - - stringList rawRootDirs(1, "."); - - if (controlDict.found("caseRoots")) - { - // Read root directory list. - // Filter out directories which do not exist. - stringList controlDictRootDirs(controlDict.lookup("caseRoots")); - - if (controlDictRootDirs.size()) - { - rawRootDirs = controlDictRootDirs; - } - } - - // Check that each root directory actually exists. - forAll (rawRootDirs, i) - { - fileName rootDir = rawRootDirs[i]; - rootDir.expand(); - - if (exists(rootDir)) - { - rootDirectories_.length(rootDirectories_.length() + 1); - rootDirectories_[rootDirectories_.length() - 1] - = rootDir.c_str(); - - rawRootDirectories_.length - ( - rawRootDirectories_.length() + 1 - ); - - rawRootDirectories_[rawRootDirectories_.length() - 1] - = rawRootDirs[i].c_str(); - } - else - { - WarningIn(functionName) - << "User specified root directory " << rawRootDirs[i]; - - if (rootDir.size() != rawRootDirs[i].size()) - { - Info<< " (" << rootDir << ")"; - } - - Info<< " not found. Removing from root directories list." - << endl; - } - } - } - - - // --------------------------------------------------------------------- - // Initialise the application class descriptor map. - - // Scan the user's utilities directory for valid solvers - readApplicationDescriptors - ( - appDescriptorMap_, - Paths::userSolvers, - "", - false - ); - - // Scan the system utilities directory for valid solvers - readApplicationDescriptors - ( - appDescriptorMap_, - Paths::solvers, - "", - true - ); - - - // --------------------------------------------------------------------- - // Initialise the utility descriptor map. - - // Scan the user's utilities directory for valid utilities - readApplicationDescriptors - ( - utilityDescriptorMap_, - Paths::userUtilities, - "", - false - ); - - // Scan the system utilities directory for valid utilities - readApplicationDescriptors - ( - utilityDescriptorMap_, - Paths::utilities, - "", - true - ); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::IPropertiesImpl::~IPropertiesImpl() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::~IPropertiesImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); - -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::availableModules() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::availableModules()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return. - return new FoamXServer::StringList(availableModules_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::rootDirectories() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::rootDirectories()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return. - return new FoamXServer::StringList(rootDirectories_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::rawRootDirectories() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::rawRootDirectories()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return. - return new FoamXServer::StringList(rawRootDirectories_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::addRootDirectory(const char* rawRootDir) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::addRootDirectory(const char* rawRootDir)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName rootDir = rawRootDir; - rootDir.expand(); - - if (!rootDirectories_.found(rootDir.c_str())) - { - rootDirectories_.append(rootDir.c_str()); - rawRootDirectories_.append(rawRootDir); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::deleteRootDirectory(const char* rawRootDir) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::deleteRootDirectory(const char* rawRootDir)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName rootDir = rawRootDir; - rootDir.expand(); - - if (rootDirectories_.found(rootDir.c_str())) - { - rootDirectories_.remove(rootDir.c_str()); - rawRootDirectories_.remove(rawRootDir); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::foamTypes() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::foamTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList(static_cast(foamTypeMap_.toc())) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getFoamType -( - const char* foamTypeKey, - ITypeDescriptor_out typeDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getFoamType" - "(const char* foamTypeKey, ITypeDescriptor_out typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // Check for valid foam type name. - if (!foamTypeMap_.found(foamTypeKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid foam type name '" + word(foamTypeKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the TypeDescriptor object. - typeDesc = foamTypeMap_[foamTypeKey]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::geometryTypes() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::geometryTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList(static_cast(geometryTypeMap_.toc())) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getGeometryType -( - const char* geometryTypeKey, - IGeometryDescriptor_out geometryDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getGeometryType" - "(const char* geometryTypeKey, IGeometryDescriptor_out geometryDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // Check for valid geometry type name. - if (!geometryTypeMap_.found(geometryTypeKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid geometry type name '" + word(geometryTypeKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the GeometryDescriptor object. - geometryDesc = geometryTypeMap_[geometryTypeKey]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::patchTypes() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::patchTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList(static_cast(patchMap_.toc())) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getPatchType -( - const char* patchTypeKey, - IPatchDescriptor_out patchDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getPatchType" - "(const char* patchTypeKey, IPatchDescriptor_out patchDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - // Check for valid patch name. - if (!patchMap_.found(patchTypeKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch type name '" + word(patchTypeKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the PatchDescriptor object. - patchDesc = patchMap_[patchTypeKey]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::findPatchType -( - const char* patchTypeName, - IPatchDescriptor_out patchDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::findPatchType" - "(const char* patchTypeName, IPatchDescriptor_out patchDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - IPatchDescriptorImpl* pPatchDescriptor = NULL; - - if (patchMap_.found(patchTypeName)); - { - pPatchDescriptor = patchMap_.find(patchTypeName)(); - } - - // Return a reference to the PatchFieldDescriptor object. - if (pPatchDescriptor != NULL) - { - patchDesc = pPatchDescriptor->_this(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::IPropertiesImpl::patchFieldTypes() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::patchFieldTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return - return new FoamXServer::StringList - ( - FoamXWordList(static_cast(patchFieldMap_.toc())) - ); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getPatchFieldType -( - const char* patchFieldTypeKey, - ITypeDescriptor_out patchFieldDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getPatchFieldType" - "(const char* patchFieldTypeKey," - "ITypeDescriptor_out patchFieldDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check for valid patch field name. - if (!patchFieldMap_.found(patchFieldTypeKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid patch field type name '" - + word(patchFieldTypeKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Return a reference to the PatchFieldDescriptor object. - patchFieldDesc = patchFieldMap_[patchFieldTypeKey]->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::findPatchFieldType -( - const char* patchFieldTypeName, - ITypeDescriptor_out patchFieldDesc -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::findPatchFieldType" - "(const char* patchFieldTypeName, " - "ITypeDescriptor_out patchFieldDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - - ITypeDescriptorImpl* pPatchFieldDescriptor = NULL; - - if (patchFieldMap_.found(patchFieldTypeName)) - { - pPatchFieldDescriptor = patchFieldMap_.find(patchFieldTypeName)(); - } - - // Return a reference to the PatchFieldDescriptor object. - if (pPatchFieldDescriptor != NULL) - { - patchFieldDesc = pPatchFieldDescriptor->_this(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getFoamControlDict -( - FoamXServer::IDictionaryEntry_out controlDict -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getFoamControlDict" - "(FoamXServer::ApplicationDescriptor_out utilityDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - fileName controlDictCfgPath = - Paths::config/"dictionaries/OpenFOAMControlDict/controlDict.cfg"; - - dictionary controlDictConfigDict((IFstream(controlDictCfgPath)())); - - ITypeDescriptorImpl* controlDictDesc = new ITypeDescriptorImpl - ( - "controlDict", - controlDictCfgPath, - controlDictConfigDict, - foamTypesDict_ - ); - - fileName controlDictPath = Foam::dotFoam(""); - - // Create an appropriate sub entry object and store its reference. - RootDictionary* controlDictPtr = new RootDictionary - ( - controlDictDesc->_this(), - controlDictPath, - "" - ); - - if (controlDictPtr == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create IDictionaryEntryImpl object for OpenFOAM " - "controlDict " + controlDictPath, - functionName, - __FILE__, __LINE__ - ); - } - - controlDict = controlDictPtr->_this(); - - // Load the values from the file. - controlDictPtr->load(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::ApplicationDescriptorList* FoamX::IPropertiesImpl::applicationes() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::applicationes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Construct an application class list and return. - ApplicationDescriptorList* pAppClassList = - new ApplicationDescriptorList(); - pAppClassList->length(appDescriptorMap_.size()); - - label i = 0; - - for - ( - Foam::HashPtrTable::iterator iter = - appDescriptorMap_.begin(); - iter != appDescriptorMap_.end(); - ++iter - ) - { - (*pAppClassList)[i++] = *iter(); - } - - return pAppClassList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getApplication -( - const char* appKey, - IApplication_out app -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getApplication" - "(const char* appKey, IApplication_out app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - IApplicationImpl* pAppClass = NULL; - - // See if the specified application class name is valid. - if (!appDescriptorMap_.found(appKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "getApplication::Invalid application class name '" - + word(appKey) + "'.", - "IPropertiesImpl", - __FILE__, __LINE__ - ); - } - - // See if we have this application class object cached. - if (appMap_.found(appKey)) - { - log << "Existing." << endl; - pAppClass = appMap_[appKey]; - } - else - { - log << "New application class " << app << endl; - - // Create and initialise a new Application object. - pAppClass = new IApplicationImpl - ( - *appDescriptorMap_[appKey], - *this - ); - - if (pAppClass == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Application object for '" - + word(appKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the application class from the definition dictionary. - // Allow user defined application classes to override the system - // classes. - pAppClass->load(); - - // Add application class object to map. - appMap_.insert(appKey, pAppClass); - } - - // Return a reference to the Application object. - app = pAppClass->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::addApplication -( - const char* appKey, - IApplication_out app -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::addApplication" - "(const char* appKey, IApplication_out app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If this object is read-only, throw a dicky fit. - if (readOnly_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid call to addApplication for '" + word(appKey) - + "'. Object is read only.", - functionName, - __FILE__, __LINE__ - ); - } - - // See if the specified application class name is valid. - if (appDescriptorMap_.found(appKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid application class name '" + word(appKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new ApplicationDescriptor object. - ApplicationDescriptor* pDesc = new ApplicationDescriptor(); - pDesc->name = appKey; - pDesc->category = ""; - pDesc->systemClass = false; - - // Create and initialise a new Application object. - // User defined application class. - IApplicationImpl* pAppClass = new IApplicationImpl - ( - *pDesc, - *this - ); - - if (pAppClass == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Application object for '" - + word(appKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Add application class object to map. - appMap_.insert(appKey, pAppClass); - - // Add application class descriptor to map. - appDescriptorMap_.insert(appKey, pDesc); - - // Return a reference to the application class object. - app = pAppClass->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::deleteApplication(const char* appKey) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::deleteApplication" - "(const char* appKey)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If this object is read-only, throw a wobbler. - if (readOnly_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid call to deleteApplication for " - + word(appKey) + "'. Object is read only.", - functionName, - __FILE__, __LINE__ - ); - } - - // See if the specified application class name is valid. - if (!appDescriptorMap_.found(appKey)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid application class name '" + word(appKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // See if the specified application class name is user defined. - if (appDescriptorMap_[appKey]->systemClass) - { - throw FoamXError - ( - E_INVALID_ARG, - "Unable to delete system application class '" - + word(appKey) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Remove the complete application directory structure - if (!rmDir(fileName(appDescriptorMap_[appKey]->path))) - { - throw FoamXError - ( - E_INVALID_ARG, - "Unable to delete application class " - + fileName(appDescriptorMap_[appKey]->path), - functionName, - __FILE__, __LINE__ - ); - } - - // See if we have this application class object cached. - if (appMap_.found(appKey)) - { - ObjRefHashTable::iterator iter - ( - appMap_.find(appKey) - ); - - appMap_.erase(iter); // Releases implementation reference. - } - - // Remove application class descriptor. - Foam::HashPtrTable::iterator iter - ( - appDescriptorMap_.find(appKey) - ); - appDescriptorMap_.erase(iter); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::cloneApplication -( - const char* appKeySrc, - const char* appKeyDest, - const char* appDestPath, - IApplication_out app -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::cloneApplication" - "(const char* appKeySrc, const char* appKeyDest, " - "IApplication_out app)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If this object is read-only, throw a dicky fit. - if (readOnly_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid call to cloneApplication for '" - + word(appKeySrc) + "'. Object is read only.", - functionName, - __FILE__, __LINE__ - ); - } - - // See if the specified source application class name is valid. - if (!appDescriptorMap_.found(appKeySrc)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid source application class name '" - + word(appKeySrc) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // See if the specified destination application class name is valid. - if (appDescriptorMap_.found(appKeyDest)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid destination application class name '" - + word(appKeyDest) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Copy application class definition files. - ApplicationDescriptor* pDescriptor = - appDescriptorMap_[appKeySrc]; - - // Make application class directory. - if (!cp(fileName(pDescriptor->path), appDestPath)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Failed to copy directory " + fileName(pDescriptor->path) - + " to " + appDestPath, - functionName, - __FILE__, __LINE__ - ); - } - - // Create and initialise a new ApplicationDescriptor object. - // User defined application class. - ApplicationDescriptor* pDesc = new ApplicationDescriptor(); - pDesc->name = appKeyDest; - pDesc->category = pDescriptor->category; - pDesc->path = appDestPath; - pDesc->systemClass = false; - - // Create and initialise a new Application object. - IApplicationImpl* pAppClass = new IApplicationImpl - ( - *pDesc, - *this - ); - - if (pAppClass == NULL) - { - throw FoamXError - ( - E_FAIL, - "Failed to create Application object '" - + word(appKeyDest) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Load the application class details from the definition dictionary. - // Allow user defined application classes to override the system - // classes. - pAppClass->load(); - - // Add to application class map. - appMap_.insert(appKeyDest, pAppClass); - - // Add application class descriptor to map. - appDescriptorMap_.insert(appKeyDest, pDesc); - - // Return a reference to the application class object. - app = pAppClass->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::ApplicationDescriptorList* FoamX::IPropertiesImpl::utilities() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::utilities()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Construct an application class list and return. - ApplicationDescriptorList* pUtilityList = - new ApplicationDescriptorList(); - pUtilityList->length(utilityDescriptorMap_.size()); - - label i = 0; - - for - ( - Foam::HashPtrTable::iterator iter = - utilityDescriptorMap_.begin(); - iter != utilityDescriptorMap_.end(); - ++iter - ) - { - (*pUtilityList)[i++] = *iter(); - } - - return pUtilityList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::getUtilityControlDict -( - const char* utilityName, - const char* rootDir, - const char* caseName, - FoamXServer::IDictionaryEntry_out controlDict -) -{ - static const char* functionName = - "FoamX::IPropertiesImpl::getUtilityControlDict" - "(const char* utilityName, const char* rootDir, const char* caseName," - "FoamXServer::ApplicationDescriptor_out utilityDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Check for valid utility name. - if (!utilityDescriptorMap_.found(utilityName)) - { - throw FoamXError - ( - E_INVALID_ARG, - "Invalid foam utility name '" + word(utilityName) + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - ApplicationDescriptor* utilityDescriptor = - utilityDescriptorMap_[utilityName]; - - word name(utilityDescriptor->name); - fileName path(utilityDescriptor->path); - - fileName utilityCfgPath = path/"FoamX"/(name + ".cfg"); - dictionary utilityConfigDict((IFstream(utilityCfgPath)())); - word controlDictName = name + "Dict"; - - if (utilityConfigDict.found(controlDictName)) - { - ITypeDescriptorImpl* controlDictDesc = new ITypeDescriptorImpl - ( - controlDictName, - utilityCfgPath, - utilityConfigDict.subDict(controlDictName), - foamTypesDict_ - ); - - // Create an appropriate sub entry object and store its reference. - RootDictionary* controlDictPtr = new RootDictionary - ( - controlDictDesc->_this(), - rootDir, - caseName - ); - - if (controlDictPtr == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create IDictionaryEntryImpl object for utility " - + word(utilityName), - functionName, - __FILE__, __LINE__ - ); - } - - controlDict = controlDictPtr->_this(); - - // Load the values from the file. - controlDictPtr->load(); - } - else - { - controlDict = FoamXServer::IDictionaryEntry::_nil(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::validate() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::saveSystemProperties() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::saveSystemProperties()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If this object is read-only, throw a dicky fit. - if (readOnly_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid call to save. IPropertiesImpl object is read only", - functionName, - __FILE__, __LINE__ - ); - } - - { - fileName configDictFileName = dotFoam("apps/FoamX/FoamX.cfg"); - DictionaryWriter dict(configDictFileName); - - dict.writeHeader - ( - "FoamX System Properties.", - "dictionary" - ); - - dict.writeEntry("availableModules", availableModules_); - - dict.startSubDict("processControl"); - dict.writeEntry("remoteShell", string("rsh")); - dict.endSubDict(); - dict.writeBar(); - - // Geometry type definitions. - dict.writeSectionHeader("Geometry type definitions."); - dict.startSubDict("geometryTypes"); - for - ( - ObjRefHashTable::iterator iter = - geometryTypeMap_.begin(); - iter != geometryTypeMap_.end(); - ++iter - ) - { - iter()->save(dict); - dict.writeEndl(); - } - dict.endSubDict(); - dict.writeBar(); - - // Patch type definitions. - dict.writeSectionHeader("Patch type definitions."); - dict.startSubDict("patchTypes"); - for - ( - ObjRefHashTable::iterator iter = - patchMap_.begin(); - iter != patchMap_.end(); - ++iter - ) - { - iter()->save(dict); - dict.writeEndl(); - } - dict.endSubDict(); - dict.writeBar(); - - // Patch field type definitions. - dict.writeSectionHeader("Patch field type definitions."); - dict.startSubDict("patchFieldTypes"); - for - ( - ObjRefHashTable::iterator iter = - patchFieldMap_.begin(); - iter != patchFieldMap_.end(); - ++iter - ) - { - iter()->save(dict, true); - dict.writeEndl(); - } - dict.endSubDict(); - dict.writeEndl(); - dict.writeEndBar(); - } - - - - { - DictionaryWriter dict(Paths::config/"types/types.cfg"); - - dict.writeHeader - ( - "Primitive types.", - "dictionary" - ); - - for - ( - ObjRefHashTable::iterator iter = - foamTypeMap_.begin(); - iter != foamTypeMap_.end(); - ++iter - ) - { - iter()->save(dict, false); - dict.writeEndl(); - } - - dict.writeEndl(); - dict.writeEndBar(); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::IPropertiesImpl::saveUserProperties() -{ - static const char* functionName = - "FoamX::IPropertiesImpl::saveUserProperties()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // If this object is read-only, throw a dicky fit. - if (readOnly_) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid call to save. IPropertiesImpl object is read only", - functionName, - __FILE__, __LINE__ - ); - } - - fileName controlDictFileName = dotFoam("controlDict"); - DictionaryWriter dict(controlDictFileName); - - dict.writeHeader - ( - "FoamX User Properties.", - "dictionary" - ); - - dict.writeEndl(); - dict.writeEntry("caseRoots", rootDirectories_); - dict.writeEndl(); - dict.writeEndBar(); - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.H deleted file mode 100644 index b803497939..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/IPropertiesImpl.H +++ /dev/null @@ -1,310 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IPropertiesImpl - -Description - -SourceFiles - IPropertiesImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef IPropertiesImpl_H -#define IPropertiesImpl_H - -// Foam header files. -#include "HashPtrTable.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "ObjRefHashTable.H" -#include "FoamXWordList.H" -#include "FoamXFileNameList.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -// Forward declaration of classes. -class IApplicationImpl; -class ITypeDescriptorImpl; -class IGeometryDescriptorImpl; -class IPatchDescriptorImpl; -class ITypeDescriptorImpl; - -/*---------------------------------------------------------------------------*\ - Class className Declaration -\*---------------------------------------------------------------------------*/ - -class IPropertiesImpl -: - public POA_FoamXServer::CaseServer::IFoamProperties, - public PortableServer::RefCountServantBase -{ - // Private data - - //- Allow or disallow editing. - bool readOnly_; - - //- Available FoamX modules. - FoamXWordList availableModules_; - - //- Root directories for cases (as read in) - FoamXFileNameList rawRootDirectories_; - - //- Root directories for cases (after expansion) - FoamXFileNameList rootDirectories_; - - //- Available foam types dictionary. - Foam::dictionary foamTypesDict_; - - //- Defined application class descriptors. - Foam::HashPtrTable - appDescriptorMap_; - - //- Foam utility descriptor map. - Foam::HashPtrTable - utilityDescriptorMap_; - - //- Map of (created on demand) Application Class objects. - ObjRefHashTable appMap_; - - //- Map of Foam Type Descriptor objects. - ObjRefHashTable foamTypeMap_; - - //- Map of Geometry Type Descriptor objects. - ObjRefHashTable geometryTypeMap_; - - //- Map of Patch Descriptor objects. - ObjRefHashTable patchMap_; - - //- Map of Patch Field Descriptor objects. - ObjRefHashTable patchFieldMap_; - - - // Private member functions - - FoamXServer::ApplicationDescriptor* readApplicationDescriptor - ( - const Foam::word& name, - const Foam::fileName& category, - const Foam::fileName& path, - const bool systemClass - ); - - void readApplicationDescriptors - ( - Foam::HashPtrTable& - appDescriptorsMap, - const Foam::fileName& dir, - const Foam::fileName& category, - const bool systemClass - ); - - void addPatchFields(const Foam::dictionary& patchFieldDict); - - IPropertiesImpl(const IPropertiesImpl&); - - -public: - - friend class IApplicationImpl; - - - // Constructors - - IPropertiesImpl(bool readOnly = true); - - - // Destructor - - virtual ~IPropertiesImpl(); - - - // Member Functions - - const Foam::dictionary& foamTypesDict() const - { - return foamTypesDict_; - } - - const ObjRefHashTable& foamTypes() const - { - return foamTypeMap_; - } - - const ObjRefHashTable& - geometryDescriptors() const - { - return geometryTypeMap_; - } - - - //- Installed FoamX modules. - virtual FoamXServer::StringList* availableModules(); - - - // Case root directories. - - virtual FoamXServer::StringList* rootDirectories(); - virtual FoamXServer::StringList* rawRootDirectories(); - - virtual void addRootDirectory(const char* rootDir); - - virtual void deleteRootDirectory(const char* rootDir); - - - // Foam types. - - virtual FoamXServer::StringList* foamTypes(); - - virtual void getFoamType - ( - const char* foamTypeKey, - FoamXServer::ITypeDescriptor_out typeDesc - ); - - - // Geometry types. - - virtual FoamXServer::StringList* geometryTypes(); - - virtual void getGeometryType - ( - const char* geometryTypeKey, - FoamXServer::CaseServer::IGeometryDescriptor_out - geometryDesc - ); - - - // Patch types. - - virtual FoamXServer::StringList* patchTypes(); - - virtual void getPatchType - ( - const char* patchTypeKey, - FoamXServer::CaseServer::IPatchDescriptor_out - patchDesc - ); - - virtual void findPatchType - ( - const char* patchTypeName, - FoamXServer::CaseServer::IPatchDescriptor_out - patchDesc - ); - - - // Patch field types. - - virtual FoamXServer::StringList* patchFieldTypes(); - - virtual void getPatchFieldType - ( - const char* patchFieldTypeKey, - FoamXServer::ITypeDescriptor_out patchFieldDesc - ); - - virtual void findPatchFieldType - ( - const char* patchFieldTypeName, - FoamXServer::ITypeDescriptor_out patchFieldDesc - ); - - - // Foam controlDict - - virtual void getFoamControlDict - ( - FoamXServer::IDictionaryEntry_out controlDict - ); - - // Application classes. - - virtual FoamXServer::ApplicationDescriptorList* - applicationes(); - - virtual void getApplication - ( - const char* appKey, - FoamXServer::CaseServer::IApplication_out app - ); - - virtual void addApplication - ( - const char* appKey, - FoamXServer::CaseServer::IApplication_out app - ); - - virtual void deleteApplication(const char* appKey); - - virtual void cloneApplication - ( - const char* appKeySrc, - const char* appKeyDest, - const char* appDestPath, - FoamXServer::CaseServer::IApplication_out app - ); - - - // Foam utilities. - - virtual FoamXServer::ApplicationDescriptorList* utilities(); - - virtual void getUtilityControlDict - ( - const char* utilityName, - const char* rootDir, - const char* caseName, - FoamXServer::IDictionaryEntry_out controlDict - ); - - - //- Validation. - virtual void validate(); - - - // Persistence. - - virtual void saveSystemProperties(); - - virtual void saveUserProperties(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.C deleted file mode 100644 index a404c9202b..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.C +++ /dev/null @@ -1,2052 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "SLList.H" -#include "OSspecific.H" -#include "IFstream.H" - -// Project header files. -#include "ITypeDescriptorImpl.H" -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXAnyList.H" -#include "LogEntry.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl -( - const word& name, - const FoamXType& type, - const string& parentPath -) -: - type_(type), - name_(name), - path_(parentPath + ':' + name), - optional_(false), - visible_(true), - editable_(true), - numElements_(0), - default_(NULL) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl" - "(const word& name, const FoamXType& type, " - "const string& parentPath)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Constructing TypeDescriptor for " << path_ << "." << endl; - - if (FoamXTypes::isNumber(type_)) - { - minValue_.setType(type_); - minValue_.setMin(); - - maxValue_.setType(type_); - maxValue_.setMax(); - } - } - CATCH_ALL(functionName); -}; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl -( - const word& name, - const string& parentPath, - const dictionary& typeDict, - const dictionary& foamTypesDict -) -: - type_(Type_Undefined), - name_(name), - path_(parentPath + ':' + name), - optional_(false), - visible_(true), - editable_(true), - numElements_(0), - default_(NULL) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl" - "(const word& name, const string& parentPath, " - "const dictionary& typeDict, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Constructing TypeDescriptor for " << path_ << "." << endl; - - log << "Reading " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // Load the type descriptor information from the dictionary. - load(typeDict, foamTypesDict); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl -( - const word& name, - const string& parentPath, - const entry& typeEntry, - const dictionary& foamTypesDict -) -: - type_(Type_Undefined), - name_(name), - path_(parentPath + ':' + name), - optional_(false), - visible_(true), - editable_(true), - numElements_(0), - default_(NULL) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl" - "(const word& name, const string& parentPath, const entry& typeEntry, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Constructing TypeDescriptor for " << path_ << "." << endl; - - if (typeEntry.isDict()) - { - // Load the type descriptor information from the dictionary. - load(typeEntry.dict(), foamTypesDict); - } - else if (exists(parentPath/name_ + ".cfg")) - { - fileName dictPathName = parentPath/name_ + ".cfg"; - - dictionary typeDict((IFstream(dictPathName)())); - - log << "Reading dictionary " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // Load the type descriptor information from the dictionary. - load(typeDict, foamTypesDict); - } - else if (foamTypesDict.found(name_)) - { - // Load the type descriptor information from the dictionary. - load(foamTypesDict.subDict(name_), foamTypesDict); - } - else - { - throw FoamXError - ( - E_FAIL, - "Definition for type '" + name_ + "', " + path_ + " could not be found in " - + typeEntry.name() + " or in foamTypesDict", - functionName, - __FILE__, __LINE__ - ); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl -( - ITypeDescriptor_ptr typeDesc -) -: - type_(Type_Undefined), - optional_(false), - visible_(true), - editable_(true), - numElements_(0), - default_(NULL) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::ITypeDescriptorImpl" - "(ITypeDescriptor_ptr typeDesc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Constructing TypeDescriptor." << endl; - - // Set basic type. - type_ = typeDesc->type(); - - // Copy common data - name_ = typeDesc->name(); - path_ = typeDesc->path(); - displayName_ = typeDesc->displayName(); - description_ = typeDesc->description(); - comment_ = typeDesc->comment(); - category_ = typeDesc->category(); - helpURL_ = typeDesc->helpURL(); - iconURL_ = typeDesc->iconURL(); - optional_ = typeDesc->optional(); - visible_ = typeDesc->visible(); - editable_ = typeDesc->editable(); - - if (!isCompoundType()) - { - if (FoamXTypes::isNumber(type_)) - { - // Copy non-compound specific information. - FoamXServer::FoamXAny_var min = typeDesc->minValue(); - minValue_.setType(type_); - minValue_.setValue(min); - - FoamXServer::FoamXAny_var max = typeDesc->maxValue(); - maxValue_.setType(type_); - maxValue_.setValue(max); - } - - lookupDict_ = typeDesc->lookupDict(); - - FoamXServer::FoamXAnyList_var anyList = typeDesc->valueList(); - - valueList_.setSize(anyList->length()); - - for (label i=0; idictionaryPath(); - - numElements_ = typeDesc->numElements(); - elementLabels_ = StringList_var(typeDesc->elementLabels()); - - // Get list of the sub types from the type descriptor. - // Auto release. - TypeDescriptorList_var pSubTypes = typeDesc->subTypes(); - - // Loop over all sub types. - for (unsigned int i = 0; i length(); i++) - { - // Get the TypeDescriptor for this entry. - ITypeDescriptor_var pSubTypeDesc = - FoamXServer::ITypeDescriptor::_duplicate(pSubTypes[i]); - - // Construct the type descriptor. - ITypeDescriptorImpl* pTypeDescriptor = - new ITypeDescriptorImpl(pSubTypeDesc); - - if (pTypeDescriptor == NULL) - { - throw FoamXError - ( - E_FAIL, - "Couldn't create duplicate type descriptor for " - + word(pSubTypeDesc->name()), - functionName, - __FILE__, __LINE__ - ); - } - - // Add to map and list. - word name(pSubTypeDesc->name()); - subTypes_.append(pTypeDescriptor); - } - } - - if (typeDesc->hasDefaultValue()) - { - // Construct default_ from the given type descriptor - // which automatically sets the values to those contained in the - // default_ entry of the type descriptor - default_ = new IDictionaryEntryImpl(typeDesc); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptorImpl::~ITypeDescriptorImpl() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::~ITypeDescriptorImpl()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Release default dictionary entry object - if (default_ != NULL) - { - default_->_remove_ref(); - } - - // Note : Sub-type objects are released in ObjRefHashTable destructor. -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::isPrimitiveType() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::isPrimitiveType()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return FoamXTypes::isPrimitive(type_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::isCompoundType() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::isCompoundType()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return FoamXTypes::isCompound(type_); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::FoamXType FoamX::ITypeDescriptorImpl::type() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::type()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return type_; -} - -void FoamX::ITypeDescriptorImpl::type(FoamXType type) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::type(FoamXType type)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - type_ = type; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::path() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::path()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(path_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::path(const char* path) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::path(const char* path)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - path_ = path; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::name() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::name()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(name_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::name(const char* name) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::name(const char* name)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - name_ = name; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::displayName() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::displayName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(displayName_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::displayName(const char* name) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::displayName(const char* name)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - displayName_ = name; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::description() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::description()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(description_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::description(const char* desc) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::description(const char* desc)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - description_ = desc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::category() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::category()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(category_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::category(const char* cat) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::category(const char* cat)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - category_ = cat; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::comment() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::comment()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(comment_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::comment(const char* com) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::comment(const char* com)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - comment_ = com; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::helpURL() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::helpURL()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(helpURL_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::helpURL(const char* url) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::helpURL(const char* url)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - helpURL_ = url; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::iconURL() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::iconURL()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(iconURL_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::iconURL(const char* url) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::iconURL(const char* url)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - iconURL_ = url; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::optional() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::optional()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return optional_; -} - -void FoamX::ITypeDescriptorImpl::optional(CORBA::Boolean opt) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::optional(CORBA::Boolean opt)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - optional_ = opt; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::visible() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::visible()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return visible_; -} - -void FoamX::ITypeDescriptorImpl::visible(CORBA::Boolean vis) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::visible(CORBA::Boolean vis)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - visible_ = vis; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::editable() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::editable()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return editable_; -} - -void FoamX::ITypeDescriptorImpl::editable(CORBA::Boolean edit) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::editable(CORBA::Boolean edit)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - editable_ = edit; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::FoamXAny* FoamX::ITypeDescriptorImpl::minValue() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::minValue()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return new FoamXServer::FoamXAny(minValue_); -} - -void FoamX::ITypeDescriptorImpl::minValue(const FoamXServer::FoamXAny& newValue) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::minValue(const FoamXServer::Any& newValue)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Set the value of the any object. - // Will throw an exception if the incoming any is not compatible. - minValue_.setValue(newValue); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::FoamXAny* FoamX::ITypeDescriptorImpl::maxValue() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::maxValue()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return new FoamXServer::FoamXAny(maxValue_); -} - -void FoamX::ITypeDescriptorImpl::maxValue(const FoamXServer::FoamXAny& newValue) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::maxValue(const FoamXServer::Any& newValue)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Set the value of the any object. - // Will throw an exception if the incoming any is not compatible. - maxValue_.setValue(newValue); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::FoamXAnyList* FoamX::ITypeDescriptorImpl::valueList() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::valueList()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Allocate an AnyList and return. - FoamXServer::FoamXAnyList* pList = new FoamXServer::FoamXAnyList(); - - // Set list length. - pList->length(valueList_.size()); - - forAll(valueList_, i) - { - (*pList)[i] = valueList_[i]; - } - - return pList; -} - -void FoamX::ITypeDescriptorImpl::valueList -( - const FoamXServer::FoamXAnyList& anyList -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::valueList" - "(const FoamXServer::FoamXAnyList& anyList)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Set the value of the any objects. - // Will throw an exception if the incoming any is not compatible. - valueList_.setSize(anyList.length()); - forAll(valueList_, i) - { - valueList_[i].setType(type_); - valueList_[i].setValue(anyList[i]); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::lookupDict() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::lookupDict()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(lookupDict_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::lookupDict(const char* lookup) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::lookupDict(const char* lookup)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - lookupDict_ = lookup; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -char* FoamX::ITypeDescriptorImpl::dictionaryPath() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::dictionaryPath()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate and return. - return CORBA::string_dup(dictionaryPath_.c_str()); -} - -void FoamX::ITypeDescriptorImpl::dictionaryPath(const char* path) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::dictionaryPath(const char* path)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - dictionaryPath_ = path; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Long FoamX::ITypeDescriptorImpl::numElements() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::numElements()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return numElements_; -} - -void FoamX::ITypeDescriptorImpl::numElements(CORBA::Long numElements) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::numElements(CORBA::Long numElements)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - numElements_ = numElements; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamXServer::StringList* FoamX::ITypeDescriptorImpl::elementLabels() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::elementLabels()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Duplicate list and return. - return new FoamXServer::StringList(elementLabels_); -} - -void FoamX::ITypeDescriptorImpl::elementLabels -( - const FoamXServer::StringList& newList -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::elementLabels" - "(const FoamXServer::StringList& newList)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - elementLabels_ = newList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::TypeDescriptorList* FoamX::ITypeDescriptorImpl::subTypes() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::subTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Construct a duplicate TypeDescriptorList. - TypeDescriptorList* typeList = new TypeDescriptorList(); - typeList->length(subTypes_.size()); - int i = 0; - for - ( - DLList::iterator iter = - subTypes_.begin(); - iter != subTypes_.end(); - ++iter - ) - { - // Add reference to the sub type. - (*typeList)[i++] = iter()->_this(); - } - - // Return the new sub-type list. - return typeList; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::ITypeDescriptor_ptr FoamX::ITypeDescriptorImpl::elementType() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::subTypes()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Return a reference to the TypeDescriptor object. - ITypeDescriptor_ptr pTypeDesc = FoamXServer::ITypeDescriptor::_nil(); - - try - { - if - ( - type_ != FoamXServer::Type_List - && type_ != FoamXServer::Type_FixedList - ) - { - throw FoamXError - ( - E_FAIL, - "Attempt to call elementType() for non-List type " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - } - - if (subTypes_.size() != 1) - { - throw FoamXError - ( - E_FAIL, - "Number of subTypes != 1 for List type descriptor " + name_, - functionName, - __FILE__, __LINE__ - ); - } - - pTypeDesc = FoamXServer::ITypeDescriptor::_duplicate - ( - subTypes_.first()->_this() - ); - } - CATCH_ALL(functionName); - - return pTypeDesc; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::addSubType -( - FoamXType type, - ITypeDescriptor_out subEntry -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::addSubType" - "(FoamXType type, ITypeDescriptor_out subEntry)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure this is a compound type. - if (!FoamXTypes::isCompound(type_)) - { - throw FoamXError - ( - E_FAIL, - "Can't add a sub type to a non-compound type " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - } - - // Check whether we can add a sub type - - // Only dictionaries and compound types can have more than one sub-type. - if - ( - (type_ == Type_List || type_ == Type_FixedList) - && subTypes_.size() >= 1 - ) - { - throw FoamXError - ( - E_FAIL, - "One sub-type only for " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - } - - // Temporary name for this sub-type. - word name = "newSubType"; - name += name(subTypes_.size()); - - // Create type descriptor object. - ITypeDescriptorImpl* pTypeDescriptor = new ITypeDescriptorImpl - ( - name, - type, - path_ - ); - - // Add to map and the end of the sub type list. - subTypes_.append(pTypeDescriptor); - - log << "Added sub-type " << name << "." << endl; - - // Return a reference to the new TypeDescriptor object. - subEntry = pTypeDescriptor->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::removeSubType(ITypeDescriptor_ptr subEntry) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::removeSubType" - "(ITypeDescriptor_ptr subEntry)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure this is a compound type. - if (!FoamXTypes::isCompound(type_)) - { - throw FoamXError - ( - E_UNEXPECTED, - "Can't remove a sub type from a non-compound type " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - } - - // Remove from List. - for - ( - DLList::iterator iter = - subTypes_.begin(); - iter != subTypes_.end(); - ++iter - ) - { - ITypeDescriptor_var pTypeDesc = iter()->_this(); - - // Check for equivalence. - if (pTypeDesc->_is_equivalent(subEntry)) - { - // Release and remove from linked list. - subTypes_.remove(iter); - break; - } - } - - log << "Removed sub-type." << endl; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Boolean FoamX::ITypeDescriptorImpl::hasDefaultValue() -{ - return default_ != NULL; -} - - -void FoamX::ITypeDescriptorImpl::getDefaultValue -( - IDictionaryEntry_out defaultValue -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::getDefaultValue" - "(IDictionaryEntry_out default)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (default_ == NULL) - { - /* - // Don't throw error until the Java side checks hasDefaultValue() - // and requests the creation of the default value only if required - throw FoamXError - ( - E_UNEXPECTED, - "Invalid default object for " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - */ - - default_ = new IDictionaryEntryImpl(_this()); - } - - defaultValue = default_->_this(); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::validate() -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::validate()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool FoamX::ITypeDescriptorImpl::setType(const word& type) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::setType(const word& type)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - // Reset all types. - type_ = Type_Undefined; - minValue_.setType(Type_Undefined); - maxValue_.setType(Type_Undefined); - - if (FoamXTypes::found(type)) - { - type_ = FoamXTypes::lookupType(type); - - // Set the type of the Any parameters. - if (!isCompoundType()) - { - if (FoamXTypes::isNumber(type_)) - { - minValue_.setType(type_); - maxValue_.setType(type_); - } - - // Set the type of the values on the value list. - forAll(valueList_, i) - { - valueList_[i].setType(type_); - } - } - - return true; - } - else - { - return false; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::load -( - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::load" - "(const dictionary& typeDict, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Reading " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // Check that the dictionary has the minimum required information. - if (!typeDict.found("type")) - { - throw FoamXError - ( - E_FAIL, - "Mandatory entry 'type' not found in dictionary '" - + typeDict.name() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the type - - // If it is a dictionary get the type from the dictionary - if (typeDict.isDict("type")) - { - // Get the type dictionary ... - const dictionary& typeTypeDict(typeDict.subDict("type")); - - // ... and check it only has one entry - if (typeTypeDict.size() != 1) - { - throw FoamXError - ( - E_FAIL, - "Dictionary for 'type' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + " in dictionary '" + typeDict.name() - + "' does contain a single entry", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the type entry ... - const entry& typeEntry = *typeTypeDict.first(); - - // ... and it's dictionary ... - const dictionary& typeEntryTypeDict = typeEntry.dict(); - - // ... and get the actual type from it ... - word type(typeEntryTypeDict.lookup("type")); - - // ... then resolve this type as normal ... - resolveType(type, typeEntryTypeDict, foamTypesDict); - - // ... but also add the optional additiona entries and data - addEntries(typeDict, foamTypesDict); - readOptionalData(typeDict); - } - else // it's a system type or defined in foamTypesDict - { - // Get the type - word type(typeDict.lookup("type")); - - // Resolve any Foam types and get sub types for compound types. - resolveType(type, typeDict, foamTypesDict); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::resolveType -( - word& type, - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - if (typeDict.found("types")) - { - resolveTypeDict - ( - type, - typeDict, - foamTypesDict + typeDict.subDict("types") - ); - } - else - { - resolveTypeDict(type, typeDict, foamTypesDict); - } -} - - -void FoamX::ITypeDescriptorImpl::resolveTypeDict -( - word& type, - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::resolveTypeDict(word& type, " - "const dictionary& typeDict, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Reading " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // See if the specified type is a FoamX type. - if (FoamXTypes::found(type)) - { - readType(type, typeDict, foamTypesDict); - } - else - { - // Specified type may be in the Foam types dictionary. - if (foamTypesDict.found(type)) - { - const dictionary& typeAliasDict(foamTypesDict.subDict(type)); - typeAliasDict.lookup("type") >> type; - - resolveType(type, typeAliasDict, foamTypesDict); - addEntries(typeDict, foamTypesDict); - readOptionalData(typeDict); - } - else - { - throw FoamXError - ( - E_FAIL, - "Type '" + type + "' not defined for " - + FoamXTypes::typeName(type_) + " " + name_, - functionName, - __FILE__, __LINE__ - ); - } - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::readType -( - word& type, - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::readType(word& type, " - "const dictionary& typeDict, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Reading " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // Set the type. Should have been resolved to a primitive type by now. - if (!setType(type)) - { - throw FoamXError - ( - E_FAIL, - "Illegal type token '" + type + "' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' in dictionary '" + typeDict.name() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // If this type is a compound type, we need the sub type list. - if (FoamXTypes::isCompound(type_)) - { - if (type_ == Type_FixedList) - { - addElementType(typeDict, foamTypesDict); - - if (!typeDict.found("numElements")) - { - throw FoamXError - ( - E_FAIL, - "Mandatory entry 'numElements' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' not found in dictionary '" + typeDict.name() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - typeDict.lookup("numElements") >> numElements_; - - if (!typeDict.found("elementLabels")) - { - throw FoamXError - ( - E_FAIL, - "Mandatory entry 'elementLabels' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' not found in dictionary '" + typeDict.name() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - elementLabels_.read(typeDict.lookup("elementLabels")); - } - else if (type_ == Type_List) - { - addElementType(typeDict, foamTypesDict); - } - else - { - addEntries(typeDict, foamTypesDict); - } - } - - readOptionalData(typeDict); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::addEntries -( - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - if - ( - ( - type_ == Type_Dictionary - || type_ == Type_Selection - || type_ == Type_Compound - ) - && typeDict.found("entries") - ) - { - if (type_ == Type_Dictionary) - { - addDictionaryEntries(typeDict, foamTypesDict); - } - else - { - addCompoundEntries(typeDict, foamTypesDict); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::addDictionaryEntries -( - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::addDictionaryEntries" - "(const dictionary& typeDict, const dictionary& foamTypesDict)"; - - const dictionary& entries(typeDict.subDict("entries")); - - for - ( - dictionary::const_iterator iter = entries.begin(); - iter != entries.end(); - ++iter - ) - { - const word& keyword = iter().keyword(); - - if (iter().isDict()) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - keyword, - path_, - iter().dict(), - foamTypesDict - ) - ); - } - else - { - if (!iter().stream().size()) - { - throw FoamXError - ( - E_FAIL, - "Entry '" + keyword - + "' for 'entries' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' in dictionary '" + typeDict.name() - + "' does not have a type.", - functionName, - __FILE__, __LINE__ - ); - } - - word subType(iter().stream()); - - if (foamTypesDict.found(subType)) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - keyword, - path_, - foamTypesDict.subDict(subType), - foamTypesDict - ) - ); - } - else if (FoamXTypes::found(subType)) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - keyword, - FoamXTypes::lookupType(subType), - path_ - ) - ); - } - else - { - throw FoamXError - ( - E_FAIL, - "Type '" + subType - + "' for 'entries' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' in dictionary '" + typeDict.name() + "' not defined.", - functionName, - __FILE__, __LINE__ - ); - } - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::addCompoundEntries -( - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::addCompoundEntries" - "(const dictionary& typeDict, const dictionary& foamTypesDict)"; - - const dictionary& entries(typeDict.subDict("entries")); - - for - ( - dictionary::const_iterator iter = entries.begin(); - iter != entries.end(); - ++iter - ) - { - const word& subType = iter().keyword(); - - if (iter().isDict()) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - subType, - path_, - iter().dict(), - foamTypesDict - ) - ); - } - else if (foamTypesDict.found(subType)) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - subType, - path_, - foamTypesDict.subDict(subType), - foamTypesDict - ) - ); - } - else if (FoamXTypes::found(subType)) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - subType, - FoamXTypes::lookupType(subType), - path_ - ) - ); - } - else - { - throw FoamXError - ( - E_FAIL, - "Type '" + subType - + "' for 'entries' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + "' in dictionary '" + typeDict.name() + "' not defined.", - functionName, - __FILE__, __LINE__ - ); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::addElementType -( - const dictionary& typeDict, - const dictionary& foamTypesDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::addSubType(const dictionary& typeDict, " - "const dictionary& foamTypesDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - if (!typeDict.found("elementType")) - { - throw FoamXError - ( - E_FAIL, - "Mandatory entry 'elementType' of type '" - + FoamXTypes::typeName(type_) + "' '" + name_ - + "' not found in dictionary '" + typeDict.name() + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - if (typeDict.isDict("elementType")) - { - const dictionary& elementTypeDict = typeDict.subDict("elementType"); - - if (elementTypeDict.size() != 1) - { - throw FoamXError - ( - E_FAIL, - "Dictionary for 'elementType' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + " in dictionary '" + typeDict.name() - + "' does contain a single entry", - functionName, - __FILE__, __LINE__ - ); - } - - const entry& elementTypeEntry = *elementTypeDict.first(); - - subTypes_.append - ( - new ITypeDescriptorImpl - ( - elementTypeEntry.keyword(), - path_, - elementTypeEntry.dict(), - foamTypesDict - ) - ); - } - else - { - word subType = typeDict.lookup("elementType"); - - if (FoamXTypes::found(subType)) - { - // Add to map and list. - subTypes_.append - ( - new ITypeDescriptorImpl - ( - subType, - FoamXTypes::lookupType(subType), - path_ - ) - ); - } - else if (foamTypesDict.found(subType)) - { - subTypes_.append - ( - new ITypeDescriptorImpl - ( - subType, - path_, - foamTypesDict.subDict(subType), - foamTypesDict - ) - ); - } - else - { - throw FoamXError - ( - E_FAIL, - "Type '" + subType - + "' for 'elementType' of type '" - + FoamXTypes::typeName(type_) + " " + name_ - + " in dictionary '" + typeDict.name() + "' not defined.", - functionName, - __FILE__, __LINE__ - ); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::readOptionalData -( - const dictionary& typeDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::readOptionalData" - "(const dictionary& typeDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - log << "Reading " << typeDict.name() - << " start line " << typeDict.startLineNumber() - << " end line " << typeDict.endLineNumber() << endl; - - // Read the rest of the common type information. - if (typeDict.found("displayName")) - { - typeDict.lookup("displayName") >> displayName_; - } - - if (typeDict.found("description")) - { - typeDict.lookup("description") >> description_; - } - - if (typeDict.found("dictionaryPath")) - { - typeDict.lookup("dictionaryPath") >> dictionaryPath_; - dictionaryPath_.expand(); - } - - if (typeDict.found("category")) - { - typeDict.lookup("category") >> category_; - } - - if (typeDict.found("comment")) - { - typeDict.lookup("comment") >> comment_; - } - - if (typeDict.found("helpURL")) - { - typeDict.lookup("helpURL") >> helpURL_; - } - - if (typeDict.found("iconURL")) - { - typeDict.lookup("iconURL") >> iconURL_; - } - - if (typeDict.found("optional")) - { - optional_ = readBool(typeDict.lookup("optional")); - } - - if (typeDict.found("visible")) - { - visible_ = readBool(typeDict.lookup("visible")); - } - - if (typeDict.found("editable")) - { - editable_ = readBool(typeDict.lookup("editable")); - } - - - // Read non-compound specific information. - if (FoamXTypes::isPrimitive(type_)) - { - if (FoamXTypes::isNumber(type_)) - { - if (typeDict.found("minValue")) - { - minValue_.read(typeDict.lookup("minValue")); - } - else - { - minValue_.setType(type_); - minValue_.setMin(); - } - - if (typeDict.found("maxValue")) - { - maxValue_.read(typeDict.lookup("maxValue")); - } - else - { - maxValue_.setType(type_); - maxValue_.setMax(); - } - } - - if (typeDict.found("lookupDict")) - { - typeDict.lookup("lookupDict") >> lookupDict_; - } - - // Read value list. - if (typeDict.found("valueList")) - { - Istream& is = typeDict.lookup("valueList"); - - is.readBeginList("List"); - - SLList sllist; - - // Loop over list elements until ')' - token lastToken(is); - while - ( - !( - lastToken.isPunctuation() - && lastToken.pToken() == token::END_LIST - ) - ) - { - is.putBack(lastToken); - sllist.append(FoamXAny(type_, is)); - is >> lastToken; - } - - valueList_ = sllist; - } - } - - - if (typeDict.found("options")) - { - const dictionary& subTypeDefaults(typeDict.subDict("options")); - - for - ( - DLList::iterator iter = - subTypes_.begin(); - iter != subTypes_.end(); - ++iter - ) - { - if (subTypeDefaults.found(iter()->name())) - { - iter()->readOptionalData - ( - subTypeDefaults.subDict(iter()->name()) - ); - } - } - } - - if (typeDict.found("default")) - { - if (!default_) - { - default_ = new IDictionaryEntryImpl(_this()); - } - - default_->load(typeDict.lookupEntry("default")); - - DLList::iterator iter1 = - subTypes_.begin(); - - DLList::const_iterator iter2 = - default_->subElementPtrs().begin(); - - for - ( - ; - iter1 != subTypes_.end() - && iter2 != default_->subElementPtrs().end(); - ++iter1, ++iter2 - ) - { - if (!iter1()->default_) - { - iter1()->default_ = new IDictionaryEntryImpl(iter1()->_this()); - } - - *iter1()->default_ = *iter2(); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::ITypeDescriptorImpl::save -( - FoamX::DictionaryWriter& dictWriter, - bool topLevelDict -) -{ - static const char* functionName = - "FoamX::ITypeDescriptorImpl::save" - "(FoamX::DictionaryWriter& dictWriter, bool topLevelDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!topLevelDict) - { - // Start a sub-dictionary for this type. - dictWriter.startSubDict(name_); - } - else - { - dictWriter.writeEndl(); - } - - // Write type. - dictWriter.writeEntry("type", FoamXTypes::typeName(type_)); - - // Write optional common data. - if (displayName_.length() > 0) - { - dictWriter.writeEntry("displayName", displayName_); - } - - if (description_.length() > 0) - { - dictWriter.writeEntry("description", description_); - } - - if (category_.length() > 0) - { - dictWriter.writeEntry("category", category_); - } - - if (comment_.length() > 0) - { - dictWriter.writeEntry("comment", comment_); - } - - if (helpURL_.length() > 0) - { - dictWriter.writeEntry("helpURL", helpURL_); - } - - if (iconURL_.length() > 0) - { - dictWriter.writeEntry("iconURL", iconURL_); - } - - // Only write optional flag if true. - if (optional_) - { - dictWriter.writeEntry("optional", optional_); - } - - if (visible_) - { - dictWriter.writeEntry("visible", visible_); - } - - if (editable_) - { - dictWriter.writeEntry("editable", editable_); - } - - // Write non-compound data. - if (FoamXTypes::isPrimitive(type_)) - { - if (FoamXTypes::isNumber(type_)) - { - if (minValue_ != FoamXAny(type_)) - { - dictWriter.writeEntry("minValue", minValue_); - } - - if (maxValue_ != FoamXAny(type_)) - { - dictWriter.writeEntry("maxValue", maxValue_); - } - } - - if (lookupDict_.length() > 0) - { - dictWriter.writeEntry("lookupDict", lookupDict_); - } - - if (valueList_.size() > 0) - { - dictWriter.writeEntry("valueList", valueList_); - } - } - else if(FoamXTypes::isCompound(type_)) - { - if (type_ == Type_FixedList) - { - dictWriter.writeEntry("numElements", numElements_); - - dictWriter.writeEntry - ( - "elementType", - word(subTypes_.first()->name()) - ); - - dictWriter.writeEntry("elementLabels", elementLabels_); - } - else if (type_ == Type_List) - { - dictWriter.writeEntry - ( - "elementType", - word(subTypes_.first()->name()) - ); - } - else - { - // Write compound data. - if (type_ == Type_Dictionary) - { - if (dictionaryPath_.length() > 0) - { - dictWriter.writeEntry - ( - "dictionaryPath", - dictionaryPath_ - ); - } - } - - dictWriter.writeKeyword("entries"); - dictWriter.startList(subTypes_.size()); - - label i = 0; - // Write sub-type data into their sub-dictionaries. - for - ( - DLList::iterator iter = - subTypes_.begin(); - iter != subTypes_.end(); - ++iter - ) - { - iter()->save(dictWriter, false); - - if (++i < subTypes_.size()) - { - dictWriter.writeEndl(); - } - } - - dictWriter.endList(); - dictWriter.endEntry(); - } - } - - // Validate the default_ dictionary entry items. - if (default_) - { - default_->validate(); - - dictWriter.writeKeyword("default"); - default_->save(dictWriter, false); - dictWriter.endEntry(); - } - - // Close this sub-dictionary if required. - if (!topLevelDict) - { - dictWriter.endSubDict(); - } - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.H deleted file mode 100644 index 99424b578e..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.H +++ /dev/null @@ -1,347 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ITypeDescriptorImpl - -Description - -SourceFiles - ITypeDescriptorImpl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef ITypeDescriptorImpl_H -#define ITypeDescriptorImpl_H - -// Foam header files. -#include "IDLList.H" -#include "DLList.H" -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXAny.H" -#include "IDictionaryEntryImpl.H" -#include "FoamXWordList.H" -#include "FoamXTypes.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class ITypeDescriptorImpl Declaration -\*---------------------------------------------------------------------------*/ - -class ITypeDescriptorImpl -: - public POA_FoamXServer::ITypeDescriptor, - public PortableServer::RefCountServantBase, - public IDLList::link -{ - // Private data - - //- The type of this parameter. - FoamXServer::FoamXType type_; - - //- Foam parameter name. - Foam::word name_; - - //- Path of this parameter relative to root dictionary. - Foam::string path_; - - //- Short display name. - Foam::string displayName_; - - //- Long descriptive name. - Foam::string description_; - - //- Dictionary comment. - Foam::string comment_; - - //- GUI category for this parameter. - Foam::string category_; - - //- URL to relevant help file. - Foam::string helpURL_; - - //- URL to a nice icon for this parameter. - Foam::string iconURL_; - - //- Flag indicating whether this parameter is optional. - // Defaults to false. - bool optional_; - - //- Flag indicating whether this parameter is visible within FoamX. - // Defaults to true. - bool visible_; - - //- Flag indicating whether this parameter is editable within FoamX. - // Defaults to true. - bool editable_; - - //- Minimum value for this parameter. - FoamXAny minValue_; - - //- Maximum value for this parameter. - FoamXAny maxValue_; - - //- Name of dictionary to use as a lookup table. - FoamXAnyList valueList_; - - //- List of permissible values for this parameter. - Foam::string lookupDict_; - - //- Top-level dictionary location relative to case root. - Foam::string dictionaryPath_; - - //- Number of vector space elements. - Foam::label numElements_; - - //- Labels of vector space elements (eg, x, y, z). - FoamXWordList elementLabels_; - - //- Doubly linked list of sub-type objects. Used to maintain the order - // of sub-types. - Foam::DLList subTypes_; - - //- Default value for this parameter. - IDictionaryEntryImpl* default_; - - - // Private member functions. - - bool setType(const Foam::word& type); - - void resolveType - ( - Foam::word& type, - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void resolveTypeDict - ( - Foam::word& type, - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void readType - ( - Foam::word& type, - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void addEntries - ( - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void addDictionaryEntries - ( - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void addCompoundEntries - ( - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void addElementType - ( - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void readOptionalData - ( - const Foam::dictionary& typeDict - ); - - -public: - - // Constructors - - ITypeDescriptorImpl - ( - const Foam::word& name, - const FoamXServer::FoamXType& type, - const Foam::string& parentPath - ); - - ITypeDescriptorImpl - ( - const Foam::word& name, - const Foam::string& parentPath, - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - ITypeDescriptorImpl - ( - const Foam::word& name, - const Foam::string& parentPath, - const Foam::entry& typeEntry, - const Foam::dictionary& foamTypesDict - ); - - ITypeDescriptorImpl - ( - FoamXServer::ITypeDescriptor_ptr typeDesc - ); - - - // Destructor - - virtual ~ITypeDescriptorImpl(); - - - // Member Functions - - // Foam access functions - - //- Keyword used by Dictionary - const word& keyword() const - { - return name_; - } - - - // FoamServer access functions - - virtual FoamXServer::FoamXType type(); - virtual void type(FoamXServer::FoamXType); - virtual char* path(); - virtual void path(const char*); - virtual char* name(); - virtual void name(const char*); - virtual char* displayName(); - virtual void displayName(const char*); - virtual char* description(); - virtual void description(const char*); - virtual char* comment(); - virtual void comment(const char*); - virtual char* category(); - virtual void category(const char*); - virtual char* helpURL(); - virtual void helpURL(const char*); - virtual char* iconURL(); - virtual void iconURL(const char*); - virtual CORBA::Boolean isPrimitiveType(); - virtual CORBA::Boolean isCompoundType(); - virtual CORBA::Boolean optional(); - virtual void optional(CORBA::Boolean); - virtual CORBA::Boolean visible(); - virtual void visible(CORBA::Boolean); - virtual CORBA::Boolean editable(); - virtual void editable(CORBA::Boolean); - - - // Properties for non-compound types. - - virtual FoamXServer::FoamXAny* minValue(); - virtual void minValue(const FoamXServer::FoamXAny&); - virtual FoamXServer::FoamXAny* maxValue(); - virtual void maxValue(const FoamXServer::FoamXAny&); - virtual FoamXServer::FoamXAnyList* valueList(); - virtual void valueList(const FoamXServer::FoamXAnyList&); - virtual char* lookupDict(); - virtual void lookupDict(const char*); - - - // Properties for compound types. - - virtual char* dictionaryPath(); - virtual void dictionaryPath(const char*); - virtual CORBA::Long numElements(); - virtual void numElements(CORBA::Long); - virtual FoamXServer::StringList* elementLabels(); - virtual void elementLabels(const FoamXServer::StringList&); - virtual FoamXServer::TypeDescriptorList* subTypes(); - virtual FoamXServer::ITypeDescriptor_ptr elementType(); - - - // Default handling - - virtual CORBA::Boolean hasDefaultValue(); - - virtual void getDefaultValue - ( - FoamXServer::IDictionaryEntry_out defaultValue - ); - - - // Compound sub-type methods. - - virtual void addSubType - ( - FoamXServer::FoamXType type, - FoamXServer::ITypeDescriptor_out subEntry - ); - - virtual void removeSubType - ( - FoamXServer::ITypeDescriptor_ptr subEntry - ); - - - //- Validation. - virtual void validate(); - - - // Persistence. - - void load - ( - const Foam::dictionary& typeDict, - const Foam::dictionary& foamTypesDict - ); - - void save - ( - DictionaryWriter& dictWriter, - bool topLevelDict - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.C deleted file mode 100644 index fb7d09b02b..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.C +++ /dev/null @@ -1,130 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "LogManager.H" -#include "LogEntry.H" -#include "Pstream.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogEntry::LogEntry -( - const char* methodName, - const char* fileName, - const int lineNo -) -: - logManagerPtr_(NULL), - lineNo_(-1) -{ - if (!Pstream::parRun() || Pstream::master()) - { - // Get global log manager, if available. - logManagerPtr_ = LogManager::GlobalLogManager(); - - if (logManagerPtr_) - { - methodName_ = methodName; - //methodName_.replaceAll("&", "&"); - methodName_.replaceAll("&", ""); - - fileName_ = fileName; - lineNo_ = lineNo; - logManagerPtr_->startLogEntry(this); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogEntry::~LogEntry() -{ - if (logManagerPtr_) - { - logManagerPtr_->endLogEntry(); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogEntry::writeStart(Ostream& os) const -{ - static const char* functionName = - "LogEntry::writeStart(Ostream&) const"; - - try - { - // Write opening tag. - os << "" << endl; - os << " " << methodName_ << "" << endl; - - if (fileName_.size() > 0) - { - os << " " << fileName_ << "" << endl; - } - - if (lineNo_ > -1) - { - os << " " << lineNo_ << "" << endl; - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogEntry::writeEnd(Ostream& os) const -{ - static const char* functionName = - "LogEntry::writeEnd(Ostream&) const"; - - try - { - // Write closing tag. - os << "" << endl; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogEntry::operator Foam::OSstream&() -{ - if (logManagerPtr_) - { - return *logManagerPtr_; - } - else - { - return Snull; - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.H deleted file mode 100644 index 9d34072abe..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogEntry.H +++ /dev/null @@ -1,102 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::LogManager - -Description - -SourceFiles - LogEntry.C - -\*---------------------------------------------------------------------------*/ - -#ifndef LogEntry_H -#define LogEntry_H - -// Foam header files. -#include "label.H" -#include "word.H" -#include "fileName.H" -#include "OSstream.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes -class LogManager; - -/*---------------------------------------------------------------------------*\ - Class LogEntry Declaration -\*---------------------------------------------------------------------------*/ - -class LogEntry -{ - // Private data - - LogManager* logManagerPtr_; - string methodName_; - fileName fileName_; - label lineNo_; - -public: - - // Constructors - - LogEntry - ( - const char* methodName, - const char* fileName, - const int lineNo - ); - - - // Destructor - - ~LogEntry(); - - - // Member Functions - - void writeStart(Ostream&) const; - - void writeEnd(Ostream&) const; - - //- Convert to Ostream - // Prints basic message and then returns Ostream for further info. - operator OSstream&(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.C deleted file mode 100644 index e0133d3328..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.C +++ /dev/null @@ -1,199 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "OSspecific.H" - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "LogManager.H" -#include "LogEntry.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogManager* Foam::LogManager::pLogManager_ = NULL; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogManager::LogManager(const Foam::fileName& logFile) -: - infoOpen_(false) -{ - static const char* functionName = - "LogManager::LogManager(const Foam::fileName&)"; - - try - { - // Check that there isn't already a global log manager object. - if - ( - FoamX::FoamXError::debug && Foam::LogManager::pLogManager_ == NULL - ) - { - Foam::LogManager::pLogManager_ = this; - - // Make sure the path exists. - if (!dir(logFile.path()) && !mkDir(logFile.path())) - { - throw FoamX::FoamXError - ( - FoamXServer::E_FAIL, - "Log file directory '" + logFile.path() - + "' could not be created.", - functionName, - __FILE__, __LINE__ - ); - } - - // Open the file stream. - pFileStream_ = new Foam::OFstream(logFile); - - // Write XML header. - (*pFileStream_) << "\n" << endl; - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogManager::~LogManager() -{ - if (Foam::LogManager::pLogManager_ == this) - { - Foam::LogManager::pLogManager_ = NULL; - - if (pFileStream_ != NULL) - { - delete pFileStream_; - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogManager* Foam::LogManager::GlobalLogManager() -{ - return pLogManager_; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogManager::startLogEntry(const LogEntry* pLogEntry) -{ - static const char* functionName = - "LogManager::startLogEntry(const LogEntry*)"; - - try - { - if (infoOpen_) - { - endInfoEntry(); - } - - // Push new entry onto stack. - entryStack_.push(pLogEntry); - - pLogEntry->writeStart((*pFileStream_)); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogManager::endLogEntry() -{ - static const char* functionName = "LogManager::endLogEntry()"; - - try - { - if (infoOpen_) - { - endInfoEntry(); - } - - // Pop the current entry off the stack. - const LogEntry* pLogEntry = entryStack_.top(); - entryStack_.pop(); - - pLogEntry->writeEnd((*pFileStream_)); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogManager::startInfoEntry() -{ - static const char* functionName = - "LogManager::startInfoEntry()"; - - try - { - if (infoOpen_) - { - endInfoEntry(); - } - - *pFileStream_ << " " << endl; - infoOpen_ = true; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::LogManager::endInfoEntry() -{ - static const char* functionName = - "LogManager::endInfoEntry()"; - - try - { - *pFileStream_ << " " << endl; - infoOpen_ = false; - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::LogManager::operator Foam::OSstream&() -{ - static const char* functionName = - "LogManager::operator Foam::OSstream&()"; - - try - { - startInfoEntry(); - return *pFileStream_; - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.H deleted file mode 100644 index 698e4b6719..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/LogManager.H +++ /dev/null @@ -1,121 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::LogManager - -Description - -SourceFiles - LogManager.C - -\*---------------------------------------------------------------------------*/ - -#ifndef LogManager_H -#define LogManager_H - -// Foam header files. -#include "LIFOStack.H" -#include "fileName.H" -#include "OFstream.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes. -class LogEntry; - -/*---------------------------------------------------------------------------*\ - Class LogManager Declaration -\*---------------------------------------------------------------------------*/ - -class LogManager -{ - -public: - - enum LogFilter - { - LOG_DEBUG, - LOG_DIAGNOSTIC, - LOG_WARNINGS, - LOG_ERRORS - }; - - -private: - - // Private data - - static LogManager* pLogManager_; - LogFilter filter_; - OFstream* pFileStream_; - LIFOStack entryStack_; - bool infoOpen_; - - -public: - - // Constructors - - LogManager(const fileName& logFile); - - - // Destructor - - ~LogManager(); - - - // Member Functions - - //- Access to the global log manager. - static LogManager* GlobalLogManager(); - - - // Log entry methods. - - void startLogEntry(const LogEntry* pLogEntry); - void endLogEntry(); - - void startInfoEntry(); - void endInfoEntry(); - - - //- Convert to Ostream - // Prints basic message and then returns Ostream for further info. - operator OSstream&(); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/files b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/files deleted file mode 100644 index c57320e597..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/files +++ /dev/null @@ -1,31 +0,0 @@ -FoamXErrors.C -FoamXString.C -FoamXStringList.C -FoamXWordList.C -FoamXFileNameList.C - -LogManager.C -LogEntry.C - -Paths.C -Orb.C -FoamXTypes.C -FoamXAny.C -DimensionSet.C -DictionaryWriter.C -ProcessControl.C -NameServer.C -PatchProperties.C -RootDictionary.C - -IPropertiesImpl.C -IApplicationImpl.C -ITypeDescriptorImpl.C -IDictionaryEntryImpl.C -IGeometryDescriptorImpl.C -IPatchDescriptorImpl.C -IPatchPhysicalTypeDescriptorImpl.C -IGeometricFieldDescriptorImpl.C -IGeometricFieldImpl.C - -LIB = $(FOAM_LIBBIN)/libFoamX diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/omniOptions b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/omniOptions deleted file mode 100644 index 917fbb1f41..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/omniOptions +++ /dev/null @@ -1,43 +0,0 @@ -OMNI_LIB_EXT = - -#if defined(linux) - - OMNI_SYS_INC = -D__x86__ -D__linux__ -D__OSVERSION__=2 - -#elif defined(solaris) - - OMNI_SYS_INC = -D__sparc__ -D__sunos__ -D__OSVERSION__=5 - -#elif defined(sgiN32) || defined(sgi64) - - OMNI_SYS_INC = -D__mips__ -D__irix__ -D__OSVERSION__=6 - -#elif defined(decAlpha) - -# error DEC not supported for compiling FoamX - -#elif defined(ibm) - - OMNI_SYS_INC = -D__aix__ -D__powerpc__ -D__OSVERSION__=4 - OMNI_LIB_EXT = -ar - -#else - -# error architecture not supported for compiling FoamX - -#endif - - -OMNI_INC = \ - -D__OMNIORB3__ -D_REENTRANT \ - -I$(OMNI_PATH)/include \ - $(OMNI_SYS_INC) - -OMNI_LIBS = \ - -L$(OMNI_PATH)/lib/$(OMNI_ARCH) \ - -lomniORB3$(OMNI_LIB_EXT) \ - -lomniDynamic3$(OMNI_LIB_EXT) \ - -ltcpwrapGK$(OMNI_LIB_EXT) \ - -lomnithread$(OMNI_LIB_EXT) \ - -lpthread - diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/options b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/options deleted file mode 100644 index 2445ae7ea1..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/options +++ /dev/null @@ -1,7 +0,0 @@ -#include "orbOptions" - -EXE_INC = \ - $(ORB_INC) \ - -I../FoamXServer - -LIB_LIBS = $(ORB_LIBS) diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/orbOptions b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/orbOptions deleted file mode 100644 index 61249ddaa6..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Make/orbOptions +++ /dev/null @@ -1,31 +0,0 @@ -#if defined(linux) || defined(linux64) - - ORB_SYS_INC = -Wno-old-style-cast - ORB_SYS_LIB = -lssl -lcrypto -ldl -lpthread - -#elif defined(solaris) - - ORB_SYS_INC = - ORB_SYS_LIB = -ldl - -#elif defined(sgiN32) || defined(sgi64) - - ORB_SYS_INC = - ORB_SYS_LIB = - -#else - -# error architecture not supported for compiling FoamX - -#endif - - -ORB_INC = \ - -I$(MICO_ARCH_PATH)/include \ - $(ORB_SYS_INC) - -ORB_LIBS = \ - -L$(MICO_ARCH_PATH)/lib \ - -lmicocoss$(MICO_VERSION) \ - -lmico$(MICO_VERSION) \ - $(ORB_SYS_LIB) diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.C deleted file mode 100644 index e530761aab..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.C +++ /dev/null @@ -1,1227 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files -#include "IFstream.H" -#include "OSspecific.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "NameServer.H" -#include "LogManager.H" -#include "LogEntry.H" -#include "Paths.H" -#include "Pstream.H" - -// Declare all the namespaces used by FoamX -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::NameServer::NameServer() -: - connected_(false) -{} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::NameServer::NameServer(CORBA::ORB_ptr pOrb) -: - connected_(false) -{ - connect(pOrb); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::NameServer::~NameServer() -{ - disconnect(); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::connect(CORBA::ORB_ptr pOrb) -{ - static const char* functionName = - "FoamX::NameServer::connect(CORBA::ORB_ptr pOrb)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (connected_ || !CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server already connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Try to connect to the name server using the - // resolve_initial_references call provided by the ORB. - // Different ORB vendors implement the way in which their ORB obtains - // initial references in different ways (way to go OMG boys, an - // inspired design decision!). - // Therefore, we cannot rely on this call working and may have to fall - // back on the tried and trusted method of retrieving the name service - // IOR from a file written to a common location. Since the MICO name - // server reference cannot be obtained from JAVA in any other way, - // we have to write this file anyway. MICO C++ servers can specify the - // location of the name server by using the - // "-ORBNamingAddr inet:hostname:portno" command line argument - // in which case the resolve_initial_references will work. - CORBA::Object_var initServ; - try - { - // Obtain a reference to the root context of the Name service - // through the given Orb. - // Attach to reference. - initServ = pOrb->resolve_initial_references("NameService"); - - log << "Obtained NameService reference from Orb command line" - << " arguments" << endl; - } - catch (...) - { - // If the resolve_initial_references call failed, try and open - // the name service reference written to the FoamX system directory. - if (CORBA::is_nil(initServ)) - { - // See if the name service reference file exists. - fileName nsRefFile = Paths::tmp/"ns.ref"; - if (!exists(nsRefFile)) - { - throw FoamXError - ( - E_FAIL, - "Failed to resolve NameService root context reference.", - functionName, - __FILE__, __LINE__ - ); - } - - // Extract IOR from the file. - log << "Reading name service reference file '" - << nsRefFile << "'." << endl; - - word ior((IFstream(nsRefFile)())); - initServ = pOrb->string_to_object(ior.c_str()); - } - } - - // If we still haven't got a name server reference, throw an exception. - if (CORBA::is_nil(initServ)) - { - throw FoamXError - ( - E_FAIL, - "Failed to resolve NameService root context reference.", - functionName, - __FILE__, __LINE__ - ); - } - - // call to a CosNaming::NamingContext object. - // Attach to reference. - rootContext_ = CosNaming::NamingContext::_narrow(initServ); - if (CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Failed to narrow NameService root context reference.", - functionName, - __FILE__, __LINE__ - ); - } - - // Set connected flag. - connected_ = true; - } - catch (CORBA::ORB::InvalidName& ex) - { - throw FoamXError - ( - E_FAIL, - "Caught CORBA::ORB::InvalidName exception in connect : " - "Service required is invalid [does not exist].", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE& ex) - { - throw FoamXError - ( - E_FAIL, - "Caught CORBA::COMM_FAILURE exception in connect : " - "Unable to contact name server.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::NO_RESOURCES& ex) - { - throw FoamXError - ( - E_FAIL, - "Caught CORBA::NO_RESOURCES exception in connect : " - "Unable to contact name server.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::SystemException& ex) - { - throw FoamXError - ( - E_FAIL, - "Caught CORBA::SystemException exception in connect : " - "Unable to contact name server.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected error", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::disconnect() -{ - static const char* functionName = - "FoamX::NameServer::disconnect()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - if (connected_) - { - // Dicsonnect from the root context and reset the connected flag. - rootContext_ = CosNaming::NamingContext::_nil(); - connected_ = false; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::createContext -( - const fileName& path, - bool failAlreadyBound -) -{ - static const char* functionName = - "FoamX::NameServer::createContext" - "(const fileName& path, bool failAlreadyBound)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(path, cosName); - - // Call bind_new_context on the root context. - // Attach to reference. - CosNaming::NamingContext_var context = - rootContext_->bind_new_context(cosName); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - // Raise an exception only if required. - if (failAlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - msg += "Missing Node."; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::createContexts -( - const fileName& path, - bool failAlreadyBound -) -{ - static const char* functionName = - "FoamX::NameServer::createContext" - "(const fileName& path, bool failAlreadyBound)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - - // Pass errors through - - wordList components = path.components(); - - fileName dir = ""; - - forAll(components, compI) - { - if (compI == 0) - { - dir = components[compI]; - } - else - { - dir = dir/components[compI]; - } - createContext(dir, failAlreadyBound); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::removeContext(const fileName& path) -{ - static const char* functionName = - "FoamX::NameServer::removeContext(const fileName& path)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(path, cosName); - - // Get the specified naming context object. - CORBA::Object_var obj = rootContext_->resolve(cosName); - CosNaming::NamingContext_var context = - CosNaming::NamingContext::_narrow(obj); - - if (CORBA::is_nil(context)) - { - throw FoamXError - ( - E_FAIL, - "Not a naming context.", - functionName, - __FILE__, __LINE__ - ); - } - - // Destroy and unbind the specified naming context. - context->destroy(); - rootContext_->unbind(cosName); - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - msg += "Missing node."; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::removeContexts -( - const fileName& root, - const fileName& path -) -{ - static const char* functionName = - "FoamX::NameServer::removeContexts" - "(const fileName& root, const fileName& path)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - fileName dir(path); - - while((dir != "/") && (dir != "") && (dir != root)) - { - removeContext(dir); - dir = dir.path(); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::bindObject -( - const fileName& name, - CORBA::Object_ptr pObject, - bool rebind -) -{ - static const char* functionName = - "FoamX::NameServer::bindObject" - "(const fileName& name, CORBA::Object_ptr pObject, bool rebind)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(name, cosName); - - // Bind this object to the specified name. - try - { - rootContext_->bind(cosName, pObject); - } - catch (CosNaming::NamingContext::AlreadyBound& ex) - { - if (!rebind) throw ex; - // Note: Using rebind() will overwrite any Object previously bound - // to the host context with obj. - // Alternatively, bind() can be used, which will raise a - // CosNaming::NamingContext::AlreadyBound exception if the - // name supplied is already bound to an object. - // Amendment: When using OrbixNames, it is necessary to first try - // bind and then rebind, as rebind on it's own will throw a - // NotFoundexception if the Name has not already been bound. - //[This is incorrect behaviour - it should just bind]. - rootContext_->rebind(cosName, pObject); - } - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - msg += "Missing node."; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::NameServer::unbindObject(const fileName& name) -{ - static const char* functionName = - "FoamX::NameServer::unbindObject(const fileName& name)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(name, cosName); - - // List parent context and check that binding type is "nobject" - // before allowing unbind. - CosNaming::NamingContext_var context; - int len = cosName.length(); - CORBA::String_var id = cosName[len-1].id; - CORBA::String_var kind = cosName[len-1].kind; - - // Check that the parent is a naming context. - if (len> 1) - { - cosName.length(len - 1); - CORBA::Object_var obj = rootContext_->resolve(cosName); - context = CosNaming::NamingContext::_narrow(obj); - if (CORBA::is_nil(context)) - { - throw FoamXError - ( - E_FAIL, - "Parent is not a naming context.", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - context = rootContext_; - } - - // Loop over all bindings in the parent context. - CosNaming::BindingIterator_var bi; - CosNaming::BindingList_var bl; - CosNaming::Binding_var b; - - bool bFound = false; - context->list(0, bl, bi); - while (bi->next_one(b)) - { - if - ( - strcmp(b->binding_name[0].id, id ) == 0 - && strcmp(b->binding_name[0].kind, kind) == 0 - ) - { - if (b->binding_type == CosNaming::ncontext) - { - throw FoamXError - ( - E_FAIL, - "Can't unbind a naming context.", - functionName, - __FILE__, __LINE__ - ); - } - - // Unbind the object. - context->unbind(b->binding_name); - bFound = true; - break; - } - } - bi->destroy(); //? - - if (!bFound) - { - throw FoamXError - ( - E_FAIL, - "Object name could not be found.", - functionName, - __FILE__, __LINE__ - ); - } - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - msg += "Missing node."; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool FoamX::NameServer::isObjectBound(const fileName& name) -{ - static const char* functionName = - "FoamX::NameServer::isObjectBound(const fileName& name)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - bool objectBound = false; - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(name, cosName); - - // List parent context and check that binding type is "nobject". - CosNaming::NamingContext_var context; - int len = cosName.length(); - CORBA::String_var id = cosName[len-1].id; - CORBA::String_var kind = cosName[len-1].kind; - - // Check that the parent is a naming context. - if (len> 1) - { - cosName.length(len - 1); - - // Attach to reference. - CORBA::Object_var obj = rootContext_->resolve(cosName); - - // Attach to reference. - context = CosNaming::NamingContext::_narrow(obj); - if (CORBA::is_nil(context)) - { - throw FoamXError - ( - E_FAIL, - "Parent is not a naming context.", - functionName, - __FILE__, __LINE__ - ); - } - } - else - { - context = rootContext_; - } - - // Loop over all bindings in the parent context. - CosNaming::BindingIterator_var bi; - CosNaming::BindingList_var bl; - CosNaming::Binding_var b; - - context->list(0, bl, bi); - - if (bi) - { - while (bi->next_one(b)) - { - if - ( - strcmp(b->binding_name[0].id, id ) == 0 - && strcmp(b->binding_name[0].kind, kind) == 0 - ) - { - objectBound = b->binding_type == CosNaming::nobject; - break; - } - } - bi->destroy(); - } - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - // msg += "Missing node."; - // Missing node is no longer treated as an exception, - // it simply implies the object is not bound - return false; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - /* This is commented out because if you open a FoamXCaseBrowser - close it and then reopen it this error is thrown. Really we need - to find out what exception is actually being thrown and catch it - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - */ - - return false; - } - - return objectBound; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -CORBA::Object_ptr FoamX::NameServer::resolve(const fileName& name) -{ - static const char* functionName = - "FoamX::NameServer::resolve(const fileName& name)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - CORBA::Object_ptr pObject = CORBA::Object::_nil(); - - try - { - if (!connected_ || CORBA::is_nil(rootContext_)) - { - throw FoamXError - ( - E_FAIL, - "Name server not connected.", - functionName, - __FILE__, __LINE__ - ); - } - - // Construct a CosNaming::Name from the given path string. - CosNaming::Name cosName; - createNameFromString(name, cosName); - - // Resolve the name and get the object reference. - // Attach to reference. - CORBA::Object_var obj = rootContext_->resolve(cosName); - - // Duplicate the reference and return. - pObject = CORBA::Object::_duplicate(obj); - } - catch (CosNaming::NamingContext::NotFound& ex) - { - string msg = "CosNaming::NamingContext::NotFound Exception : "; - - if (ex.why == CosNaming::NamingContext::missing_node) - { - msg += "Missing node."; - } - else if (ex.why == CosNaming::NamingContext::not_context) - { - msg += "Not Context."; - } - else if (ex.why == CosNaming::NamingContext::not_object) - { - msg += "Not Object."; - } - throw FoamXError - ( - E_FAIL, - msg, - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::InvalidName) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::InvalidName exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::AlreadyBound) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::AlreadyBound exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::NotEmpty) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::NotEmpty exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CosNaming::NamingContext::CannotProceed) - { - throw FoamXError - ( - E_FAIL, - "Caught a CosNaming::NamingContext::CannotProceed exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (CORBA::COMM_FAILURE) - { - throw FoamXError - ( - E_FAIL, - "Caught a CORBA::COMM_FAILURE exception.", - functionName, - __FILE__, __LINE__ - ); - } - catch (...) - { - throw FoamXError - ( - E_FAIL, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } - - return pObject; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// "Borrowed" from the MICO NameServerClient class. - -void FoamX::NameServer::createNameFromString -( - const std::string& str, - CosNaming::Name& name -) -{ - size_t pos = 0, p = 0; - CORBA::ULong num = 0; - if (str[0] == '/') - { - pos = 1; - } - - do - { - p = str.find('/', pos); - num++; - - std::string sub; - - if (CORBA::Long(p) <0) - { - sub = str.substr(pos); - } - else - { - sub = str.substr(pos, p - pos); - } - - pos = p + 1; - name.length(num); - name[num - 1].id = CORBA::string_dup(sub.c_str()); - name[num - 1].kind = CORBA::string_dup(""); - - } while (CORBA::Long(p) >= 0); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.H deleted file mode 100644 index af5a99a3a6..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/NameServer.H +++ /dev/null @@ -1,186 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ICaseServerImpl - -Description - -SourceFiles - NameServer.C - -\*---------------------------------------------------------------------------*/ - -#ifndef NameServer_H -#define NameServer_H - -// System header files. -#include - -// Foam header files. -#include "dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class NameServer Declaration -\*---------------------------------------------------------------------------*/ - -class NameServer -{ - // Private data - - bool connected_; - CosNaming::NamingContext_var rootContext_; - - - // Private Member Functions - - void createNameFromString(const std::string&, CosNaming::Name& name); - - -public: - - // Constructors - - //- Construct null - NameServer(); - - //- Construct connecting to given ORB - NameServer(CORBA::ORB_ptr pOrb); - - - // Destructor - - virtual ~NameServer(); - - - // Member Functions - - // Connection methods. - - void connect(CORBA::ORB_ptr pOrb); - - void disconnect(); - - bool isConnected() const - { - return connected_; - } - - - // Context methods. - - // Create single context - void createContext - ( - const Foam::fileName& path, - bool failAlreadyBound = false - ); - - // Create all contexts (a la 'mkdir -p') - void createContexts - ( - const Foam::fileName& path, - bool failAlreadyBound = false - ); - - void removeContext(const Foam::fileName& path); - - // Remove all contexts up to (but not including) root - void removeContexts - ( - const Foam::fileName& root, - const Foam::fileName& path - ); - - - bool isContextBound(const Foam::fileName& path); - - - // Object binding methods. - - void bindObject - ( - const Foam::fileName& name, - CORBA::Object_ptr pObject, - bool rebind = false - ); - - void unbindObject(const Foam::fileName& name); - - bool isObjectBound(const Foam::fileName& name); - - - // Object reference resolution methods. - - CORBA::Object_ptr resolve(const Foam::fileName& name); - - - //- Template function to return object reference of the template type - // from the given context name. - // For Example :- - // FoamXServer::HostBrowser::IHostBrowser_var ref = - // fxNameServer.resolve - // - // ("HostBrowser.FoamX"); - template - typename T::_ptr_type resolve(const Foam::fileName& name) - { - CORBA::Object_var objRef = resolve(name); - - // Narrow to the specified type. - typename T::_ptr_type objTypeRef = T::_narrow(objRef); - if (CORBA::is_nil(objTypeRef)) - { - throw FoamXError - ( - FoamXServer::E_FAIL, - "Invalid object type.", - "NameServer::resolve(const Foam::fileName& name)", - __FILE__, __LINE__ - ); - } - - return T::_duplicate(objTypeRef); - } -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefDictionary.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefDictionary.H deleted file mode 100644 index 4224a38a7b..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefDictionary.H +++ /dev/null @@ -1,107 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ObjRefDictionary - -Description - Dictionary to hold CORBA implementation (ie, RefCountServantBase derived) - object references. Overrides the clear and erase method to properly release - the object references. All references are released in Hashtable destructor - via call to clear method. - -\*---------------------------------------------------------------------------*/ - -#ifndef ObjRefDictionary_H -#define ObjRefDictionary_H - -// Foam header files. -#include "Dictionary.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class ObjRefDictionary Declaration -\*---------------------------------------------------------------------------*/ - -template -class ObjRefDictionary -: - public Foam::Dictionary -{ - -public: - - // Member Functions - - //- Erase an entry specified by given iterator. - bool erase(const word& keyword) - { - if (this->found(keyword)) - { - // Release Corba implementation object. - this->lookup(keyword)->_remove_ref(); - - // Invoke base class erase method. - return Foam::Dictionary::erase(keyword); - } - else - { - return false; - } - } - - //- Clear all entries from table. - void clear() - { - // Release all Corba implementation objects. - for - ( - typename Foam::Dictionary::iterator iter = - this->begin(); - iter != this->end(); - ++iter - ) - { - iter()->_remove_ref(); - } - - // Invoke base class clear method. - Foam::Dictionary::clear(); - } -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefHashTable.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefHashTable.H deleted file mode 100644 index dcd79a9540..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ObjRefHashTable.H +++ /dev/null @@ -1,111 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ObjRefHashTable - -Description - Hashtable to hold CORBA implementation (ie, RefCountServantBase derived) - object references. Overrides the clear and erase method to properly release - the object references. All references are released in Hashtable destructor - via call to clear method. - -\*---------------------------------------------------------------------------*/ - -#ifndef ObjRefHashTable_H -#define ObjRefHashTable_H - -// Foam header files. -#include "HashTable.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class ObjRefHashTable Declaration -\*---------------------------------------------------------------------------*/ - -template -class ObjRefHashTable -: - public Foam::HashTable -{ - -public: - - // Destructor - - ~ObjRefHashTable() - { - clear(); - } - - - // Member Functions - - //- Erase an entry specified by given iterator. - bool erase(typename Foam::HashTable::iterator& iter) - { - // Release Corba implementation object. - if (iter != this->end()) - { - iter()->_remove_ref(); - } - - // Invoke base class erase method. - return Foam::HashTable::erase(iter); - } - - //- Clear all entries from table. - void clear() - { - // Release all Corba implementation objects. - for - ( - typename Foam::HashTable::iterator iter = - this->begin(); - iter != this->end(); - ++iter - ) - { - iter()->_remove_ref(); - } - - // Invoke base class clear method. - Foam::HashTable::clear(); - } -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.C deleted file mode 100644 index 1f9e732830..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.C +++ /dev/null @@ -1,88 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "Orb.H" -#include "NameServer.H" -#include "LogEntry.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::Orb::Orb(int& argc, char** argv) -: - // Initialise the ORB, passing in the command line arguments. - orbPtr_(CORBA::ORB_init(argc, argv)) -{ - // Obtain a reference to the root POA. - CORBA::Object_var obj = orbPtr_->resolve_initial_references("RootPOA"); - PortableServer::POA_var poaPtr_ = PortableServer::POA::_narrow(obj); - - // Obtain POAManager reference and tell the POA to start accepting - // requests on its objects. - PortableServer::POAManager_var pman = poaPtr_->the_POAManager(); - pman->activate(); -} - - -FoamX::Orb::~Orb() -{ - //poaPtr_->destroy(true, false); - orbPtr_->destroy(); -} - - -void FoamX::Orb::run() -{ - orbPtr_->run(); -} - - -Foam::string FoamX::Orb::ior(CORBA::Object_ptr oPtr) -{ - return orbPtr_->object_to_string(oPtr); -} - - -bool FoamX::Orb::isObjectBound(const Foam::fileName& objectName) -{ - static const char* functionName = - "FoamX::Orb::isObjectBound(const Foam::fileName& objectName)"; - - Foam::LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Connect to name server. - NameServer fxNameServer(orbPtr_); - return fxNameServer.isObjectBound(objectName); - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.H deleted file mode 100644 index 9a48a21b85..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Orb.H +++ /dev/null @@ -1,89 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::className - -Description - -SourceFiles - Orb.C - -\*---------------------------------------------------------------------------*/ - -#ifndef Orb_H -#define Orb_H - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class Orb Declaration -\*---------------------------------------------------------------------------*/ - -class Orb -{ - -public: - - // Public data - - //- Pointer to ORB. - CORBA::ORB_var orbPtr_; - - //- Pointer to POA. - PortableServer::POA_var poaPtr_; - - - // Constructors - - Orb(int& argc, char** argv); - - - // Destructor - - ~Orb(); - - - // Member functions - - void run(); - - Foam::string ior(CORBA::Object_ptr); - - bool isObjectBound(const Foam::fileName& objectName); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.C deleted file mode 100644 index b5a89e478c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.C +++ /dev/null @@ -1,321 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "emptyPolyPatch.H" -#include "polyPatch.H" - -// FoamX header files. -#include "FoamX.H" -#include "LogEntry.H" -#include "PatchProperties.H" -#include "Paths.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::PatchProperties::PatchProperties(const word& patchName) -: - patchName_(patchName), - patchType_(emptyPolyPatch::typeName), - physicalType_(emptyPolyPatch::typeName), - modified_(false) -{ - static const char* functionName = - "FoamX::PatchProperties::PatchProperties(const char* patchName)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::PatchProperties::~PatchProperties() -{ - static const char* functionName = - "FoamX::PatchProperties::~PatchProperties()"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -const Foam::word& FoamX::PatchProperties::patchName() const -{ - static const char* functionName = - "FoamX::PatchProperties::patchName()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return patchName_; -} - -void FoamX::PatchProperties::patchName(const word& newName) -{ - static const char* functionName = - "FoamX::PatchProperties::patchName(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - patchName_ = newName; - - modified_ = true; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -const Foam::word& FoamX::PatchProperties::patchType() const -{ - static const char* functionName = - "FoamX::PatchProperties::patchType()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return patchType_; -} - -void FoamX::PatchProperties::patchType(const word& newPatchType) -{ - static const char* functionName = - "FoamX::PatchProperties::type(const char* newPatchType)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - patchType_ = newPatchType; - - modified_ = true; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -const Foam::word& FoamX::PatchProperties::physicalType() const -{ - static const char* functionName = - "FoamX::PatchProperties::physicalType()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return physicalType_; -} - -void FoamX::PatchProperties::physicalType(const word& newName) -{ - static const char* functionName = - "FoamX::PatchProperties::physicalType(const char* newName)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - physicalType_ = newName; - - modified_ = true; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::label FoamX::PatchProperties::startFace() const -{ - static const char* functionName = - "FoamX::PatchProperties::startFace()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return startFace_; -} - -void FoamX::PatchProperties::startFace(label n) -{ - static const char* functionName = - "FoamX::PatchProperties::startFace(label n)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - startFace_ = n; - - modified_ = true; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::label FoamX::PatchProperties::nFaces() const -{ - static const char* functionName = - "FoamX::PatchProperties::nFaces()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return nFaces_; -} - -void FoamX::PatchProperties::nFaces(label n) -{ - static const char* functionName = - "FoamX::PatchProperties::nFaces(label n)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - nFaces_ = n; - - modified_ = true; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool FoamX::PatchProperties::modified() const -{ - static const char* functionName = - "FoamX::PatchProperties::modified()"; - - LogEntry log(functionName, __FILE__, __LINE__); - - return modified_; -} - -void FoamX::PatchProperties::modified(bool mod) -{ - static const char* functionName = - "FoamX::PatchProperties::modified(bool)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - modified_ = mod; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::PatchProperties::load(const dictionary& patchDict) -{ - static const char* functionName = - "FoamX::PatchProperties::load(const dictionary& patchDict)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Reading " << patchDict.name() - << " start line " << patchDict.startLineNumber() - << " end line " << patchDict.endLineNumber() << endl; - - // Check that the dictionary has the minimum required information. - if - ( - !patchDict.found("type") - || !patchDict.found("startFace") - || !patchDict.found("nFaces") - ) - { - throw FoamXError - ( - E_FAIL, - "Malformed patch dictionary '" + patchName_ + "'.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get patch data. - patchDict.lookup("type") >> patchType_; - - if (patchDict.found("geometricType")) - { - patchDict.lookup("geometricType") >> patchType_; - } - - patchDict.lookup("startFace") >> startFace_; - patchDict.lookup("nFaces") >> nFaces_; - - // If the type is a constraint type set the physicalType - // to be the same else lookup the physical type if it is there. - if (polyPatch::constraintType(patchType_)) - { - physicalType_ = patchType_; - } - else if (patchDict.found("physicalType")) - { - patchDict.lookup("physicalType") >> physicalType_; - } - - modified_ = false; - } - catch (FoamXError& ex) - { - // Bounce exception up to client. - throw ex; - } - catch (...) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::PatchProperties::save(FoamX::DictionaryWriter& dictWriter) -{ - static const char* functionName = - "FoamX::PatchProperties::save(FoamX::DictionaryWriter& dictWriter)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Save the patch information to a sub-dictionary. - dictWriter.startSubDict(patchName_); - - dictWriter.writeEntry("type", patchType_); - dictWriter.writeEntry("physicalType", physicalType_); - dictWriter.writeEntry("startFace", startFace_ ); - dictWriter.writeEntry("nFaces", nFaces_); - - dictWriter.endSubDict(); - - modified_ = false; - } - catch (FoamXError& ex) - { - // Bounce exception up to client. - throw ex; - } - catch (...) - { - throw FoamXError - ( - E_UNEXPECTED, - "Unexpected error.", - functionName, - __FILE__, __LINE__ - ); - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.H deleted file mode 100644 index 811f7eed6c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/PatchProperties.H +++ /dev/null @@ -1,123 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::PatchProperties - -Description - -SourceFiles - PatchProperties.C - -\*---------------------------------------------------------------------------*/ - -#ifndef PatchProperties_H -#define PatchProperties_H - -// Foam header files. -#include "dictionary.H" -#include "Dictionary.H" - -// FoamX header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "DictionaryWriter.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class PatchProperties Declaration -\*---------------------------------------------------------------------------*/ - -class PatchProperties -: - public Foam::Dictionary::link -{ - // Private data - - Foam::word patchName_; - Foam::word patchType_; - Foam::word physicalType_; - Foam::label startFace_; - Foam::label nFaces_; - - bool modified_; - -public: - - // Constructors - - PatchProperties(const Foam::word& patchName); - - - // Destructor - - ~PatchProperties(); - - - // Member Functions - - const Foam::word& patchName() const; - void patchName(const Foam::word&); - - //- Keyword used by Dictionary - const word& keyword() const - { - return patchName_; - } - - const Foam::word& patchType() const; - void patchType(const word&); - - const Foam::word& physicalType() const; - void physicalType(const Foam::word&); - - Foam::label startFace() const; - void startFace(Foam::label); - - Foam::label nFaces() const; - void nFaces(Foam::label); - - bool modified() const; - void modified(bool); - - // Persistence - - void load(const Foam::dictionary& patchDict); - void save(DictionaryWriter& dictWriter); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.C deleted file mode 100644 index 1b295112bc..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.C +++ /dev/null @@ -1,67 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files. -#include "OSspecific.H" - -// FoamX header files. -#include "Paths.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Paths -{ - Foam::fileName config(Foam::getEnv("FOAMX_CONFIG")); - //Foam::fileName tmp(Foam::dotFoam("tmp")); - Foam::fileName tmp(config); - - Foam::fileName solversPath() - { - return Foam::getEnv("WM_PROJECT_DIR")/"applications/solvers"; - } - Foam::fileName solvers(solversPath()); - - Foam::fileName userSolversPath() - { - return Foam::getEnv("WM_PROJECT_USER_DIR")/"applications/solvers"; - } - Foam::fileName userSolvers(userSolversPath()); - - Foam::fileName utilitiesPath() - { - return Foam::getEnv("WM_PROJECT_DIR")/"applications/utilities"; - } - Foam::fileName utilities(utilitiesPath()); - - Foam::fileName userUtilitiesPath() - { - return Foam::getEnv("WM_PROJECT_USER_DIR")/"applications/utilities"; - } - Foam::fileName userUtilities(userUtilitiesPath()); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.H deleted file mode 100644 index 68e34b127c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/Paths.H +++ /dev/null @@ -1,65 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::className - -Description - -SourceFiles - Paths.C - -\*---------------------------------------------------------------------------*/ - -#ifndef Paths_H -#define Paths_H - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Paths -{ - //- FoamX configuration files path. - extern Foam::fileName config; - - //- FoamX tmp directory path. - extern Foam::fileName tmp; - - //- FoamX release solvers path. - extern Foam::fileName solvers; - - //- FoamX users solvers path. - extern Foam::fileName userSolvers; - - //- FoamX release utilities path. - extern Foam::fileName utilities; - - //- FoamX users utilities path. - extern Foam::fileName userUtilities; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.C deleted file mode 100644 index 1b0eb4cac5..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.C +++ /dev/null @@ -1,464 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Standard header files. -#include -#include -#include -#include -#include - -// Foam header files. -#include "ProcessControl.H" -#include "dictionary.H" -#include "IFstream.H" -#include "OSspecific.H" -#include "timer.H" - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "FoamXNameSpaces.H" - - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // - -void FoamX::ProcessControl::readEntries(const dictionary& procDict) -{ - if (procDict.found("remoteShell")) - { - remoteShell_ = string(procDict.lookup("remoteShell")); - } - - if (procDict.found("remoteCp")) - { - remoteShell_ = string(procDict.lookup("remoteCp")); - } - - if (procDict.found("timeOut")) - { - timeOut_ = readLabel(procDict.lookup("timeOut")); - } -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -// Construct from components -FoamX::ProcessControl::ProcessControl -( - const fileName& fxSystemConfigFileName -) -: - remoteShell_("rsh"), - remoteCp_("rcp"), - timeOut_(60) -{ - static const char* functionName = - "FoamX::ProcessControl::ProcessControl" - "(const fileName& fxSystemConfigFileName)"; - - if (!exists(fxSystemConfigFileName)) - { - throw FoamXError - ( - E_FAIL, - "Configuration dictionary '" + fxSystemConfigFileName - + "' not found", - functionName, - __FILE__, __LINE__ - ); - } - - dictionary configDict((IFstream(fxSystemConfigFileName)())); - readEntries(configDict.subDict("processControl")); -} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -Foam::stringList FoamX::ProcessControl::remoteShellArgs -( - const string& userName, - const string& hostName, - const stringList& arguments, - const string& logName, - const bool backGround -) const -{ - // Get length of resulting argument string - - unsigned int argsLen = arguments.size(); - if (backGround) - { - argsLen++; - } - - bool remote = (hostName != Foam::hostName()); - if (remote) - { - argsLen += 4; - } - - bool haveLogName = false; - if (logName.length() != 0) - { - haveLogName = true; - - argsLen+= 2; - } - - // Now we have collected - // - argsLen - // - remote (true if on remote machine) - // - haveLogName (true if output needs to go into log) - - - stringList args(argsLen); - - // Remote invocation - unsigned int argi = 0; - if (remote) - { - args[argi++] = remoteShell_; - args[argi++] = hostName; - args[argi++] = "-l"; - args[argi++] = userName; - } - - // Arguments - for (int i = 0; i " so redirection is done remotely - args[argi++] = "\">\""; - args[argi++] = logName; - } - else - { - args[argi++] = ">"; - args[argi++] = logName; - } - } - - if (backGround) - { - args[argi++] = "&"; - } - return args; -} - - -Foam::stringList FoamX::ProcessControl::remoteCpArgs -( - const string& userName, - const string& hostName, - const fileName& src, - const fileName& dest -) const -{ - if (hostName == Foam::hostName()) - { - stringList args(4); - args[0] = "cp"; - args[1] = "-r"; - args[2] = src; - args[3] = dest; - - return args; - } - else - { - stringList args(4); - args[0] = remoteCp_; - args[1] = "-r"; - args[2] = userName + '@' + hostName + ':' + src; - args[3] = dest; - - return args; - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// Return the command line as a string -Foam::string FoamX::ProcessControl::commandString -( - const stringList& argList -) -{ - string cms = argList[0]; - - for (label i=1; i argv(argList.size() + 1); - - forAll(argList, i) - { - argv[i] = const_cast(argList[i].c_str()); - } - argv[argList.size()] = NULL; - - // Fork this process. - if ((pid = ::fork()) < 0) - { - return -1; - } - - // Check that the fork worked. - if (pid == 0) - { - if (FoamXError::debug) - { - if (logFile.size() != 0) - { - Info<< "Running Process [" << getpid() << "] " - << commandString(argList) << " > " << logFile << endl; - } - else - { - Info<< "Running Process [" << getpid() << "] " - << commandString(argList) << endl; - } - } - - if (logFile.size() != 0) - { - int outFd = - open - ( - logFile.c_str(), - O_WRONLY | O_CREAT | O_TRUNC, - S_IRWXU | S_IRWXG | S_IRWXO - ); - - if (dup2(outFd, STDOUT_FILENO) != STDOUT_FILENO) - { - perror("ProcessControl::fork : dup2 error to stdout"); - } - close (outFd); - } - - // Replace this process with the required command. - execvp(argv[0], argv.begin()); - - // execvp failed so exit this process and return a -1 error code. - ::_exit(-1); - } - - return pid; -} - - -int FoamX::ProcessControl::system -( - const stringList& argList, - const int timeOut -) -{ - static const char* functionName = - "FoamX::ProcessControl::system" - "(const stringList&, const int)"; - - string cmd(commandString(argList)); - - Info<< "Doing (with timeout " << timeOut << ") : " << cmd << endl; - - if (timeOut <= 0) - { - return ::system(cmd.c_str()); - } - else - { - char* const argp[] = - { - "/bin/sh", - "-c", - const_cast(cmd.c_str()), - NULL - }; - - pid_t pid = -1; - - if ((pid = ::fork()) < 0) - { - if (FoamXError::debug) - { - Info<< functionName - << " fork failed." << endl; - } - return -1; - } - - if (pid == 0) - { - execv("/bin/sh", argp); - - // Should never come here. - _exit(127); - return -1; - } - else - { - if (FoamXError::debug) - { - Info<< functionName - << " forked pid:" << pid << "." << endl; - } - - timer myTimer(timeOut); - - if (timedOut(myTimer)) - { - // Timed out - FoamX::ProcessControl::kill(pid, SIGTERM); - return TIMEDOUT; - } - - int pStat; - while (::waitpid(pid, &pStat, 0) == -1) - { - if (errno != EINTR) - { - pStat = -1; - break; - } - } - - //if (FoamXError::debug) - //{ - Info<< "Finished doing (with timeout " << timeOut << ") : " - << cmd << endl; - //} - - return pStat; - } - } -} - - - -int FoamX::ProcessControl::kill(pid_t pid, int sig) -{ - int pStat = ::kill(pid, sig); - - timer myTimer(60); - - if (timedOut(myTimer)) - { - return -1; - } - - if (::waitpid(pid, &pStat, 0) == -1) - { - return pStat; - } - else - { - return 0; - } -} - - -int FoamX::ProcessControl::kill(const word& host, pid_t pid, int sig) const -{ - if (host == hostName()) - { - return FoamX::ProcessControl::kill(pid, sig); - } - else - { - stringList args(3); - args[0] = "kill"; - args[1] = "-" + name(sig); - args[2] = name(pid); - - stringList remoteArgs - ( - remoteShellArgs - ( - userName(), - host, - args, - "", - false - ) - ); - - return system - ( - remoteArgs, - timeOut() - ); - } -} - - -int FoamX::ProcessControl::suspend(const word& host, pid_t pid) const -{ - return kill(host, pid, SIGSTOP); -} - - -int FoamX::ProcessControl::cont(const word& host, pid_t pid) const -{ - return kill(host, pid, SIGCONT); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.H deleted file mode 100644 index 674c903f8c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/ProcessControl.H +++ /dev/null @@ -1,177 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::ProcessControl - -Description - -SourceFiles - ProcessControl.C - -\*---------------------------------------------------------------------------*/ - -#ifndef ProcessControl_H -#define ProcessControl_H - -#include "label.H" -#include "stringList.H" -#include "word.H" -#include "fileName.H" - -#include -#include - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class ProcessControl Declaration -\*---------------------------------------------------------------------------*/ - -class ProcessControl -{ - // Private data - - Foam::fileName remoteShell_; - Foam::fileName remoteCp_; - Foam::label timeOut_; - - - // Private Member Functions - - //- Disallow default bitwise copy construct - ProcessControl(const ProcessControl&); - - //- Disallow default bitwise assignment - void operator=(const ProcessControl&); - - //- Read the entries from the given dictionary if they are present - void readEntries(const Foam::dictionary& procDict); - - static void sigAlarm(const int); - - -public: - - // Public data types - - //- error value for time outs - static const int TIMEDOUT = -2; - - class sigAlarmException - {}; - - - // Constructors - - //- Construct from configuration file - ProcessControl - ( - const Foam::fileName& fxSystemConfigFileName - ); - - - // Member Functions - - // Access - - const Foam::fileName& remoteShell() const - { - return remoteShell_; - } - - const Foam::fileName& remoteCp() const - { - return remoteCp_; - } - - Foam::label timeOut() const - { - return timeOut_; - } - - Foam::stringList remoteShellArgs - ( - const Foam::string& userName, - const Foam::string& hostName, - const Foam::stringList& arguments, - const Foam::string& logName, - const bool backGround - ) const; - - Foam::stringList remoteCpArgs - ( - const Foam::string& userName, - const Foam::string& hostName, - const Foam::fileName& src, - const Foam::fileName& dest - ) const; - - - //- Concaternate arList into a single string - static Foam::string commandString(const Foam::stringList& argList); - - //- Fork command - static pid_t fork - ( - const Foam::stringList& argList, - const Foam::fileName& logFile - ); - - //- Waitpid command - static pid_t waitpid(pid_t pid); - - //- Run command using system - static int system - ( - const Foam::stringList& argList, - const int timeOut=0 - ); - - //- Kill job with given pid - static int kill(pid_t pid, int sig=SIGINT); - - //- Kill job on given machine with given pid - int kill(const Foam::word& host, pid_t pid, int sig=SIGINT) const; - - //- Suspend job on given machine with given pid - int suspend(const Foam::word& host, pid_t pid) const; - - //- Continue job on given machine with given pid - int cont(const Foam::word& host, pid_t pid) const; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.C b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.C deleted file mode 100644 index d4f961379b..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.C +++ /dev/null @@ -1,255 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -// Foam header files -#include "IFstream.H" -#include "OSspecific.H" - -// Project header files. -#include "FoamX.H" -#include "FoamXErrors.H" -#include "LogEntry.H" -#include "RootDictionary.H" - -// Namespaces -#include "FoamXNameSpaces.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::RootDictionary::RootDictionary -( - ITypeDescriptor_ptr typeDesc, - const fileName& caseRoot, - const fileName& caseName -) -: - IDictionaryEntryImpl(typeDesc), - caseRoot_(caseRoot), - caseName_(caseName) -{ - static const char* functionName = - "FoamX::RootDictionary::RootDictionary" - "(ITypeDescriptor_ptr, const fileName&, const fileName&)"; - - LogEntry log(functionName, __FILE__, __LINE__); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -FoamX::RootDictionary::~RootDictionary() -{} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -Foam::fileName FoamX::RootDictionary::path -( - const fileName& rootDir, - const fileName& caseName, - const fileName& dictPath -) -{ - // If path is relative prepend root and case - if (dictPath[0] != '/') - { - return rootDir/caseName/dictPath; - } - else - { - return dictPath; - } -} - -Foam::fileName FoamX::RootDictionary::pathName() -{ - return - path(caseRoot_, caseName_, typeDescriptor_->dictionaryPath()) - /word(typeDescriptor_->name()); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::RootDictionary::load() -{ - fileName dictPathName = pathName(); - - // See if the dictionary file exists. - if (exists(dictPathName)) - { - // Load the values from the file. - load((IFstream(dictPathName)())); - } -} - -void FoamX::RootDictionary::load(Istream& is) -{ - static const char* functionName = - "FoamX::RootDictionary::load(Istream&)"; - - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - log << "Loading file for " - << CORBA::String_var(typeDescriptor_->path()) << endl; - - token firstToken(is); - - if - ( - is.good() - && firstToken.isWord() - && firstToken.wordToken() == "FoamFile" - ) - { - // Read the FoamFile header - dictionary headerDict(is); - } - else - { - is.putBack(firstToken); - } - - IDictionaryEntryImpl::load(is); - - // Check state of Istream. - is.check(functionName); - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::RootDictionary::save() -{ - static const char* functionName = "FoamX::RootDictionary::save()"; - - // Overridden for root dictionary entries. - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Make sure that this entry is a top-level compound type. - fileName dictName(typeDescriptor_->name()); - - if (!typeDescriptor_->isCompoundType() || !dictName.size()) - { - throw FoamXError - ( - E_UNEXPECTED, - "Invalid root dictionary object.", - functionName, - __FILE__, __LINE__ - ); - } - - // Get the dictionaries path and file name. - fileName dictPath(typeDescriptor_->dictionaryPath()); - fileName dictPathName = dictPath/dictName; - - log << "Saving root dictionary " << dictName << "." << endl; - - if (dictPath[0] != '/') - { - DictionaryWriter dictWriter - ( - caseRoot_, - caseName_, - dictPath, - dictName - ); - - dictWriter.writeHeader - ( - "FoamX Case Dictionary.", - "dictionary" - ); - - writeEntries(dictWriter); - } - else - { - DictionaryWriter dictWriter(pathName()); - - dictWriter.writeHeader - ( - "Foam Dictionary.", - "dictionary" - ); - - writeEntries(dictWriter); - } - } - CATCH_ALL(functionName); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void FoamX::RootDictionary::writeEntries(DictionaryWriter& dictWriter) -{ - static const char* functionName = - "FoamX::RootDictionary::writeEntries(DictionaryWriter& dictWriter)"; - - // Overridden for root dictionary entries. - LogEntry log(functionName, __FILE__, __LINE__); - - try - { - // Write the comment if required. - const char* comment = typeDescriptor_->comment(); - if (strlen(comment) > 0) - { - dictWriter.writeComment(comment); - dictWriter.writeEndl(); - } - - bool isDict = true; - - if (typeDescriptor_->type() != Type_Dictionary) - { - isDict = false; - } - - // Save all sub-elements. - for - ( - DLList::iterator iter = - subElements_.begin(); - iter != subElements_.end(); - ++iter - ) - { - // Write each sub-element as a dictionary entry. - iter()->save(dictWriter, isDict); - dictWriter.writeEndl(); - } - - dictWriter.writeEndBar(); - } - CATCH_ALL(functionName); -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.H b/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.H deleted file mode 100644 index 64bc5abb0a..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXLib/RootDictionary.H +++ /dev/null @@ -1,111 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::IDictionaryEntryImpl - -Description - -SourceFiles - RootDictionary.C - -\*---------------------------------------------------------------------------*/ - -#ifndef RootDictionary_H -#define RootDictionary_H - -// FoamX header files. -#include "IDictionaryEntryImpl.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace FoamX -{ - -/*---------------------------------------------------------------------------*\ - Class RootDictionary Declaration -\*---------------------------------------------------------------------------*/ - -class RootDictionary -: - public IDictionaryEntryImpl -{ - // Private data - - Foam::fileName caseRoot_; - Foam::fileName caseName_; - -public: - - // Constructors - - RootDictionary - ( - FoamXServer::ITypeDescriptor_ptr typeDesc, - const Foam::fileName& caseRoot, - const Foam::fileName& caseName - ); - - - // Destructor - - virtual ~RootDictionary(); - - - // Member Functions - - //- Return the dictPath with root and case if it isn't absolute - static Foam::fileName path - ( - const Foam::fileName& rootDir, - const Foam::fileName& caseName, - const Foam::fileName& dictPath - ); - - //- Return the full path of the dictionary - Foam::fileName pathName(); - - // Overridden IDictionaryEntry load - virtual void load(Foam::Istream&); - - //- Load the dictionary if the it's file exists - void load(); - - // Overridden IDictionaryEntry save - virtual void save(); - - //- Write the dictionary entries using the dictWriter - void writeEntries(DictionaryWriter& dictWriter); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace FoamX - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.C b/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.C deleted file mode 100644 index 62080e3526..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.C +++ /dev/null @@ -1,25565 +0,0 @@ -/* - * MICO --- an Open Source CORBA implementation - * Copyright (c) 1997-2006 by The Mico Team - * - * This file was automatically generated. DO NOT EDIT! - */ - -#include - - -using namespace std; - -//-------------------------------------------------------- -// Implementation of stubs -//-------------------------------------------------------- -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXType; -} - -void operator<<=( CORBA::Any &_a, const FoamXServer::FoamXType &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXType, &_e); - _a.from_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::FoamXType &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXType, &_e); - return _a.to_static_any (_sa); -} - -class _Marshaller_FoamXServer_FoamXType : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::FoamXType _MICO_T; - public: - ~_Marshaller_FoamXServer_FoamXType(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_FoamXType::~_Marshaller_FoamXServer_FoamXType() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_FoamXType::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_FoamXType::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_FoamXType::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_FoamXType::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong ul; - if( !dc.enumeration( ul ) ) - return FALSE; - *(_MICO_T*) v = (_MICO_T) ul; - return TRUE; -} - -void _Marshaller_FoamXServer_FoamXType::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.enumeration( (::CORBA::ULong) *(_MICO_T *) v ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_FoamXType::typecode() -{ - return FoamXServer::_tc_FoamXType; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXType; - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXAny; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXAny::FoamXAny() -{ -} - -FoamXServer::FoamXAny::FoamXAny( const FoamXAny& _s ) -{ - type = ((FoamXAny&)_s).type; - value = ((FoamXAny&)_s).value; -} - -FoamXServer::FoamXAny::~FoamXAny() -{ -} - -FoamXServer::FoamXAny& -FoamXServer::FoamXAny::operator=( const FoamXAny& _s ) -{ - type = ((FoamXAny&)_s).type; - value = ((FoamXAny&)_s).value; - return *this; -} -#endif - -class _Marshaller_FoamXServer_FoamXAny : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::FoamXAny _MICO_T; - public: - ~_Marshaller_FoamXServer_FoamXAny(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_FoamXAny::~_Marshaller_FoamXServer_FoamXAny() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_FoamXAny::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_FoamXAny::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_FoamXAny::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_FoamXAny::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - _marshaller_FoamXServer_FoamXType->demarshal( dc, &((_MICO_T*)v)->type ) && - CORBA::_stc_any->demarshal( dc, &((_MICO_T*)v)->value ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_FoamXAny::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - _marshaller_FoamXServer_FoamXType->marshal( ec, &((_MICO_T*)v)->type ); - CORBA::_stc_any->marshal( ec, &((_MICO_T*)v)->value ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_FoamXAny::typecode() -{ - return FoamXServer::_tc_FoamXAny; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXAny; - -void operator<<=( CORBA::Any &_a, const FoamXServer::FoamXAny &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXAny, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::FoamXAny *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::FoamXAny &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXAny, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::FoamXAny *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_FoamXAny, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXAnyList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_StringList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_TypeDescriptorList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_ErrorCode; -} - -void operator<<=( CORBA::Any &_a, const FoamXServer::ErrorCode &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ErrorCode, &_e); - _a.from_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::ErrorCode &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ErrorCode, &_e); - return _a.to_static_any (_sa); -} - -class _Marshaller_FoamXServer_ErrorCode : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::ErrorCode _MICO_T; - public: - ~_Marshaller_FoamXServer_ErrorCode(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_ErrorCode::~_Marshaller_FoamXServer_ErrorCode() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_ErrorCode::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_ErrorCode::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_ErrorCode::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_ErrorCode::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong ul; - if( !dc.enumeration( ul ) ) - return FALSE; - *(_MICO_T*) v = (_MICO_T) ul; - return TRUE; -} - -void _Marshaller_FoamXServer_ErrorCode::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.enumeration( (::CORBA::ULong) *(_MICO_T *) v ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_ErrorCode::typecode() -{ - return FoamXServer::_tc_ErrorCode; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_ErrorCode; - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXError; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXError::FoamXError() -{ -} - -FoamXServer::FoamXError::FoamXError( const FoamXError& _s ) -{ - errorCode = ((FoamXError&)_s).errorCode; - errorMessage = ((FoamXError&)_s).errorMessage; - methodName = ((FoamXError&)_s).methodName; - fileName = ((FoamXError&)_s).fileName; - lineNo = ((FoamXError&)_s).lineNo; -} - -FoamXServer::FoamXError::~FoamXError() -{ -} - -FoamXServer::FoamXError& -FoamXServer::FoamXError::operator=( const FoamXError& _s ) -{ - errorCode = ((FoamXError&)_s).errorCode; - errorMessage = ((FoamXError&)_s).errorMessage; - methodName = ((FoamXError&)_s).methodName; - fileName = ((FoamXError&)_s).fileName; - lineNo = ((FoamXError&)_s).lineNo; - return *this; -} -#endif - -#ifndef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXError::FoamXError() -{ -} - -#endif - -FoamXServer::FoamXError::FoamXError( FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2, const char* _m3, CORBA::Long _m4 ) -{ - errorCode = _m0; - errorMessage = _m1; - methodName = _m2; - fileName = _m3; - lineNo = _m4; -} - -class _Marshaller_FoamXServer_FoamXError : public ::CORBA::StaticTypeInfo { - typedef ::FoamXServer::FoamXError _MICO_T; - public: - ~_Marshaller_FoamXServer_FoamXError(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_FoamXError::~_Marshaller_FoamXServer_FoamXError() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_FoamXError::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_FoamXError::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_FoamXError::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_FoamXError::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - string repoid; - return - dc.except_begin( repoid ) && - _marshaller_FoamXServer_ErrorCode->demarshal( dc, &((_MICO_T*)v)->errorCode ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->errorMessage._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->methodName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->fileName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->lineNo ) && - dc.except_end(); -} - -void _Marshaller_FoamXServer_FoamXError::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.except_begin( "IDL:FoamXServer/FoamXError:1.0" ); - _marshaller_FoamXServer_ErrorCode->marshal( ec, &((_MICO_T*)v)->errorCode ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->errorMessage.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->methodName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->fileName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->lineNo ); - ec.except_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_FoamXError::typecode() -{ - return FoamXServer::_tc_FoamXError; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXError; - -void operator<<=( CORBA::Any &_a, const FoamXServer::FoamXError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXError, &_e); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::FoamXError *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::FoamXError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXError, &_e); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::FoamXError *&_e ) -{ - return _a.to_static_any (_marshaller_FoamXServer_FoamXError, (void *&)_e); -} - -void FoamXServer::FoamXError::_throwit() const -{ - #ifdef HAVE_EXCEPTIONS - #ifdef HAVE_STD_EH - throw *this; - #else - throw FoamXError_var( (FoamXServer::FoamXError*)_clone() ); - #endif - #else - CORBA::Exception::_throw_failed( _clone() ); - #endif -} - -const char *FoamXServer::FoamXError::_repoid() const -{ - return "IDL:FoamXServer/FoamXError:1.0"; -} - -void FoamXServer::FoamXError::_encode( CORBA::DataEncoder &_en ) const -{ - _marshaller_FoamXServer_FoamXError->marshal( _en, (void*) this ); -} - -void FoamXServer::FoamXError::_encode_any( CORBA::Any &_a ) const -{ - _a <<= *this; -} - -CORBA::Exception *FoamXServer::FoamXError::_clone() const -{ - return new FoamXError( *this ); -} - -FoamXServer::FoamXError *FoamXServer::FoamXError::_downcast( CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXError:1.0" ) ) - return (FoamXError *) _ex; - return NULL; -} - -const FoamXServer::FoamXError *FoamXServer::FoamXError::_downcast( const CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXError:1.0" ) ) - return (FoamXError *) _ex; - return NULL; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXIOError; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXIOError::FoamXIOError() -{ -} - -FoamXServer::FoamXIOError::FoamXIOError( const FoamXIOError& _s ) -{ - errorMessage = ((FoamXIOError&)_s).errorMessage; - ioFileName = ((FoamXIOError&)_s).ioFileName; - ioStartLineNo = ((FoamXIOError&)_s).ioStartLineNo; - ioEndLineNo = ((FoamXIOError&)_s).ioEndLineNo; - methodName = ((FoamXIOError&)_s).methodName; - fileName = ((FoamXIOError&)_s).fileName; - lineNo = ((FoamXIOError&)_s).lineNo; -} - -FoamXServer::FoamXIOError::~FoamXIOError() -{ -} - -FoamXServer::FoamXIOError& -FoamXServer::FoamXIOError::operator=( const FoamXIOError& _s ) -{ - errorMessage = ((FoamXIOError&)_s).errorMessage; - ioFileName = ((FoamXIOError&)_s).ioFileName; - ioStartLineNo = ((FoamXIOError&)_s).ioStartLineNo; - ioEndLineNo = ((FoamXIOError&)_s).ioEndLineNo; - methodName = ((FoamXIOError&)_s).methodName; - fileName = ((FoamXIOError&)_s).fileName; - lineNo = ((FoamXIOError&)_s).lineNo; - return *this; -} -#endif - -#ifndef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXIOError::FoamXIOError() -{ -} - -#endif - -FoamXServer::FoamXIOError::FoamXIOError( const char* _m0, const char* _m1, CORBA::Long _m2, CORBA::Long _m3, const char* _m4, const char* _m5, CORBA::Long _m6 ) -{ - errorMessage = _m0; - ioFileName = _m1; - ioStartLineNo = _m2; - ioEndLineNo = _m3; - methodName = _m4; - fileName = _m5; - lineNo = _m6; -} - -class _Marshaller_FoamXServer_FoamXIOError : public ::CORBA::StaticTypeInfo { - typedef ::FoamXServer::FoamXIOError _MICO_T; - public: - ~_Marshaller_FoamXServer_FoamXIOError(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_FoamXIOError::~_Marshaller_FoamXServer_FoamXIOError() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_FoamXIOError::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_FoamXIOError::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_FoamXIOError::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_FoamXIOError::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - string repoid; - return - dc.except_begin( repoid ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->errorMessage._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->ioFileName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->ioStartLineNo ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->ioEndLineNo ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->methodName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->fileName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->lineNo ) && - dc.except_end(); -} - -void _Marshaller_FoamXServer_FoamXIOError::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.except_begin( "IDL:FoamXServer/FoamXIOError:1.0" ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->errorMessage.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->ioFileName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->ioStartLineNo ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->ioEndLineNo ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->methodName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->fileName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->lineNo ); - ec.except_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_FoamXIOError::typecode() -{ - return FoamXServer::_tc_FoamXIOError; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXIOError; - -void operator<<=( CORBA::Any &_a, const FoamXServer::FoamXIOError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXIOError, &_e); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::FoamXIOError *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::FoamXIOError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXIOError, &_e); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::FoamXIOError *&_e ) -{ - return _a.to_static_any (_marshaller_FoamXServer_FoamXIOError, (void *&)_e); -} - -void FoamXServer::FoamXIOError::_throwit() const -{ - #ifdef HAVE_EXCEPTIONS - #ifdef HAVE_STD_EH - throw *this; - #else - throw FoamXIOError_var( (FoamXServer::FoamXIOError*)_clone() ); - #endif - #else - CORBA::Exception::_throw_failed( _clone() ); - #endif -} - -const char *FoamXServer::FoamXIOError::_repoid() const -{ - return "IDL:FoamXServer/FoamXIOError:1.0"; -} - -void FoamXServer::FoamXIOError::_encode( CORBA::DataEncoder &_en ) const -{ - _marshaller_FoamXServer_FoamXIOError->marshal( _en, (void*) this ); -} - -void FoamXServer::FoamXIOError::_encode_any( CORBA::Any &_a ) const -{ - _a <<= *this; -} - -CORBA::Exception *FoamXServer::FoamXIOError::_clone() const -{ - return new FoamXIOError( *this ); -} - -FoamXServer::FoamXIOError *FoamXServer::FoamXIOError::_downcast( CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXIOError:1.0" ) ) - return (FoamXIOError *) _ex; - return NULL; -} - -const FoamXServer::FoamXIOError *FoamXServer::FoamXIOError::_downcast( const CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXIOError:1.0" ) ) - return (FoamXIOError *) _ex; - return NULL; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_ValidationError; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::ValidationError::ValidationError() -{ -} - -FoamXServer::ValidationError::ValidationError( const ValidationError& _s ) -{ - errorCode = ((ValidationError&)_s).errorCode; - errorMessage = ((ValidationError&)_s).errorMessage; - itemPath = ((ValidationError&)_s).itemPath; -} - -FoamXServer::ValidationError::~ValidationError() -{ -} - -FoamXServer::ValidationError& -FoamXServer::ValidationError::operator=( const ValidationError& _s ) -{ - errorCode = ((ValidationError&)_s).errorCode; - errorMessage = ((ValidationError&)_s).errorMessage; - itemPath = ((ValidationError&)_s).itemPath; - return *this; -} -#endif - -#ifndef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::ValidationError::ValidationError() -{ -} - -#endif - -FoamXServer::ValidationError::ValidationError( FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2 ) -{ - errorCode = _m0; - errorMessage = _m1; - itemPath = _m2; -} - -class _Marshaller_FoamXServer_ValidationError : public ::CORBA::StaticTypeInfo { - typedef ::FoamXServer::ValidationError _MICO_T; - public: - ~_Marshaller_FoamXServer_ValidationError(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_ValidationError::~_Marshaller_FoamXServer_ValidationError() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_ValidationError::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_ValidationError::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_ValidationError::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_ValidationError::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - string repoid; - return - dc.except_begin( repoid ) && - _marshaller_FoamXServer_ErrorCode->demarshal( dc, &((_MICO_T*)v)->errorCode ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->errorMessage._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->itemPath._for_demarshal() ) && - dc.except_end(); -} - -void _Marshaller_FoamXServer_ValidationError::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.except_begin( "IDL:FoamXServer/ValidationError:1.0" ); - _marshaller_FoamXServer_ErrorCode->marshal( ec, &((_MICO_T*)v)->errorCode ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->errorMessage.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->itemPath.inout() ); - ec.except_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_ValidationError::typecode() -{ - return FoamXServer::_tc_ValidationError; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_ValidationError; - -void operator<<=( CORBA::Any &_a, const FoamXServer::ValidationError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ValidationError, &_e); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::ValidationError *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::ValidationError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ValidationError, &_e); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::ValidationError *&_e ) -{ - return _a.to_static_any (_marshaller_FoamXServer_ValidationError, (void *&)_e); -} - -void FoamXServer::ValidationError::_throwit() const -{ - #ifdef HAVE_EXCEPTIONS - #ifdef HAVE_STD_EH - throw *this; - #else - throw ValidationError_var( (FoamXServer::ValidationError*)_clone() ); - #endif - #else - CORBA::Exception::_throw_failed( _clone() ); - #endif -} - -const char *FoamXServer::ValidationError::_repoid() const -{ - return "IDL:FoamXServer/ValidationError:1.0"; -} - -void FoamXServer::ValidationError::_encode( CORBA::DataEncoder &_en ) const -{ - _marshaller_FoamXServer_ValidationError->marshal( _en, (void*) this ); -} - -void FoamXServer::ValidationError::_encode_any( CORBA::Any &_a ) const -{ - _a <<= *this; -} - -CORBA::Exception *FoamXServer::ValidationError::_clone() const -{ - return new ValidationError( *this ); -} - -FoamXServer::ValidationError *FoamXServer::ValidationError::_downcast( CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/ValidationError:1.0" ) ) - return (ValidationError *) _ex; - return NULL; -} - -const FoamXServer::ValidationError *FoamXServer::ValidationError::_downcast( const CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/ValidationError:1.0" ) ) - return (ValidationError *) _ex; - return NULL; -} - - -/* - * Base interface for class ITypeDescriptor - */ - -FoamXServer::ITypeDescriptor::~ITypeDescriptor() -{ -} - -void * -FoamXServer::ITypeDescriptor::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/ITypeDescriptor:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::ITypeDescriptor::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::ITypeDescriptor_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/ITypeDescriptor:1.0" ))) - return _duplicate( (FoamXServer::ITypeDescriptor_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/ITypeDescriptor:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/ITypeDescriptor:1.0")) { - _o = new FoamXServer::ITypeDescriptor_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::ITypeDescriptor::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_ITypeDescriptor; -} -class _Marshaller_FoamXServer_ITypeDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::ITypeDescriptor_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_ITypeDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_ITypeDescriptor::~_Marshaller_FoamXServer_ITypeDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_ITypeDescriptor::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_ITypeDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::ITypeDescriptor::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_ITypeDescriptor::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_ITypeDescriptor::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_ITypeDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::ITypeDescriptor::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_ITypeDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_ITypeDescriptor::typecode() -{ - return FoamXServer::_tc_ITypeDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_ITypeDescriptor; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::ITypeDescriptor_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ITypeDescriptor, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::ITypeDescriptor_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ITypeDescriptor, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::ITypeDescriptor_ptr &_obj ) -{ - FoamXServer::ITypeDescriptor_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_ITypeDescriptor, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class ITypeDescriptor - */ - -FoamXServer::ITypeDescriptor_stub::~ITypeDescriptor_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::ITypeDescriptor::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/ITypeDescriptor:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::ITypeDescriptor * -POA_FoamXServer::ITypeDescriptor::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/ITypeDescriptor:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::ITypeDescriptor *) p; - } - return NULL; -} - -FoamXServer::ITypeDescriptor_stub_clp::ITypeDescriptor_stub_clp () -{ -} - -FoamXServer::ITypeDescriptor_stub_clp::ITypeDescriptor_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::ITypeDescriptor_stub_clp::~ITypeDescriptor_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::FoamXType FoamXServer::ITypeDescriptor_stub::type() -{ - FoamXServer::FoamXType _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXType, &_res ); - - CORBA::StaticRequest __req( this, "_get_type" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::FoamXType -FoamXServer::ITypeDescriptor_stub_clp::type() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::FoamXType __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->type(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::type(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::type( FoamXServer::FoamXType _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXType, &_par__value ); - CORBA::StaticRequest __req( this, "_set_type" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::type( FoamXServer::FoamXType _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->type(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::type(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::isPrimitiveType() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_isPrimitiveType" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::isPrimitiveType() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->isPrimitiveType(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::isPrimitiveType(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::isCompoundType() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_isCompoundType" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::isCompoundType() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->isCompoundType(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::isCompoundType(); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::path() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_path" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::path() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->path(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::path(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::path( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_path" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::path( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->path(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::path(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::displayName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_displayName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::displayName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->displayName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::displayName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::displayName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_displayName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::displayName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->displayName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::displayName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::comment() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_comment" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::comment() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->comment(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::comment(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::comment( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_comment" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::comment( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->comment(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::comment(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::category() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_category" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::category() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->category(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::category(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::category( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_category" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::category( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->category(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::category(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::helpURL() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_helpURL" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::helpURL() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->helpURL(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::helpURL(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::helpURL( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_helpURL" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::helpURL( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->helpURL(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::helpURL(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::iconURL() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_iconURL" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::iconURL() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->iconURL(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::iconURL(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::iconURL( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_iconURL" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::iconURL( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->iconURL(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::iconURL(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::optional() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_optional" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::optional() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->optional(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::optional(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::optional( CORBA::Boolean _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - CORBA::StaticRequest __req( this, "_set_optional" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::optional( CORBA::Boolean _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->optional(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::optional(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::visible() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_visible" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::visible() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->visible(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::visible(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::visible( CORBA::Boolean _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - CORBA::StaticRequest __req( this, "_set_visible" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::visible( CORBA::Boolean _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->visible(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::visible(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::editable() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_editable" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::editable() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->editable(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::editable(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::editable( CORBA::Boolean _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - CORBA::StaticRequest __req( this, "_set_editable" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::editable( CORBA::Boolean _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->editable(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::editable(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::FoamXAny* FoamXServer::ITypeDescriptor_stub::minValue() -{ - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - - CORBA::StaticRequest __req( this, "_get_minValue" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::FoamXAny*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::FoamXAny* -FoamXServer::ITypeDescriptor_stub_clp::minValue() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::FoamXAny* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->minValue(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::minValue(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::minValue( const FoamXServer::FoamXAny& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - CORBA::StaticRequest __req( this, "_set_minValue" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::minValue( const FoamXServer::FoamXAny& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->minValue(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::minValue(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::FoamXAny* FoamXServer::ITypeDescriptor_stub::maxValue() -{ - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - - CORBA::StaticRequest __req( this, "_get_maxValue" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::FoamXAny*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::FoamXAny* -FoamXServer::ITypeDescriptor_stub_clp::maxValue() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::FoamXAny* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->maxValue(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::maxValue(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::maxValue( const FoamXServer::FoamXAny& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - CORBA::StaticRequest __req( this, "_set_maxValue" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::maxValue( const FoamXServer::FoamXAny& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->maxValue(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::maxValue(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::lookupDict() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_lookupDict" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::lookupDict() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->lookupDict(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::lookupDict(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::lookupDict( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_lookupDict" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::lookupDict( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->lookupDict(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::lookupDict(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::FoamXAnyList* FoamXServer::ITypeDescriptor_stub::valueList() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_FoamXAny ); - - CORBA::StaticRequest __req( this, "_get_valueList" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::FoamXAnyList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::FoamXAnyList* -FoamXServer::ITypeDescriptor_stub_clp::valueList() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::FoamXAnyList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->valueList(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::valueList(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::valueList( const FoamXServer::FoamXAnyList& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller__seq_FoamXServer_FoamXAny, &_par__value ); - CORBA::StaticRequest __req( this, "_set_valueList" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::valueList( const FoamXServer::FoamXAnyList& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->valueList(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::valueList(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::ITypeDescriptor_stub::dictionaryPath() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_dictionaryPath" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::ITypeDescriptor_stub_clp::dictionaryPath() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->dictionaryPath(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::dictionaryPath(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::dictionaryPath( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_dictionaryPath" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::dictionaryPath( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->dictionaryPath(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::dictionaryPath(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::ITypeDescriptor_stub::numElements() -{ - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "_get_numElements" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::ITypeDescriptor_stub_clp::numElements() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->numElements(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::numElements(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::numElements( CORBA::Long _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_long, &_par__value ); - CORBA::StaticRequest __req( this, "_set_numElements" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::numElements( CORBA::Long _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->numElements(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::numElements(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::ITypeDescriptor_stub::elementLabels() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_elementLabels" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::ITypeDescriptor_stub_clp::elementLabels() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->elementLabels(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::elementLabels(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::elementLabels( const FoamXServer::StringList& _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stcseq_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_elementLabels" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::elementLabels( const FoamXServer::StringList& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->elementLabels(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::elementLabels(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::TypeDescriptorList* FoamXServer::ITypeDescriptor_stub::subTypes() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ITypeDescriptor ); - - CORBA::StaticRequest __req( this, "_get_subTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::TypeDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::TypeDescriptorList* -FoamXServer::ITypeDescriptor_stub_clp::subTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::TypeDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->subTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::subTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr FoamXServer::ITypeDescriptor_stub::elementType() -{ - FoamXServer::ITypeDescriptor_ptr _res = FoamXServer::ITypeDescriptor::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - - CORBA::StaticRequest __req( this, "_get_elementType" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::ITypeDescriptor_stub_clp::elementType() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::ITypeDescriptor_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->elementType(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::elementType(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::ITypeDescriptor_stub::hasDefaultValue() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "hasDefaultValue" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::ITypeDescriptor_stub_clp::hasDefaultValue() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->hasDefaultValue(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::ITypeDescriptor_stub::hasDefaultValue(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::getDefaultValue( FoamXServer::IDictionaryEntry_out _par_defaultValue ) -{ - CORBA::StaticAny _sa_defaultValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_defaultValue.ptr() ); - CORBA::StaticRequest __req( this, "getDefaultValue" ); - __req.add_out_arg( &_sa_defaultValue ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::getDefaultValue( FoamXServer::IDictionaryEntry_out _par_defaultValue ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getDefaultValue(_par_defaultValue); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::getDefaultValue(_par_defaultValue); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::addSubType( FoamXServer::FoamXType _par_type, FoamXServer::ITypeDescriptor_out _par_subEntry ) -{ - CORBA::StaticAny _sa_type( _marshaller_FoamXServer_FoamXType, &_par_type ); - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_ITypeDescriptor, &_par_subEntry.ptr() ); - CORBA::StaticRequest __req( this, "addSubType" ); - __req.add_in_arg( &_sa_type ); - __req.add_out_arg( &_sa_subEntry ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::addSubType( FoamXServer::FoamXType _par_type, FoamXServer::ITypeDescriptor_out _par_subEntry ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addSubType(_par_type, _par_subEntry); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::addSubType(_par_type, _par_subEntry); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::removeSubType( FoamXServer::ITypeDescriptor_ptr _par_subEntry ) -{ - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_ITypeDescriptor, &_par_subEntry ); - CORBA::StaticRequest __req( this, "removeSubType" ); - __req.add_in_arg( &_sa_subEntry ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::removeSubType( FoamXServer::ITypeDescriptor_ptr _par_subEntry ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->removeSubType(_par_subEntry); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::removeSubType(_par_subEntry); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::ITypeDescriptor_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::ITypeDescriptor_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::ITypeDescriptor * _myserv = POA_FoamXServer::ITypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::ITypeDescriptor_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_DictionaryEntryList; -} - - -/* - * Base interface for class IDictionaryEntry - */ - -FoamXServer::IDictionaryEntry::~IDictionaryEntry() -{ -} - -void * -FoamXServer::IDictionaryEntry::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/IDictionaryEntry:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::IDictionaryEntry_ptr -FoamXServer::IDictionaryEntry::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::IDictionaryEntry_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/IDictionaryEntry:1.0" ))) - return _duplicate( (FoamXServer::IDictionaryEntry_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/IDictionaryEntry:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/IDictionaryEntry:1.0")) { - _o = new FoamXServer::IDictionaryEntry_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::IDictionaryEntry_ptr -FoamXServer::IDictionaryEntry::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_IDictionaryEntry; -} -class _Marshaller_FoamXServer_IDictionaryEntry : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::IDictionaryEntry_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_IDictionaryEntry(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_IDictionaryEntry::~_Marshaller_FoamXServer_IDictionaryEntry() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_IDictionaryEntry::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_IDictionaryEntry::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::IDictionaryEntry::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_IDictionaryEntry::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_IDictionaryEntry::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_IDictionaryEntry::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::IDictionaryEntry::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_IDictionaryEntry::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_IDictionaryEntry::typecode() -{ - return FoamXServer::_tc_IDictionaryEntry; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_IDictionaryEntry; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::IDictionaryEntry_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_IDictionaryEntry, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::IDictionaryEntry_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_IDictionaryEntry, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::IDictionaryEntry_ptr &_obj ) -{ - FoamXServer::IDictionaryEntry_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_IDictionaryEntry, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IDictionaryEntry - */ - -FoamXServer::IDictionaryEntry_stub::~IDictionaryEntry_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::IDictionaryEntry::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/IDictionaryEntry:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::IDictionaryEntry * -POA_FoamXServer::IDictionaryEntry::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/IDictionaryEntry:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::IDictionaryEntry *) p; - } - return NULL; -} - -FoamXServer::IDictionaryEntry_stub_clp::IDictionaryEntry_stub_clp () -{ -} - -FoamXServer::IDictionaryEntry_stub_clp::IDictionaryEntry_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::IDictionaryEntry_stub_clp::~IDictionaryEntry_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr FoamXServer::IDictionaryEntry_stub::typeDescriptor() -{ - FoamXServer::ITypeDescriptor_ptr _res = FoamXServer::ITypeDescriptor::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - - CORBA::StaticRequest __req( this, "_get_typeDescriptor" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::IDictionaryEntry_stub_clp::typeDescriptor() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - FoamXServer::ITypeDescriptor_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->typeDescriptor(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::typeDescriptor(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::FoamXAny* FoamXServer::IDictionaryEntry_stub::value() -{ - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - - CORBA::StaticRequest __req( this, "_get_value" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::FoamXAny*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::FoamXAny* -FoamXServer::IDictionaryEntry_stub_clp::value() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - FoamXServer::FoamXAny* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->value(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::value(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::value( const FoamXServer::FoamXAny& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - CORBA::StaticRequest __req( this, "_set_value" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::value( const FoamXServer::FoamXAny& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->value(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::value(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::DictionaryEntryList* FoamXServer::IDictionaryEntry_stub::subElements() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_IDictionaryEntry ); - - CORBA::StaticRequest __req( this, "_get_subElements" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::DictionaryEntryList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::DictionaryEntryList* -FoamXServer::IDictionaryEntry_stub_clp::subElements() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - FoamXServer::DictionaryEntryList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->subElements(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::subElements(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::IDictionaryEntry_stub::selection() -{ - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "_get_selection" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::IDictionaryEntry_stub_clp::selection() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->selection(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::selection(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::selection( CORBA::Long _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_long, &_par__value ); - CORBA::StaticRequest __req( this, "_set_selection" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::selection( CORBA::Long _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->selection(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::selection(_par__value); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::setValue( const FoamXServer::FoamXAny& _par_value ) -{ - CORBA::StaticAny _sa_value( _marshaller_FoamXServer_FoamXAny, &_par_value ); - CORBA::StaticRequest __req( this, "setValue" ); - __req.add_in_arg( &_sa_value ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::setValue( const FoamXServer::FoamXAny& _par_value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->setValue(_par_value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::setValue(_par_value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::IDictionaryEntry_stub::nSubElements() -{ - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "nSubElements" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::IDictionaryEntry_stub_clp::nSubElements() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->nSubElements(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::nSubElements(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::IDictionaryEntry_stub::packedList() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "packedList" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::IDictionaryEntry_stub_clp::packedList() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->packedList(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::packedList(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::addElement( FoamXServer::IDictionaryEntry_out _par_subEntry ) -{ - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_IDictionaryEntry, &_par_subEntry.ptr() ); - CORBA::StaticRequest __req( this, "addElement" ); - __req.add_out_arg( &_sa_subEntry ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::addElement( FoamXServer::IDictionaryEntry_out _par_subEntry ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addElement(_par_subEntry); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::addElement(_par_subEntry); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::removeElement( FoamXServer::IDictionaryEntry_ptr _par_subEntry ) -{ - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_IDictionaryEntry, &_par_subEntry ); - CORBA::StaticRequest __req( this, "removeElement" ); - __req.add_in_arg( &_sa_subEntry ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::removeElement( FoamXServer::IDictionaryEntry_ptr _par_subEntry ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->removeElement(_par_subEntry); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::removeElement(_par_subEntry); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::IDictionaryEntry_stub::modified() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "modified" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::IDictionaryEntry_stub_clp::modified() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->modified(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::IDictionaryEntry_stub::modified(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::IDictionaryEntry_stub::save() -{ - CORBA::StaticRequest __req( this, "save" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::IDictionaryEntry_stub_clp::save() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::IDictionaryEntry * _myserv = POA_FoamXServer::IDictionaryEntry::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->save(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::IDictionaryEntry_stub::save(); -} - -#endif // MICO_CONF_NO_POA - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_JobStatus; -} - -void operator<<=( CORBA::Any &_a, const FoamXServer::JobStatus &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobStatus, &_e); - _a.from_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::JobStatus &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobStatus, &_e); - return _a.to_static_any (_sa); -} - -class _Marshaller_FoamXServer_JobStatus : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::JobStatus _MICO_T; - public: - ~_Marshaller_FoamXServer_JobStatus(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_JobStatus::~_Marshaller_FoamXServer_JobStatus() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_JobStatus::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_JobStatus::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_JobStatus::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_JobStatus::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong ul; - if( !dc.enumeration( ul ) ) - return FALSE; - *(_MICO_T*) v = (_MICO_T) ul; - return TRUE; -} - -void _Marshaller_FoamXServer_JobStatus::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.enumeration( (::CORBA::ULong) *(_MICO_T *) v ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_JobStatus::typecode() -{ - return FoamXServer::_tc_JobStatus; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobStatus; - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_MessageType; -} - -void operator<<=( CORBA::Any &_a, const FoamXServer::MessageType &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_MessageType, &_e); - _a.from_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::MessageType &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_MessageType, &_e); - return _a.to_static_any (_sa); -} - -class _Marshaller_FoamXServer_MessageType : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::MessageType _MICO_T; - public: - ~_Marshaller_FoamXServer_MessageType(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_MessageType::~_Marshaller_FoamXServer_MessageType() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_MessageType::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_MessageType::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_MessageType::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_MessageType::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong ul; - if( !dc.enumeration( ul ) ) - return FALSE; - *(_MICO_T*) v = (_MICO_T) ul; - return TRUE; -} - -void _Marshaller_FoamXServer_MessageType::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.enumeration( (::CORBA::ULong) *(_MICO_T *) v ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_MessageType::typecode() -{ - return FoamXServer::_tc_MessageType; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_MessageType; - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_DoubleList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FloatList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_LongList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_Point3; -} - -void operator<<=( CORBA::Any &_a, const FoamXServer::Point3_forany &_const_s ) -{ - _const_s.alloc(); - CORBA::StaticAny _sa (_marshaller__a3_float, _const_s.in()); - _a.from_static_any (_sa); - _const_s.clear(); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::Point3_forany &_s ) -{ - FoamXServer::Point3_slice *p; - if (_a.to_static_any (_marshaller__a3_float, (void *&)p)) { - _s = p; - return TRUE; - } - return FALSE; -} - - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_StringPair; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::StringPair::StringPair() -{ -} - -FoamXServer::StringPair::StringPair( const StringPair& _s ) -{ - name = ((StringPair&)_s).name; - value = ((StringPair&)_s).value; -} - -FoamXServer::StringPair::~StringPair() -{ -} - -FoamXServer::StringPair& -FoamXServer::StringPair::operator=( const StringPair& _s ) -{ - name = ((StringPair&)_s).name; - value = ((StringPair&)_s).value; - return *this; -} -#endif - -class _Marshaller_FoamXServer_StringPair : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::StringPair _MICO_T; - public: - ~_Marshaller_FoamXServer_StringPair(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_StringPair::~_Marshaller_FoamXServer_StringPair() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_StringPair::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_StringPair::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_StringPair::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_StringPair::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->name._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->value._for_demarshal() ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_StringPair::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->name.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->value.inout() ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_StringPair::typecode() -{ - return FoamXServer::_tc_StringPair; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_StringPair; - -void operator<<=( CORBA::Any &_a, const FoamXServer::StringPair &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_StringPair, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::StringPair *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::StringPair &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_StringPair, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::StringPair *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_StringPair, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_StringPairList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_HostDescriptor; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::HostDescriptor::HostDescriptor() -{ -} - -FoamXServer::HostDescriptor::HostDescriptor( const HostDescriptor& _s ) -{ - name = ((HostDescriptor&)_s).name; - alive = ((HostDescriptor&)_s).alive; -} - -FoamXServer::HostDescriptor::~HostDescriptor() -{ -} - -FoamXServer::HostDescriptor& -FoamXServer::HostDescriptor::operator=( const HostDescriptor& _s ) -{ - name = ((HostDescriptor&)_s).name; - alive = ((HostDescriptor&)_s).alive; - return *this; -} -#endif - -class _Marshaller_FoamXServer_HostDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::HostDescriptor _MICO_T; - public: - ~_Marshaller_FoamXServer_HostDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_HostDescriptor::~_Marshaller_FoamXServer_HostDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_HostDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_HostDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_HostDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_HostDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->name._for_demarshal() ) && - CORBA::_stc_boolean->demarshal( dc, &((_MICO_T*)v)->alive ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_HostDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->name.inout() ); - CORBA::_stc_boolean->marshal( ec, &((_MICO_T*)v)->alive ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_HostDescriptor::typecode() -{ - return FoamXServer::_tc_HostDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_HostDescriptor; - -void operator<<=( CORBA::Any &_a, const FoamXServer::HostDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_HostDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::HostDescriptor *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::HostDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_HostDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::HostDescriptor *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_HostDescriptor, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_HostDescriptorList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_ApplicationDescriptor; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::ApplicationDescriptor::ApplicationDescriptor() -{ -} - -FoamXServer::ApplicationDescriptor::ApplicationDescriptor( const ApplicationDescriptor& _s ) -{ - name = ((ApplicationDescriptor&)_s).name; - category = ((ApplicationDescriptor&)_s).category; - path = ((ApplicationDescriptor&)_s).path; - systemClass = ((ApplicationDescriptor&)_s).systemClass; -} - -FoamXServer::ApplicationDescriptor::~ApplicationDescriptor() -{ -} - -FoamXServer::ApplicationDescriptor& -FoamXServer::ApplicationDescriptor::operator=( const ApplicationDescriptor& _s ) -{ - name = ((ApplicationDescriptor&)_s).name; - category = ((ApplicationDescriptor&)_s).category; - path = ((ApplicationDescriptor&)_s).path; - systemClass = ((ApplicationDescriptor&)_s).systemClass; - return *this; -} -#endif - -class _Marshaller_FoamXServer_ApplicationDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::ApplicationDescriptor _MICO_T; - public: - ~_Marshaller_FoamXServer_ApplicationDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_ApplicationDescriptor::~_Marshaller_FoamXServer_ApplicationDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_ApplicationDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_ApplicationDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_ApplicationDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_ApplicationDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->name._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->category._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->path._for_demarshal() ) && - CORBA::_stc_boolean->demarshal( dc, &((_MICO_T*)v)->systemClass ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_ApplicationDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->name.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->category.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->path.inout() ); - CORBA::_stc_boolean->marshal( ec, &((_MICO_T*)v)->systemClass ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_ApplicationDescriptor::typecode() -{ - return FoamXServer::_tc_ApplicationDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_ApplicationDescriptor; - -void operator<<=( CORBA::Any &_a, const FoamXServer::ApplicationDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ApplicationDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::ApplicationDescriptor *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::ApplicationDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_ApplicationDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::ApplicationDescriptor *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_ApplicationDescriptor, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_ApplicationDescriptorList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_CaseDescriptor; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::CaseDescriptor::CaseDescriptor() -{ -} - -FoamXServer::CaseDescriptor::CaseDescriptor( const CaseDescriptor& _s ) -{ - rootDir = ((CaseDescriptor&)_s).rootDir; - rawRootDir = ((CaseDescriptor&)_s).rawRootDir; - caseName = ((CaseDescriptor&)_s).caseName; - app = ((CaseDescriptor&)_s).app; - nProcs = ((CaseDescriptor&)_s).nProcs; - managed = ((CaseDescriptor&)_s).managed; - locked = ((CaseDescriptor&)_s).locked; - error = ((CaseDescriptor&)_s).error; -} - -FoamXServer::CaseDescriptor::~CaseDescriptor() -{ -} - -FoamXServer::CaseDescriptor& -FoamXServer::CaseDescriptor::operator=( const CaseDescriptor& _s ) -{ - rootDir = ((CaseDescriptor&)_s).rootDir; - rawRootDir = ((CaseDescriptor&)_s).rawRootDir; - caseName = ((CaseDescriptor&)_s).caseName; - app = ((CaseDescriptor&)_s).app; - nProcs = ((CaseDescriptor&)_s).nProcs; - managed = ((CaseDescriptor&)_s).managed; - locked = ((CaseDescriptor&)_s).locked; - error = ((CaseDescriptor&)_s).error; - return *this; -} -#endif - -class _Marshaller_FoamXServer_CaseDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseDescriptor _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseDescriptor::~_Marshaller_FoamXServer_CaseDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_CaseDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_CaseDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->rootDir._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->rawRootDir._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->caseName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->app._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->nProcs ) && - CORBA::_stc_boolean->demarshal( dc, &((_MICO_T*)v)->managed ) && - CORBA::_stc_boolean->demarshal( dc, &((_MICO_T*)v)->locked ) && - CORBA::_stc_boolean->demarshal( dc, &((_MICO_T*)v)->error ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_CaseDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->rootDir.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->rawRootDir.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->caseName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->app.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->nProcs ); - CORBA::_stc_boolean->marshal( ec, &((_MICO_T*)v)->managed ); - CORBA::_stc_boolean->marshal( ec, &((_MICO_T*)v)->locked ); - CORBA::_stc_boolean->marshal( ec, &((_MICO_T*)v)->error ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseDescriptor::typecode() -{ - return FoamXServer::_tc_CaseDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseDescriptor; - -void operator<<=( CORBA::Any &_a, const FoamXServer::CaseDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::CaseDescriptor *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::CaseDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::CaseDescriptor *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_CaseDescriptor, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_CaseDescriptorList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_JobID; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::JobID::JobID() -{ -} - -FoamXServer::JobID::JobID( const JobID& _s ) -{ - hostName = ((JobID&)_s).hostName; - processID = ((JobID&)_s).processID; -} - -FoamXServer::JobID::~JobID() -{ -} - -FoamXServer::JobID& -FoamXServer::JobID::operator=( const JobID& _s ) -{ - hostName = ((JobID&)_s).hostName; - processID = ((JobID&)_s).processID; - return *this; -} -#endif - -class _Marshaller_FoamXServer_JobID : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::JobID _MICO_T; - public: - ~_Marshaller_FoamXServer_JobID(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_JobID::~_Marshaller_FoamXServer_JobID() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_JobID::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_JobID::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_JobID::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_JobID::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->hostName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->processID ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_JobID::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->hostName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->processID ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_JobID::typecode() -{ - return FoamXServer::_tc_JobID; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobID; - -void operator<<=( CORBA::Any &_a, const FoamXServer::JobID &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobID, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::JobID *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::JobID &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobID, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::JobID *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_JobID, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_JobIDList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_JobDescriptor; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::JobDescriptor::JobDescriptor() -{ -} - -FoamXServer::JobDescriptor::JobDescriptor( const JobDescriptor& _s ) -{ - jobID = ((JobDescriptor&)_s).jobID; - ppid = ((JobDescriptor&)_s).ppid; - pgid = ((JobDescriptor&)_s).pgid; - startDate = ((JobDescriptor&)_s).startDate; - startTime = ((JobDescriptor&)_s).startTime; - userName = ((JobDescriptor&)_s).userName; - foamVersion = ((JobDescriptor&)_s).foamVersion; - code = ((JobDescriptor&)_s).code; - argList = ((JobDescriptor&)_s).argList; - currentDir = ((JobDescriptor&)_s).currentDir; - rootDir = ((JobDescriptor&)_s).rootDir; - caseName = ((JobDescriptor&)_s).caseName; - nProcs = ((JobDescriptor&)_s).nProcs; - slaves = ((JobDescriptor&)_s).slaves; - nCountedProcs = ((JobDescriptor&)_s).nCountedProcs; - cpuTime = ((JobDescriptor&)_s).cpuTime; - endDate = ((JobDescriptor&)_s).endDate; - endTime = ((JobDescriptor&)_s).endTime; - status = ((JobDescriptor&)_s).status; -} - -FoamXServer::JobDescriptor::~JobDescriptor() -{ -} - -FoamXServer::JobDescriptor& -FoamXServer::JobDescriptor::operator=( const JobDescriptor& _s ) -{ - jobID = ((JobDescriptor&)_s).jobID; - ppid = ((JobDescriptor&)_s).ppid; - pgid = ((JobDescriptor&)_s).pgid; - startDate = ((JobDescriptor&)_s).startDate; - startTime = ((JobDescriptor&)_s).startTime; - userName = ((JobDescriptor&)_s).userName; - foamVersion = ((JobDescriptor&)_s).foamVersion; - code = ((JobDescriptor&)_s).code; - argList = ((JobDescriptor&)_s).argList; - currentDir = ((JobDescriptor&)_s).currentDir; - rootDir = ((JobDescriptor&)_s).rootDir; - caseName = ((JobDescriptor&)_s).caseName; - nProcs = ((JobDescriptor&)_s).nProcs; - slaves = ((JobDescriptor&)_s).slaves; - nCountedProcs = ((JobDescriptor&)_s).nCountedProcs; - cpuTime = ((JobDescriptor&)_s).cpuTime; - endDate = ((JobDescriptor&)_s).endDate; - endTime = ((JobDescriptor&)_s).endTime; - status = ((JobDescriptor&)_s).status; - return *this; -} -#endif - -class _Marshaller_FoamXServer_JobDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::JobDescriptor _MICO_T; - public: - ~_Marshaller_FoamXServer_JobDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_JobDescriptor::~_Marshaller_FoamXServer_JobDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_JobDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_JobDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_JobDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_JobDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - _marshaller_FoamXServer_JobID->demarshal( dc, &((_MICO_T*)v)->jobID ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->ppid ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->pgid ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->startDate._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->startTime._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->userName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->foamVersion._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->code._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->argList._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->currentDir._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->rootDir._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->caseName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->nProcs ) && - _marshaller__seq_FoamXServer_JobID->demarshal( dc, &((_MICO_T*)v)->slaves ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->nCountedProcs ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->cpuTime ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->endDate._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->endTime._for_demarshal() ) && - _marshaller_FoamXServer_JobStatus->demarshal( dc, &((_MICO_T*)v)->status ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_JobDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - _marshaller_FoamXServer_JobID->marshal( ec, &((_MICO_T*)v)->jobID ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->ppid ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->pgid ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->startDate.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->startTime.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->userName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->foamVersion.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->code.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->argList.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->currentDir.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->rootDir.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->caseName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->nProcs ); - _marshaller__seq_FoamXServer_JobID->marshal( ec, &((_MICO_T*)v)->slaves ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->nCountedProcs ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->cpuTime ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->endDate.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->endTime.inout() ); - _marshaller_FoamXServer_JobStatus->marshal( ec, &((_MICO_T*)v)->status ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_JobDescriptor::typecode() -{ - return FoamXServer::_tc_JobDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobDescriptor; - -void operator<<=( CORBA::Any &_a, const FoamXServer::JobDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::JobDescriptor *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::JobDescriptor &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_JobDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::JobDescriptor *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_JobDescriptor, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_JobDescriptorList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_DimensionSet; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::DimensionSet::DimensionSet() -{ -} - -FoamXServer::DimensionSet::DimensionSet( const DimensionSet& _s ) -{ - mass = ((DimensionSet&)_s).mass; - length = ((DimensionSet&)_s).length; - time = ((DimensionSet&)_s).time; - temperature = ((DimensionSet&)_s).temperature; - moles = ((DimensionSet&)_s).moles; - current = ((DimensionSet&)_s).current; - luminousIntensity = ((DimensionSet&)_s).luminousIntensity; -} - -FoamXServer::DimensionSet::~DimensionSet() -{ -} - -FoamXServer::DimensionSet& -FoamXServer::DimensionSet::operator=( const DimensionSet& _s ) -{ - mass = ((DimensionSet&)_s).mass; - length = ((DimensionSet&)_s).length; - time = ((DimensionSet&)_s).time; - temperature = ((DimensionSet&)_s).temperature; - moles = ((DimensionSet&)_s).moles; - current = ((DimensionSet&)_s).current; - luminousIntensity = ((DimensionSet&)_s).luminousIntensity; - return *this; -} -#endif - -class _Marshaller_FoamXServer_DimensionSet : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::DimensionSet _MICO_T; - public: - ~_Marshaller_FoamXServer_DimensionSet(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_DimensionSet::~_Marshaller_FoamXServer_DimensionSet() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_DimensionSet::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_DimensionSet::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_DimensionSet::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_DimensionSet::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - return - dc.struct_begin() && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->mass ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->length ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->time ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->temperature ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->moles ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->current ) && - CORBA::_stc_double->demarshal( dc, &((_MICO_T*)v)->luminousIntensity ) && - dc.struct_end(); -} - -void _Marshaller_FoamXServer_DimensionSet::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.struct_begin(); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->mass ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->length ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->time ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->temperature ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->moles ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->current ); - CORBA::_stc_double->marshal( ec, &((_MICO_T*)v)->luminousIntensity ); - ec.struct_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_DimensionSet::typecode() -{ - return FoamXServer::_tc_DimensionSet; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_DimensionSet; - -void operator<<=( CORBA::Any &_a, const FoamXServer::DimensionSet &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_DimensionSet, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::DimensionSet *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::DimensionSet &_s ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_DimensionSet, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::DimensionSet *&_s ) -{ - return _a.to_static_any (_marshaller_FoamXServer_DimensionSet, (void *&)_s); -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_DimensionSetList; -} - -namespace FoamXServer -{ -CORBA::TypeCodeConst _tc_FoamXSYSError; -} - -#ifdef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXSYSError::FoamXSYSError() -{ -} - -FoamXServer::FoamXSYSError::FoamXSYSError( const FoamXSYSError& _s ) -{ - errorCode = ((FoamXSYSError&)_s).errorCode; - errorMessage = ((FoamXSYSError&)_s).errorMessage; - hostName = ((FoamXSYSError&)_s).hostName; - methodName = ((FoamXSYSError&)_s).methodName; - fileName = ((FoamXSYSError&)_s).fileName; - lineNo = ((FoamXSYSError&)_s).lineNo; -} - -FoamXServer::FoamXSYSError::~FoamXSYSError() -{ -} - -FoamXServer::FoamXSYSError& -FoamXServer::FoamXSYSError::operator=( const FoamXSYSError& _s ) -{ - errorCode = ((FoamXSYSError&)_s).errorCode; - errorMessage = ((FoamXSYSError&)_s).errorMessage; - hostName = ((FoamXSYSError&)_s).hostName; - methodName = ((FoamXSYSError&)_s).methodName; - fileName = ((FoamXSYSError&)_s).fileName; - lineNo = ((FoamXSYSError&)_s).lineNo; - return *this; -} -#endif - -#ifndef HAVE_EXPLICIT_STRUCT_OPS -FoamXServer::FoamXSYSError::FoamXSYSError() -{ -} - -#endif - -FoamXServer::FoamXSYSError::FoamXSYSError( FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2, const char* _m3, const char* _m4, CORBA::Long _m5 ) -{ - errorCode = _m0; - errorMessage = _m1; - hostName = _m2; - methodName = _m3; - fileName = _m4; - lineNo = _m5; -} - -class _Marshaller_FoamXServer_FoamXSYSError : public ::CORBA::StaticTypeInfo { - typedef ::FoamXServer::FoamXSYSError _MICO_T; - public: - ~_Marshaller_FoamXServer_FoamXSYSError(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_FoamXSYSError::~_Marshaller_FoamXServer_FoamXSYSError() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_FoamXSYSError::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller_FoamXServer_FoamXSYSError::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller_FoamXServer_FoamXSYSError::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller_FoamXServer_FoamXSYSError::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - string repoid; - return - dc.except_begin( repoid ) && - _marshaller_FoamXServer_ErrorCode->demarshal( dc, &((_MICO_T*)v)->errorCode ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->errorMessage._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->hostName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->methodName._for_demarshal() ) && - CORBA::_stc_string->demarshal( dc, &((_MICO_T*)v)->fileName._for_demarshal() ) && - CORBA::_stc_long->demarshal( dc, &((_MICO_T*)v)->lineNo ) && - dc.except_end(); -} - -void _Marshaller_FoamXServer_FoamXSYSError::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.except_begin( "IDL:FoamXServer/FoamXSYSError:1.0" ); - _marshaller_FoamXServer_ErrorCode->marshal( ec, &((_MICO_T*)v)->errorCode ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->errorMessage.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->hostName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->methodName.inout() ); - CORBA::_stc_string->marshal( ec, &((_MICO_T*)v)->fileName.inout() ); - CORBA::_stc_long->marshal( ec, &((_MICO_T*)v)->lineNo ); - ec.except_end(); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_FoamXSYSError::typecode() -{ - return FoamXServer::_tc_FoamXSYSError; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXSYSError; - -void operator<<=( CORBA::Any &_a, const FoamXServer::FoamXSYSError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXSYSError, &_e); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, FoamXServer::FoamXSYSError *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, FoamXServer::FoamXSYSError &_e ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_FoamXSYSError, &_e); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const FoamXServer::FoamXSYSError *&_e ) -{ - return _a.to_static_any (_marshaller_FoamXServer_FoamXSYSError, (void *&)_e); -} - -void FoamXServer::FoamXSYSError::_throwit() const -{ - #ifdef HAVE_EXCEPTIONS - #ifdef HAVE_STD_EH - throw *this; - #else - throw FoamXSYSError_var( (FoamXServer::FoamXSYSError*)_clone() ); - #endif - #else - CORBA::Exception::_throw_failed( _clone() ); - #endif -} - -const char *FoamXServer::FoamXSYSError::_repoid() const -{ - return "IDL:FoamXServer/FoamXSYSError:1.0"; -} - -void FoamXServer::FoamXSYSError::_encode( CORBA::DataEncoder &_en ) const -{ - _marshaller_FoamXServer_FoamXSYSError->marshal( _en, (void*) this ); -} - -void FoamXServer::FoamXSYSError::_encode_any( CORBA::Any &_a ) const -{ - _a <<= *this; -} - -CORBA::Exception *FoamXServer::FoamXSYSError::_clone() const -{ - return new FoamXSYSError( *this ); -} - -FoamXServer::FoamXSYSError *FoamXServer::FoamXSYSError::_downcast( CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXSYSError:1.0" ) ) - return (FoamXSYSError *) _ex; - return NULL; -} - -const FoamXServer::FoamXSYSError *FoamXServer::FoamXSYSError::_downcast( const CORBA::Exception *_ex ) -{ - if( _ex && !strcmp( _ex->_repoid(), "IDL:FoamXServer/FoamXSYSError:1.0" ) ) - return (FoamXSYSError *) _ex; - return NULL; -} - - -/* - * Base interface for class ICaseServer - */ - -FoamXServer::CaseServer::ICaseServer::~ICaseServer() -{ -} - -void * -FoamXServer::CaseServer::ICaseServer::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/ICaseServer:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::ICaseServer_ptr -FoamXServer::CaseServer::ICaseServer::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::ICaseServer_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/ICaseServer:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::ICaseServer_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/ICaseServer:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/ICaseServer:1.0")) { - _o = new FoamXServer::CaseServer::ICaseServer_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::ICaseServer_ptr -FoamXServer::CaseServer::ICaseServer::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_ICaseServer; -} -} -class _Marshaller_FoamXServer_CaseServer_ICaseServer : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::ICaseServer_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_ICaseServer(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_ICaseServer::~_Marshaller_FoamXServer_CaseServer_ICaseServer() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_ICaseServer::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_ICaseServer::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::ICaseServer::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_ICaseServer::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_ICaseServer::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_ICaseServer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::ICaseServer::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_ICaseServer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_ICaseServer::typecode() -{ - return FoamXServer::CaseServer::_tc_ICaseServer; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_ICaseServer; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::ICaseServer_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_ICaseServer, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::ICaseServer_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_ICaseServer, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::ICaseServer_ptr &_obj ) -{ - FoamXServer::CaseServer::ICaseServer_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_ICaseServer, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class ICaseServer - */ - -FoamXServer::CaseServer::ICaseServer_stub::~ICaseServer_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::ICaseServer::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/ICaseServer:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::ICaseServer * -POA_FoamXServer::CaseServer::ICaseServer::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/ICaseServer:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::ICaseServer *) p; - } - return NULL; -} - -FoamXServer::CaseServer::ICaseServer_stub_clp::ICaseServer_stub_clp () -{ -} - -FoamXServer::CaseServer::ICaseServer_stub_clp::ICaseServer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::ICaseServer_stub_clp::~ICaseServer_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseServer::ICaseServer_stub::managed() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_managed" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseServer::ICaseServer_stub_clp::managed() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->managed(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::managed(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::managed( CORBA::Boolean _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - CORBA::StaticRequest __req( this, "_set_managed" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::managed( CORBA::Boolean _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->managed(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::managed(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::ICaseServer_stub::caseRoot() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_caseRoot" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::ICaseServer_stub_clp::caseRoot() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->caseRoot(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::caseRoot(); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::ICaseServer_stub::caseName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_caseName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::ICaseServer_stub_clp::caseName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->caseName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::caseName(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::CaseServer::IApplication_ptr FoamXServer::CaseServer::ICaseServer_stub::application() -{ - FoamXServer::CaseServer::IApplication_ptr _res = FoamXServer::CaseServer::IApplication::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IApplication, &_res ); - - CORBA::StaticRequest __req( this, "_get_application" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::CaseServer::IApplication_ptr -FoamXServer::CaseServer::ICaseServer_stub_clp::application() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - FoamXServer::CaseServer::IApplication_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->application(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::application(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::CaseServer::IFoamProperties_ptr FoamXServer::CaseServer::ICaseServer_stub::foamProperties() -{ - FoamXServer::CaseServer::IFoamProperties_ptr _res = FoamXServer::CaseServer::IFoamProperties::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IFoamProperties, &_res ); - - CORBA::StaticRequest __req( this, "_get_foamProperties" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::CaseServer::IFoamProperties_ptr -FoamXServer::CaseServer::ICaseServer_stub_clp::foamProperties() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - FoamXServer::CaseServer::IFoamProperties_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->foamProperties(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::foamProperties(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::ICaseServer_stub::availableTimeSteps() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_availableTimeSteps" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::ICaseServer_stub_clp::availableTimeSteps() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->availableTimeSteps(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::availableTimeSteps(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseServer::ICaseServer_stub::meshDefined() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_meshDefined" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseServer::ICaseServer_stub_clp::meshDefined() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->meshDefined(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::meshDefined(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::ICaseServer_stub::patchNames() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_patchNames" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::ICaseServer_stub_clp::patchNames() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchNames(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::patchNames(); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::ICaseServer_stub::getTime() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "getTime" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::ICaseServer_stub_clp::getTime() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getTime(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::getTime(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::setTime( const char* _par_timeName, CORBA::Long _par_timeIndex ) -{ - CORBA::StaticAny _sa_timeName( CORBA::_stc_string, &_par_timeName ); - CORBA::StaticAny _sa_timeIndex( CORBA::_stc_long, &_par_timeIndex ); - CORBA::StaticRequest __req( this, "setTime" ); - __req.add_in_arg( &_sa_timeName ); - __req.add_in_arg( &_sa_timeIndex ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::setTime( const char* _par_timeName, CORBA::Long _par_timeIndex ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->setTime(_par_timeName, _par_timeIndex); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::setTime(_par_timeName, _par_timeIndex); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::readMesh() -{ - CORBA::StaticRequest __req( this, "readMesh" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::readMesh() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->readMesh(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::readMesh(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::importMesh( const char* _par_hostName, const char* _par_rootDir, const char* _par_caseName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticRequest __req( this, "importMesh" ); - __req.add_in_arg( &_sa_hostName ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::importMesh( const char* _par_hostName, const char* _par_rootDir, const char* _par_caseName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->importMesh(_par_hostName, _par_rootDir, _par_caseName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::importMesh(_par_hostName, _par_rootDir, _par_caseName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::getFieldValues( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricField_out _par_fieldValues ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_fieldValues( _marshaller_FoamXServer_CaseServer_IGeometricField, &_par_fieldValues.ptr() ); - CORBA::StaticRequest __req( this, "getFieldValues" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_out_arg( &_sa_fieldValues ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::getFieldValues( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricField_out _par_fieldValues ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getFieldValues(_par_fieldName, _par_fieldValues); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::getFieldValues(_par_fieldName, _par_fieldValues); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::addPatch( const char* _par_patchName, const char* _par_patchPhysicalType ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType ); - CORBA::StaticRequest __req( this, "addPatch" ); - __req.add_in_arg( &_sa_patchName ); - __req.add_in_arg( &_sa_patchPhysicalType ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::addPatch( const char* _par_patchName, const char* _par_patchPhysicalType ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addPatch(_par_patchName, _par_patchPhysicalType); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::addPatch(_par_patchName, _par_patchPhysicalType); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::deletePatch( const char* _par_patchName ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticRequest __req( this, "deletePatch" ); - __req.add_in_arg( &_sa_patchName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::deletePatch( const char* _par_patchName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deletePatch(_par_patchName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::deletePatch(_par_patchName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::deleteAllPatches() -{ - CORBA::StaticRequest __req( this, "deleteAllPatches" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::deleteAllPatches() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteAllPatches(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::deleteAllPatches(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::setPatchPhysicalType( const char* _par_patchName, const char* _par_patchPhysicalType ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType ); - CORBA::StaticRequest __req( this, "setPatchPhysicalType" ); - __req.add_in_arg( &_sa_patchName ); - __req.add_in_arg( &_sa_patchPhysicalType ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::setPatchPhysicalType( const char* _par_patchName, const char* _par_patchPhysicalType ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->setPatchPhysicalType(_par_patchName, _par_patchPhysicalType); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::setPatchPhysicalType(_par_patchName, _par_patchPhysicalType); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::getPatchPhysicalType( const char* _par_patchName, CORBA::String_out _par_patchPhysicalType ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType.ptr() ); - CORBA::StaticRequest __req( this, "getPatchPhysicalType" ); - __req.add_in_arg( &_sa_patchName ); - __req.add_out_arg( &_sa_patchPhysicalType ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::getPatchPhysicalType( const char* _par_patchName, CORBA::String_out _par_patchPhysicalType ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchPhysicalType(_par_patchName, _par_patchPhysicalType); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::getPatchPhysicalType(_par_patchName, _par_patchPhysicalType); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::getDictionary( const char* _par_dictionaryName, CORBA::Boolean _par_forceRead, FoamXServer::IDictionaryEntry_out _par_dictRoot ) -{ - CORBA::StaticAny _sa_dictionaryName( CORBA::_stc_string, &_par_dictionaryName ); - CORBA::StaticAny _sa_forceRead( CORBA::_stc_boolean, &_par_forceRead ); - CORBA::StaticAny _sa_dictRoot( _marshaller_FoamXServer_IDictionaryEntry, &_par_dictRoot.ptr() ); - CORBA::StaticRequest __req( this, "getDictionary" ); - __req.add_in_arg( &_sa_dictionaryName ); - __req.add_in_arg( &_sa_forceRead ); - __req.add_out_arg( &_sa_dictRoot ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::getDictionary( const char* _par_dictionaryName, CORBA::Boolean _par_forceRead, FoamXServer::IDictionaryEntry_out _par_dictRoot ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getDictionary(_par_dictionaryName, _par_forceRead, _par_dictRoot); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::getDictionary(_par_dictionaryName, _par_forceRead, _par_dictRoot); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::readFile( const char* _par_name, CORBA::String_out _par_contents ) -{ - CORBA::StaticAny _sa_name( CORBA::_stc_string, &_par_name ); - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents.ptr() ); - CORBA::StaticRequest __req( this, "readFile" ); - __req.add_in_arg( &_sa_name ); - __req.add_out_arg( &_sa_contents ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::readFile( const char* _par_name, CORBA::String_out _par_contents ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->readFile(_par_name, _par_contents); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::readFile(_par_name, _par_contents); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::writeFile( const char* _par_name, const char* _par_contents ) -{ - CORBA::StaticAny _sa_name( CORBA::_stc_string, &_par_name ); - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents ); - CORBA::StaticRequest __req( this, "writeFile" ); - __req.add_in_arg( &_sa_name ); - __req.add_in_arg( &_sa_contents ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::writeFile( const char* _par_name, const char* _par_contents ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->writeFile(_par_name, _par_contents); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::writeFile(_par_name, _par_contents); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::CaseServer::ICaseServer_stub::fileModificationDate( const char* _par_fileName ) -{ - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName ); - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "fileModificationDate" ); - __req.add_in_arg( &_sa_fileName ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::CaseServer::ICaseServer_stub_clp::fileModificationDate( const char* _par_fileName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->fileModificationDate(_par_fileName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::fileModificationDate(_par_fileName); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::CaseServer::ICaseServer_stub::runCase( const char* _par_arguments ) -{ - CORBA::StaticAny _sa_arguments( CORBA::_stc_string, &_par_arguments ); - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "runCase" ); - __req.add_in_arg( &_sa_arguments ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::CaseServer::ICaseServer_stub_clp::runCase( const char* _par_arguments ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->runCase(_par_arguments); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::runCase(_par_arguments); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::killCase() -{ - CORBA::StaticRequest __req( this, "killCase" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::killCase() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->killCase(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::killCase(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseServer::ICaseServer_stub::modified() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "modified" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseServer::ICaseServer_stub_clp::modified() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->modified(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::ICaseServer_stub::modified(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::save() -{ - CORBA::StaticRequest __req( this, "save" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::save() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->save(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::save(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::ICaseServer_stub::close() -{ - CORBA::StaticRequest __req( this, "close" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::ICaseServer_stub_clp::close() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::ICaseServer * _myserv = POA_FoamXServer::CaseServer::ICaseServer::_narrow (_serv); - if (_myserv) { - _myserv->close(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::ICaseServer_stub::close(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IFoamProperties - */ - -FoamXServer::CaseServer::IFoamProperties::~IFoamProperties() -{ -} - -void * -FoamXServer::CaseServer::IFoamProperties::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IFoamProperties:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IFoamProperties_ptr -FoamXServer::CaseServer::IFoamProperties::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IFoamProperties_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IFoamProperties:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IFoamProperties_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IFoamProperties:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IFoamProperties:1.0")) { - _o = new FoamXServer::CaseServer::IFoamProperties_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IFoamProperties_ptr -FoamXServer::CaseServer::IFoamProperties::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IFoamProperties; -} -} -class _Marshaller_FoamXServer_CaseServer_IFoamProperties : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IFoamProperties_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IFoamProperties(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IFoamProperties::~_Marshaller_FoamXServer_CaseServer_IFoamProperties() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IFoamProperties::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IFoamProperties::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IFoamProperties::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IFoamProperties::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IFoamProperties::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IFoamProperties::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IFoamProperties::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IFoamProperties::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IFoamProperties::typecode() -{ - return FoamXServer::CaseServer::_tc_IFoamProperties; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IFoamProperties; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IFoamProperties_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IFoamProperties, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IFoamProperties_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IFoamProperties, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IFoamProperties_ptr &_obj ) -{ - FoamXServer::CaseServer::IFoamProperties_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IFoamProperties, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IFoamProperties - */ - -FoamXServer::CaseServer::IFoamProperties_stub::~IFoamProperties_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IFoamProperties::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IFoamProperties:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IFoamProperties * -POA_FoamXServer::CaseServer::IFoamProperties::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IFoamProperties:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IFoamProperties *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IFoamProperties_stub_clp::IFoamProperties_stub_clp () -{ -} - -FoamXServer::CaseServer::IFoamProperties_stub_clp::IFoamProperties_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IFoamProperties_stub_clp::~IFoamProperties_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::availableModules() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_availableModules" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::availableModules() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->availableModules(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::availableModules(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::rootDirectories() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_rootDirectories" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::rootDirectories() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->rootDirectories(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::rootDirectories(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::rawRootDirectories() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_rawRootDirectories" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::rawRootDirectories() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->rawRootDirectories(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::rawRootDirectories(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::foamTypes() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_foamTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::foamTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->foamTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::foamTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::geometryTypes() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_geometryTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::geometryTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->geometryTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::geometryTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::patchTypes() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_patchTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::patchTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::patchTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IFoamProperties_stub::patchFieldTypes() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_patchFieldTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::patchFieldTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchFieldTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::patchFieldTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ApplicationDescriptorList* FoamXServer::CaseServer::IFoamProperties_stub::applicationes() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ApplicationDescriptor ); - - CORBA::StaticRequest __req( this, "_get_applicationes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::ApplicationDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ApplicationDescriptorList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::applicationes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::ApplicationDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->applicationes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::applicationes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ApplicationDescriptorList* FoamXServer::CaseServer::IFoamProperties_stub::utilities() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ApplicationDescriptor ); - - CORBA::StaticRequest __req( this, "_get_utilities" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::ApplicationDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ApplicationDescriptorList* -FoamXServer::CaseServer::IFoamProperties_stub_clp::utilities() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - FoamXServer::ApplicationDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->utilities(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IFoamProperties_stub::utilities(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::addRootDirectory( const char* _par_rawRootDir ) -{ - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir ); - CORBA::StaticRequest __req( this, "addRootDirectory" ); - __req.add_in_arg( &_sa_rawRootDir ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::addRootDirectory( const char* _par_rawRootDir ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addRootDirectory(_par_rawRootDir); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::addRootDirectory(_par_rawRootDir); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::deleteRootDirectory( const char* _par_rawRootDir ) -{ - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir ); - CORBA::StaticRequest __req( this, "deleteRootDirectory" ); - __req.add_in_arg( &_sa_rawRootDir ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::deleteRootDirectory( const char* _par_rawRootDir ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteRootDirectory(_par_rawRootDir); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::deleteRootDirectory(_par_rawRootDir); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getFoamType( const char* _par_foamTypeName, FoamXServer::ITypeDescriptor_out _par_typeDesc ) -{ - CORBA::StaticAny _sa_foamTypeName( CORBA::_stc_string, &_par_foamTypeName ); - CORBA::StaticAny _sa_typeDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_typeDesc.ptr() ); - CORBA::StaticRequest __req( this, "getFoamType" ); - __req.add_in_arg( &_sa_foamTypeName ); - __req.add_out_arg( &_sa_typeDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getFoamType( const char* _par_foamTypeName, FoamXServer::ITypeDescriptor_out _par_typeDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getFoamType(_par_foamTypeName, _par_typeDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getFoamType(_par_foamTypeName, _par_typeDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getGeometryType( const char* _par_geometryTypeName, FoamXServer::CaseServer::IGeometryDescriptor_out _par_geometryDesc ) -{ - CORBA::StaticAny _sa_geometryTypeName( CORBA::_stc_string, &_par_geometryTypeName ); - CORBA::StaticAny _sa_geometryDesc( _marshaller_FoamXServer_CaseServer_IGeometryDescriptor, &_par_geometryDesc.ptr() ); - CORBA::StaticRequest __req( this, "getGeometryType" ); - __req.add_in_arg( &_sa_geometryTypeName ); - __req.add_out_arg( &_sa_geometryDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getGeometryType( const char* _par_geometryTypeName, FoamXServer::CaseServer::IGeometryDescriptor_out _par_geometryDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getGeometryType(_par_geometryTypeName, _par_geometryDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getGeometryType(_par_geometryTypeName, _par_geometryDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getPatchType( const char* _par_patchTypeName, FoamXServer::CaseServer::IPatchDescriptor_out _par_patchDesc ) -{ - CORBA::StaticAny _sa_patchTypeName( CORBA::_stc_string, &_par_patchTypeName ); - CORBA::StaticAny _sa_patchDesc( _marshaller_FoamXServer_CaseServer_IPatchDescriptor, &_par_patchDesc.ptr() ); - CORBA::StaticRequest __req( this, "getPatchType" ); - __req.add_in_arg( &_sa_patchTypeName ); - __req.add_out_arg( &_sa_patchDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getPatchType( const char* _par_patchTypeName, FoamXServer::CaseServer::IPatchDescriptor_out _par_patchDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchType(_par_patchTypeName, _par_patchDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getPatchType(_par_patchTypeName, _par_patchDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::findPatchType( const char* _par_patchTypeName, FoamXServer::CaseServer::IPatchDescriptor_out _par_patchDesc ) -{ - CORBA::StaticAny _sa_patchTypeName( CORBA::_stc_string, &_par_patchTypeName ); - CORBA::StaticAny _sa_patchDesc( _marshaller_FoamXServer_CaseServer_IPatchDescriptor, &_par_patchDesc.ptr() ); - CORBA::StaticRequest __req( this, "findPatchType" ); - __req.add_in_arg( &_sa_patchTypeName ); - __req.add_out_arg( &_sa_patchDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::findPatchType( const char* _par_patchTypeName, FoamXServer::CaseServer::IPatchDescriptor_out _par_patchDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->findPatchType(_par_patchTypeName, _par_patchDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::findPatchType(_par_patchTypeName, _par_patchDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getPatchFieldType( const char* _par_patchFieldTypeName, FoamXServer::ITypeDescriptor_out _par_patchFieldDesc ) -{ - CORBA::StaticAny _sa_patchFieldTypeName( CORBA::_stc_string, &_par_patchFieldTypeName ); - CORBA::StaticAny _sa_patchFieldDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_patchFieldDesc.ptr() ); - CORBA::StaticRequest __req( this, "getPatchFieldType" ); - __req.add_in_arg( &_sa_patchFieldTypeName ); - __req.add_out_arg( &_sa_patchFieldDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getPatchFieldType( const char* _par_patchFieldTypeName, FoamXServer::ITypeDescriptor_out _par_patchFieldDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchFieldType(_par_patchFieldTypeName, _par_patchFieldDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getPatchFieldType(_par_patchFieldTypeName, _par_patchFieldDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::findPatchFieldType( const char* _par_patchFieldTypeName, FoamXServer::ITypeDescriptor_out _par_patchFieldDesc ) -{ - CORBA::StaticAny _sa_patchFieldTypeName( CORBA::_stc_string, &_par_patchFieldTypeName ); - CORBA::StaticAny _sa_patchFieldDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_patchFieldDesc.ptr() ); - CORBA::StaticRequest __req( this, "findPatchFieldType" ); - __req.add_in_arg( &_sa_patchFieldTypeName ); - __req.add_out_arg( &_sa_patchFieldDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::findPatchFieldType( const char* _par_patchFieldTypeName, FoamXServer::ITypeDescriptor_out _par_patchFieldDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->findPatchFieldType(_par_patchFieldTypeName, _par_patchFieldDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::findPatchFieldType(_par_patchFieldTypeName, _par_patchFieldDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getFoamControlDict( FoamXServer::IDictionaryEntry_out _par_controlDict ) -{ - CORBA::StaticAny _sa_controlDict( _marshaller_FoamXServer_IDictionaryEntry, &_par_controlDict.ptr() ); - CORBA::StaticRequest __req( this, "getFoamControlDict" ); - __req.add_out_arg( &_sa_controlDict ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getFoamControlDict( FoamXServer::IDictionaryEntry_out _par_controlDict ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getFoamControlDict(_par_controlDict); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getFoamControlDict(_par_controlDict); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getApplication( const char* _par_appName, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName ); - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app.ptr() ); - CORBA::StaticRequest __req( this, "getApplication" ); - __req.add_in_arg( &_sa_appName ); - __req.add_out_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getApplication( const char* _par_appName, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getApplication(_par_appName, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getApplication(_par_appName, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::addApplication( const char* _par_appName, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName ); - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app.ptr() ); - CORBA::StaticRequest __req( this, "addApplication" ); - __req.add_in_arg( &_sa_appName ); - __req.add_out_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::addApplication( const char* _par_appName, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addApplication(_par_appName, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::addApplication(_par_appName, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::deleteApplication( const char* _par_appName ) -{ - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName ); - CORBA::StaticRequest __req( this, "deleteApplication" ); - __req.add_in_arg( &_sa_appName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::deleteApplication( const char* _par_appName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteApplication(_par_appName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::deleteApplication(_par_appName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::cloneApplication( const char* _par_appNameSrc, const char* _par_appNameDest, const char* _par_appDestPath, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - CORBA::StaticAny _sa_appNameSrc( CORBA::_stc_string, &_par_appNameSrc ); - CORBA::StaticAny _sa_appNameDest( CORBA::_stc_string, &_par_appNameDest ); - CORBA::StaticAny _sa_appDestPath( CORBA::_stc_string, &_par_appDestPath ); - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app.ptr() ); - CORBA::StaticRequest __req( this, "cloneApplication" ); - __req.add_in_arg( &_sa_appNameSrc ); - __req.add_in_arg( &_sa_appNameDest ); - __req.add_in_arg( &_sa_appDestPath ); - __req.add_out_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::cloneApplication( const char* _par_appNameSrc, const char* _par_appNameDest, const char* _par_appDestPath, FoamXServer::CaseServer::IApplication_out _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->cloneApplication(_par_appNameSrc, _par_appNameDest, _par_appDestPath, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::cloneApplication(_par_appNameSrc, _par_appNameDest, _par_appDestPath, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::getUtilityControlDict( const char* _par_utilityName, const char* _par_rootDir, const char* _par_caseName, FoamXServer::IDictionaryEntry_out _par_controlDict ) -{ - CORBA::StaticAny _sa_utilityName( CORBA::_stc_string, &_par_utilityName ); - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_controlDict( _marshaller_FoamXServer_IDictionaryEntry, &_par_controlDict.ptr() ); - CORBA::StaticRequest __req( this, "getUtilityControlDict" ); - __req.add_in_arg( &_sa_utilityName ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_out_arg( &_sa_controlDict ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::getUtilityControlDict( const char* _par_utilityName, const char* _par_rootDir, const char* _par_caseName, FoamXServer::IDictionaryEntry_out _par_controlDict ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getUtilityControlDict(_par_utilityName, _par_rootDir, _par_caseName, _par_controlDict); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::getUtilityControlDict(_par_utilityName, _par_rootDir, _par_caseName, _par_controlDict); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::saveSystemProperties() -{ - CORBA::StaticRequest __req( this, "saveSystemProperties" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::saveSystemProperties() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->saveSystemProperties(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::saveSystemProperties(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IFoamProperties_stub::saveUserProperties() -{ - CORBA::StaticRequest __req( this, "saveUserProperties" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IFoamProperties_stub_clp::saveUserProperties() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IFoamProperties * _myserv = POA_FoamXServer::CaseServer::IFoamProperties::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->saveUserProperties(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IFoamProperties_stub::saveUserProperties(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IApplication - */ - -FoamXServer::CaseServer::IApplication::~IApplication() -{ -} - -void * -FoamXServer::CaseServer::IApplication::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IApplication:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IApplication_ptr -FoamXServer::CaseServer::IApplication::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IApplication_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IApplication:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IApplication_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IApplication:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IApplication:1.0")) { - _o = new FoamXServer::CaseServer::IApplication_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IApplication_ptr -FoamXServer::CaseServer::IApplication::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IApplication; -} -} -class _Marshaller_FoamXServer_CaseServer_IApplication : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IApplication_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IApplication(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IApplication::~_Marshaller_FoamXServer_CaseServer_IApplication() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IApplication::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IApplication::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IApplication::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IApplication::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IApplication::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IApplication::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IApplication::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IApplication::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IApplication::typecode() -{ - return FoamXServer::CaseServer::_tc_IApplication; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IApplication; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IApplication_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IApplication, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IApplication_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IApplication, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IApplication_ptr &_obj ) -{ - FoamXServer::CaseServer::IApplication_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IApplication, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IApplication - */ - -FoamXServer::CaseServer::IApplication_stub::~IApplication_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IApplication::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IApplication:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IApplication * -POA_FoamXServer::CaseServer::IApplication::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IApplication:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IApplication *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IApplication_stub_clp::IApplication_stub_clp () -{ -} - -FoamXServer::CaseServer::IApplication_stub_clp::IApplication_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IApplication_stub_clp::~IApplication_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IApplication_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IApplication_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IApplication_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IApplication_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IApplication_stub::category() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_category" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IApplication_stub_clp::category() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->category(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::category(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::category( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_category" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::category( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->category(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::category(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IApplication_stub::modules() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_modules" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IApplication_stub_clp::modules() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->modules(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::modules(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::modules( const FoamXServer::StringList& _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stcseq_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_modules" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::modules( const FoamXServer::StringList& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->modules(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::modules(_par__value); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseServer::IApplication_stub::systemClass() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "_get_systemClass" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseServer::IApplication_stub_clp::systemClass() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->systemClass(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::systemClass(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IApplication_stub::fields() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_fields" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IApplication_stub_clp::fields() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->fields(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::fields(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IApplication_stub::patchPhysicalTypes() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_patchPhysicalTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IApplication_stub_clp::patchPhysicalTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchPhysicalTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::patchPhysicalTypes(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CaseServer::IApplication_stub::dictionaries() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_dictionaries" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CaseServer::IApplication_stub_clp::dictionaries() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->dictionaries(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IApplication_stub::dictionaries(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::getField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "getField" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_out_arg( &_sa_fieldDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::getField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getField(_par_fieldName, _par_fieldDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::getField(_par_fieldName, _par_fieldDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::findField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "findField" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_out_arg( &_sa_fieldDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::findField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->findField(_par_fieldName, _par_fieldDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::findField(_par_fieldName, _par_fieldDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::addField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "addField" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_out_arg( &_sa_fieldDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::addField( const char* _par_fieldName, FoamXServer::CaseServer::IGeometricFieldDescriptor_out _par_fieldDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addField(_par_fieldName, _par_fieldDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::addField(_par_fieldName, _par_fieldDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::deleteField( const char* _par_fieldName ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticRequest __req( this, "deleteField" ); - __req.add_in_arg( &_sa_fieldName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::deleteField( const char* _par_fieldName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteField(_par_fieldName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::deleteField(_par_fieldName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::getPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName ); - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "getPatchPhysicalType" ); - __req.add_in_arg( &_sa_patchPhysicalTypeName ); - __req.add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::getPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::getPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::findPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName ); - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "findPatchPhysicalType" ); - __req.add_in_arg( &_sa_patchPhysicalTypeName ); - __req.add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::findPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->findPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::findPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::addPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName ); - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "addPatchPhysicalType" ); - __req.add_in_arg( &_sa_patchPhysicalTypeName ); - __req.add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::addPatchPhysicalType( const char* _par_patchPhysicalTypeName, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out _par_patchPhysicalTypeDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::addPatchPhysicalType(_par_patchPhysicalTypeName, _par_patchPhysicalTypeDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::deletePatchPhysicalType( const char* _par_patchPhysicalTypeName ) -{ - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName ); - CORBA::StaticRequest __req( this, "deletePatchPhysicalType" ); - __req.add_in_arg( &_sa_patchPhysicalTypeName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::deletePatchPhysicalType( const char* _par_patchPhysicalTypeName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deletePatchPhysicalType(_par_patchPhysicalTypeName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::deletePatchPhysicalType(_par_patchPhysicalTypeName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::getDictionary( const char* _par_dictName, FoamXServer::ITypeDescriptor_out _par_dictTypeDescriptor ) -{ - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName ); - CORBA::StaticAny _sa_dictTypeDescriptor( _marshaller_FoamXServer_ITypeDescriptor, &_par_dictTypeDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "getDictionary" ); - __req.add_in_arg( &_sa_dictName ); - __req.add_out_arg( &_sa_dictTypeDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::getDictionary( const char* _par_dictName, FoamXServer::ITypeDescriptor_out _par_dictTypeDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getDictionary(_par_dictName, _par_dictTypeDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::getDictionary(_par_dictName, _par_dictTypeDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::addDictionary( const char* _par_dictName, FoamXServer::ITypeDescriptor_out _par_dictTypeDescriptor ) -{ - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName ); - CORBA::StaticAny _sa_dictTypeDescriptor( _marshaller_FoamXServer_ITypeDescriptor, &_par_dictTypeDescriptor.ptr() ); - CORBA::StaticRequest __req( this, "addDictionary" ); - __req.add_in_arg( &_sa_dictName ); - __req.add_out_arg( &_sa_dictTypeDescriptor ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::addDictionary( const char* _par_dictName, FoamXServer::ITypeDescriptor_out _par_dictTypeDescriptor ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addDictionary(_par_dictName, _par_dictTypeDescriptor); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::addDictionary(_par_dictName, _par_dictTypeDescriptor); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::deleteDictionary( const char* _par_dictName ) -{ - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName ); - CORBA::StaticRequest __req( this, "deleteDictionary" ); - __req.add_in_arg( &_sa_dictName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::deleteDictionary( const char* _par_dictName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteDictionary(_par_dictName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::deleteDictionary(_par_dictName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IApplication_stub::save() -{ - CORBA::StaticRequest __req( this, "save" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IApplication_stub_clp::save() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IApplication * _myserv = POA_FoamXServer::CaseServer::IApplication::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->save(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IApplication_stub::save(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IGeometricFieldDescriptor - */ - -FoamXServer::CaseServer::IGeometricFieldDescriptor::~IGeometricFieldDescriptor() -{ -} - -void * -FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr -FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0")) { - _o = new FoamXServer::CaseServer::IGeometricFieldDescriptor_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr -FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IGeometricFieldDescriptor; -} -} -class _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::~_Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IGeometricFieldDescriptor::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor::typecode() -{ - return FoamXServer::CaseServer::_tc_IGeometricFieldDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr &_obj ) -{ - FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IGeometricFieldDescriptor - */ - -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::~IGeometricFieldDescriptor_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IGeometricFieldDescriptor *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::IGeometricFieldDescriptor_stub_clp () -{ -} - -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::IGeometricFieldDescriptor_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::~IGeometricFieldDescriptor_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::typeDescriptor() -{ - FoamXServer::ITypeDescriptor_ptr _res = FoamXServer::ITypeDescriptor::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - - CORBA::StaticRequest __req( this, "_get_typeDescriptor" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::typeDescriptor() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::ITypeDescriptor_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->typeDescriptor(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::typeDescriptor(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeDescriptor() -{ - FoamXServer::ITypeDescriptor_ptr _res = FoamXServer::ITypeDescriptor::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - - CORBA::StaticRequest __req( this, "_get_fieldTypeDescriptor" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::ITypeDescriptor_ptr -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::fieldTypeDescriptor() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::ITypeDescriptor_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->fieldTypeDescriptor(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeDescriptor(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::CaseServer::IGeometryDescriptor_ptr FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryDescriptor() -{ - FoamXServer::CaseServer::IGeometryDescriptor_ptr _res = FoamXServer::CaseServer::IGeometryDescriptor::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IGeometryDescriptor, &_res ); - - CORBA::StaticRequest __req( this, "_get_geometryDescriptor" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::CaseServer::IGeometryDescriptor_ptr -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::geometryDescriptor() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::CaseServer::IGeometryDescriptor_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->geometryDescriptor(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryDescriptor(); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_fieldTypeName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::fieldTypeName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->fieldTypeName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_fieldTypeName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::fieldTypeName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->fieldTypeName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::fieldTypeName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryTypeName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_geometryTypeName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::geometryTypeName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->geometryTypeName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryTypeName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryTypeName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_geometryTypeName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::geometryTypeName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->geometryTypeName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::geometryTypeName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::DimensionSet FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::dimensions() -{ - FoamXServer::DimensionSet _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_DimensionSet, &_res ); - - CORBA::StaticRequest __req( this, "_get_dimensions" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::DimensionSet -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::dimensions() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::DimensionSet __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->dimensions(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::dimensions(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::dimensions( const FoamXServer::DimensionSet& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_DimensionSet, &_par__value ); - CORBA::StaticRequest __req( this, "_set_dimensions" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp::dimensions( const FoamXServer::DimensionSet& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricFieldDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->dimensions(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricFieldDescriptor_stub::dimensions(_par__value); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IPatchDescriptor - */ - -FoamXServer::CaseServer::IPatchDescriptor::~IPatchDescriptor() -{ -} - -void * -FoamXServer::CaseServer::IPatchDescriptor::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IPatchDescriptor_ptr -FoamXServer::CaseServer::IPatchDescriptor::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IPatchDescriptor_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IPatchDescriptor_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0")) { - _o = new FoamXServer::CaseServer::IPatchDescriptor_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IPatchDescriptor_ptr -FoamXServer::CaseServer::IPatchDescriptor::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IPatchDescriptor; -} -} -class _Marshaller_FoamXServer_CaseServer_IPatchDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IPatchDescriptor_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IPatchDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IPatchDescriptor::~_Marshaller_FoamXServer_CaseServer_IPatchDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IPatchDescriptor::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IPatchDescriptor::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IPatchDescriptor::typecode() -{ - return FoamXServer::CaseServer::_tc_IPatchDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IPatchDescriptor; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IPatchDescriptor_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IPatchDescriptor, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IPatchDescriptor_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IPatchDescriptor, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IPatchDescriptor_ptr &_obj ) -{ - FoamXServer::CaseServer::IPatchDescriptor_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IPatchDescriptor, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IPatchDescriptor - */ - -FoamXServer::CaseServer::IPatchDescriptor_stub::~IPatchDescriptor_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IPatchDescriptor * -POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IPatchDescriptor *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::IPatchDescriptor_stub_clp () -{ -} - -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::IPatchDescriptor_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::~IPatchDescriptor_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchDescriptor_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchDescriptor_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchDescriptor_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchDescriptor_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchDescriptor_stub::displayName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_displayName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::displayName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->displayName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchDescriptor_stub::displayName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchDescriptor_stub::displayName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_displayName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::displayName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->displayName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchDescriptor_stub::displayName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchDescriptor_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchDescriptor_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchDescriptor_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchDescriptor_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchDescriptor_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IGeometryDescriptor - */ - -FoamXServer::CaseServer::IGeometryDescriptor::~IGeometryDescriptor() -{ -} - -void * -FoamXServer::CaseServer::IGeometryDescriptor::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IGeometryDescriptor_ptr -FoamXServer::CaseServer::IGeometryDescriptor::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IGeometryDescriptor_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IGeometryDescriptor_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0")) { - _o = new FoamXServer::CaseServer::IGeometryDescriptor_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IGeometryDescriptor_ptr -FoamXServer::CaseServer::IGeometryDescriptor::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IGeometryDescriptor; -} -} -class _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IGeometryDescriptor_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IGeometryDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::~_Marshaller_FoamXServer_CaseServer_IGeometryDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IGeometryDescriptor::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IGeometryDescriptor::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor::typecode() -{ - return FoamXServer::CaseServer::_tc_IGeometryDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometryDescriptor; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IGeometryDescriptor_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometryDescriptor, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IGeometryDescriptor_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometryDescriptor, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IGeometryDescriptor_ptr &_obj ) -{ - FoamXServer::CaseServer::IGeometryDescriptor_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IGeometryDescriptor, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IGeometryDescriptor - */ - -FoamXServer::CaseServer::IGeometryDescriptor_stub::~IGeometryDescriptor_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IGeometryDescriptor * -POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IGeometryDescriptor *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::IGeometryDescriptor_stub_clp () -{ -} - -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::IGeometryDescriptor_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::~IGeometryDescriptor_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometryDescriptor_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometryDescriptor_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometryDescriptor_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometryDescriptor_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometryDescriptor_stub::displayName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_displayName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::displayName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->displayName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometryDescriptor_stub::displayName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometryDescriptor_stub::displayName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_displayName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::displayName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->displayName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometryDescriptor_stub::displayName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometryDescriptor_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometryDescriptor_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometryDescriptor_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometryDescriptor_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometryDescriptor * _myserv = POA_FoamXServer::CaseServer::IGeometryDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometryDescriptor_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IPatchPhysicalTypeDescriptor - */ - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::~IPatchPhysicalTypeDescriptor() -{ -} - -void * -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0")) { - _o = new FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IPatchPhysicalTypeDescriptor; -} -} -class _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::~_Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor::typecode() -{ - return FoamXServer::CaseServer::_tc_IPatchPhysicalTypeDescriptor; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr &_obj ) -{ - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IPatchPhysicalTypeDescriptor - */ - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::~IPatchPhysicalTypeDescriptor_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::IPatchPhysicalTypeDescriptor_stub_clp () -{ -} - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::IPatchPhysicalTypeDescriptor_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::~IPatchPhysicalTypeDescriptor_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::name( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_name" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::name( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->name(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::name(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::displayName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_displayName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::displayName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->displayName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::displayName(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::displayName( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_displayName" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::displayName( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->displayName(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::displayName(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::description() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_description" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::description() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->description(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::description(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::description( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_description" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::description( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->description(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::description(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchType() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_patchType" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::patchType() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchType(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchType(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchType( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_patchType" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::patchType( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->patchType(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchType(_par__value); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::parentType() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_parentType" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::parentType() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->parentType(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::parentType(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::parentType( const char* _par__value ) -{ - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value ); - CORBA::StaticRequest __req( this, "_set_parentType" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::parentType( const char* _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->parentType(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::parentType(_par__value); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringPairList* FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchFieldTypes() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_StringPair ); - - CORBA::StaticRequest __req( this, "_get_patchFieldTypes" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringPairList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringPairList* -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::patchFieldTypes() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - FoamXServer::StringPairList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->patchFieldTypes(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchFieldTypes(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchFieldTypes( const FoamXServer::StringPairList& _par__value ) -{ - CORBA::StaticAny _sa__value( _marshaller__seq_FoamXServer_StringPair, &_par__value ); - CORBA::StaticRequest __req( this, "_set_patchFieldTypes" ); - __req.add_in_arg( &_sa__value ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp::patchFieldTypes( const FoamXServer::StringPairList& _par__value ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor * _myserv = POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->patchFieldTypes(_par__value); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub::patchFieldTypes(_par__value); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IGeometricField - */ - -FoamXServer::CaseServer::IGeometricField::~IGeometricField() -{ -} - -void * -FoamXServer::CaseServer::IGeometricField::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseServer/IGeometricField:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseServer::IGeometricField_ptr -FoamXServer::CaseServer::IGeometricField::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseServer::IGeometricField_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseServer/IGeometricField:1.0" ))) - return _duplicate( (FoamXServer::CaseServer::IGeometricField_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseServer/IGeometricField:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseServer/IGeometricField:1.0")) { - _o = new FoamXServer::CaseServer::IGeometricField_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseServer::IGeometricField_ptr -FoamXServer::CaseServer::IGeometricField::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseServer -{ -CORBA::TypeCodeConst _tc_IGeometricField; -} -} -class _Marshaller_FoamXServer_CaseServer_IGeometricField : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseServer::IGeometricField_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseServer_IGeometricField(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseServer_IGeometricField::~_Marshaller_FoamXServer_CaseServer_IGeometricField() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseServer_IGeometricField::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricField::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseServer::IGeometricField::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricField::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricField::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseServer_IGeometricField::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseServer::IGeometricField::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseServer_IGeometricField::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseServer_IGeometricField::typecode() -{ - return FoamXServer::CaseServer::_tc_IGeometricField; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometricField; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseServer::IGeometricField_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometricField, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseServer::IGeometricField_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseServer_IGeometricField, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseServer::IGeometricField_ptr &_obj ) -{ - FoamXServer::CaseServer::IGeometricField_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseServer_IGeometricField, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IGeometricField - */ - -FoamXServer::CaseServer::IGeometricField_stub::~IGeometricField_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseServer::IGeometricField::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometricField:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseServer::IGeometricField * -POA_FoamXServer::CaseServer::IGeometricField::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseServer/IGeometricField:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseServer::IGeometricField *) p; - } - return NULL; -} - -FoamXServer::CaseServer::IGeometricField_stub_clp::IGeometricField_stub_clp () -{ -} - -FoamXServer::CaseServer::IGeometricField_stub_clp::IGeometricField_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseServer::IGeometricField_stub_clp::~IGeometricField_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CaseServer::IGeometricField_stub::name() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_name" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CaseServer::IGeometricField_stub_clp::name() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricField * _myserv = POA_FoamXServer::CaseServer::IGeometricField::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->name(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricField_stub::name(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricField_stub::getInternalFieldValue( FoamXServer::IDictionaryEntry_out _par_internalFieldValue ) -{ - CORBA::StaticAny _sa_internalFieldValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_internalFieldValue.ptr() ); - CORBA::StaticRequest __req( this, "getInternalFieldValue" ); - __req.add_out_arg( &_sa_internalFieldValue ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricField_stub_clp::getInternalFieldValue( FoamXServer::IDictionaryEntry_out _par_internalFieldValue ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricField * _myserv = POA_FoamXServer::CaseServer::IGeometricField::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getInternalFieldValue(_par_internalFieldValue); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricField_stub::getInternalFieldValue(_par_internalFieldValue); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseServer::IGeometricField_stub::getPatchFieldParameters( const char* _par_patchName, FoamXServer::IDictionaryEntry_out _par_patchFieldValue ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_patchFieldValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_patchFieldValue.ptr() ); - CORBA::StaticRequest __req( this, "getPatchFieldParameters" ); - __req.add_in_arg( &_sa_patchName ); - __req.add_out_arg( &_sa_patchFieldValue ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseServer::IGeometricField_stub_clp::getPatchFieldParameters( const char* _par_patchName, FoamXServer::IDictionaryEntry_out _par_patchFieldValue ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricField * _myserv = POA_FoamXServer::CaseServer::IGeometricField::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchFieldParameters(_par_patchName, _par_patchFieldValue); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseServer::IGeometricField_stub::getPatchFieldParameters(_par_patchName, _par_patchFieldValue); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseServer::IGeometricField_stub::modified() -{ - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "modified" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseServer::IGeometricField_stub_clp::modified() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseServer::IGeometricField * _myserv = POA_FoamXServer::CaseServer::IGeometricField::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->modified(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseServer::IGeometricField_stub::modified(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class ICasePostServer - */ - -FoamXServer::CasePostServer::ICasePostServer::~ICasePostServer() -{ -} - -void * -FoamXServer::CasePostServer::ICasePostServer::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CasePostServer::ICasePostServer_ptr -FoamXServer::CasePostServer::ICasePostServer::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CasePostServer::ICasePostServer_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0" ))) - return _duplicate( (FoamXServer::CasePostServer::ICasePostServer_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CasePostServer/ICasePostServer:1.0")) { - _o = new FoamXServer::CasePostServer::ICasePostServer_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CasePostServer::ICasePostServer_ptr -FoamXServer::CasePostServer::ICasePostServer::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CasePostServer -{ -CORBA::TypeCodeConst _tc_ICasePostServer; -} -} -class _Marshaller_FoamXServer_CasePostServer_ICasePostServer : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CasePostServer::ICasePostServer_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CasePostServer_ICasePostServer(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CasePostServer_ICasePostServer::~_Marshaller_FoamXServer_CasePostServer_ICasePostServer() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CasePostServer_ICasePostServer::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CasePostServer_ICasePostServer::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CasePostServer::ICasePostServer::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CasePostServer_ICasePostServer::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CasePostServer_ICasePostServer::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CasePostServer_ICasePostServer::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CasePostServer::ICasePostServer::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CasePostServer_ICasePostServer::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CasePostServer_ICasePostServer::typecode() -{ - return FoamXServer::CasePostServer::_tc_ICasePostServer; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CasePostServer_ICasePostServer; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CasePostServer::ICasePostServer_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CasePostServer_ICasePostServer, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CasePostServer::ICasePostServer_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CasePostServer_ICasePostServer, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CasePostServer::ICasePostServer_ptr &_obj ) -{ - FoamXServer::CasePostServer::ICasePostServer_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CasePostServer_ICasePostServer, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class ICasePostServer - */ - -FoamXServer::CasePostServer::ICasePostServer_stub::~ICasePostServer_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CasePostServer::ICasePostServer::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CasePostServer::ICasePostServer * -POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CasePostServer/ICasePostServer:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CasePostServer::ICasePostServer *) p; - } - return NULL; -} - -FoamXServer::CasePostServer::ICasePostServer_stub_clp::ICasePostServer_stub_clp () -{ -} - -FoamXServer::CasePostServer::ICasePostServer_stub_clp::ICasePostServer_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CasePostServer::ICasePostServer_stub_clp::~ICasePostServer_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CasePostServer::ICasePostServer_stub::caseRoot() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_caseRoot" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CasePostServer::ICasePostServer_stub_clp::caseRoot() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->caseRoot(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::caseRoot(); -} - -#endif // MICO_CONF_NO_POA - -char* FoamXServer::CasePostServer::ICasePostServer_stub::caseName() -{ - char* _res = NULL; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - - CORBA::StaticRequest __req( this, "_get_caseName" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -char* -FoamXServer::CasePostServer::ICasePostServer_stub_clp::caseName() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - char* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->caseName(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::caseName(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::CasePostServer::ICasePostServer_stub::nProcs() -{ - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "_get_nProcs" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::CasePostServer::ICasePostServer_stub_clp::nProcs() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->nProcs(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::nProcs(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CasePostServer::ICasePostServer_stub::availableTimeSteps() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "_get_availableTimeSteps" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CasePostServer::ICasePostServer_stub_clp::availableTimeSteps() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->availableTimeSteps(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::availableTimeSteps(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::setTime( const char* _par_timeName, CORBA::Long _par_timeIndex ) -{ - CORBA::StaticAny _sa_timeName( CORBA::_stc_string, &_par_timeName ); - CORBA::StaticAny _sa_timeIndex( CORBA::_stc_long, &_par_timeIndex ); - CORBA::StaticRequest __req( this, "setTime" ); - __req.add_in_arg( &_sa_timeName ); - __req.add_in_arg( &_sa_timeIndex ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::setTime( const char* _par_timeName, CORBA::Long _par_timeIndex ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->setTime(_par_timeName, _par_timeIndex); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::setTime(_par_timeName, _par_timeIndex); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::setTimeSlave() -{ - CORBA::StaticRequest __req( this, "setTimeSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::setTimeSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->setTimeSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::setTimeSlave(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CasePostServer::ICasePostServer_stub::getPatchNames() -{ - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "getPatchNames" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getPatchNames() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getPatchNames(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::getPatchNames(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getPatchNamesSlave() -{ - CORBA::StaticRequest __req( this, "getPatchNamesSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getPatchNamesSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getPatchNamesSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getPatchNamesSlave(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::StringList* FoamXServer::CasePostServer::ICasePostServer_stub::getFieldNames( const char* _par_type ) -{ - CORBA::StaticAny _sa_type( CORBA::_stc_string, &_par_type ); - CORBA::StaticAny __res( CORBA::_stcseq_string ); - - CORBA::StaticRequest __req( this, "getFieldNames" ); - __req.add_in_arg( &_sa_type ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return (FoamXServer::StringList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::StringList* -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getFieldNames( const char* _par_type ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - FoamXServer::StringList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getFieldNames(_par_type); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CasePostServer::ICasePostServer_stub::getFieldNames(_par_type); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getMeshBb( FoamXServer::Point3_out _par_min, FoamXServer::Point3_out _par_max ) -{ - CORBA::StaticAny _sa_min( _marshaller__a3_float, _par_min ); - CORBA::StaticAny _sa_max( _marshaller__a3_float, _par_max ); - CORBA::StaticRequest __req( this, "getMeshBb" ); - __req.add_out_arg( &_sa_min ); - __req.add_out_arg( &_sa_max ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getMeshBb( FoamXServer::Point3_out _par_min, FoamXServer::Point3_out _par_max ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getMeshBb(_par_min, _par_max); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getMeshBb(_par_min, _par_max); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getMeshBbSlave() -{ - CORBA::StaticRequest __req( this, "getMeshBbSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getMeshBbSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getMeshBbSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getMeshBbSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getPatchMesh( const char* _par_patchName, CORBA::Double _par_creaseAngle, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_creaseAngle( CORBA::_stc_double, &_par_creaseAngle ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - CORBA::StaticRequest __req( this, "getPatchMesh" ); - __req.add_in_arg( &_sa_patchName ); - __req.add_in_arg( &_sa_creaseAngle ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_edges ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_edges = (FoamXServer::LongList*) _sa_edges._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getPatchMesh( const char* _par_patchName, CORBA::Double _par_creaseAngle, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getPatchMesh(_par_patchName, _par_creaseAngle, _par_points, _par_edges); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getPatchMesh(_par_patchName, _par_creaseAngle, _par_points, _par_edges); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getPatchMeshSlave() -{ - CORBA::StaticRequest __req( this, "getPatchMeshSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getPatchMeshSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getPatchMeshSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getPatchMeshSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getCutMesh( const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - CORBA::StaticRequest __req( this, "getCutMesh" ); - __req.add_in_arg( &_sa_basePoint ); - __req.add_in_arg( &_sa_normal ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_edges ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_edges = (FoamXServer::LongList*) _sa_edges._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getCutMesh( const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getCutMesh(_par_basePoint, _par_normal, _par_points, _par_edges); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getCutMesh(_par_basePoint, _par_normal, _par_points, _par_edges); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshSlave() -{ - CORBA::StaticRequest __req( this, "getCutMeshSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getCutMeshSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getCutMeshSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshOutline( const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - CORBA::StaticRequest __req( this, "getCutMeshOutline" ); - __req.add_in_arg( &_sa_basePoint ); - __req.add_in_arg( &_sa_normal ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_edges ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_edges = (FoamXServer::LongList*) _sa_edges._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getCutMeshOutline( const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_edges ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getCutMeshOutline(_par_basePoint, _par_normal, _par_points, _par_edges); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshOutline(_par_basePoint, _par_normal, _par_points, _par_edges); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshOutlineSlave() -{ - CORBA::StaticRequest __req( this, "getCutMeshOutlineSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getCutMeshOutlineSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getCutMeshOutlineSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getCutMeshOutlineSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatch( const char* _par_fieldName, const char* _par_patchName, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - CORBA::StaticRequest __req( this, "getTriPatch" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_in_arg( &_sa_patchName ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_triFaces ); - __req.add_out_arg( &_sa_values ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_triFaces = (FoamXServer::LongList*) _sa_triFaces._retn(); - _par_values = (FoamXServer::FloatList*) _sa_values._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getTriPatch( const char* _par_fieldName, const char* _par_patchName, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getTriPatch(_par_fieldName, _par_patchName, _par_points, _par_triFaces, _par_values); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatch(_par_fieldName, _par_patchName, _par_points, _par_triFaces, _par_values); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchSlave() -{ - CORBA::StaticRequest __req( this, "getTriPatchSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getTriPatchSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getTriPatchSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchVec( const char* _par_fieldName, const char* _par_patchName, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - CORBA::StaticRequest __req( this, "getTriPatchVec" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_in_arg( &_sa_patchName ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_triFaces ); - __req.add_out_arg( &_sa_values ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_triFaces = (FoamXServer::LongList*) _sa_triFaces._retn(); - _par_values = (FoamXServer::FloatList*) _sa_values._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getTriPatchVec( const char* _par_fieldName, const char* _par_patchName, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getTriPatchVec(_par_fieldName, _par_patchName, _par_points, _par_triFaces, _par_values); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchVec(_par_fieldName, _par_patchName, _par_points, _par_triFaces, _par_values); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchVecSlave() -{ - CORBA::StaticRequest __req( this, "getTriPatchVecSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::getTriPatchVecSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->getTriPatchVecSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::getTriPatchVecSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::cutPlane( const char* _par_fieldName, const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - CORBA::StaticRequest __req( this, "cutPlane" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_in_arg( &_sa_basePoint ); - __req.add_in_arg( &_sa_normal ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_triFaces ); - __req.add_out_arg( &_sa_values ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_triFaces = (FoamXServer::LongList*) _sa_triFaces._retn(); - _par_values = (FoamXServer::FloatList*) _sa_values._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::cutPlane( const char* _par_fieldName, const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->cutPlane(_par_fieldName, _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::cutPlane(_par_fieldName, _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneSlave() -{ - CORBA::StaticRequest __req( this, "cutPlaneSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::cutPlaneSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->cutPlaneSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneVec( const char* _par_fieldName, const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName ); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - CORBA::StaticRequest __req( this, "cutPlaneVec" ); - __req.add_in_arg( &_sa_fieldName ); - __req.add_in_arg( &_sa_basePoint ); - __req.add_in_arg( &_sa_normal ); - __req.add_out_arg( &_sa_points ); - __req.add_out_arg( &_sa_triFaces ); - __req.add_out_arg( &_sa_values ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - _par_points = (FoamXServer::FloatList*) _sa_points._retn(); - _par_triFaces = (FoamXServer::LongList*) _sa_triFaces._retn(); - _par_values = (FoamXServer::FloatList*) _sa_values._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::cutPlaneVec( const char* _par_fieldName, const FoamXServer::Point3 _par_basePoint, const FoamXServer::Point3 _par_normal, FoamXServer::FloatList_out _par_points, FoamXServer::LongList_out _par_triFaces, FoamXServer::FloatList_out _par_values ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->cutPlaneVec(_par_fieldName, _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneVec(_par_fieldName, _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneVecSlave() -{ - CORBA::StaticRequest __req( this, "cutPlaneVecSlave" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::cutPlaneVecSlave() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->cutPlaneVecSlave(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::cutPlaneVecSlave(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CasePostServer::ICasePostServer_stub::close() -{ - CORBA::StaticRequest __req( this, "close" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CasePostServer::ICasePostServer_stub_clp::close() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CasePostServer::ICasePostServer * _myserv = POA_FoamXServer::CasePostServer::ICasePostServer::_narrow (_serv); - if (_myserv) { - _myserv->close(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CasePostServer::ICasePostServer_stub::close(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class ICaseBrowser - */ - -FoamXServer::CaseBrowser::ICaseBrowser::~ICaseBrowser() -{ -} - -void * -FoamXServer::CaseBrowser::ICaseBrowser::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::CaseBrowser::ICaseBrowser_ptr -FoamXServer::CaseBrowser::ICaseBrowser::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::CaseBrowser::ICaseBrowser_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0" ))) - return _duplicate( (FoamXServer::CaseBrowser::ICaseBrowser_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0")) { - _o = new FoamXServer::CaseBrowser::ICaseBrowser_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::CaseBrowser::ICaseBrowser_ptr -FoamXServer::CaseBrowser::ICaseBrowser::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace CaseBrowser -{ -CORBA::TypeCodeConst _tc_ICaseBrowser; -} -} -class _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::CaseBrowser::ICaseBrowser_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_CaseBrowser_ICaseBrowser(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::~_Marshaller_FoamXServer_CaseBrowser_ICaseBrowser() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::CaseBrowser::ICaseBrowser::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::CaseBrowser::ICaseBrowser::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser::typecode() -{ - return FoamXServer::CaseBrowser::_tc_ICaseBrowser; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseBrowser_ICaseBrowser; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::CaseBrowser::ICaseBrowser_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseBrowser_ICaseBrowser, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::CaseBrowser::ICaseBrowser_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_CaseBrowser_ICaseBrowser, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::CaseBrowser::ICaseBrowser_ptr &_obj ) -{ - FoamXServer::CaseBrowser::ICaseBrowser_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_CaseBrowser_ICaseBrowser, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class ICaseBrowser - */ - -FoamXServer::CaseBrowser::ICaseBrowser_stub::~ICaseBrowser_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::CaseBrowser::ICaseBrowser * -POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::CaseBrowser::ICaseBrowser *) p; - } - return NULL; -} - -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::ICaseBrowser_stub_clp () -{ -} - -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::ICaseBrowser_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::~ICaseBrowser_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::CaseServer::IFoamProperties_ptr FoamXServer::CaseBrowser::ICaseBrowser_stub::foamProperties() -{ - FoamXServer::CaseServer::IFoamProperties_ptr _res = FoamXServer::CaseServer::IFoamProperties::_nil(); - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IFoamProperties, &_res ); - - CORBA::StaticRequest __req( this, "_get_foamProperties" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::CaseServer::IFoamProperties_ptr -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::foamProperties() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - FoamXServer::CaseServer::IFoamProperties_ptr __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->foamProperties(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::foamProperties(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::CaseDescriptorList* FoamXServer::CaseBrowser::ICaseBrowser_stub::cases() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_CaseDescriptor ); - - CORBA::StaticRequest __req( this, "_get_cases" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::CaseDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::CaseDescriptorList* -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::cases() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - FoamXServer::CaseDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->cases(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::cases(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::JobDescriptorList* FoamXServer::CaseBrowser::ICaseBrowser_stub::runningJobs() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_JobDescriptor ); - - CORBA::StaticRequest __req( this, "_get_runningJobs" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::JobDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::JobDescriptorList* -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::runningJobs() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - FoamXServer::JobDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->runningJobs(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::runningJobs(); -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::JobDescriptorList* FoamXServer::CaseBrowser::ICaseBrowser_stub::finishedJobs() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_JobDescriptor ); - - CORBA::StaticRequest __req( this, "_get_finishedJobs" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::JobDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::JobDescriptorList* -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::finishedJobs() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - FoamXServer::JobDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->finishedJobs(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::finishedJobs(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::getEnv( const char* _par_envName, CORBA::String_out _par_hostName ) -{ - CORBA::StaticAny _sa_envName( CORBA::_stc_string, &_par_envName ); - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName.ptr() ); - CORBA::StaticRequest __req( this, "getEnv" ); - __req.add_in_arg( &_sa_envName ); - __req.add_out_arg( &_sa_hostName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::getEnv( const char* _par_envName, CORBA::String_out _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getEnv(_par_envName, _par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::getEnv(_par_envName, _par_hostName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::getHostName( CORBA::String_out _par_hostName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName.ptr() ); - CORBA::StaticRequest __req( this, "getHostName" ); - __req.add_out_arg( &_sa_hostName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::getHostName( CORBA::String_out _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getHostName(_par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::getHostName(_par_hostName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::getUserName( CORBA::String_out _par_userName ) -{ - CORBA::StaticAny _sa_userName( CORBA::_stc_string, &_par_userName.ptr() ); - CORBA::StaticRequest __req( this, "getUserName" ); - __req.add_out_arg( &_sa_userName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::getUserName( CORBA::String_out _par_userName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->getUserName(_par_userName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::getUserName(_par_userName); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::CaseBrowser::ICaseBrowser_stub::fileModificationDate( const char* _par_fileName ) -{ - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName ); - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "fileModificationDate" ); - __req.add_in_arg( &_sa_fileName ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::fileModificationDate( const char* _par_fileName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->fileModificationDate(_par_fileName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::fileModificationDate(_par_fileName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::readFile( const char* _par_fileName, CORBA::String_out _par_contents ) -{ - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName ); - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents.ptr() ); - CORBA::StaticRequest __req( this, "readFile" ); - __req.add_in_arg( &_sa_fileName ); - __req.add_out_arg( &_sa_contents ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::readFile( const char* _par_fileName, CORBA::String_out _par_contents ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->readFile(_par_fileName, _par_contents); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::readFile(_par_fileName, _par_contents); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::writeFile( const char* _par_fileName, const char* _par_contents ) -{ - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName ); - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents ); - CORBA::StaticRequest __req( this, "writeFile" ); - __req.add_in_arg( &_sa_fileName ); - __req.add_in_arg( &_sa_contents ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::writeFile( const char* _par_fileName, const char* _par_contents ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->writeFile(_par_fileName, _par_contents); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::writeFile(_par_fileName, _par_contents); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Long FoamXServer::CaseBrowser::ICaseBrowser_stub::invokeUtility( const char* _par_hostName, const char* _par_utilityName, const FoamXServer::StringList& _par_arguments, const char* _par_logName, CORBA::Boolean _par_backGround ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticAny _sa_utilityName( CORBA::_stc_string, &_par_utilityName ); - CORBA::StaticAny _sa_arguments( CORBA::_stcseq_string, &_par_arguments ); - CORBA::StaticAny _sa_logName( CORBA::_stc_string, &_par_logName ); - CORBA::StaticAny _sa_backGround( CORBA::_stc_boolean, &_par_backGround ); - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - - CORBA::StaticRequest __req( this, "invokeUtility" ); - __req.add_in_arg( &_sa_hostName ); - __req.add_in_arg( &_sa_utilityName ); - __req.add_in_arg( &_sa_arguments ); - __req.add_in_arg( &_sa_logName ); - __req.add_in_arg( &_sa_backGround ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Long -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::invokeUtility( const char* _par_hostName, const char* _par_utilityName, const FoamXServer::StringList& _par_arguments, const char* _par_logName, CORBA::Boolean _par_backGround ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Long __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->invokeUtility(_par_hostName, _par_utilityName, _par_arguments, _par_logName, _par_backGround); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::invokeUtility(_par_hostName, _par_utilityName, _par_arguments, _par_logName, _par_backGround); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::refreshCaseList() -{ - CORBA::StaticRequest __req( this, "refreshCaseList" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::refreshCaseList() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->refreshCaseList(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::refreshCaseList(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::addToCaseList( const char* _par_rootDir ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticRequest __req( this, "addToCaseList" ); - __req.add_in_arg( &_sa_rootDir ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::addToCaseList( const char* _par_rootDir ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addToCaseList(_par_rootDir); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::addToCaseList(_par_rootDir); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::openCase( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticRequest __req( this, "openCase" ); - __req.add_in_arg( &_sa_caseDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::openCase( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->openCase(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::openCase(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::newCase( const char* _par_rootDir, const char* _par_caseName, const char* _par_app ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app ); - CORBA::StaticRequest __req( this, "newCase" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_in_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::newCase( const char* _par_rootDir, const char* _par_caseName, const char* _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->newCase(_par_rootDir, _par_caseName, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::newCase(_par_rootDir, _par_caseName, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::importCase( const char* _par_rootDir, const char* _par_caseName, const char* _par_app ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app ); - CORBA::StaticRequest __req( this, "importCase" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_in_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::importCase( const char* _par_rootDir, const char* _par_caseName, const char* _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->importCase(_par_rootDir, _par_caseName, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::importCase(_par_rootDir, _par_caseName, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::deleteCase( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticRequest __req( this, "deleteCase" ); - __req.add_in_arg( &_sa_caseDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::deleteCase( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->deleteCase(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::deleteCase(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::cloneCase( const FoamXServer::CaseDescriptor& _par_caseDesc, const char* _par_newCaseRootDir, const char* _par_newCaseName, const char* _par_newAppClassName, const char* _par_timeSel ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticAny _sa_newCaseRootDir( CORBA::_stc_string, &_par_newCaseRootDir ); - CORBA::StaticAny _sa_newCaseName( CORBA::_stc_string, &_par_newCaseName ); - CORBA::StaticAny _sa_newAppClassName( CORBA::_stc_string, &_par_newAppClassName ); - CORBA::StaticAny _sa_timeSel( CORBA::_stc_string, &_par_timeSel ); - CORBA::StaticRequest __req( this, "cloneCase" ); - __req.add_in_arg( &_sa_caseDesc ); - __req.add_in_arg( &_sa_newCaseRootDir ); - __req.add_in_arg( &_sa_newCaseName ); - __req.add_in_arg( &_sa_newAppClassName ); - __req.add_in_arg( &_sa_timeSel ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::cloneCase( const FoamXServer::CaseDescriptor& _par_caseDesc, const char* _par_newCaseRootDir, const char* _par_newCaseName, const char* _par_newAppClassName, const char* _par_timeSel ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->cloneCase(_par_caseDesc, _par_newCaseRootDir, _par_newCaseName, _par_newAppClassName, _par_timeSel); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::cloneCase(_par_caseDesc, _par_newCaseRootDir, _par_newCaseName, _par_newAppClassName, _par_timeSel); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseBrowser::ICaseBrowser_stub::getCaseServerReference( const char* _par_rootDir, const char* _par_caseName, FoamXServer::CaseServer::ICaseServer_out _par_caseObj ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_caseObj( _marshaller_FoamXServer_CaseServer_ICaseServer, &_par_caseObj.ptr() ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "getCaseServerReference" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_out_arg( &_sa_caseObj ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::getCaseServerReference( const char* _par_rootDir, const char* _par_caseName, FoamXServer::CaseServer::ICaseServer_out _par_caseObj ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getCaseServerReference(_par_rootDir, _par_caseName, _par_caseObj); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::getCaseServerReference(_par_rootDir, _par_caseName, _par_caseObj); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::openCasePost( const FoamXServer::CaseDescriptor& _par_caseDesc, CORBA::Long _par_nProcs ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticAny _sa_nProcs( CORBA::_stc_long, &_par_nProcs ); - CORBA::StaticRequest __req( this, "openCasePost" ); - __req.add_in_arg( &_sa_caseDesc ); - __req.add_in_arg( &_sa_nProcs ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::openCasePost( const FoamXServer::CaseDescriptor& _par_caseDesc, CORBA::Long _par_nProcs ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->openCasePost(_par_caseDesc, _par_nProcs); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::openCasePost(_par_caseDesc, _par_nProcs); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseBrowser::ICaseBrowser_stub::getCasePostServerReference( const char* _par_rootDir, const char* _par_caseName, CORBA::Long _par_nProcs, FoamXServer::CasePostServer::ICasePostServer_out _par_caseObj ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_nProcs( CORBA::_stc_long, &_par_nProcs ); - CORBA::StaticAny _sa_caseObj( _marshaller_FoamXServer_CasePostServer_ICasePostServer, &_par_caseObj.ptr() ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "getCasePostServerReference" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_in_arg( &_sa_nProcs ); - __req.add_out_arg( &_sa_caseObj ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::getCasePostServerReference( const char* _par_rootDir, const char* _par_caseName, CORBA::Long _par_nProcs, FoamXServer::CasePostServer::ICasePostServer_out _par_caseObj ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getCasePostServerReference(_par_rootDir, _par_caseName, _par_nProcs, _par_caseObj); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::getCasePostServerReference(_par_rootDir, _par_caseName, _par_nProcs, _par_caseObj); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseBrowser::ICaseBrowser_stub::caseLocked( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "caseLocked" ); - __req.add_in_arg( &_sa_caseDesc ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::caseLocked( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->caseLocked(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::caseLocked(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::unlockCase( const char* _par_rootDir, const char* _par_caseName ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticRequest __req( this, "unlockCase" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::unlockCase( const char* _par_rootDir, const char* _par_caseName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->unlockCase(_par_rootDir, _par_caseName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::unlockCase(_par_rootDir, _par_caseName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::unlockCaseDescriptor( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticRequest __req( this, "unlockCaseDescriptor" ); - __req.add_in_arg( &_sa_caseDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::unlockCaseDescriptor( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->unlockCaseDescriptor(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::unlockCaseDescriptor(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::addCase( const char* _par_rootDir, const char* _par_rawRootDir, const char* _par_caseName, const char* _par_app ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app ); - CORBA::StaticRequest __req( this, "addCase" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_rawRootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_in_arg( &_sa_app ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::addCase( const char* _par_rootDir, const char* _par_rawRootDir, const char* _par_caseName, const char* _par_app ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->addCase(_par_rootDir, _par_rawRootDir, _par_caseName, _par_app); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::addCase(_par_rootDir, _par_rawRootDir, _par_caseName, _par_app); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::caseOpen( const char* _par_rootDir, const char* _par_caseName ) -{ - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticRequest __req( this, "caseOpen" ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::caseOpen( const char* _par_rootDir, const char* _par_caseName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->caseOpen(_par_rootDir, _par_caseName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::caseOpen(_par_rootDir, _par_caseName); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::CaseBrowser::ICaseBrowser_stub::isCaseInError( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "isCaseInError" ); - __req.add_in_arg( &_sa_caseDesc ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::isCaseInError( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->isCaseInError(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::CaseBrowser::ICaseBrowser_stub::isCaseInError(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::caseIsInError( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::StaticRequest __req( this, "caseIsInError" ); - __req.add_in_arg( &_sa_caseDesc ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::caseIsInError( const FoamXServer::CaseDescriptor& _par_caseDesc ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->caseIsInError(_par_caseDesc); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::caseIsInError(_par_caseDesc); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::refreshJobsLists() -{ - CORBA::StaticRequest __req( this, "refreshJobsLists" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::refreshJobsLists() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->refreshJobsLists(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::refreshJobsLists(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::checkRunningJobs() -{ - CORBA::StaticRequest __req( this, "checkRunningJobs" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::checkRunningJobs() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->checkRunningJobs(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::checkRunningJobs(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeRunningJobs() -{ - CORBA::StaticRequest __req( this, "purgeRunningJobs" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::purgeRunningJobs() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->purgeRunningJobs(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeRunningJobs(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeFinishedJob( const FoamXServer::JobID& _par_jobID ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticRequest __req( this, "purgeFinishedJob" ); - __req.add_in_arg( &_sa_jobID ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::purgeFinishedJob( const FoamXServer::JobID& _par_jobID ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->purgeFinishedJob(_par_jobID); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeFinishedJob(_par_jobID); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeFinishedJobs( CORBA::Long _par_nDays ) -{ - CORBA::StaticAny _sa_nDays( CORBA::_stc_long, &_par_nDays ); - CORBA::StaticRequest __req( this, "purgeFinishedJobs" ); - __req.add_in_arg( &_sa_nDays ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::purgeFinishedJobs( CORBA::Long _par_nDays ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->purgeFinishedJobs(_par_nDays); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::purgeFinishedJobs(_par_nDays); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::kill( const FoamXServer::JobID& _par_jobID ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticRequest __req( this, "kill" ); - __req.add_in_arg( &_sa_jobID ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::kill( const FoamXServer::JobID& _par_jobID ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->kill(_par_jobID); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::kill(_par_jobID); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::suspend( const FoamXServer::JobID& _par_jobID ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticRequest __req( this, "suspend" ); - __req.add_in_arg( &_sa_jobID ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::suspend( const FoamXServer::JobID& _par_jobID ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->suspend(_par_jobID); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::suspend(_par_jobID); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::cont( const FoamXServer::JobID& _par_jobID ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticRequest __req( this, "cont" ); - __req.add_in_arg( &_sa_jobID ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::cont( const FoamXServer::JobID& _par_jobID ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->cont(_par_jobID); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::cont(_par_jobID); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::end( const FoamXServer::JobID& _par_jobID, const char* _par_rootDir, const char* _par_caseName, CORBA::Boolean _par_now ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir ); - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName ); - CORBA::StaticAny _sa_now( CORBA::_stc_boolean, &_par_now ); - CORBA::StaticRequest __req( this, "end" ); - __req.add_in_arg( &_sa_jobID ); - __req.add_in_arg( &_sa_rootDir ); - __req.add_in_arg( &_sa_caseName ); - __req.add_in_arg( &_sa_now ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::end( const FoamXServer::JobID& _par_jobID, const char* _par_rootDir, const char* _par_caseName, CORBA::Boolean _par_now ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->end(_par_jobID, _par_rootDir, _par_caseName, _par_now); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::end(_par_jobID, _par_rootDir, _par_caseName, _par_now); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::setStatus( const FoamXServer::JobID& _par_jobID, FoamXServer::JobStatus _par_jobStatus ) -{ - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::StaticAny _sa_jobStatus( _marshaller_FoamXServer_JobStatus, &_par_jobStatus ); - CORBA::StaticRequest __req( this, "setStatus" ); - __req.add_in_arg( &_sa_jobID ); - __req.add_in_arg( &_sa_jobStatus ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::setStatus( const FoamXServer::JobID& _par_jobID, FoamXServer::JobStatus _par_jobStatus ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->setStatus(_par_jobID, _par_jobStatus); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::setStatus(_par_jobID, _par_jobStatus); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::save() -{ - CORBA::StaticRequest __req( this, "save" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::save() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->save(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::save(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::CaseBrowser::ICaseBrowser_stub::close() -{ - CORBA::StaticRequest __req( this, "close" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::CaseBrowser::ICaseBrowser_stub_clp::close() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::CaseBrowser::ICaseBrowser * _myserv = POA_FoamXServer::CaseBrowser::ICaseBrowser::_narrow (_serv); - if (_myserv) { - _myserv->close(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::CaseBrowser::ICaseBrowser_stub::close(); -} - -#endif // MICO_CONF_NO_POA - - -/* - * Base interface for class IHostBrowser - */ - -FoamXServer::HostBrowser::IHostBrowser::~IHostBrowser() -{ -} - -void * -FoamXServer::HostBrowser::IHostBrowser::_narrow_helper( const char *_repoid ) -{ - if( strcmp( _repoid, "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0" ) == 0 ) - return (void *)this; - return NULL; -} - -FoamXServer::HostBrowser::IHostBrowser_ptr -FoamXServer::HostBrowser::IHostBrowser::_narrow( CORBA::Object_ptr _obj ) -{ - FoamXServer::HostBrowser::IHostBrowser_ptr _o; - if( !CORBA::is_nil( _obj ) ) { - void *_p; - if( (_p = _obj->_narrow_helper( "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0" ))) - return _duplicate( (FoamXServer::HostBrowser::IHostBrowser_ptr) _p ); - if (!strcmp (_obj->_repoid(), "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0") || _obj->_is_a_remote ("IDL:FoamXServer/HostBrowser/IHostBrowser:1.0")) { - _o = new FoamXServer::HostBrowser::IHostBrowser_stub; - _o->CORBA::Object::operator=( *_obj ); - return _o; - } - } - return _nil(); -} - -FoamXServer::HostBrowser::IHostBrowser_ptr -FoamXServer::HostBrowser::IHostBrowser::_narrow( CORBA::AbstractBase_ptr _obj ) -{ - return _narrow (_obj->_to_object()); -} - -namespace FoamXServer -{ -namespace HostBrowser -{ -CORBA::TypeCodeConst _tc_IHostBrowser; -} -} -class _Marshaller_FoamXServer_HostBrowser_IHostBrowser : public ::CORBA::StaticTypeInfo { - typedef FoamXServer::HostBrowser::IHostBrowser_ptr _MICO_T; - public: - ~_Marshaller_FoamXServer_HostBrowser_IHostBrowser(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - void release (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller_FoamXServer_HostBrowser_IHostBrowser::~_Marshaller_FoamXServer_HostBrowser_IHostBrowser() -{ -} - -::CORBA::StaticValueType _Marshaller_FoamXServer_HostBrowser_IHostBrowser::create() const -{ - return (StaticValueType) new _MICO_T( 0 ); -} - -void _Marshaller_FoamXServer_HostBrowser_IHostBrowser::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = ::FoamXServer::HostBrowser::IHostBrowser::_duplicate( *(_MICO_T*) s ); -} - -void _Marshaller_FoamXServer_HostBrowser_IHostBrowser::free( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); - delete (_MICO_T*) v; -} - -void _Marshaller_FoamXServer_HostBrowser_IHostBrowser::release( StaticValueType v ) const -{ - ::CORBA::release( *(_MICO_T *) v ); -} - -::CORBA::Boolean _Marshaller_FoamXServer_HostBrowser_IHostBrowser::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj; - if (!::CORBA::_stc_Object->demarshal(dc, &obj)) - return FALSE; - *(_MICO_T *) v = ::FoamXServer::HostBrowser::IHostBrowser::_narrow( obj ); - ::CORBA::Boolean ret = ::CORBA::is_nil (obj) || !::CORBA::is_nil (*(_MICO_T *)v); - ::CORBA::release (obj); - return ret; -} - -void _Marshaller_FoamXServer_HostBrowser_IHostBrowser::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::Object_ptr obj = *(_MICO_T *) v; - ::CORBA::_stc_Object->marshal( ec, &obj ); -} - -::CORBA::TypeCode_ptr _Marshaller_FoamXServer_HostBrowser_IHostBrowser::typecode() -{ - return FoamXServer::HostBrowser::_tc_IHostBrowser; -} - -::CORBA::StaticTypeInfo *_marshaller_FoamXServer_HostBrowser_IHostBrowser; - -void -operator<<=( CORBA::Any &_a, const FoamXServer::HostBrowser::IHostBrowser_ptr _obj ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_HostBrowser_IHostBrowser, &_obj); - _a.from_static_any (_sa); -} - -void -operator<<=( CORBA::Any &_a, FoamXServer::HostBrowser::IHostBrowser_ptr* _obj_ptr ) -{ - CORBA::StaticAny _sa (_marshaller_FoamXServer_HostBrowser_IHostBrowser, _obj_ptr); - _a.from_static_any (_sa); - CORBA::release (*_obj_ptr); -} - -CORBA::Boolean -operator>>=( const CORBA::Any &_a, FoamXServer::HostBrowser::IHostBrowser_ptr &_obj ) -{ - FoamXServer::HostBrowser::IHostBrowser_ptr *p; - if (_a.to_static_any (_marshaller_FoamXServer_HostBrowser_IHostBrowser, (void *&)p)) { - _obj = *p; - return TRUE; - } - return FALSE; -} - - -/* - * Stub interface for class IHostBrowser - */ - -FoamXServer::HostBrowser::IHostBrowser_stub::~IHostBrowser_stub() -{ -} - -#ifndef MICO_CONF_NO_POA - -void * -POA_FoamXServer::HostBrowser::IHostBrowser::_narrow_helper (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0") == 0) { - return (void *) this; - } - return NULL; -} - -POA_FoamXServer::HostBrowser::IHostBrowser * -POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (PortableServer::Servant serv) -{ - void * p; - if ((p = serv->_narrow_helper ("IDL:FoamXServer/HostBrowser/IHostBrowser:1.0")) != NULL) { - serv->_add_ref (); - return (POA_FoamXServer::HostBrowser::IHostBrowser *) p; - } - return NULL; -} - -FoamXServer::HostBrowser::IHostBrowser_stub_clp::IHostBrowser_stub_clp () -{ -} - -FoamXServer::HostBrowser::IHostBrowser_stub_clp::IHostBrowser_stub_clp (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) - : CORBA::Object(*obj), PortableServer::StubBase(poa) -{ -} - -FoamXServer::HostBrowser::IHostBrowser_stub_clp::~IHostBrowser_stub_clp () -{ -} - -#endif // MICO_CONF_NO_POA - -FoamXServer::HostDescriptorList* FoamXServer::HostBrowser::IHostBrowser_stub::hosts() -{ - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_HostDescriptor ); - - CORBA::StaticRequest __req( this, "_get_hosts" ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - 0); - return (FoamXServer::HostDescriptorList*) __res._retn(); -} - - -#ifndef MICO_CONF_NO_POA - -FoamXServer::HostDescriptorList* -FoamXServer::HostBrowser::IHostBrowser_stub_clp::hosts() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - FoamXServer::HostDescriptorList* __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->hosts(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::HostBrowser::IHostBrowser_stub::hosts(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::refreshHostList() -{ - CORBA::StaticRequest __req( this, "refreshHostList" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::refreshHostList() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->refreshHostList(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::refreshHostList(); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::HostBrowser::IHostBrowser_stub::isHostAlive( const char* _par_hostName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "isHostAlive" ); - __req.add_in_arg( &_sa_hostName ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::HostBrowser::IHostBrowser_stub_clp::isHostAlive( const char* _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->isHostAlive(_par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::HostBrowser::IHostBrowser_stub::isHostAlive(_par_hostName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::hostIsAlive( const char* _par_hostName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticRequest __req( this, "hostIsAlive" ); - __req.add_in_arg( &_sa_hostName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::hostIsAlive( const char* _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->hostIsAlive(_par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::hostIsAlive(_par_hostName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::hostIsDead( const char* _par_hostName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticRequest __req( this, "hostIsDead" ); - __req.add_in_arg( &_sa_hostName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::hostIsDead( const char* _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->hostIsDead(_par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::hostIsDead(_par_hostName); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::openCaseBrowser( const char* _par_hostName ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticRequest __req( this, "openCaseBrowser" ); - __req.add_in_arg( &_sa_hostName ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::openCaseBrowser( const char* _par_hostName ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->openCaseBrowser(_par_hostName); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::openCaseBrowser(_par_hostName); -} - -#endif // MICO_CONF_NO_POA - -CORBA::Boolean FoamXServer::HostBrowser::IHostBrowser_stub::getCaseBrowserReference( const char* _par_hostName, FoamXServer::CaseBrowser::ICaseBrowser_out _par_browserObj ) -{ - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - CORBA::StaticAny _sa_browserObj( _marshaller_FoamXServer_CaseBrowser_ICaseBrowser, &_par_browserObj.ptr() ); - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - - CORBA::StaticRequest __req( this, "getCaseBrowserReference" ); - __req.add_in_arg( &_sa_hostName ); - __req.add_out_arg( &_sa_browserObj ); - __req.set_result( &__res ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXSYSError, "IDL:FoamXServer/FoamXSYSError:1.0", - 0); - return _res; -} - - -#ifndef MICO_CONF_NO_POA - -CORBA::Boolean -FoamXServer::HostBrowser::IHostBrowser_stub_clp::getCaseBrowserReference( const char* _par_hostName, FoamXServer::CaseBrowser::ICaseBrowser_out _par_browserObj ) -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - CORBA::Boolean __res; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - __res = _myserv->getCaseBrowserReference(_par_hostName, _par_browserObj); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return __res; - } - _postinvoke (); - } - - return FoamXServer::HostBrowser::IHostBrowser_stub::getCaseBrowserReference(_par_hostName, _par_browserObj); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::validate() -{ - CORBA::StaticRequest __req( this, "validate" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::validate() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->validate(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::validate(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::save() -{ - CORBA::StaticRequest __req( this, "save" ); - - __req.invoke(); - - mico_sii_throw( &__req, - _marshaller_FoamXServer_FoamXError, "IDL:FoamXServer/FoamXError:1.0", - _marshaller_FoamXServer_FoamXIOError, "IDL:FoamXServer/FoamXIOError:1.0", - _marshaller_FoamXServer_ValidationError, "IDL:FoamXServer/ValidationError:1.0", - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::save() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - #ifdef HAVE_EXCEPTIONS - try { - #endif - _myserv->save(); - #ifdef HAVE_EXCEPTIONS - } - catch (...) { - _myserv->_remove_ref(); - _postinvoke(); - throw; - } - #endif - - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::save(); -} - -#endif // MICO_CONF_NO_POA - -void FoamXServer::HostBrowser::IHostBrowser_stub::close() -{ - CORBA::StaticRequest __req( this, "close" ); - - __req.oneway(); - - mico_sii_throw( &__req, - 0); -} - - -#ifndef MICO_CONF_NO_POA - -void -FoamXServer::HostBrowser::IHostBrowser_stub_clp::close() -{ - PortableServer::Servant _serv = _preinvoke (); - if (_serv) { - POA_FoamXServer::HostBrowser::IHostBrowser * _myserv = POA_FoamXServer::HostBrowser::IHostBrowser::_narrow (_serv); - if (_myserv) { - _myserv->close(); - _myserv->_remove_ref(); - _postinvoke (); - return; - } - _postinvoke (); - } - - FoamXServer::HostBrowser::IHostBrowser_stub::close(); -} - -#endif // MICO_CONF_NO_POA - -class _Marshaller__seq_FoamXServer_FoamXAny : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_FoamXAny(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_FoamXAny::~_Marshaller__seq_FoamXServer_FoamXAny() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_FoamXAny::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_FoamXAny::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_FoamXAny::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_FoamXAny::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_FoamXAny->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_FoamXAny::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_FoamXAny->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_FoamXAny::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000034020000010000000f00000024020000010000001d00" - "000049444c3a466f616d585365727665722f466f616d58416e793a312e30" - "0000000009000000466f616d58416e790000000002000000050000007479" - "70650000000011000000c3010000010000001e00000049444c3a466f616d" - "585365727665722f466f616d58547970653a312e300000000a000000466f" - "616d5854797065000000150000000f000000547970655f556e646566696e" - "656400000d000000547970655f426f6f6c65616e000000000b0000005479" - "70655f4c6162656c00000c000000547970655f5363616c6172000a000000" - "547970655f436861720000000a000000547970655f576f72640000000c00" - "0000547970655f537472696e67000d000000547970655f526f6f74446972" - "0000000011000000547970655f526f6f74416e6443617365000000000e00" - "0000547970655f436173654e616d650000000e000000547970655f486f73" - "744e616d650000000a000000547970655f46696c650000000f0000005479" - "70655f4469726563746f727900000a000000547970655f54696d65000000" - "12000000547970655f44696d656e73696f6e5365740000000f0000005479" - "70655f46697865644c69737400000a000000547970655f4c697374000000" - "10000000547970655f44696374696f6e617279000f000000547970655f53" - "656c656374696f6e00000e000000547970655f436f6d706f756e64000000" - "0b000000547970655f4669656c6400000600000076616c75650000000b00" - "000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_FoamXAny::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_FoamXAny; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_FoamXAny, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_FoamXAny, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_FoamXAny, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_ITypeDescriptor : public ::CORBA::StaticTypeInfo { - typedef IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_ITypeDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_ITypeDescriptor::~_Marshaller__seq_FoamXServer_ITypeDescriptor() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_ITypeDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_ITypeDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_ITypeDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_ITypeDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_ITypeDescriptor->demarshal( dc, &(*(_MICO_T*)v)[i]._for_demarshal() ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_ITypeDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_ITypeDescriptor->marshal( ec, &(*(_MICO_T*)v)[i].inout() ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_ITypeDescriptor::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000050000000010000000e00000040000000010000002400" - "000049444c3a466f616d585365727665722f495479706544657363726970" - "746f723a312e300010000000495479706544657363726970746f72000000" - "0000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_ITypeDescriptor::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_ITypeDescriptor; - -void operator<<=( CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_ITypeDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_ITypeDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_ITypeDescriptor, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_IDictionaryEntry : public ::CORBA::StaticTypeInfo { - typedef IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_IDictionaryEntry(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_IDictionaryEntry::~_Marshaller__seq_FoamXServer_IDictionaryEntry() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_IDictionaryEntry::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_IDictionaryEntry::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_IDictionaryEntry::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_IDictionaryEntry::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_IDictionaryEntry->demarshal( dc, &(*(_MICO_T*)v)[i]._for_demarshal() ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_IDictionaryEntry::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_IDictionaryEntry->marshal( ec, &(*(_MICO_T*)v)[i].inout() ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_IDictionaryEntry::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000058000000010000000e00000045000000010000002500" - "000049444c3a466f616d585365727665722f4944696374696f6e61727945" - "6e7472793a312e3000000000110000004944696374696f6e617279456e74" - "72790000000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_IDictionaryEntry::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_IDictionaryEntry; - -void operator<<=( CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_IDictionaryEntry, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_IDictionaryEntry, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_IDictionaryEntry, (void *&)_s); -} - - -class _Marshaller__a3_float : public ::CORBA::StaticTypeInfo { - typedef CORBA::Float _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__a3_float(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__a3_float::~_Marshaller__a3_float() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__a3_float::create() const -{ - return (StaticValueType) new _MICO_T[ 3 ]; -} - -void _Marshaller__a3_float::assign( StaticValueType d, const StaticValueType s ) const -{ - for( int i = 0; i < 3; i++ ) - ((CORBA::Float *) d)[ i ] = ((CORBA::Float *) s)[ i ]; -} - -void _Marshaller__a3_float::free( StaticValueType v ) const -{ - delete[] (_MICO_T *) v; -} - -::CORBA::Boolean _Marshaller__a3_float::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - if( !dc.arr_begin() ) - return FALSE; - if (!dc.get_floats (&((_MICO_T *)v)[0], 3)) - return FALSE; - return dc.arr_end(); -} - -void _Marshaller__a3_float::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ec.arr_begin(); - ec.put_floats (&((_MICO_T *)v)[0], 3); - ec.arr_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__a3_float::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "01000000140000000c000000010000000600000003000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__a3_float::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__a3_float; - -class _Marshaller__seq_FoamXServer_StringPair : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_StringPair(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_StringPair::~_Marshaller__seq_FoamXServer_StringPair() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_StringPair::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_StringPair::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_StringPair::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_StringPair::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_StringPair->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_StringPair::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_StringPair->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_StringPair::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000074000000010000000f00000064000000010000001f00" - "000049444c3a466f616d585365727665722f537472696e67506169723a31" - "2e3000000b000000537472696e6750616972000002000000050000006e61" - "6d650000000012000000000000000600000076616c756500000012000000" - "0000000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_StringPair::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_StringPair; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_StringPair, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_StringPair, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_StringPair, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_HostDescriptor : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_HostDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_HostDescriptor::~_Marshaller__seq_FoamXServer_HostDescriptor() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_HostDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_HostDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_HostDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_HostDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_HostDescriptor->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_HostDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_HostDescriptor->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_HostDescriptor::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000078000000010000000f00000068000000010000002300" - "000049444c3a466f616d585365727665722f486f73744465736372697074" - "6f723a312e3000000f000000486f737444657363726970746f7200000200" - "0000050000006e616d6500000000120000000000000006000000616c6976" - "650000000800000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_HostDescriptor::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_HostDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_HostDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_HostDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_HostDescriptor, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_ApplicationDescriptor : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_ApplicationDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_ApplicationDescriptor::~_Marshaller__seq_FoamXServer_ApplicationDescriptor() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_ApplicationDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_ApplicationDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_ApplicationDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_ApplicationDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_ApplicationDescriptor->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_ApplicationDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_ApplicationDescriptor->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_ApplicationDescriptor::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "0100000013000000b8000000010000000f000000a8000000010000002a00" - "000049444c3a466f616d585365727665722f4170706c69636174696f6e44" - "657363726970746f723a312e30000000160000004170706c69636174696f" - "6e44657363726970746f7200000004000000050000006e616d6500000000" - "12000000000000000900000063617465676f727900000000120000000000" - "000005000000706174680000000012000000000000000c00000073797374" - "656d436c617373000800000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_ApplicationDescriptor::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_ApplicationDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_ApplicationDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_ApplicationDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_ApplicationDescriptor, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_CaseDescriptor : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_CaseDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_CaseDescriptor::~_Marshaller__seq_FoamXServer_CaseDescriptor() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_CaseDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_CaseDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_CaseDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_CaseDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_CaseDescriptor->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_CaseDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_CaseDescriptor->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_CaseDescriptor::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "0100000013000000e8000000010000000f000000d8000000010000002300" - "000049444c3a466f616d585365727665722f436173654465736372697074" - "6f723a312e3000000f0000004361736544657363726970746f7200000800" - "000008000000726f6f744469720012000000000000000b00000072617752" - "6f6f744469720000120000000000000009000000636173654e616d650000" - "000012000000000000000400000061707000120000000000000007000000" - "6e50726f6373000003000000080000006d616e6167656400080000000700" - "00006c6f636b6564000008000000060000006572726f7200000008000000" - "00000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_CaseDescriptor::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_CaseDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_CaseDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_CaseDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_CaseDescriptor, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_JobID : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_JobID(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_JobID::~_Marshaller__seq_FoamXServer_JobID() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_JobID::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_JobID::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_JobID::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_JobID::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_JobID->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_JobID::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_JobID->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_JobID::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "010000001300000070000000010000000f00000060000000010000001a00" - "000049444c3a466f616d585365727665722f4a6f6249443a312e30000000" - "060000004a6f6249440000000200000009000000686f73744e616d650000" - "000012000000000000000a00000070726f63657373494400000003000000" - "00000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_JobID::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_JobID; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_JobID, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_JobID, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_JobID, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_JobDescriptor : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_JobDescriptor(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_JobDescriptor::~_Marshaller__seq_FoamXServer_JobDescriptor() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_JobDescriptor::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_JobDescriptor::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_JobDescriptor::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_JobDescriptor::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_JobDescriptor->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_JobDescriptor::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_JobDescriptor->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_JobDescriptor::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "0100000013000000ac030000010000000f0000009c030000010000002200" - "000049444c3a466f616d585365727665722f4a6f6244657363726970746f" - "723a312e300000000e0000004a6f6244657363726970746f720000001300" - "0000060000006a6f6249440000000f00000060000000010000001a000000" - "49444c3a466f616d585365727665722f4a6f6249443a312e300000000600" - "00004a6f6249440000000200000009000000686f73744e616d6500000000" - "12000000000000000a00000070726f636573734944000000030000000500" - "000070706964000000000300000005000000706769640000000003000000" - "0a00000073746172744461746500000012000000000000000a0000007374" - "61727454696d65000000120000000000000009000000757365724e616d65" - "0000000012000000000000000c000000666f616d56657273696f6e001200" - "00000000000005000000636f646500000000120000000000000008000000" - "6172674c6973740012000000000000000b00000063757272656e74446972" - "0000120000000000000008000000726f6f74446972001200000000000000" - "09000000636173654e616d65000000001200000000000000070000006e50" - "726f637300000300000007000000736c61766573000015000000b0000000" - "010000001e00000049444c3a466f616d585365727665722f4a6f6249444c" - "6973743a312e300000000a0000004a6f6249444c69737400000013000000" - "70000000010000000f00000060000000010000001a00000049444c3a466f" - "616d585365727665722f4a6f6249443a312e30000000060000004a6f6249" - "440000000200000009000000686f73744e616d6500000000120000000000" - "00000a00000070726f63657373494400000003000000000000000e000000" - "6e436f756e74656450726f6373000000030000000800000063707554696d" - "65000700000008000000656e644461746500120000000000000008000000" - "656e6454696d650012000000000000000700000073746174757300001100" - "0000c0000000010000001e00000049444c3a466f616d585365727665722f" - "4a6f625374617475733a312e300000000a0000004a6f6253746174757300" - "0000070000000e0000004a4f425f554e444546494e45440000000e000000" - "4a4f425f4c41554e4348494e470000000c0000004a4f425f52554e4e494e" - "47000d0000004a4f425f53544f5050494e47000000000e0000004a4f425f" - "53555350454e4445440000000d0000004a4f425f46494e49534845440000" - "00000c0000004a4f425f41424f525445440000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_JobDescriptor::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_JobDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_JobDescriptor, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_JobDescriptor, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_JobDescriptor, (void *&)_s); -} - - -class _Marshaller__seq_FoamXServer_DimensionSet : public ::CORBA::StaticTypeInfo { - typedef SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> _MICO_T; - static ::CORBA::TypeCode_ptr _tc; - public: - ~_Marshaller__seq_FoamXServer_DimensionSet(); - StaticValueType create () const; - void assign (StaticValueType dst, const StaticValueType src) const; - void free (StaticValueType) const; - ::CORBA::Boolean demarshal (::CORBA::DataDecoder&, StaticValueType) const; - void marshal (::CORBA::DataEncoder &, StaticValueType) const; - ::CORBA::TypeCode_ptr typecode (); -}; - - -_Marshaller__seq_FoamXServer_DimensionSet::~_Marshaller__seq_FoamXServer_DimensionSet() -{ - if (_tc) - delete _tc; -} - -::CORBA::StaticValueType _Marshaller__seq_FoamXServer_DimensionSet::create() const -{ - return (StaticValueType) new _MICO_T; -} - -void _Marshaller__seq_FoamXServer_DimensionSet::assign( StaticValueType d, const StaticValueType s ) const -{ - *(_MICO_T*) d = *(_MICO_T*) s; -} - -void _Marshaller__seq_FoamXServer_DimensionSet::free( StaticValueType v ) const -{ - delete (_MICO_T*) v; -} - -::CORBA::Boolean _Marshaller__seq_FoamXServer_DimensionSet::demarshal( ::CORBA::DataDecoder &dc, StaticValueType v ) const -{ - ::CORBA::ULong len; - if( !dc.seq_begin( len ) ) - return FALSE; - ((_MICO_T *) v)->length( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) { - if( !_marshaller_FoamXServer_DimensionSet->demarshal( dc, &(*(_MICO_T*)v)[i] ) ) - return FALSE; - } - return dc.seq_end(); -} - -void _Marshaller__seq_FoamXServer_DimensionSet::marshal( ::CORBA::DataEncoder &ec, StaticValueType v ) const -{ - ::CORBA::ULong len = ((_MICO_T *) v)->length(); - ec.seq_begin( len ); - for( ::CORBA::ULong i = 0; i < len; i++ ) - _marshaller_FoamXServer_DimensionSet->marshal( ec, &(*(_MICO_T*)v)[i] ); - ec.seq_end(); -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_DimensionSet::typecode() -{ - if (!_tc) - _tc = (new ::CORBA::TypeCode ( - "0100000013000000d4000000010000000f000000c4000000010000002100" - "000049444c3a466f616d585365727665722f44696d656e73696f6e536574" - "3a312e30000000000d00000044696d656e73696f6e536574000000000700" - "0000050000006d6173730000000007000000070000006c656e6774680000" - "070000000500000074696d6500000000070000000c00000074656d706572" - "61747572650007000000060000006d6f6c65730000000700000008000000" - "63757272656e740007000000120000006c756d696e6f7573496e74656e73" - "6974790000000700000000000000"))->mk_constant(); - return _tc; -} - -::CORBA::TypeCode_ptr _Marshaller__seq_FoamXServer_DimensionSet::_tc = 0; -::CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_DimensionSet; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_DimensionSet, &_s); - _a.from_static_any (_sa); -} - -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> *_s ) -{ - _a <<= *_s; - delete _s; -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> &_s ) -{ - CORBA::StaticAny _sa (_marshaller__seq_FoamXServer_DimensionSet, &_s); - return _a.to_static_any (_sa); -} - -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> *&_s ) -{ - return _a.to_static_any (_marshaller__seq_FoamXServer_DimensionSet, (void *&)_s); -} - - -struct __tc_init_FOAMX { - __tc_init_FOAMX() - { - FoamXServer::_tc_FoamXType = - "0100000011000000c3010000010000001e00000049444c3a466f616d5853" - "65727665722f466f616d58547970653a312e300000000a000000466f616d" - "5854797065000000150000000f000000547970655f556e646566696e6564" - "00000d000000547970655f426f6f6c65616e000000000b00000054797065" - "5f4c6162656c00000c000000547970655f5363616c6172000a0000005479" - "70655f436861720000000a000000547970655f576f72640000000c000000" - "547970655f537472696e67000d000000547970655f526f6f744469720000" - "000011000000547970655f526f6f74416e6443617365000000000e000000" - "547970655f436173654e616d650000000e000000547970655f486f73744e" - "616d650000000a000000547970655f46696c650000000f00000054797065" - "5f4469726563746f727900000a000000547970655f54696d650000001200" - "0000547970655f44696d656e73696f6e5365740000000f00000054797065" - "5f46697865644c69737400000a000000547970655f4c6973740000001000" - "0000547970655f44696374696f6e617279000f000000547970655f53656c" - "656374696f6e00000e000000547970655f436f6d706f756e640000000b00" - "0000547970655f4669656c6400"; - _marshaller_FoamXServer_FoamXType = new _Marshaller_FoamXServer_FoamXType; - FoamXServer::_tc_FoamXAny = - "010000000f00000024020000010000001d00000049444c3a466f616d5853" - "65727665722f466f616d58416e793a312e300000000009000000466f616d" - "58416e79000000000200000005000000747970650000000011000000c301" - "0000010000001e00000049444c3a466f616d585365727665722f466f616d" - "58547970653a312e300000000a000000466f616d58547970650000001500" - "00000f000000547970655f556e646566696e656400000d00000054797065" - "5f426f6f6c65616e000000000b000000547970655f4c6162656c00000c00" - "0000547970655f5363616c6172000a000000547970655f43686172000000" - "0a000000547970655f576f72640000000c000000547970655f537472696e" - "67000d000000547970655f526f6f74446972000000001100000054797065" - "5f526f6f74416e6443617365000000000e000000547970655f436173654e" - "616d650000000e000000547970655f486f73744e616d650000000a000000" - "547970655f46696c650000000f000000547970655f4469726563746f7279" - "00000a000000547970655f54696d6500000012000000547970655f44696d" - "656e73696f6e5365740000000f000000547970655f46697865644c697374" - "00000a000000547970655f4c69737400000010000000547970655f446963" - "74696f6e617279000f000000547970655f53656c656374696f6e00000e00" - "0000547970655f436f6d706f756e640000000b000000547970655f466965" - "6c6400000600000076616c75650000000b000000"; - _marshaller_FoamXServer_FoamXAny = new _Marshaller_FoamXServer_FoamXAny; - FoamXServer::_tc_FoamXAnyList = - "01000000150000007c020000010000002100000049444c3a466f616d5853" - "65727665722f466f616d58416e794c6973743a312e30000000000d000000" - "466f616d58416e794c697374000000001300000034020000010000000f00" - "000024020000010000001d00000049444c3a466f616d585365727665722f" - "466f616d58416e793a312e300000000009000000466f616d58416e790000" - "00000200000005000000747970650000000011000000c301000001000000" - "1e00000049444c3a466f616d585365727665722f466f616d58547970653a" - "312e300000000a000000466f616d5854797065000000150000000f000000" - "547970655f556e646566696e656400000d000000547970655f426f6f6c65" - "616e000000000b000000547970655f4c6162656c00000c00000054797065" - "5f5363616c6172000a000000547970655f436861720000000a0000005479" - "70655f576f72640000000c000000547970655f537472696e67000d000000" - "547970655f526f6f744469720000000011000000547970655f526f6f7441" - "6e6443617365000000000e000000547970655f436173654e616d65000000" - "0e000000547970655f486f73744e616d650000000a000000547970655f46" - "696c650000000f000000547970655f4469726563746f727900000a000000" - "547970655f54696d6500000012000000547970655f44696d656e73696f6e" - "5365740000000f000000547970655f46697865644c69737400000a000000" - "547970655f4c69737400000010000000547970655f44696374696f6e6172" - "79000f000000547970655f53656c656374696f6e00000e00000054797065" - "5f436f6d706f756e640000000b000000547970655f4669656c6400000600" - "000076616c75650000000b00000000000000"; - FoamXServer::_tc_StringList = - "010000001500000050000000010000001f00000049444c3a466f616d5853" - "65727665722f537472696e674c6973743a312e3000000b00000053747269" - "6e674c697374000013000000100000000100000012000000000000000000" - "0000"; - FoamXServer::_tc_TypeDescriptorList = - "0100000015000000a0000000010000002700000049444c3a466f616d5853" - "65727665722f5479706544657363726970746f724c6973743a312e300000" - "130000005479706544657363726970746f724c6973740000130000005000" - "0000010000000e00000040000000010000002400000049444c3a466f616d" - "585365727665722f495479706544657363726970746f723a312e30001000" - "0000495479706544657363726970746f720000000000"; - FoamXServer::_tc_ErrorCode = - "0100000011000000dd000000010000001e00000049444c3a466f616d5853" - "65727665722f4572726f72436f64653a312e300000000a0000004572726f" - "72436f64650000000900000005000000535f4f4b0000000007000000455f" - "4641494c000007000000455f464f414d00000e000000455f494e56414c49" - "445f4152470000000e000000455f494e56414c49445f5054520000000e00" - "0000455f494e56414c49445f52454600000016000000455f494e4445585f" - "4f55545f4f465f424f554e44530000000f000000455f554e4b4e4f574e5f" - "4e414d4500000d000000455f554e455850454354454400"; - _marshaller_FoamXServer_ErrorCode = new _Marshaller_FoamXServer_ErrorCode; - FoamXServer::_tc_FoamXError = - "010000001600000090010000010000001f00000049444c3a466f616d5853" - "65727665722f466f616d584572726f723a312e3000000b000000466f616d" - "584572726f720000050000000a0000006572726f72436f64650000001100" - "0000dd000000010000001e00000049444c3a466f616d585365727665722f" - "4572726f72436f64653a312e300000000a0000004572726f72436f646500" - "00000900000005000000535f4f4b0000000007000000455f4641494c0000" - "07000000455f464f414d00000e000000455f494e56414c49445f41524700" - "00000e000000455f494e56414c49445f5054520000000e000000455f494e" - "56414c49445f52454600000016000000455f494e4445585f4f55545f4f46" - "5f424f554e44530000000f000000455f554e4b4e4f574e5f4e414d450000" - "0d000000455f554e4558504543544544000000000d0000006572726f724d" - "6573736167650000000012000000000000000b0000006d6574686f644e61" - "6d65000012000000000000000900000066696c654e616d65000000001200" - "000000000000070000006c696e654e6f000003000000"; - _marshaller_FoamXServer_FoamXError = new _Marshaller_FoamXServer_FoamXError; - FoamXServer::_tc_FoamXIOError = - "0100000016000000e4000000010000002100000049444c3a466f616d5853" - "65727665722f466f616d58494f4572726f723a312e30000000000d000000" - "466f616d58494f4572726f7200000000070000000d0000006572726f724d" - "6573736167650000000012000000000000000b000000696f46696c654e61" - "6d65000012000000000000000e000000696f53746172744c696e654e6f00" - "0000030000000c000000696f456e644c696e654e6f00030000000b000000" - "6d6574686f644e616d65000012000000000000000900000066696c654e61" - "6d65000000001200000000000000070000006c696e654e6f000003000000" - ; - _marshaller_FoamXServer_FoamXIOError = new _Marshaller_FoamXServer_FoamXIOError; - FoamXServer::_tc_ValidationError = - "010000001600000070010000010000002400000049444c3a466f616d5853" - "65727665722f56616c69646174696f6e4572726f723a312e300010000000" - "56616c69646174696f6e4572726f7200030000000a0000006572726f7243" - "6f646500000011000000dd000000010000001e00000049444c3a466f616d" - "585365727665722f4572726f72436f64653a312e300000000a0000004572" - "726f72436f64650000000900000005000000535f4f4b0000000007000000" - "455f4641494c000007000000455f464f414d00000e000000455f494e5641" - "4c49445f4152470000000e000000455f494e56414c49445f505452000000" - "0e000000455f494e56414c49445f52454600000016000000455f494e4445" - "585f4f55545f4f465f424f554e44530000000f000000455f554e4b4e4f57" - "4e5f4e414d4500000d000000455f554e4558504543544544000000000d00" - "00006572726f724d65737361676500000000120000000000000009000000" - "6974656d50617468000000001200000000000000"; - _marshaller_FoamXServer_ValidationError = new _Marshaller_FoamXServer_ValidationError; - FoamXServer::_tc_ITypeDescriptor = - "010000000e00000040000000010000002400000049444c3a466f616d5853" - "65727665722f495479706544657363726970746f723a312e300010000000" - "495479706544657363726970746f7200"; - _marshaller_FoamXServer_ITypeDescriptor = new _Marshaller_FoamXServer_ITypeDescriptor; - FoamXServer::_tc_DictionaryEntryList = - "0100000015000000a8000000010000002800000049444c3a466f616d5853" - "65727665722f44696374696f6e617279456e7472794c6973743a312e3000" - "1400000044696374696f6e617279456e7472794c69737400130000005800" - "0000010000000e00000045000000010000002500000049444c3a466f616d" - "585365727665722f4944696374696f6e617279456e7472793a312e300000" - "0000110000004944696374696f6e617279456e7472790000000000000000" - ; - FoamXServer::_tc_IDictionaryEntry = - "010000000e00000045000000010000002500000049444c3a466f616d5853" - "65727665722f4944696374696f6e617279456e7472793a312e3000000000" - "110000004944696374696f6e617279456e74727900"; - _marshaller_FoamXServer_IDictionaryEntry = new _Marshaller_FoamXServer_IDictionaryEntry; - FoamXServer::_tc_JobStatus = - "0100000011000000c0000000010000001e00000049444c3a466f616d5853" - "65727665722f4a6f625374617475733a312e300000000a0000004a6f6253" - "7461747573000000070000000e0000004a4f425f554e444546494e454400" - "00000e0000004a4f425f4c41554e4348494e470000000c0000004a4f425f" - "52554e4e494e47000d0000004a4f425f53544f5050494e47000000000e00" - "00004a4f425f53555350454e4445440000000d0000004a4f425f46494e49" - "53484544000000000c0000004a4f425f41424f5254454400"; - _marshaller_FoamXServer_JobStatus = new _Marshaller_FoamXServer_JobStatus; - FoamXServer::_tc_MessageType = - "01000000110000006c000000010000002000000049444c3a466f616d5853" - "65727665722f4d657373616765547970653a312e30000c0000004d657373" - "6167655479706500030000000d0000004d5f444941474e4f535449430000" - "00000a0000004d5f5741524e494e47000000080000004d5f4552524f5200" - ; - _marshaller_FoamXServer_MessageType = new _Marshaller_FoamXServer_MessageType; - FoamXServer::_tc_DoubleList = - "01000000150000004c000000010000001f00000049444c3a466f616d5853" - "65727665722f446f75626c654c6973743a312e3000000b000000446f7562" - "6c654c6973740000130000000c000000010000000700000000000000"; - FoamXServer::_tc_FloatList = - "01000000150000004c000000010000001e00000049444c3a466f616d5853" - "65727665722f466c6f61744c6973743a312e300000000a000000466c6f61" - "744c697374000000130000000c000000010000000600000000000000"; - FoamXServer::_tc_LongList = - "01000000150000004c000000010000001d00000049444c3a466f616d5853" - "65727665722f4c6f6e674c6973743a312e3000000000090000004c6f6e67" - "4c69737400000000130000000c000000010000000300000000000000"; - FoamXServer::_tc_Point3 = - "010000001500000044000000010000001b00000049444c3a466f616d5853" - "65727665722f506f696e74333a312e30000007000000506f696e74330000" - "140000000c000000010000000600000003000000"; - FoamXServer::_tc_StringPair = - "010000000f00000064000000010000001f00000049444c3a466f616d5853" - "65727665722f537472696e67506169723a312e3000000b00000053747269" - "6e6750616972000002000000050000006e616d6500000000120000000000" - "00000600000076616c75650000001200000000000000"; - _marshaller_FoamXServer_StringPair = new _Marshaller_FoamXServer_StringPair; - FoamXServer::_tc_StringPairList = - "0100000015000000bc000000010000002300000049444c3a466f616d5853" - "65727665722f537472696e67506169724c6973743a312e3000000f000000" - "537472696e67506169724c69737400001300000074000000010000000f00" - "000064000000010000001f00000049444c3a466f616d585365727665722f" - "537472696e67506169723a312e3000000b000000537472696e6750616972" - "000002000000050000006e616d6500000000120000000000000006000000" - "76616c7565000000120000000000000000000000"; - FoamXServer::_tc_HostDescriptor = - "010000000f00000068000000010000002300000049444c3a466f616d5853" - "65727665722f486f737444657363726970746f723a312e3000000f000000" - "486f737444657363726970746f72000002000000050000006e616d650000" - "0000120000000000000006000000616c69766500000008000000"; - _marshaller_FoamXServer_HostDescriptor = new _Marshaller_FoamXServer_HostDescriptor; - FoamXServer::_tc_HostDescriptorList = - "0100000015000000c8000000010000002700000049444c3a466f616d5853" - "65727665722f486f737444657363726970746f724c6973743a312e300000" - "13000000486f737444657363726970746f724c6973740000130000007800" - "0000010000000f00000068000000010000002300000049444c3a466f616d" - "585365727665722f486f737444657363726970746f723a312e3000000f00" - "0000486f737444657363726970746f72000002000000050000006e616d65" - "00000000120000000000000006000000616c697665000000080000000000" - "0000"; - FoamXServer::_tc_ApplicationDescriptor = - "010000000f000000a8000000010000002a00000049444c3a466f616d5853" - "65727665722f4170706c69636174696f6e44657363726970746f723a312e" - "30000000160000004170706c69636174696f6e44657363726970746f7200" - "000004000000050000006e616d6500000000120000000000000009000000" - "63617465676f727900000000120000000000000005000000706174680000" - "000012000000000000000c00000073797374656d436c6173730008000000" - ; - _marshaller_FoamXServer_ApplicationDescriptor = new _Marshaller_FoamXServer_ApplicationDescriptor; - FoamXServer::_tc_ApplicationDescriptorList = - "010000001500000018010000010000002e00000049444c3a466f616d5853" - "65727665722f4170706c69636174696f6e44657363726970746f724c6973" - "743a312e300000001a0000004170706c69636174696f6e44657363726970" - "746f724c69737400000013000000b8000000010000000f000000a8000000" - "010000002a00000049444c3a466f616d585365727665722f4170706c6963" - "6174696f6e44657363726970746f723a312e30000000160000004170706c" - "69636174696f6e44657363726970746f7200000004000000050000006e61" - "6d650000000012000000000000000900000063617465676f727900000000" - "120000000000000005000000706174680000000012000000000000000c00" - "000073797374656d436c617373000800000000000000"; - FoamXServer::_tc_CaseDescriptor = - "010000000f000000d8000000010000002300000049444c3a466f616d5853" - "65727665722f4361736544657363726970746f723a312e3000000f000000" - "4361736544657363726970746f7200000800000008000000726f6f744469" - "720012000000000000000b000000726177526f6f74446972000012000000" - "0000000009000000636173654e616d650000000012000000000000000400" - "0000617070001200000000000000070000006e50726f6373000003000000" - "080000006d616e616765640008000000070000006c6f636b656400000800" - "0000060000006572726f7200000008000000"; - _marshaller_FoamXServer_CaseDescriptor = new _Marshaller_FoamXServer_CaseDescriptor; - FoamXServer::_tc_CaseDescriptorList = - "010000001500000038010000010000002700000049444c3a466f616d5853" - "65727665722f4361736544657363726970746f724c6973743a312e300000" - "130000004361736544657363726970746f724c697374000013000000e800" - "0000010000000f000000d8000000010000002300000049444c3a466f616d" - "585365727665722f4361736544657363726970746f723a312e3000000f00" - "00004361736544657363726970746f7200000800000008000000726f6f74" - "4469720012000000000000000b000000726177526f6f7444697200001200" - "00000000000009000000636173654e616d65000000001200000000000000" - "04000000617070001200000000000000070000006e50726f637300000300" - "0000080000006d616e616765640008000000070000006c6f636b65640000" - "08000000060000006572726f720000000800000000000000"; - FoamXServer::_tc_JobID = - "010000000f00000060000000010000001a00000049444c3a466f616d5853" - "65727665722f4a6f6249443a312e30000000060000004a6f624944000000" - "0200000009000000686f73744e616d650000000012000000000000000a00" - "000070726f63657373494400000003000000"; - _marshaller_FoamXServer_JobID = new _Marshaller_FoamXServer_JobID; - FoamXServer::_tc_JobIDList = - "0100000015000000b0000000010000001e00000049444c3a466f616d5853" - "65727665722f4a6f6249444c6973743a312e300000000a0000004a6f6249" - "444c6973740000001300000070000000010000000f000000600000000100" - "00001a00000049444c3a466f616d585365727665722f4a6f6249443a312e" - "30000000060000004a6f6249440000000200000009000000686f73744e61" - "6d650000000012000000000000000a00000070726f636573734944000000" - "0300000000000000"; - FoamXServer::_tc_JobDescriptor = - "010000000f0000009c030000010000002200000049444c3a466f616d5853" - "65727665722f4a6f6244657363726970746f723a312e300000000e000000" - "4a6f6244657363726970746f7200000013000000060000006a6f62494400" - "00000f00000060000000010000001a00000049444c3a466f616d58536572" - "7665722f4a6f6249443a312e30000000060000004a6f6249440000000200" - "000009000000686f73744e616d650000000012000000000000000a000000" - "70726f636573734944000000030000000500000070706964000000000300" - "0000050000007067696400000000030000000a0000007374617274446174" - "6500000012000000000000000a000000737461727454696d650000001200" - "00000000000009000000757365724e616d65000000001200000000000000" - "0c000000666f616d56657273696f6e00120000000000000005000000636f" - "6465000000001200000000000000080000006172674c6973740012000000" - "000000000b00000063757272656e74446972000012000000000000000800" - "0000726f6f7444697200120000000000000009000000636173654e616d65" - "000000001200000000000000070000006e50726f63730000030000000700" - "0000736c61766573000015000000b0000000010000001e00000049444c3a" - "466f616d585365727665722f4a6f6249444c6973743a312e300000000a00" - "00004a6f6249444c6973740000001300000070000000010000000f000000" - "60000000010000001a00000049444c3a466f616d585365727665722f4a6f" - "6249443a312e30000000060000004a6f6249440000000200000009000000" - "686f73744e616d650000000012000000000000000a00000070726f636573" - "73494400000003000000000000000e0000006e436f756e74656450726f63" - "73000000030000000800000063707554696d65000700000008000000656e" - "644461746500120000000000000008000000656e6454696d650012000000" - "0000000007000000737461747573000011000000c0000000010000001e00" - "000049444c3a466f616d585365727665722f4a6f625374617475733a312e" - "300000000a0000004a6f62537461747573000000070000000e0000004a4f" - "425f554e444546494e45440000000e0000004a4f425f4c41554e4348494e" - "470000000c0000004a4f425f52554e4e494e47000d0000004a4f425f5354" - "4f5050494e47000000000e0000004a4f425f53555350454e444544000000" - "0d0000004a4f425f46494e4953484544000000000c0000004a4f425f4142" - "4f5254454400"; - _marshaller_FoamXServer_JobDescriptor = new _Marshaller_FoamXServer_JobDescriptor; - FoamXServer::_tc_JobDescriptorList = - "0100000015000000fc030000010000002600000049444c3a466f616d5853" - "65727665722f4a6f6244657363726970746f724c6973743a312e30000000" - "120000004a6f6244657363726970746f724c69737400000013000000ac03" - "0000010000000f0000009c030000010000002200000049444c3a466f616d" - "585365727665722f4a6f6244657363726970746f723a312e300000000e00" - "00004a6f6244657363726970746f7200000013000000060000006a6f6249" - "440000000f00000060000000010000001a00000049444c3a466f616d5853" - "65727665722f4a6f6249443a312e30000000060000004a6f624944000000" - "0200000009000000686f73744e616d650000000012000000000000000a00" - "000070726f63657373494400000003000000050000007070696400000000" - "03000000050000007067696400000000030000000a000000737461727444" - "61746500000012000000000000000a000000737461727454696d65000000" - "120000000000000009000000757365724e616d6500000000120000000000" - "00000c000000666f616d56657273696f6e00120000000000000005000000" - "636f6465000000001200000000000000080000006172674c697374001200" - "0000000000000b00000063757272656e7444697200001200000000000000" - "08000000726f6f7444697200120000000000000009000000636173654e61" - "6d65000000001200000000000000070000006e50726f6373000003000000" - "07000000736c61766573000015000000b0000000010000001e0000004944" - "4c3a466f616d585365727665722f4a6f6249444c6973743a312e30000000" - "0a0000004a6f6249444c6973740000001300000070000000010000000f00" - "000060000000010000001a00000049444c3a466f616d585365727665722f" - "4a6f6249443a312e30000000060000004a6f624944000000020000000900" - "0000686f73744e616d650000000012000000000000000a00000070726f63" - "657373494400000003000000000000000e0000006e436f756e7465645072" - "6f6373000000030000000800000063707554696d65000700000008000000" - "656e644461746500120000000000000008000000656e6454696d65001200" - "00000000000007000000737461747573000011000000c000000001000000" - "1e00000049444c3a466f616d585365727665722f4a6f625374617475733a" - "312e300000000a0000004a6f62537461747573000000070000000e000000" - "4a4f425f554e444546494e45440000000e0000004a4f425f4c41554e4348" - "494e470000000c0000004a4f425f52554e4e494e47000d0000004a4f425f" - "53544f5050494e47000000000e0000004a4f425f53555350454e44454400" - "00000d0000004a4f425f46494e4953484544000000000c0000004a4f425f" - "41424f525445440000000000"; - FoamXServer::_tc_DimensionSet = - "010000000f000000c4000000010000002100000049444c3a466f616d5853" - "65727665722f44696d656e73696f6e5365743a312e30000000000d000000" - "44696d656e73696f6e5365740000000007000000050000006d6173730000" - "000007000000070000006c656e6774680000070000000500000074696d65" - "00000000070000000c00000074656d706572617475726500070000000600" - "00006d6f6c6573000000070000000800000063757272656e740007000000" - "120000006c756d696e6f7573496e74656e7369747900000007000000"; - _marshaller_FoamXServer_DimensionSet = new _Marshaller_FoamXServer_DimensionSet; - FoamXServer::_tc_DimensionSetList = - "010000001500000024010000010000002500000049444c3a466f616d5853" - "65727665722f44696d656e73696f6e5365744c6973743a312e3000000000" - "1100000044696d656e73696f6e5365744c6973740000000013000000d400" - "0000010000000f000000c4000000010000002100000049444c3a466f616d" - "585365727665722f44696d656e73696f6e5365743a312e30000000000d00" - "000044696d656e73696f6e5365740000000007000000050000006d617373" - "0000000007000000070000006c656e677468000007000000050000007469" - "6d6500000000070000000c00000074656d70657261747572650007000000" - "060000006d6f6c6573000000070000000800000063757272656e74000700" - "0000120000006c756d696e6f7573496e74656e7369747900000007000000" - "00000000"; - FoamXServer::_tc_FoamXSYSError = - "0100000016000000b0010000010000002200000049444c3a466f616d5853" - "65727665722f466f616d585359534572726f723a312e300000000e000000" - "466f616d585359534572726f72000000060000000a0000006572726f7243" - "6f646500000011000000dd000000010000001e00000049444c3a466f616d" - "585365727665722f4572726f72436f64653a312e300000000a0000004572" - "726f72436f64650000000900000005000000535f4f4b0000000007000000" - "455f4641494c000007000000455f464f414d00000e000000455f494e5641" - "4c49445f4152470000000e000000455f494e56414c49445f505452000000" - "0e000000455f494e56414c49445f52454600000016000000455f494e4445" - "585f4f55545f4f465f424f554e44530000000f000000455f554e4b4e4f57" - "4e5f4e414d4500000d000000455f554e4558504543544544000000000d00" - "00006572726f724d65737361676500000000120000000000000009000000" - "686f73744e616d650000000012000000000000000b0000006d6574686f64" - "4e616d65000012000000000000000900000066696c654e616d6500000000" - "1200000000000000070000006c696e654e6f000003000000"; - _marshaller_FoamXServer_FoamXSYSError = new _Marshaller_FoamXServer_FoamXSYSError; - FoamXServer::CaseServer::_tc_ICaseServer = - "010000000e00000044000000010000002b00000049444c3a466f616d5853" - "65727665722f436173655365727665722f49436173655365727665723a31" - "2e3000000c000000494361736553657276657200"; - _marshaller_FoamXServer_CaseServer_ICaseServer = new _Marshaller_FoamXServer_CaseServer_ICaseServer; - FoamXServer::CaseServer::_tc_IFoamProperties = - "010000000e0000004c000000010000002f00000049444c3a466f616d5853" - "65727665722f436173655365727665722f49466f616d50726f7065727469" - "65733a312e3000001000000049466f616d50726f7065727469657300"; - _marshaller_FoamXServer_CaseServer_IFoamProperties = new _Marshaller_FoamXServer_CaseServer_IFoamProperties; - FoamXServer::CaseServer::_tc_IApplication = - "010000000e00000045000000010000002c00000049444c3a466f616d5853" - "65727665722f436173655365727665722f494170706c69636174696f6e3a" - "312e30000d000000494170706c69636174696f6e00"; - _marshaller_FoamXServer_CaseServer_IApplication = new _Marshaller_FoamXServer_CaseServer_IApplication; - FoamXServer::CaseServer::_tc_IGeometricFieldDescriptor = - "010000000e00000062000000010000003900000049444c3a466f616d5853" - "65727665722f436173655365727665722f4947656f6d6574726963466965" - "6c6444657363726970746f723a312e30000000001a0000004947656f6d65" - "747269634669656c6444657363726970746f7200"; - _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor = new _Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor; - FoamXServer::CaseServer::_tc_IPatchDescriptor = - "010000000e0000004d000000010000003000000049444c3a466f616d5853" - "65727665722f436173655365727665722f49506174636844657363726970" - "746f723a312e30001100000049506174636844657363726970746f7200"; - _marshaller_FoamXServer_CaseServer_IPatchDescriptor = new _Marshaller_FoamXServer_CaseServer_IPatchDescriptor; - FoamXServer::CaseServer::_tc_IGeometryDescriptor = - "010000000e00000054000000010000003300000049444c3a466f616d5853" - "65727665722f436173655365727665722f4947656f6d6574727944657363" - "726970746f723a312e300000140000004947656f6d657472794465736372" - "6970746f7200"; - _marshaller_FoamXServer_CaseServer_IGeometryDescriptor = new _Marshaller_FoamXServer_CaseServer_IGeometryDescriptor; - FoamXServer::CaseServer::_tc_IPatchPhysicalTypeDescriptor = - "010000000e00000065000000010000003c00000049444c3a466f616d5853" - "65727665722f436173655365727665722f49506174636850687973696361" - "6c5479706544657363726970746f723a312e30001d000000495061746368" - "506879736963616c5479706544657363726970746f7200"; - _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor = new _Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor; - FoamXServer::CaseServer::_tc_IGeometricField = - "010000000e0000004c000000010000002f00000049444c3a466f616d5853" - "65727665722f436173655365727665722f4947656f6d6574726963466965" - "6c643a312e300000100000004947656f6d65747269634669656c6400"; - _marshaller_FoamXServer_CaseServer_IGeometricField = new _Marshaller_FoamXServer_CaseServer_IGeometricField; - FoamXServer::CasePostServer::_tc_ICasePostServer = - "010000000e00000050000000010000003300000049444c3a466f616d5853" - "65727665722f43617365506f73745365727665722f4943617365506f7374" - "5365727665723a312e300000100000004943617365506f73745365727665" - "7200"; - _marshaller_FoamXServer_CasePostServer_ICasePostServer = new _Marshaller_FoamXServer_CasePostServer_ICasePostServer; - FoamXServer::CaseBrowser::_tc_ICaseBrowser = - "010000000e00000049000000010000002d00000049444c3a466f616d5853" - "65727665722f4361736542726f777365722f494361736542726f77736572" - "3a312e30000000000d000000494361736542726f7773657200"; - _marshaller_FoamXServer_CaseBrowser_ICaseBrowser = new _Marshaller_FoamXServer_CaseBrowser_ICaseBrowser; - FoamXServer::HostBrowser::_tc_IHostBrowser = - "010000000e00000049000000010000002d00000049444c3a466f616d5853" - "65727665722f486f737442726f777365722f49486f737442726f77736572" - "3a312e30000000000d00000049486f737442726f7773657200"; - _marshaller_FoamXServer_HostBrowser_IHostBrowser = new _Marshaller_FoamXServer_HostBrowser_IHostBrowser; - _marshaller__seq_FoamXServer_FoamXAny = new _Marshaller__seq_FoamXServer_FoamXAny; - _marshaller__seq_FoamXServer_ITypeDescriptor = new _Marshaller__seq_FoamXServer_ITypeDescriptor; - _marshaller__seq_FoamXServer_IDictionaryEntry = new _Marshaller__seq_FoamXServer_IDictionaryEntry; - _marshaller__a3_float = new _Marshaller__a3_float; - _marshaller__seq_FoamXServer_StringPair = new _Marshaller__seq_FoamXServer_StringPair; - _marshaller__seq_FoamXServer_HostDescriptor = new _Marshaller__seq_FoamXServer_HostDescriptor; - _marshaller__seq_FoamXServer_ApplicationDescriptor = new _Marshaller__seq_FoamXServer_ApplicationDescriptor; - _marshaller__seq_FoamXServer_CaseDescriptor = new _Marshaller__seq_FoamXServer_CaseDescriptor; - _marshaller__seq_FoamXServer_JobID = new _Marshaller__seq_FoamXServer_JobID; - _marshaller__seq_FoamXServer_JobDescriptor = new _Marshaller__seq_FoamXServer_JobDescriptor; - _marshaller__seq_FoamXServer_DimensionSet = new _Marshaller__seq_FoamXServer_DimensionSet; - } - - ~__tc_init_FOAMX() - { - delete static_cast<_Marshaller_FoamXServer_FoamXType*>(_marshaller_FoamXServer_FoamXType); - delete static_cast<_Marshaller_FoamXServer_FoamXAny*>(_marshaller_FoamXServer_FoamXAny); - delete static_cast<_Marshaller_FoamXServer_ErrorCode*>(_marshaller_FoamXServer_ErrorCode); - delete static_cast<_Marshaller_FoamXServer_FoamXError*>(_marshaller_FoamXServer_FoamXError); - delete static_cast<_Marshaller_FoamXServer_FoamXIOError*>(_marshaller_FoamXServer_FoamXIOError); - delete static_cast<_Marshaller_FoamXServer_ValidationError*>(_marshaller_FoamXServer_ValidationError); - delete static_cast<_Marshaller_FoamXServer_ITypeDescriptor*>(_marshaller_FoamXServer_ITypeDescriptor); - delete static_cast<_Marshaller_FoamXServer_IDictionaryEntry*>(_marshaller_FoamXServer_IDictionaryEntry); - delete static_cast<_Marshaller_FoamXServer_JobStatus*>(_marshaller_FoamXServer_JobStatus); - delete static_cast<_Marshaller_FoamXServer_MessageType*>(_marshaller_FoamXServer_MessageType); - delete static_cast<_Marshaller_FoamXServer_StringPair*>(_marshaller_FoamXServer_StringPair); - delete static_cast<_Marshaller_FoamXServer_HostDescriptor*>(_marshaller_FoamXServer_HostDescriptor); - delete static_cast<_Marshaller_FoamXServer_ApplicationDescriptor*>(_marshaller_FoamXServer_ApplicationDescriptor); - delete static_cast<_Marshaller_FoamXServer_CaseDescriptor*>(_marshaller_FoamXServer_CaseDescriptor); - delete static_cast<_Marshaller_FoamXServer_JobID*>(_marshaller_FoamXServer_JobID); - delete static_cast<_Marshaller_FoamXServer_JobDescriptor*>(_marshaller_FoamXServer_JobDescriptor); - delete static_cast<_Marshaller_FoamXServer_DimensionSet*>(_marshaller_FoamXServer_DimensionSet); - delete static_cast<_Marshaller_FoamXServer_FoamXSYSError*>(_marshaller_FoamXServer_FoamXSYSError); - delete static_cast<_Marshaller_FoamXServer_CaseServer_ICaseServer*>(_marshaller_FoamXServer_CaseServer_ICaseServer); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IFoamProperties*>(_marshaller_FoamXServer_CaseServer_IFoamProperties); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IApplication*>(_marshaller_FoamXServer_CaseServer_IApplication); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor*>(_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IPatchDescriptor*>(_marshaller_FoamXServer_CaseServer_IPatchDescriptor); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IGeometryDescriptor*>(_marshaller_FoamXServer_CaseServer_IGeometryDescriptor); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor*>(_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor); - delete static_cast<_Marshaller_FoamXServer_CaseServer_IGeometricField*>(_marshaller_FoamXServer_CaseServer_IGeometricField); - delete static_cast<_Marshaller_FoamXServer_CasePostServer_ICasePostServer*>(_marshaller_FoamXServer_CasePostServer_ICasePostServer); - delete static_cast<_Marshaller_FoamXServer_CaseBrowser_ICaseBrowser*>(_marshaller_FoamXServer_CaseBrowser_ICaseBrowser); - delete static_cast<_Marshaller_FoamXServer_HostBrowser_IHostBrowser*>(_marshaller_FoamXServer_HostBrowser_IHostBrowser); - delete static_cast<_Marshaller__seq_FoamXServer_FoamXAny*>(_marshaller__seq_FoamXServer_FoamXAny); - delete static_cast<_Marshaller__seq_FoamXServer_ITypeDescriptor*>(_marshaller__seq_FoamXServer_ITypeDescriptor); - delete static_cast<_Marshaller__seq_FoamXServer_IDictionaryEntry*>(_marshaller__seq_FoamXServer_IDictionaryEntry); - delete static_cast<_Marshaller__a3_float*>(_marshaller__a3_float); - delete static_cast<_Marshaller__seq_FoamXServer_StringPair*>(_marshaller__seq_FoamXServer_StringPair); - delete static_cast<_Marshaller__seq_FoamXServer_HostDescriptor*>(_marshaller__seq_FoamXServer_HostDescriptor); - delete static_cast<_Marshaller__seq_FoamXServer_ApplicationDescriptor*>(_marshaller__seq_FoamXServer_ApplicationDescriptor); - delete static_cast<_Marshaller__seq_FoamXServer_CaseDescriptor*>(_marshaller__seq_FoamXServer_CaseDescriptor); - delete static_cast<_Marshaller__seq_FoamXServer_JobID*>(_marshaller__seq_FoamXServer_JobID); - delete static_cast<_Marshaller__seq_FoamXServer_JobDescriptor*>(_marshaller__seq_FoamXServer_JobDescriptor); - delete static_cast<_Marshaller__seq_FoamXServer_DimensionSet*>(_marshaller__seq_FoamXServer_DimensionSet); - } -}; - -static __tc_init_FOAMX __init_FOAMX; - -//-------------------------------------------------------- -// Implementation of skeletons -//-------------------------------------------------------- - -// PortableServer Skeleton Class for interface FoamXServer::ITypeDescriptor -POA_FoamXServer::ITypeDescriptor::~ITypeDescriptor() -{ -} - -::FoamXServer::ITypeDescriptor_ptr -POA_FoamXServer::ITypeDescriptor::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::ITypeDescriptor::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::ITypeDescriptor::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/ITypeDescriptor:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::ITypeDescriptor::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/ITypeDescriptor:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::ITypeDescriptor::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/ITypeDescriptor:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::ITypeDescriptor::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::ITypeDescriptor_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::ITypeDescriptor::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 71)) { - case 1: - if( strcmp( __req->op_name(), "_set_optional" ) == 0 ) { - CORBA::Boolean _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - optional( _par__value ); - __req->write_results(); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "_get_type" ) == 0 ) { - ::FoamXServer::FoamXType _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXType, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = type(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_maxValue" ) == 0 ) { - ::FoamXServer::FoamXAny _par__value; - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - maxValue( _par__value ); - __req->write_results(); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "_set_path" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - path( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "addSubType" ) == 0 ) { - ::FoamXServer::FoamXType _par_type; - CORBA::StaticAny _sa_type( _marshaller_FoamXServer_FoamXType, &_par_type ); - ::FoamXServer::ITypeDescriptor_ptr _par_subEntry; - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_ITypeDescriptor, &_par_subEntry ); - - __req->add_in_arg( &_sa_type ); - __req->add_out_arg( &_sa_subEntry ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addSubType( _par_type, _par_subEntry ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_subEntry ); - return true; - } - break; - case 10: - if( strcmp( __req->op_name(), "_get_isCompoundType" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = isCompoundType(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_lookupDict" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = lookupDict(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 16: - if( strcmp( __req->op_name(), "_set_lookupDict" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - lookupDict( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 17: - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_elementType" ) == 0 ) { - ::FoamXServer::ITypeDescriptor_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = elementType(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 19: - if( strcmp( __req->op_name(), "_get_editable" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = editable(); - __req->write_results(); - return true; - } - break; - case 23: - if( strcmp( __req->op_name(), "_get_helpURL" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = helpURL(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 25: - if( strcmp( __req->op_name(), "getDefaultValue" ) == 0 ) { - ::FoamXServer::IDictionaryEntry_ptr _par_defaultValue; - CORBA::StaticAny _sa_defaultValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_defaultValue ); - - __req->add_out_arg( &_sa_defaultValue ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getDefaultValue( _par_defaultValue ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_defaultValue ); - return true; - } - break; - case 26: - if( strcmp( __req->op_name(), "_get_minValue" ) == 0 ) { - ::FoamXServer::FoamXAny* _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = minValue(); - __res.value( _marshaller_FoamXServer_FoamXAny, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 27: - if( strcmp( __req->op_name(), "_get_path" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = path(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 28: - if( strcmp( __req->op_name(), "_get_visible" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = visible(); - __req->write_results(); - return true; - } - break; - case 31: - if( strcmp( __req->op_name(), "_set_valueList" ) == 0 ) { - ::FoamXServer::FoamXAnyList _par__value; - CORBA::StaticAny _sa__value( _marshaller__seq_FoamXServer_FoamXAny, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - valueList( _par__value ); - __req->write_results(); - return true; - } - break; - case 32: - if( strcmp( __req->op_name(), "_get_dictionaryPath" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = dictionaryPath(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 33: - if( strcmp( __req->op_name(), "_get_category" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = category(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_set_comment" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - comment( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 34: - if( strcmp( __req->op_name(), "_get_subTypes" ) == 0 ) { - ::FoamXServer::TypeDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ITypeDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = subTypes(); - __res.value( _marshaller__seq_FoamXServer_ITypeDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - if( strcmp( __req->op_name(), "_set_helpURL" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - helpURL( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 36: - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 38: - if( strcmp( __req->op_name(), "_get_displayName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = displayName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_optional" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = optional(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_maxValue" ) == 0 ) { - ::FoamXServer::FoamXAny* _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = maxValue(); - __res.value( _marshaller_FoamXServer_FoamXAny, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 39: - if( strcmp( __req->op_name(), "_set_elementLabels" ) == 0 ) { - ::FoamXServer::StringList _par__value; - CORBA::StaticAny _sa__value( CORBA::_stcseq_string, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - elementLabels( _par__value ); - __req->write_results(); - return true; - } - break; - case 40: - if( strcmp( __req->op_name(), "_set_type" ) == 0 ) { - ::FoamXServer::FoamXType _par__value; - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXType, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - type( _par__value ); - __req->write_results(); - return true; - } - break; - case 41: - if( strcmp( __req->op_name(), "_set_category" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - category( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 43: - if( strcmp( __req->op_name(), "_get_isPrimitiveType" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = isPrimitiveType(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_comment" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = comment(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 44: - if( strcmp( __req->op_name(), "_get_numElements" ) == 0 ) { - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = numElements(); - __req->write_results(); - return true; - } - break; - case 46: - if( strcmp( __req->op_name(), "_set_displayName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - displayName( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 50: - if( strcmp( __req->op_name(), "_get_elementLabels" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = elementLabels(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 51: - if( strcmp( __req->op_name(), "_get_iconURL" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = iconURL(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 52: - if( strcmp( __req->op_name(), "hasDefaultValue" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = hasDefaultValue(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_numElements" ) == 0 ) { - CORBA::Long _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_long, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - numElements( _par__value ); - __req->write_results(); - return true; - } - break; - case 60: - if( strcmp( __req->op_name(), "_set_minValue" ) == 0 ) { - ::FoamXServer::FoamXAny _par__value; - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - minValue( _par__value ); - __req->write_results(); - return true; - } - break; - case 61: - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_editable" ) == 0 ) { - CORBA::Boolean _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - editable( _par__value ); - __req->write_results(); - return true; - } - break; - case 64: - if( strcmp( __req->op_name(), "_set_visible" ) == 0 ) { - CORBA::Boolean _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - visible( _par__value ); - __req->write_results(); - return true; - } - break; - case 65: - if( strcmp( __req->op_name(), "_set_iconURL" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - iconURL( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 66: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_valueList" ) == 0 ) { - ::FoamXServer::FoamXAnyList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_FoamXAny ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = valueList(); - __res.value( _marshaller__seq_FoamXServer_FoamXAny, _res ); - __req->write_results(); - delete _res; - return true; - } - if( strcmp( __req->op_name(), "_set_dictionaryPath" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - dictionaryPath( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 69: - if( strcmp( __req->op_name(), "removeSubType" ) == 0 ) { - ::FoamXServer::ITypeDescriptor_var _par_subEntry; - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_ITypeDescriptor, &_par_subEntry._for_demarshal() ); - - __req->add_in_arg( &_sa_subEntry ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - removeSubType( _par_subEntry.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::ITypeDescriptor::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::IDictionaryEntry -POA_FoamXServer::IDictionaryEntry::~IDictionaryEntry() -{ -} - -::FoamXServer::IDictionaryEntry_ptr -POA_FoamXServer::IDictionaryEntry::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::IDictionaryEntry::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::IDictionaryEntry::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/IDictionaryEntry:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::IDictionaryEntry::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/IDictionaryEntry:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::IDictionaryEntry::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/IDictionaryEntry:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::IDictionaryEntry::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::IDictionaryEntry_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::IDictionaryEntry::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 23)) { - case 0: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 1: - if( strcmp( __req->op_name(), "modified" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = modified(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 3: - if( strcmp( __req->op_name(), "save" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - save(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_typeDescriptor" ) == 0 ) { - ::FoamXServer::ITypeDescriptor_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = typeDescriptor(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "_get_selection" ) == 0 ) { - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = selection(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_selection" ) == 0 ) { - CORBA::Long _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_long, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - selection( _par__value ); - __req->write_results(); - return true; - } - break; - case 5: - if( strcmp( __req->op_name(), "nSubElements" ) == 0 ) { - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = nSubElements(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "_get_value" ) == 0 ) { - ::FoamXServer::FoamXAny* _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_FoamXAny ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = value(); - __res.value( _marshaller_FoamXServer_FoamXAny, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "_get_subElements" ) == 0 ) { - ::FoamXServer::DictionaryEntryList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_IDictionaryEntry ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = subElements(); - __res.value( _marshaller__seq_FoamXServer_IDictionaryEntry, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 18: - if( strcmp( __req->op_name(), "_set_value" ) == 0 ) { - ::FoamXServer::FoamXAny _par__value; - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_FoamXAny, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - value( _par__value ); - __req->write_results(); - return true; - } - break; - case 19: - if( strcmp( __req->op_name(), "packedList" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = packedList(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 21: - if( strcmp( __req->op_name(), "addElement" ) == 0 ) { - ::FoamXServer::IDictionaryEntry_ptr _par_subEntry; - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_IDictionaryEntry, &_par_subEntry ); - - __req->add_out_arg( &_sa_subEntry ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addElement( _par_subEntry ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_subEntry ); - return true; - } - if( strcmp( __req->op_name(), "removeElement" ) == 0 ) { - ::FoamXServer::IDictionaryEntry_var _par_subEntry; - CORBA::StaticAny _sa_subEntry( _marshaller_FoamXServer_IDictionaryEntry, &_par_subEntry._for_demarshal() ); - - __req->add_in_arg( &_sa_subEntry ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - removeElement( _par_subEntry.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 22: - if( strcmp( __req->op_name(), "setValue" ) == 0 ) { - ::FoamXServer::FoamXAny _par_value; - CORBA::StaticAny _sa_value( _marshaller_FoamXServer_FoamXAny, &_par_value ); - - __req->add_in_arg( &_sa_value ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - setValue( _par_value ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::IDictionaryEntry::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::ICaseServer -POA_FoamXServer::CaseServer::ICaseServer::~ICaseServer() -{ -} - -::FoamXServer::CaseServer::ICaseServer_ptr -POA_FoamXServer::CaseServer::ICaseServer::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::ICaseServer::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::ICaseServer::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/ICaseServer:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::ICaseServer::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/ICaseServer:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::ICaseServer::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/ICaseServer:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::ICaseServer::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::ICaseServer_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::ICaseServer::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 43)) { - case 1: - if( strcmp( __req->op_name(), "readMesh" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - readMesh(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 3: - if( strcmp( __req->op_name(), "getTime" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getTime(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 5: - if( strcmp( __req->op_name(), "_get_caseName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = caseName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "_get_foamProperties" ) == 0 ) { - ::FoamXServer::CaseServer::IFoamProperties_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IFoamProperties, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = foamProperties(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 7: - if( strcmp( __req->op_name(), "getFieldValues" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::CaseServer::IGeometricField_ptr _par_fieldValues; - CORBA::StaticAny _sa_fieldValues( _marshaller_FoamXServer_CaseServer_IGeometricField, &_par_fieldValues ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_out_arg( &_sa_fieldValues ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getFieldValues( _par_fieldName.inout(), _par_fieldValues ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_fieldValues ); - return true; - } - if( strcmp( __req->op_name(), "save" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - save(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_meshDefined" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = meshDefined(); - __req->write_results(); - return true; - } - break; - case 10: - if( strcmp( __req->op_name(), "setPatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - CORBA::String_var _par_patchPhysicalType; - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType._for_demarshal() ); - - __req->add_in_arg( &_sa_patchName ); - __req->add_in_arg( &_sa_patchPhysicalType ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - setPatchPhysicalType( _par_patchName.inout(), _par_patchPhysicalType.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_patchNames" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchNames(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "_get_caseRoot" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = caseRoot(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 12: - if( strcmp( __req->op_name(), "getDictionary" ) == 0 ) { - CORBA::String_var _par_dictionaryName; - CORBA::StaticAny _sa_dictionaryName( CORBA::_stc_string, &_par_dictionaryName._for_demarshal() ); - CORBA::Boolean _par_forceRead; - CORBA::StaticAny _sa_forceRead( CORBA::_stc_boolean, &_par_forceRead ); - ::FoamXServer::IDictionaryEntry_ptr _par_dictRoot; - CORBA::StaticAny _sa_dictRoot( _marshaller_FoamXServer_IDictionaryEntry, &_par_dictRoot ); - - __req->add_in_arg( &_sa_dictionaryName ); - __req->add_in_arg( &_sa_forceRead ); - __req->add_out_arg( &_sa_dictRoot ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getDictionary( _par_dictionaryName.inout(), _par_forceRead, _par_dictRoot ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_dictRoot ); - return true; - } - if( strcmp( __req->op_name(), "killCase" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - killCase(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 16: - if( strcmp( __req->op_name(), "_get_availableTimeSteps" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = availableTimeSteps(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 19: - if( strcmp( __req->op_name(), "setTime" ) == 0 ) { - CORBA::String_var _par_timeName; - CORBA::StaticAny _sa_timeName( CORBA::_stc_string, &_par_timeName._for_demarshal() ); - CORBA::Long _par_timeIndex; - CORBA::StaticAny _sa_timeIndex( CORBA::_stc_long, &_par_timeIndex ); - - __req->add_in_arg( &_sa_timeName ); - __req->add_in_arg( &_sa_timeIndex ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - setTime( _par_timeName.inout(), _par_timeIndex ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 24: - if( strcmp( __req->op_name(), "importMesh" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - - __req->add_in_arg( &_sa_hostName ); - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - importMesh( _par_hostName.inout(), _par_rootDir.inout(), _par_caseName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 26: - if( strcmp( __req->op_name(), "readFile" ) == 0 ) { - CORBA::String_var _par_name; - CORBA::StaticAny _sa_name( CORBA::_stc_string, &_par_name._for_demarshal() ); - char* _par_contents; - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents ); - - __req->add_in_arg( &_sa_name ); - __req->add_out_arg( &_sa_contents ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - readFile( _par_name.inout(), _par_contents ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_contents ); - return true; - } - break; - case 27: - if( strcmp( __req->op_name(), "runCase" ) == 0 ) { - CORBA::String_var _par_arguments; - CORBA::StaticAny _sa_arguments( CORBA::_stc_string, &_par_arguments._for_demarshal() ); - - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->add_in_arg( &_sa_arguments ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = runCase( _par_arguments.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 28: - if( strcmp( __req->op_name(), "writeFile" ) == 0 ) { - CORBA::String_var _par_name; - CORBA::StaticAny _sa_name( CORBA::_stc_string, &_par_name._for_demarshal() ); - CORBA::String_var _par_contents; - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents._for_demarshal() ); - - __req->add_in_arg( &_sa_name ); - __req->add_in_arg( &_sa_contents ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - writeFile( _par_name.inout(), _par_contents.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 29: - if( strcmp( __req->op_name(), "getPatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - char* _par_patchPhysicalType; - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType ); - - __req->add_in_arg( &_sa_patchName ); - __req->add_out_arg( &_sa_patchPhysicalType ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchPhysicalType( _par_patchName.inout(), _par_patchPhysicalType ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_patchPhysicalType ); - return true; - } - if( strcmp( __req->op_name(), "_set_managed" ) == 0 ) { - CORBA::Boolean _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_boolean, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - managed( _par__value ); - __req->write_results(); - return true; - } - break; - case 30: - if( strcmp( __req->op_name(), "fileModificationDate" ) == 0 ) { - CORBA::String_var _par_fileName; - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName._for_demarshal() ); - - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->add_in_arg( &_sa_fileName ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = fileModificationDate( _par_fileName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 31: - if( strcmp( __req->op_name(), "modified" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = modified(); - __req->write_results(); - return true; - } - break; - case 33: - if( strcmp( __req->op_name(), "_get_application" ) == 0 ) { - ::FoamXServer::CaseServer::IApplication_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IApplication, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = application(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 34: - if( strcmp( __req->op_name(), "_get_managed" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = managed(); - __req->write_results(); - return true; - } - break; - case 35: - if( strcmp( __req->op_name(), "deletePatch" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - - __req->add_in_arg( &_sa_patchName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deletePatch( _par_patchName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "close" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - close(); - __req->write_results(); - return true; - } - break; - case 42: - if( strcmp( __req->op_name(), "addPatch" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - CORBA::String_var _par_patchPhysicalType; - CORBA::StaticAny _sa_patchPhysicalType( CORBA::_stc_string, &_par_patchPhysicalType._for_demarshal() ); - - __req->add_in_arg( &_sa_patchName ); - __req->add_in_arg( &_sa_patchPhysicalType ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addPatch( _par_patchName.inout(), _par_patchPhysicalType.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "deleteAllPatches" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteAllPatches(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::ICaseServer::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IFoamProperties -POA_FoamXServer::CaseServer::IFoamProperties::~IFoamProperties() -{ -} - -::FoamXServer::CaseServer::IFoamProperties_ptr -POA_FoamXServer::CaseServer::IFoamProperties::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IFoamProperties::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IFoamProperties::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IFoamProperties:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IFoamProperties::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IFoamProperties:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IFoamProperties::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IFoamProperties:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IFoamProperties::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IFoamProperties_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IFoamProperties::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 41)) { - case 6: - if( strcmp( __req->op_name(), "getFoamControlDict" ) == 0 ) { - ::FoamXServer::IDictionaryEntry_ptr _par_controlDict; - CORBA::StaticAny _sa_controlDict( _marshaller_FoamXServer_IDictionaryEntry, &_par_controlDict ); - - __req->add_out_arg( &_sa_controlDict ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getFoamControlDict( _par_controlDict ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_controlDict ); - return true; - } - break; - case 7: - if( strcmp( __req->op_name(), "getFoamType" ) == 0 ) { - CORBA::String_var _par_foamTypeName; - CORBA::StaticAny _sa_foamTypeName( CORBA::_stc_string, &_par_foamTypeName._for_demarshal() ); - ::FoamXServer::ITypeDescriptor_ptr _par_typeDesc; - CORBA::StaticAny _sa_typeDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_typeDesc ); - - __req->add_in_arg( &_sa_foamTypeName ); - __req->add_out_arg( &_sa_typeDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getFoamType( _par_foamTypeName.inout(), _par_typeDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_typeDesc ); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "saveUserProperties" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - saveUserProperties(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_utilities" ) == 0 ) { - ::FoamXServer::ApplicationDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ApplicationDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = utilities(); - __res.value( _marshaller__seq_FoamXServer_ApplicationDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "findPatchFieldType" ) == 0 ) { - CORBA::String_var _par_patchFieldTypeName; - CORBA::StaticAny _sa_patchFieldTypeName( CORBA::_stc_string, &_par_patchFieldTypeName._for_demarshal() ); - ::FoamXServer::ITypeDescriptor_ptr _par_patchFieldDesc; - CORBA::StaticAny _sa_patchFieldDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_patchFieldDesc ); - - __req->add_in_arg( &_sa_patchFieldTypeName ); - __req->add_out_arg( &_sa_patchFieldDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - findPatchFieldType( _par_patchFieldTypeName.inout(), _par_patchFieldDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchFieldDesc ); - return true; - } - break; - case 12: - if( strcmp( __req->op_name(), "getUtilityControlDict" ) == 0 ) { - CORBA::String_var _par_utilityName; - CORBA::StaticAny _sa_utilityName( CORBA::_stc_string, &_par_utilityName._for_demarshal() ); - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - ::FoamXServer::IDictionaryEntry_ptr _par_controlDict; - CORBA::StaticAny _sa_controlDict( _marshaller_FoamXServer_IDictionaryEntry, &_par_controlDict ); - - __req->add_in_arg( &_sa_utilityName ); - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_out_arg( &_sa_controlDict ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getUtilityControlDict( _par_utilityName.inout(), _par_rootDir.inout(), _par_caseName.inout(), _par_controlDict ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_controlDict ); - return true; - } - break; - case 13: - if( strcmp( __req->op_name(), "findPatchType" ) == 0 ) { - CORBA::String_var _par_patchTypeName; - CORBA::StaticAny _sa_patchTypeName( CORBA::_stc_string, &_par_patchTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IPatchDescriptor_ptr _par_patchDesc; - CORBA::StaticAny _sa_patchDesc( _marshaller_FoamXServer_CaseServer_IPatchDescriptor, &_par_patchDesc ); - - __req->add_in_arg( &_sa_patchTypeName ); - __req->add_out_arg( &_sa_patchDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - findPatchType( _par_patchTypeName.inout(), _par_patchDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchDesc ); - return true; - } - if( strcmp( __req->op_name(), "_get_patchTypes" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchTypes(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 17: - if( strcmp( __req->op_name(), "cloneApplication" ) == 0 ) { - CORBA::String_var _par_appNameSrc; - CORBA::StaticAny _sa_appNameSrc( CORBA::_stc_string, &_par_appNameSrc._for_demarshal() ); - CORBA::String_var _par_appNameDest; - CORBA::StaticAny _sa_appNameDest( CORBA::_stc_string, &_par_appNameDest._for_demarshal() ); - CORBA::String_var _par_appDestPath; - CORBA::StaticAny _sa_appDestPath( CORBA::_stc_string, &_par_appDestPath._for_demarshal() ); - ::FoamXServer::CaseServer::IApplication_ptr _par_app; - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app ); - - __req->add_in_arg( &_sa_appNameSrc ); - __req->add_in_arg( &_sa_appNameDest ); - __req->add_in_arg( &_sa_appDestPath ); - __req->add_out_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - cloneApplication( _par_appNameSrc.inout(), _par_appNameDest.inout(), _par_appDestPath.inout(), _par_app ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_app ); - return true; - } - break; - case 18: - if( strcmp( __req->op_name(), "addRootDirectory" ) == 0 ) { - CORBA::String_var _par_rawRootDir; - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir._for_demarshal() ); - - __req->add_in_arg( &_sa_rawRootDir ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addRootDirectory( _par_rawRootDir.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_applicationes" ) == 0 ) { - ::FoamXServer::ApplicationDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_ApplicationDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = applicationes(); - __res.value( _marshaller__seq_FoamXServer_ApplicationDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 19: - if( strcmp( __req->op_name(), "getGeometryType" ) == 0 ) { - CORBA::String_var _par_geometryTypeName; - CORBA::StaticAny _sa_geometryTypeName( CORBA::_stc_string, &_par_geometryTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IGeometryDescriptor_ptr _par_geometryDesc; - CORBA::StaticAny _sa_geometryDesc( _marshaller_FoamXServer_CaseServer_IGeometryDescriptor, &_par_geometryDesc ); - - __req->add_in_arg( &_sa_geometryTypeName ); - __req->add_out_arg( &_sa_geometryDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getGeometryType( _par_geometryTypeName.inout(), _par_geometryDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_geometryDesc ); - return true; - } - break; - case 21: - if( strcmp( __req->op_name(), "_get_availableModules" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = availableModules(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - if( strcmp( __req->op_name(), "_get_geometryTypes" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = geometryTypes(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 22: - if( strcmp( __req->op_name(), "_get_rawRootDirectories" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = rawRootDirectories(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 26: - if( strcmp( __req->op_name(), "getPatchFieldType" ) == 0 ) { - CORBA::String_var _par_patchFieldTypeName; - CORBA::StaticAny _sa_patchFieldTypeName( CORBA::_stc_string, &_par_patchFieldTypeName._for_demarshal() ); - ::FoamXServer::ITypeDescriptor_ptr _par_patchFieldDesc; - CORBA::StaticAny _sa_patchFieldDesc( _marshaller_FoamXServer_ITypeDescriptor, &_par_patchFieldDesc ); - - __req->add_in_arg( &_sa_patchFieldTypeName ); - __req->add_out_arg( &_sa_patchFieldDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchFieldType( _par_patchFieldTypeName.inout(), _par_patchFieldDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchFieldDesc ); - return true; - } - break; - case 27: - if( strcmp( __req->op_name(), "saveSystemProperties" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - saveSystemProperties(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 29: - if( strcmp( __req->op_name(), "addApplication" ) == 0 ) { - CORBA::String_var _par_appName; - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName._for_demarshal() ); - ::FoamXServer::CaseServer::IApplication_ptr _par_app; - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app ); - - __req->add_in_arg( &_sa_appName ); - __req->add_out_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addApplication( _par_appName.inout(), _par_app ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_app ); - return true; - } - if( strcmp( __req->op_name(), "deleteApplication" ) == 0 ) { - CORBA::String_var _par_appName; - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName._for_demarshal() ); - - __req->add_in_arg( &_sa_appName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteApplication( _par_appName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 34: - if( strcmp( __req->op_name(), "getApplication" ) == 0 ) { - CORBA::String_var _par_appName; - CORBA::StaticAny _sa_appName( CORBA::_stc_string, &_par_appName._for_demarshal() ); - ::FoamXServer::CaseServer::IApplication_ptr _par_app; - CORBA::StaticAny _sa_app( _marshaller_FoamXServer_CaseServer_IApplication, &_par_app ); - - __req->add_in_arg( &_sa_appName ); - __req->add_out_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getApplication( _par_appName.inout(), _par_app ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_app ); - return true; - } - if( strcmp( __req->op_name(), "_get_rootDirectories" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = rootDirectories(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 36: - if( strcmp( __req->op_name(), "deleteRootDirectory" ) == 0 ) { - CORBA::String_var _par_rawRootDir; - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir._for_demarshal() ); - - __req->add_in_arg( &_sa_rawRootDir ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteRootDirectory( _par_rawRootDir.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 37: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 39: - if( strcmp( __req->op_name(), "_get_foamTypes" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = foamTypes(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 40: - if( strcmp( __req->op_name(), "getPatchType" ) == 0 ) { - CORBA::String_var _par_patchTypeName; - CORBA::StaticAny _sa_patchTypeName( CORBA::_stc_string, &_par_patchTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IPatchDescriptor_ptr _par_patchDesc; - CORBA::StaticAny _sa_patchDesc( _marshaller_FoamXServer_CaseServer_IPatchDescriptor, &_par_patchDesc ); - - __req->add_in_arg( &_sa_patchTypeName ); - __req->add_out_arg( &_sa_patchDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchType( _par_patchTypeName.inout(), _par_patchDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchDesc ); - return true; - } - if( strcmp( __req->op_name(), "_get_patchFieldTypes" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchFieldTypes(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IFoamProperties::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IApplication -POA_FoamXServer::CaseServer::IApplication::~IApplication() -{ -} - -::FoamXServer::CaseServer::IApplication_ptr -POA_FoamXServer::CaseServer::IApplication::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IApplication::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IApplication::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IApplication:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IApplication::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IApplication:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IApplication::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IApplication:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IApplication::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IApplication_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IApplication::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 37)) { - case 0: - if( strcmp( __req->op_name(), "deleteField" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - - __req->add_in_arg( &_sa_fieldName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteField( _par_fieldName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_fields" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = fields(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 1: - if( strcmp( __req->op_name(), "getPatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchPhysicalTypeName; - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _par_patchPhysicalTypeDescriptor; - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor ); - - __req->add_in_arg( &_sa_patchPhysicalTypeName ); - __req->add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchPhysicalType( _par_patchPhysicalTypeName.inout(), _par_patchPhysicalTypeDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchPhysicalTypeDescriptor ); - return true; - } - break; - case 2: - if( strcmp( __req->op_name(), "addPatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchPhysicalTypeName; - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _par_patchPhysicalTypeDescriptor; - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor ); - - __req->add_in_arg( &_sa_patchPhysicalTypeName ); - __req->add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addPatchPhysicalType( _par_patchPhysicalTypeName.inout(), _par_patchPhysicalTypeDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchPhysicalTypeDescriptor ); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "_get_dictionaries" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = dictionaries(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 5: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "_set_modules" ) == 0 ) { - ::FoamXServer::StringList _par__value; - CORBA::StaticAny _sa__value( CORBA::_stcseq_string, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - modules( _par__value ); - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "deleteDictionary" ) == 0 ) { - CORBA::String_var _par_dictName; - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName._for_demarshal() ); - - __req->add_in_arg( &_sa_dictName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteDictionary( _par_dictName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "getField" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _par_fieldDescriptor; - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_out_arg( &_sa_fieldDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getField( _par_fieldName.inout(), _par_fieldDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_fieldDescriptor ); - return true; - } - if( strcmp( __req->op_name(), "_get_patchPhysicalTypes" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchPhysicalTypes(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 12: - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "_set_category" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - category( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 16: - if( strcmp( __req->op_name(), "addField" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _par_fieldDescriptor; - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_out_arg( &_sa_fieldDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addField( _par_fieldName.inout(), _par_fieldDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_fieldDescriptor ); - return true; - } - break; - case 17: - if( strcmp( __req->op_name(), "_get_modules" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = modules(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 20: - if( strcmp( __req->op_name(), "getDictionary" ) == 0 ) { - CORBA::String_var _par_dictName; - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName._for_demarshal() ); - ::FoamXServer::ITypeDescriptor_ptr _par_dictTypeDescriptor; - CORBA::StaticAny _sa_dictTypeDescriptor( _marshaller_FoamXServer_ITypeDescriptor, &_par_dictTypeDescriptor ); - - __req->add_in_arg( &_sa_dictName ); - __req->add_out_arg( &_sa_dictTypeDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getDictionary( _par_dictName.inout(), _par_dictTypeDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_dictTypeDescriptor ); - return true; - } - break; - case 25: - if( strcmp( __req->op_name(), "_get_category" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = category(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 26: - if( strcmp( __req->op_name(), "save" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - save(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 28: - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 32: - if( strcmp( __req->op_name(), "findField" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _par_fieldDescriptor; - CORBA::StaticAny _sa_fieldDescriptor( _marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor, &_par_fieldDescriptor ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_out_arg( &_sa_fieldDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - findField( _par_fieldName.inout(), _par_fieldDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_fieldDescriptor ); - return true; - } - break; - case 34: - if( strcmp( __req->op_name(), "findPatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchPhysicalTypeName; - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName._for_demarshal() ); - ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _par_patchPhysicalTypeDescriptor; - CORBA::StaticAny _sa_patchPhysicalTypeDescriptor( _marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor, &_par_patchPhysicalTypeDescriptor ); - - __req->add_in_arg( &_sa_patchPhysicalTypeName ); - __req->add_out_arg( &_sa_patchPhysicalTypeDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - findPatchPhysicalType( _par_patchPhysicalTypeName.inout(), _par_patchPhysicalTypeDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchPhysicalTypeDescriptor ); - return true; - } - break; - case 35: - if( strcmp( __req->op_name(), "addDictionary" ) == 0 ) { - CORBA::String_var _par_dictName; - CORBA::StaticAny _sa_dictName( CORBA::_stc_string, &_par_dictName._for_demarshal() ); - ::FoamXServer::ITypeDescriptor_ptr _par_dictTypeDescriptor; - CORBA::StaticAny _sa_dictTypeDescriptor( _marshaller_FoamXServer_ITypeDescriptor, &_par_dictTypeDescriptor ); - - __req->add_in_arg( &_sa_dictName ); - __req->add_out_arg( &_sa_dictTypeDescriptor ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addDictionary( _par_dictName.inout(), _par_dictTypeDescriptor ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_dictTypeDescriptor ); - return true; - } - break; - case 36: - if( strcmp( __req->op_name(), "deletePatchPhysicalType" ) == 0 ) { - CORBA::String_var _par_patchPhysicalTypeName; - CORBA::StaticAny _sa_patchPhysicalTypeName( CORBA::_stc_string, &_par_patchPhysicalTypeName._for_demarshal() ); - - __req->add_in_arg( &_sa_patchPhysicalTypeName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deletePatchPhysicalType( _par_patchPhysicalTypeName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_systemClass" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = systemClass(); - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IApplication::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IGeometricFieldDescriptor -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::~IGeometricFieldDescriptor() -{ -} - -::FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IGeometricFieldDescriptor::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IGeometricFieldDescriptor_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 19)) { - case 1: - if( strcmp( __req->op_name(), "_get_geometryDescriptor" ) == 0 ) { - ::FoamXServer::CaseServer::IGeometryDescriptor_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IGeometryDescriptor, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = geometryDescriptor(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 2: - if( strcmp( __req->op_name(), "_get_dimensions" ) == 0 ) { - ::FoamXServer::DimensionSet _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_DimensionSet, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = dimensions(); - __req->write_results(); - return true; - } - break; - case 3: - if( strcmp( __req->op_name(), "_get_typeDescriptor" ) == 0 ) { - ::FoamXServer::ITypeDescriptor_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = typeDescriptor(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 5: - if( strcmp( __req->op_name(), "_set_fieldTypeName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - fieldTypeName( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 8: - if( strcmp( __req->op_name(), "_get_fieldTypeDescriptor" ) == 0 ) { - ::FoamXServer::ITypeDescriptor_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_ITypeDescriptor, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = fieldTypeDescriptor(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 10: - if( strcmp( __req->op_name(), "_set_geometryTypeName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - geometryTypeName( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 13: - if( strcmp( __req->op_name(), "_get_fieldTypeName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = fieldTypeName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_geometryTypeName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = geometryTypeName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 17: - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 18: - if( strcmp( __req->op_name(), "_set_dimensions" ) == 0 ) { - ::FoamXServer::DimensionSet _par__value; - CORBA::StaticAny _sa__value( _marshaller_FoamXServer_DimensionSet, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - dimensions( _par__value ); - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IGeometricFieldDescriptor::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IPatchDescriptor -POA_FoamXServer::CaseServer::IPatchDescriptor::~IPatchDescriptor() -{ -} - -::FoamXServer::CaseServer::IPatchDescriptor_ptr -POA_FoamXServer::CaseServer::IPatchDescriptor::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IPatchDescriptor::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IPatchDescriptor::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IPatchDescriptor::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IPatchDescriptor::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IPatchDescriptor::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IPatchDescriptor_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IPatchDescriptor::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 11)) { - case 4: - if( strcmp( __req->op_name(), "_get_displayName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = displayName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 7: - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_set_displayName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - displayName( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IPatchDescriptor::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IGeometryDescriptor -POA_FoamXServer::CaseServer::IGeometryDescriptor::~IGeometryDescriptor() -{ -} - -::FoamXServer::CaseServer::IGeometryDescriptor_ptr -POA_FoamXServer::CaseServer::IGeometryDescriptor::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IGeometryDescriptor::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IGeometryDescriptor::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IGeometryDescriptor::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IGeometryDescriptor::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IGeometryDescriptor::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IGeometryDescriptor_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IGeometryDescriptor::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 11)) { - case 4: - if( strcmp( __req->op_name(), "_get_displayName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = displayName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 7: - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_set_displayName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - displayName( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IGeometryDescriptor::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::~IPatchPhysicalTypeDescriptor() -{ -} - -::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 19)) { - case 0: - if( strcmp( __req->op_name(), "_get_displayName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = displayName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 2: - if( strcmp( __req->op_name(), "_get_patchType" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchType(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_set_patchType" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - patchType( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "_set_patchFieldTypes" ) == 0 ) { - ::FoamXServer::StringPairList _par__value; - CORBA::StaticAny _sa__value( _marshaller__seq_FoamXServer_StringPair, &_par__value ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - patchFieldTypes( _par__value ); - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "_set_displayName" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - displayName( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 10: - if( strcmp( __req->op_name(), "_get_patchFieldTypes" ) == 0 ) { - ::FoamXServer::StringPairList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_StringPair ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = patchFieldTypes(); - __res.value( _marshaller__seq_FoamXServer_StringPair, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - if( strcmp( __req->op_name(), "_get_description" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = description(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 15: - if( strcmp( __req->op_name(), "_set_parentType" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - parentType( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 17: - if( strcmp( __req->op_name(), "_set_name" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - name( _par__value.inout() ); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_set_description" ) == 0 ) { - CORBA::String_var _par__value; - CORBA::StaticAny _sa__value( CORBA::_stc_string, &_par__value._for_demarshal() ); - - __req->add_in_arg( &_sa__value ); - - if( !__req->read_args() ) - return true; - - description( _par__value.inout() ); - __req->write_results(); - return true; - } - break; - case 18: - if( strcmp( __req->op_name(), "_get_parentType" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = parentType(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseServer::IGeometricField -POA_FoamXServer::CaseServer::IGeometricField::~IGeometricField() -{ -} - -::FoamXServer::CaseServer::IGeometricField_ptr -POA_FoamXServer::CaseServer::IGeometricField::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseServer::IGeometricField::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseServer::IGeometricField::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseServer/IGeometricField:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseServer::IGeometricField::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseServer/IGeometricField:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseServer::IGeometricField::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseServer/IGeometricField:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseServer::IGeometricField::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseServer::IGeometricField_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseServer::IGeometricField::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 7)) { - case 2: - if( strcmp( __req->op_name(), "getPatchFieldParameters" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - ::FoamXServer::IDictionaryEntry_ptr _par_patchFieldValue; - CORBA::StaticAny _sa_patchFieldValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_patchFieldValue ); - - __req->add_in_arg( &_sa_patchName ); - __req->add_out_arg( &_sa_patchFieldValue ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchFieldParameters( _par_patchName.inout(), _par_patchFieldValue ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_patchFieldValue ); - return true; - } - break; - case 5: - if( strcmp( __req->op_name(), "getInternalFieldValue" ) == 0 ) { - ::FoamXServer::IDictionaryEntry_ptr _par_internalFieldValue; - CORBA::StaticAny _sa_internalFieldValue( _marshaller_FoamXServer_IDictionaryEntry, &_par_internalFieldValue ); - - __req->add_out_arg( &_sa_internalFieldValue ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getInternalFieldValue( _par_internalFieldValue ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_internalFieldValue ); - return true; - } - break; - case 6: - if( strcmp( __req->op_name(), "modified" ) == 0 ) { - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = modified(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_name" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = name(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseServer::IGeometricField::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CasePostServer::ICasePostServer -POA_FoamXServer::CasePostServer::ICasePostServer::~ICasePostServer() -{ -} - -::FoamXServer::CasePostServer::ICasePostServer_ptr -POA_FoamXServer::CasePostServer::ICasePostServer::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CasePostServer::ICasePostServer::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CasePostServer::ICasePostServer::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CasePostServer::ICasePostServer::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CasePostServer/ICasePostServer:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CasePostServer::ICasePostServer::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CasePostServer/ICasePostServer:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CasePostServer::ICasePostServer::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CasePostServer::ICasePostServer_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CasePostServer::ICasePostServer::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 41)) { - case 0: - if( strcmp( __req->op_name(), "getCutMesh" ) == 0 ) { - ::FoamXServer::Point3_slice* _par_basePoint = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - ::FoamXServer::Point3_slice* _par_normal = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_edges; - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - - __req->add_in_arg( &_sa_basePoint ); - __req->add_in_arg( &_sa_normal ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_edges ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getCutMesh( _par_basePoint, _par_normal, _par_points, _par_edges ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_edges.value( CORBA::_stcseq_long, _par_edges ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - ::FoamXServer::Point3_free( _par_basePoint ); - ::FoamXServer::Point3_free( _par_normal ); - delete _par_points; - delete _par_edges; - return true; - } - break; - case 1: - if( strcmp( __req->op_name(), "_get_nProcs" ) == 0 ) { - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = nProcs(); - __req->write_results(); - return true; - } - break; - case 2: - if( strcmp( __req->op_name(), "getCutMeshOutlineSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getCutMeshOutlineSlave(); - __req->write_results(); - return true; - } - break; - case 3: - if( strcmp( __req->op_name(), "getPatchNamesSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getPatchNamesSlave(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "getTriPatchVec" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_triFaces; - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - ::FoamXServer::FloatList* _par_values; - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_in_arg( &_sa_patchName ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_triFaces ); - __req->add_out_arg( &_sa_values ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getTriPatchVec( _par_fieldName.inout(), _par_patchName.inout(), _par_points, _par_triFaces, _par_values ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_triFaces.value( CORBA::_stcseq_long, _par_triFaces ); - _sa_values.value( CORBA::_stcseq_float, _par_values ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - delete _par_points; - delete _par_triFaces; - delete _par_values; - return true; - } - if( strcmp( __req->op_name(), "cutPlaneVecSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - cutPlaneVecSlave(); - __req->write_results(); - return true; - } - break; - case 8: - if( strcmp( __req->op_name(), "getCutMeshSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getCutMeshSlave(); - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "getPatchMeshSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getPatchMeshSlave(); - __req->write_results(); - return true; - } - break; - case 10: - if( strcmp( __req->op_name(), "getMeshBb" ) == 0 ) { - ::FoamXServer::Point3_slice* _par_min = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_min( _marshaller__a3_float, _par_min ); - ::FoamXServer::Point3_slice* _par_max = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_max( _marshaller__a3_float, _par_max ); - - __req->add_out_arg( &_sa_min ); - __req->add_out_arg( &_sa_max ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getMeshBb( _par_min, _par_max ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - ::FoamXServer::Point3_free( _par_min ); - ::FoamXServer::Point3_free( _par_max ); - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "getMeshBbSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getMeshBbSlave(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "getPatchMesh" ) == 0 ) { - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - CORBA::Double _par_creaseAngle; - CORBA::StaticAny _sa_creaseAngle( CORBA::_stc_double, &_par_creaseAngle ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_edges; - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - - __req->add_in_arg( &_sa_patchName ); - __req->add_in_arg( &_sa_creaseAngle ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_edges ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getPatchMesh( _par_patchName.inout(), _par_creaseAngle, _par_points, _par_edges ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_edges.value( CORBA::_stcseq_long, _par_edges ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - delete _par_points; - delete _par_edges; - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "close" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - close(); - __req->write_results(); - return true; - } - break; - case 15: - if( strcmp( __req->op_name(), "setTime" ) == 0 ) { - CORBA::String_var _par_timeName; - CORBA::StaticAny _sa_timeName( CORBA::_stc_string, &_par_timeName._for_demarshal() ); - CORBA::Long _par_timeIndex; - CORBA::StaticAny _sa_timeIndex( CORBA::_stc_long, &_par_timeIndex ); - - __req->add_in_arg( &_sa_timeName ); - __req->add_in_arg( &_sa_timeIndex ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - setTime( _par_timeName.inout(), _par_timeIndex ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "cutPlaneVec" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::Point3_slice* _par_basePoint = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - ::FoamXServer::Point3_slice* _par_normal = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_triFaces; - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - ::FoamXServer::FloatList* _par_values; - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_in_arg( &_sa_basePoint ); - __req->add_in_arg( &_sa_normal ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_triFaces ); - __req->add_out_arg( &_sa_values ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - cutPlaneVec( _par_fieldName.inout(), _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_triFaces.value( CORBA::_stcseq_long, _par_triFaces ); - _sa_values.value( CORBA::_stcseq_float, _par_values ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - ::FoamXServer::Point3_free( _par_basePoint ); - ::FoamXServer::Point3_free( _par_normal ); - delete _par_points; - delete _par_triFaces; - delete _par_values; - return true; - } - if( strcmp( __req->op_name(), "_get_caseRoot" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = caseRoot(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - case 19: - if( strcmp( __req->op_name(), "getTriPatch" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - CORBA::String_var _par_patchName; - CORBA::StaticAny _sa_patchName( CORBA::_stc_string, &_par_patchName._for_demarshal() ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_triFaces; - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - ::FoamXServer::FloatList* _par_values; - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_in_arg( &_sa_patchName ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_triFaces ); - __req->add_out_arg( &_sa_values ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getTriPatch( _par_fieldName.inout(), _par_patchName.inout(), _par_points, _par_triFaces, _par_values ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_triFaces.value( CORBA::_stcseq_long, _par_triFaces ); - _sa_values.value( CORBA::_stcseq_float, _par_values ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - delete _par_points; - delete _par_triFaces; - delete _par_values; - return true; - } - break; - case 22: - if( strcmp( __req->op_name(), "getTriPatchVecSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getTriPatchVecSlave(); - __req->write_results(); - return true; - } - break; - case 24: - if( strcmp( __req->op_name(), "cutPlaneSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - cutPlaneSlave(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_availableTimeSteps" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = availableTimeSteps(); - __res.value( CORBA::_stcseq_string, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 30: - if( strcmp( __req->op_name(), "setTimeSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - setTimeSlave(); - __req->write_results(); - return true; - } - break; - case 33: - if( strcmp( __req->op_name(), "getTriPatchSlave" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - getTriPatchSlave(); - __req->write_results(); - return true; - } - break; - case 35: - if( strcmp( __req->op_name(), "getPatchNames" ) == 0 ) { - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getPatchNames(); - __res.value( CORBA::_stcseq_string, _res ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - delete _res; - return true; - } - if( strcmp( __req->op_name(), "getFieldNames" ) == 0 ) { - CORBA::String_var _par_type; - CORBA::StaticAny _sa_type( CORBA::_stc_string, &_par_type._for_demarshal() ); - - ::FoamXServer::StringList* _res; - CORBA::StaticAny __res( CORBA::_stcseq_string ); - __req->add_in_arg( &_sa_type ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getFieldNames( _par_type.inout() ); - __res.value( CORBA::_stcseq_string, _res ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - delete _res; - return true; - } - if( strcmp( __req->op_name(), "cutPlane" ) == 0 ) { - CORBA::String_var _par_fieldName; - CORBA::StaticAny _sa_fieldName( CORBA::_stc_string, &_par_fieldName._for_demarshal() ); - ::FoamXServer::Point3_slice* _par_basePoint = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - ::FoamXServer::Point3_slice* _par_normal = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_triFaces; - CORBA::StaticAny _sa_triFaces( CORBA::_stcseq_long ); - ::FoamXServer::FloatList* _par_values; - CORBA::StaticAny _sa_values( CORBA::_stcseq_float ); - - __req->add_in_arg( &_sa_fieldName ); - __req->add_in_arg( &_sa_basePoint ); - __req->add_in_arg( &_sa_normal ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_triFaces ); - __req->add_out_arg( &_sa_values ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - cutPlane( _par_fieldName.inout(), _par_basePoint, _par_normal, _par_points, _par_triFaces, _par_values ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_triFaces.value( CORBA::_stcseq_long, _par_triFaces ); - _sa_values.value( CORBA::_stcseq_float, _par_values ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - ::FoamXServer::Point3_free( _par_basePoint ); - ::FoamXServer::Point3_free( _par_normal ); - delete _par_points; - delete _par_triFaces; - delete _par_values; - return true; - } - break; - case 38: - if( strcmp( __req->op_name(), "getCutMeshOutline" ) == 0 ) { - ::FoamXServer::Point3_slice* _par_basePoint = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_basePoint( _marshaller__a3_float, _par_basePoint ); - ::FoamXServer::Point3_slice* _par_normal = ::FoamXServer::Point3_alloc(); - CORBA::StaticAny _sa_normal( _marshaller__a3_float, _par_normal ); - ::FoamXServer::FloatList* _par_points; - CORBA::StaticAny _sa_points( CORBA::_stcseq_float ); - ::FoamXServer::LongList* _par_edges; - CORBA::StaticAny _sa_edges( CORBA::_stcseq_long ); - - __req->add_in_arg( &_sa_basePoint ); - __req->add_in_arg( &_sa_normal ); - __req->add_out_arg( &_sa_points ); - __req->add_out_arg( &_sa_edges ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getCutMeshOutline( _par_basePoint, _par_normal, _par_points, _par_edges ); - _sa_points.value( CORBA::_stcseq_float, _par_points ); - _sa_edges.value( CORBA::_stcseq_long, _par_edges ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - ::FoamXServer::Point3_free( _par_basePoint ); - ::FoamXServer::Point3_free( _par_normal ); - delete _par_points; - delete _par_edges; - return true; - } - break; - case 40: - if( strcmp( __req->op_name(), "_get_caseName" ) == 0 ) { - char* _res; - CORBA::StaticAny __res( CORBA::_stc_string, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = caseName(); - __req->write_results(); - CORBA::string_free( _res ); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CasePostServer::ICasePostServer::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::CaseBrowser::ICaseBrowser -POA_FoamXServer::CaseBrowser::ICaseBrowser::~ICaseBrowser() -{ -} - -::FoamXServer::CaseBrowser::ICaseBrowser_ptr -POA_FoamXServer::CaseBrowser::ICaseBrowser::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::CaseBrowser::ICaseBrowser::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::CaseBrowser::ICaseBrowser::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::CaseBrowser::ICaseBrowser::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::CaseBrowser::ICaseBrowser::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::CaseBrowser::ICaseBrowser::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::CaseBrowser::ICaseBrowser_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::CaseBrowser::ICaseBrowser::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 61)) { - case 1: - if( strcmp( __req->op_name(), "refreshJobsLists" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - refreshJobsLists(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 2: - if( strcmp( __req->op_name(), "addToCaseList" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addToCaseList( _par_rootDir.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 4: - if( strcmp( __req->op_name(), "openCasePost" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::Long _par_nProcs; - CORBA::StaticAny _sa_nProcs( CORBA::_stc_long, &_par_nProcs ); - - __req->add_in_arg( &_sa_caseDesc ); - __req->add_in_arg( &_sa_nProcs ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - openCasePost( _par_caseDesc, _par_nProcs ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 8: - if( strcmp( __req->op_name(), "getUserName" ) == 0 ) { - char* _par_userName; - CORBA::StaticAny _sa_userName( CORBA::_stc_string, &_par_userName ); - - __req->add_out_arg( &_sa_userName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getUserName( _par_userName ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_userName ); - return true; - } - if( strcmp( __req->op_name(), "readFile" ) == 0 ) { - CORBA::String_var _par_fileName; - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName._for_demarshal() ); - char* _par_contents; - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents ); - - __req->add_in_arg( &_sa_fileName ); - __req->add_out_arg( &_sa_contents ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - readFile( _par_fileName.inout(), _par_contents ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_contents ); - return true; - } - if( strcmp( __req->op_name(), "unlockCaseDescriptor" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - __req->add_in_arg( &_sa_caseDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - unlockCaseDescriptor( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 11: - if( strcmp( __req->op_name(), "newCase" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - CORBA::String_var _par_app; - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_in_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - newCase( _par_rootDir.inout(), _par_caseName.inout(), _par_app.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "caseLocked" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_caseDesc ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = caseLocked( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 12: - if( strcmp( __req->op_name(), "cont" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - - __req->add_in_arg( &_sa_jobID ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - cont( _par_jobID ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "invokeUtility" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - CORBA::String_var _par_utilityName; - CORBA::StaticAny _sa_utilityName( CORBA::_stc_string, &_par_utilityName._for_demarshal() ); - ::FoamXServer::StringList _par_arguments; - CORBA::StaticAny _sa_arguments( CORBA::_stcseq_string, &_par_arguments ); - CORBA::String_var _par_logName; - CORBA::StaticAny _sa_logName( CORBA::_stc_string, &_par_logName._for_demarshal() ); - CORBA::Boolean _par_backGround; - CORBA::StaticAny _sa_backGround( CORBA::_stc_boolean, &_par_backGround ); - - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->add_in_arg( &_sa_hostName ); - __req->add_in_arg( &_sa_utilityName ); - __req->add_in_arg( &_sa_arguments ); - __req->add_in_arg( &_sa_logName ); - __req->add_in_arg( &_sa_backGround ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = invokeUtility( _par_hostName.inout(), _par_utilityName.inout(), _par_arguments, _par_logName.inout(), _par_backGround ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "openCase" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - __req->add_in_arg( &_sa_caseDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - openCase( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "suspend" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - - __req->add_in_arg( &_sa_jobID ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - suspend( _par_jobID ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 15: - if( strcmp( __req->op_name(), "deleteCase" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - __req->add_in_arg( &_sa_caseDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - deleteCase( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 16: - if( strcmp( __req->op_name(), "getEnv" ) == 0 ) { - CORBA::String_var _par_envName; - CORBA::StaticAny _sa_envName( CORBA::_stc_string, &_par_envName._for_demarshal() ); - char* _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - - __req->add_in_arg( &_sa_envName ); - __req->add_out_arg( &_sa_hostName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getEnv( _par_envName.inout(), _par_hostName ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_hostName ); - return true; - } - if( strcmp( __req->op_name(), "getCaseServerReference" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - ::FoamXServer::CaseServer::ICaseServer_ptr _par_caseObj; - CORBA::StaticAny _sa_caseObj( _marshaller_FoamXServer_CaseServer_ICaseServer, &_par_caseObj ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_out_arg( &_sa_caseObj ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getCaseServerReference( _par_rootDir.inout(), _par_caseName.inout(), _par_caseObj ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_caseObj ); - return true; - } - break; - case 18: - if( strcmp( __req->op_name(), "close" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - close(); - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_cases" ) == 0 ) { - ::FoamXServer::CaseDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_CaseDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = cases(); - __res.value( _marshaller__seq_FoamXServer_CaseDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 22: - if( strcmp( __req->op_name(), "end" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - CORBA::Boolean _par_now; - CORBA::StaticAny _sa_now( CORBA::_stc_boolean, &_par_now ); - - __req->add_in_arg( &_sa_jobID ); - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_in_arg( &_sa_now ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - end( _par_jobID, _par_rootDir.inout(), _par_caseName.inout(), _par_now ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 23: - if( strcmp( __req->op_name(), "getCasePostServerReference" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - CORBA::Long _par_nProcs; - CORBA::StaticAny _sa_nProcs( CORBA::_stc_long, &_par_nProcs ); - ::FoamXServer::CasePostServer::ICasePostServer_ptr _par_caseObj; - CORBA::StaticAny _sa_caseObj( _marshaller_FoamXServer_CasePostServer_ICasePostServer, &_par_caseObj ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_in_arg( &_sa_nProcs ); - __req->add_out_arg( &_sa_caseObj ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getCasePostServerReference( _par_rootDir.inout(), _par_caseName.inout(), _par_nProcs, _par_caseObj ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_caseObj ); - return true; - } - break; - case 25: - if( strcmp( __req->op_name(), "purgeFinishedJob" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - - __req->add_in_arg( &_sa_jobID ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - purgeFinishedJob( _par_jobID ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 26: - if( strcmp( __req->op_name(), "_get_foamProperties" ) == 0 ) { - ::FoamXServer::CaseServer::IFoamProperties_ptr _res; - CORBA::StaticAny __res( _marshaller_FoamXServer_CaseServer_IFoamProperties, &_res ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = foamProperties(); - __req->write_results(); - CORBA::release( _res ); - return true; - } - break; - case 27: - if( strcmp( __req->op_name(), "refreshCaseList" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - refreshCaseList(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 28: - if( strcmp( __req->op_name(), "unlockCase" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - unlockCase( _par_rootDir.inout(), _par_caseName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 31: - if( strcmp( __req->op_name(), "purgeFinishedJobs" ) == 0 ) { - CORBA::Long _par_nDays; - CORBA::StaticAny _sa_nDays( CORBA::_stc_long, &_par_nDays ); - - __req->add_in_arg( &_sa_nDays ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - purgeFinishedJobs( _par_nDays ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 33: - if( strcmp( __req->op_name(), "kill" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - - __req->add_in_arg( &_sa_jobID ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - kill( _par_jobID ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 36: - if( strcmp( __req->op_name(), "isCaseInError" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_caseDesc ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = isCaseInError( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 37: - if( strcmp( __req->op_name(), "cloneCase" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - CORBA::String_var _par_newCaseRootDir; - CORBA::StaticAny _sa_newCaseRootDir( CORBA::_stc_string, &_par_newCaseRootDir._for_demarshal() ); - CORBA::String_var _par_newCaseName; - CORBA::StaticAny _sa_newCaseName( CORBA::_stc_string, &_par_newCaseName._for_demarshal() ); - CORBA::String_var _par_newAppClassName; - CORBA::StaticAny _sa_newAppClassName( CORBA::_stc_string, &_par_newAppClassName._for_demarshal() ); - CORBA::String_var _par_timeSel; - CORBA::StaticAny _sa_timeSel( CORBA::_stc_string, &_par_timeSel._for_demarshal() ); - - __req->add_in_arg( &_sa_caseDesc ); - __req->add_in_arg( &_sa_newCaseRootDir ); - __req->add_in_arg( &_sa_newCaseName ); - __req->add_in_arg( &_sa_newAppClassName ); - __req->add_in_arg( &_sa_timeSel ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - cloneCase( _par_caseDesc, _par_newCaseRootDir.inout(), _par_newCaseName.inout(), _par_newAppClassName.inout(), _par_timeSel.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 39: - if( strcmp( __req->op_name(), "fileModificationDate" ) == 0 ) { - CORBA::String_var _par_fileName; - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName._for_demarshal() ); - - CORBA::Long _res; - CORBA::StaticAny __res( CORBA::_stc_long, &_res ); - __req->add_in_arg( &_sa_fileName ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = fileModificationDate( _par_fileName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 40: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "save" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - save(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 44: - if( strcmp( __req->op_name(), "purgeRunningJobs" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - purgeRunningJobs(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 46: - if( strcmp( __req->op_name(), "importCase" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - CORBA::String_var _par_app; - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_in_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - importCase( _par_rootDir.inout(), _par_caseName.inout(), _par_app.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 49: - if( strcmp( __req->op_name(), "addCase" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_rawRootDir; - CORBA::StaticAny _sa_rawRootDir( CORBA::_stc_string, &_par_rawRootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - CORBA::String_var _par_app; - CORBA::StaticAny _sa_app( CORBA::_stc_string, &_par_app._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_rawRootDir ); - __req->add_in_arg( &_sa_caseName ); - __req->add_in_arg( &_sa_app ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - addCase( _par_rootDir.inout(), _par_rawRootDir.inout(), _par_caseName.inout(), _par_app.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "caseOpen" ) == 0 ) { - CORBA::String_var _par_rootDir; - CORBA::StaticAny _sa_rootDir( CORBA::_stc_string, &_par_rootDir._for_demarshal() ); - CORBA::String_var _par_caseName; - CORBA::StaticAny _sa_caseName( CORBA::_stc_string, &_par_caseName._for_demarshal() ); - - __req->add_in_arg( &_sa_rootDir ); - __req->add_in_arg( &_sa_caseName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - caseOpen( _par_rootDir.inout(), _par_caseName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 50: - if( strcmp( __req->op_name(), "checkRunningJobs" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - checkRunningJobs(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 54: - if( strcmp( __req->op_name(), "caseIsInError" ) == 0 ) { - ::FoamXServer::CaseDescriptor _par_caseDesc; - CORBA::StaticAny _sa_caseDesc( _marshaller_FoamXServer_CaseDescriptor, &_par_caseDesc ); - - __req->add_in_arg( &_sa_caseDesc ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - caseIsInError( _par_caseDesc ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_finishedJobs" ) == 0 ) { - ::FoamXServer::JobDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_JobDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = finishedJobs(); - __res.value( _marshaller__seq_FoamXServer_JobDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 56: - if( strcmp( __req->op_name(), "setStatus" ) == 0 ) { - ::FoamXServer::JobID _par_jobID; - CORBA::StaticAny _sa_jobID( _marshaller_FoamXServer_JobID, &_par_jobID ); - ::FoamXServer::JobStatus _par_jobStatus; - CORBA::StaticAny _sa_jobStatus( _marshaller_FoamXServer_JobStatus, &_par_jobStatus ); - - __req->add_in_arg( &_sa_jobID ); - __req->add_in_arg( &_sa_jobStatus ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - setStatus( _par_jobID, _par_jobStatus ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 57: - if( strcmp( __req->op_name(), "getHostName" ) == 0 ) { - char* _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName ); - - __req->add_out_arg( &_sa_hostName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - getHostName( _par_hostName ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::string_free( _par_hostName ); - return true; - } - if( strcmp( __req->op_name(), "writeFile" ) == 0 ) { - CORBA::String_var _par_fileName; - CORBA::StaticAny _sa_fileName( CORBA::_stc_string, &_par_fileName._for_demarshal() ); - CORBA::String_var _par_contents; - CORBA::StaticAny _sa_contents( CORBA::_stc_string, &_par_contents._for_demarshal() ); - - __req->add_in_arg( &_sa_fileName ); - __req->add_in_arg( &_sa_contents ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - writeFile( _par_fileName.inout(), _par_contents.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_runningJobs" ) == 0 ) { - ::FoamXServer::JobDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_JobDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = runningJobs(); - __res.value( _marshaller__seq_FoamXServer_JobDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::CaseBrowser::ICaseBrowser::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - - -// PortableServer Skeleton Class for interface FoamXServer::HostBrowser::IHostBrowser -POA_FoamXServer::HostBrowser::IHostBrowser::~IHostBrowser() -{ -} - -::FoamXServer::HostBrowser::IHostBrowser_ptr -POA_FoamXServer::HostBrowser::IHostBrowser::_this () -{ - CORBA::Object_var obj = PortableServer::ServantBase::_this(); - return ::FoamXServer::HostBrowser::IHostBrowser::_narrow (obj); -} - -CORBA::Boolean -POA_FoamXServer::HostBrowser::IHostBrowser::_is_a (const char * repoid) -{ - if (strcmp (repoid, "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0") == 0) { - return TRUE; - } - return FALSE; -} - -CORBA::InterfaceDef_ptr -POA_FoamXServer::HostBrowser::IHostBrowser::_get_interface () -{ - CORBA::InterfaceDef_ptr ifd = PortableServer::ServantBase::_get_interface ("IDL:FoamXServer/HostBrowser/IHostBrowser:1.0"); - - if (CORBA::is_nil (ifd)) { - mico_throw (CORBA::OBJ_ADAPTER (0, CORBA::COMPLETED_NO)); - } - - return ifd; -} - -CORBA::RepositoryId -POA_FoamXServer::HostBrowser::IHostBrowser::_primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr) -{ - return CORBA::string_dup ("IDL:FoamXServer/HostBrowser/IHostBrowser:1.0"); -} - -CORBA::Object_ptr -POA_FoamXServer::HostBrowser::IHostBrowser::_make_stub (PortableServer::POA_ptr poa, CORBA::Object_ptr obj) -{ - return new ::FoamXServer::HostBrowser::IHostBrowser_stub_clp (poa, obj); -} - -bool -POA_FoamXServer::HostBrowser::IHostBrowser::dispatch (CORBA::StaticServerRequest_ptr __req) -{ - #ifdef HAVE_EXCEPTIONS - try { - #endif - switch (mico_string_hash (__req->op_name(), 17)) { - case 3: - if( strcmp( __req->op_name(), "close" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - close(); - __req->write_results(); - return true; - } - break; - case 7: - if( strcmp( __req->op_name(), "isHostAlive" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_hostName ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = isHostAlive( _par_hostName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 8: - if( strcmp( __req->op_name(), "validate" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - validate(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 9: - if( strcmp( __req->op_name(), "hostIsDead" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - - __req->add_in_arg( &_sa_hostName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - hostIsDead( _par_hostName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 12: - if( strcmp( __req->op_name(), "getCaseBrowserReference" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - ::FoamXServer::CaseBrowser::ICaseBrowser_ptr _par_browserObj; - CORBA::StaticAny _sa_browserObj( _marshaller_FoamXServer_CaseBrowser_ICaseBrowser, &_par_browserObj ); - - CORBA::Boolean _res; - CORBA::StaticAny __res( CORBA::_stc_boolean, &_res ); - __req->add_in_arg( &_sa_hostName ); - __req->add_out_arg( &_sa_browserObj ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - _res = getCaseBrowserReference( _par_hostName.inout(), _par_browserObj ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - CORBA::release( _par_browserObj ); - return true; - } - break; - case 13: - if( strcmp( __req->op_name(), "hostIsAlive" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - - __req->add_in_arg( &_sa_hostName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - hostIsAlive( _par_hostName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "openCaseBrowser" ) == 0 ) { - CORBA::String_var _par_hostName; - CORBA::StaticAny _sa_hostName( CORBA::_stc_string, &_par_hostName._for_demarshal() ); - - __req->add_in_arg( &_sa_hostName ); - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - openCaseBrowser( _par_hostName.inout() ); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXSYSError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - case 14: - if( strcmp( __req->op_name(), "refreshHostList" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - refreshHostList(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - if( strcmp( __req->op_name(), "_get_hosts" ) == 0 ) { - ::FoamXServer::HostDescriptorList* _res; - CORBA::StaticAny __res( _marshaller__seq_FoamXServer_HostDescriptor ); - __req->set_result( &__res ); - - if( !__req->read_args() ) - return true; - - _res = hosts(); - __res.value( _marshaller__seq_FoamXServer_HostDescriptor, _res ); - __req->write_results(); - delete _res; - return true; - } - break; - case 16: - if( strcmp( __req->op_name(), "save" ) == 0 ) { - - if( !__req->read_args() ) - return true; - - #ifdef HAVE_EXCEPTIONS - try { - #endif - save(); - #ifdef HAVE_EXCEPTIONS - } catch( ::FoamXServer::FoamXError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::FoamXIOError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ::FoamXServer::ValidationError_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } - #endif - __req->write_results(); - return true; - } - break; - } - #ifdef HAVE_EXCEPTIONS - } catch( CORBA::SystemException_catch &_ex ) { - __req->set_exception( _ex->_clone() ); - __req->write_results(); - return true; - } catch( ... ) { - CORBA::UNKNOWN _ex (CORBA::OMGVMCID | 1, CORBA::COMPLETED_MAYBE); - __req->set_exception (_ex->_clone()); - __req->write_results (); - return true; - } - #endif - - return false; -} - -void -POA_FoamXServer::HostBrowser::IHostBrowser::invoke (CORBA::StaticServerRequest_ptr __req) -{ - if (dispatch (__req)) { - return; - } - - CORBA::Exception * ex = - new CORBA::BAD_OPERATION (0, CORBA::COMPLETED_NO); - __req->set_exception (ex); - __req->write_results(); -} - diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.H b/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.H deleted file mode 100644 index 912557d89f..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/FoamX.H +++ /dev/null @@ -1,3320 +0,0 @@ -/* - * MICO --- an Open Source CORBA implementation - * Copyright (c) 1997-2006 by The Mico Team - * - * This file was automatically generated. DO NOT EDIT! - */ - -#include -#include - -#ifndef __FOAMX_H__ -#define __FOAMX_H__ - - - - - - -namespace FoamXServer -{ - -class ITypeDescriptor; -typedef ITypeDescriptor *ITypeDescriptor_ptr; -typedef ITypeDescriptor_ptr ITypeDescriptorRef; -typedef ObjVar< ITypeDescriptor > ITypeDescriptor_var; -typedef ObjOut< ITypeDescriptor > ITypeDescriptor_out; - -class IDictionaryEntry; -typedef IDictionaryEntry *IDictionaryEntry_ptr; -typedef IDictionaryEntry_ptr IDictionaryEntryRef; -typedef ObjVar< IDictionaryEntry > IDictionaryEntry_var; -typedef ObjOut< IDictionaryEntry > IDictionaryEntry_out; - - - -namespace CaseServer -{ - -class IApplication; -typedef IApplication *IApplication_ptr; -typedef IApplication_ptr IApplicationRef; -typedef ObjVar< IApplication > IApplication_var; -typedef ObjOut< IApplication > IApplication_out; - -class IFoamProperties; -typedef IFoamProperties *IFoamProperties_ptr; -typedef IFoamProperties_ptr IFoamPropertiesRef; -typedef ObjVar< IFoamProperties > IFoamProperties_var; -typedef ObjOut< IFoamProperties > IFoamProperties_out; - -class IGeometricField; -typedef IGeometricField *IGeometricField_ptr; -typedef IGeometricField_ptr IGeometricFieldRef; -typedef ObjVar< IGeometricField > IGeometricField_var; -typedef ObjOut< IGeometricField > IGeometricField_out; - -class ICaseServer; -typedef ICaseServer *ICaseServer_ptr; -typedef ICaseServer_ptr ICaseServerRef; -typedef ObjVar< ICaseServer > ICaseServer_var; -typedef ObjOut< ICaseServer > ICaseServer_out; - -class IGeometryDescriptor; -typedef IGeometryDescriptor *IGeometryDescriptor_ptr; -typedef IGeometryDescriptor_ptr IGeometryDescriptorRef; -typedef ObjVar< IGeometryDescriptor > IGeometryDescriptor_var; -typedef ObjOut< IGeometryDescriptor > IGeometryDescriptor_out; - -class IPatchDescriptor; -typedef IPatchDescriptor *IPatchDescriptor_ptr; -typedef IPatchDescriptor_ptr IPatchDescriptorRef; -typedef ObjVar< IPatchDescriptor > IPatchDescriptor_var; -typedef ObjOut< IPatchDescriptor > IPatchDescriptor_out; - -class IGeometricFieldDescriptor; -typedef IGeometricFieldDescriptor *IGeometricFieldDescriptor_ptr; -typedef IGeometricFieldDescriptor_ptr IGeometricFieldDescriptorRef; -typedef ObjVar< IGeometricFieldDescriptor > IGeometricFieldDescriptor_var; -typedef ObjOut< IGeometricFieldDescriptor > IGeometricFieldDescriptor_out; - -class IPatchPhysicalTypeDescriptor; -typedef IPatchPhysicalTypeDescriptor *IPatchPhysicalTypeDescriptor_ptr; -typedef IPatchPhysicalTypeDescriptor_ptr IPatchPhysicalTypeDescriptorRef; -typedef ObjVar< IPatchPhysicalTypeDescriptor > IPatchPhysicalTypeDescriptor_var; -typedef ObjOut< IPatchPhysicalTypeDescriptor > IPatchPhysicalTypeDescriptor_out; - -} - - -namespace CasePostServer -{ - -class ICasePostServer; -typedef ICasePostServer *ICasePostServer_ptr; -typedef ICasePostServer_ptr ICasePostServerRef; -typedef ObjVar< ICasePostServer > ICasePostServer_var; -typedef ObjOut< ICasePostServer > ICasePostServer_out; - -} - - -namespace CaseBrowser -{ - -class ICaseBrowser; -typedef ICaseBrowser *ICaseBrowser_ptr; -typedef ICaseBrowser_ptr ICaseBrowserRef; -typedef ObjVar< ICaseBrowser > ICaseBrowser_var; -typedef ObjOut< ICaseBrowser > ICaseBrowser_out; - -} - - -namespace HostBrowser -{ - -class IHostBrowser; -typedef IHostBrowser *IHostBrowser_ptr; -typedef IHostBrowser_ptr IHostBrowserRef; -typedef ObjVar< IHostBrowser > IHostBrowser_var; -typedef ObjOut< IHostBrowser > IHostBrowser_out; - -} -} - - - - - - -namespace FoamXServer -{ - -enum FoamXType { - Type_Undefined = 0, - Type_Boolean, - Type_Label, - Type_Scalar, - Type_Char, - Type_Word, - Type_String, - Type_RootDir, - Type_RootAndCase, - Type_CaseName, - Type_HostName, - Type_File, - Type_Directory, - Type_Time, - Type_DimensionSet, - Type_FixedList, - Type_List, - Type_Dictionary, - Type_Selection, - Type_Compound, - Type_Field -}; - -typedef FoamXType& FoamXType_out; - -extern CORBA::TypeCodeConst _tc_FoamXType; - -struct FoamXAny; -typedef TVarVar< FoamXAny > FoamXAny_var; -typedef TVarOut< FoamXAny > FoamXAny_out; - - -struct FoamXAny { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef FoamXAny_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - FoamXAny(); - ~FoamXAny(); - FoamXAny( const FoamXAny& s ); - FoamXAny& operator=( const FoamXAny& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - FoamXType type; - CORBA::Any value; -}; - -extern CORBA::TypeCodeConst _tc_FoamXAny; - -typedef SequenceTmpl< FoamXAny,MICO_TID_DEF> FoamXAnyList; -typedef TSeqVar< SequenceTmpl< FoamXAny,MICO_TID_DEF> > FoamXAnyList_var; -typedef TSeqOut< SequenceTmpl< FoamXAny,MICO_TID_DEF> > FoamXAnyList_out; - -extern CORBA::TypeCodeConst _tc_FoamXAnyList; - -typedef StringSequenceTmpl StringList; -typedef TSeqVar< StringSequenceTmpl > StringList_var; -typedef TSeqOut< StringSequenceTmpl > StringList_out; - -extern CORBA::TypeCodeConst _tc_StringList; - -typedef IfaceSequenceTmpl< ITypeDescriptor_var,ITypeDescriptor_ptr> TypeDescriptorList; -typedef TSeqVar< IfaceSequenceTmpl< ITypeDescriptor_var,ITypeDescriptor_ptr> > TypeDescriptorList_var; -typedef TSeqOut< IfaceSequenceTmpl< ITypeDescriptor_var,ITypeDescriptor_ptr> > TypeDescriptorList_out; - -extern CORBA::TypeCodeConst _tc_TypeDescriptorList; - -enum ErrorCode { - S_OK = 0, - E_FAIL, - E_FOAM, - E_INVALID_ARG, - E_INVALID_PTR, - E_INVALID_REF, - E_INDEX_OUT_OF_BOUNDS, - E_UNKNOWN_NAME, - E_UNEXPECTED -}; - -typedef ErrorCode& ErrorCode_out; - -extern CORBA::TypeCodeConst _tc_ErrorCode; - -struct FoamXError : public CORBA::UserException { - #ifdef HAVE_EXPLICIT_STRUCT_OPS - FoamXError(); - ~FoamXError(); - FoamXError( const FoamXError& s ); - FoamXError& operator=( const FoamXError& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - #ifndef HAVE_EXPLICIT_STRUCT_OPS - FoamXError(); - #endif //HAVE_EXPLICIT_STRUCT_OPS - FoamXError( ::FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2, const char* _m3, CORBA::Long _m4 ); - - #ifdef HAVE_STD_EH - FoamXError *operator->() { return this; } - FoamXError& operator*() { return *this; } - operator FoamXError*() { return this; } - #endif // HAVE_STD_EH - - void _throwit() const; - const char *_repoid() const; - void _encode( CORBA::DataEncoder &en ) const; - void _encode_any( CORBA::Any &a ) const; - CORBA::Exception *_clone() const; - static FoamXError *_downcast( CORBA::Exception *ex ); - static const FoamXError *_downcast( const CORBA::Exception *ex ); - ErrorCode errorCode; - CORBA::String_var errorMessage; - CORBA::String_var methodName; - CORBA::String_var fileName; - CORBA::Long lineNo; -}; - -#ifdef HAVE_STD_EH -typedef FoamXError FoamXError_catch; -#else -typedef ExceptVar< FoamXError > FoamXError_var; -typedef TVarOut< FoamXError > FoamXError_out; -typedef FoamXError_var FoamXError_catch; -#endif // HAVE_STD_EH - -extern CORBA::TypeCodeConst _tc_FoamXError; - -struct FoamXIOError : public CORBA::UserException { - #ifdef HAVE_EXPLICIT_STRUCT_OPS - FoamXIOError(); - ~FoamXIOError(); - FoamXIOError( const FoamXIOError& s ); - FoamXIOError& operator=( const FoamXIOError& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - #ifndef HAVE_EXPLICIT_STRUCT_OPS - FoamXIOError(); - #endif //HAVE_EXPLICIT_STRUCT_OPS - FoamXIOError( const char* _m0, const char* _m1, CORBA::Long _m2, CORBA::Long _m3, const char* _m4, const char* _m5, CORBA::Long _m6 ); - - #ifdef HAVE_STD_EH - FoamXIOError *operator->() { return this; } - FoamXIOError& operator*() { return *this; } - operator FoamXIOError*() { return this; } - #endif // HAVE_STD_EH - - void _throwit() const; - const char *_repoid() const; - void _encode( CORBA::DataEncoder &en ) const; - void _encode_any( CORBA::Any &a ) const; - CORBA::Exception *_clone() const; - static FoamXIOError *_downcast( CORBA::Exception *ex ); - static const FoamXIOError *_downcast( const CORBA::Exception *ex ); - CORBA::String_var errorMessage; - CORBA::String_var ioFileName; - CORBA::Long ioStartLineNo; - CORBA::Long ioEndLineNo; - CORBA::String_var methodName; - CORBA::String_var fileName; - CORBA::Long lineNo; -}; - -#ifdef HAVE_STD_EH -typedef FoamXIOError FoamXIOError_catch; -#else -typedef ExceptVar< FoamXIOError > FoamXIOError_var; -typedef TVarOut< FoamXIOError > FoamXIOError_out; -typedef FoamXIOError_var FoamXIOError_catch; -#endif // HAVE_STD_EH - -extern CORBA::TypeCodeConst _tc_FoamXIOError; - -struct ValidationError : public CORBA::UserException { - #ifdef HAVE_EXPLICIT_STRUCT_OPS - ValidationError(); - ~ValidationError(); - ValidationError( const ValidationError& s ); - ValidationError& operator=( const ValidationError& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - #ifndef HAVE_EXPLICIT_STRUCT_OPS - ValidationError(); - #endif //HAVE_EXPLICIT_STRUCT_OPS - ValidationError( ::FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2 ); - - #ifdef HAVE_STD_EH - ValidationError *operator->() { return this; } - ValidationError& operator*() { return *this; } - operator ValidationError*() { return this; } - #endif // HAVE_STD_EH - - void _throwit() const; - const char *_repoid() const; - void _encode( CORBA::DataEncoder &en ) const; - void _encode_any( CORBA::Any &a ) const; - CORBA::Exception *_clone() const; - static ValidationError *_downcast( CORBA::Exception *ex ); - static const ValidationError *_downcast( const CORBA::Exception *ex ); - ErrorCode errorCode; - CORBA::String_var errorMessage; - CORBA::String_var itemPath; -}; - -#ifdef HAVE_STD_EH -typedef ValidationError ValidationError_catch; -#else -typedef ExceptVar< ValidationError > ValidationError_var; -typedef TVarOut< ValidationError > ValidationError_out; -typedef ValidationError_var ValidationError_catch; -#endif // HAVE_STD_EH - -extern CORBA::TypeCodeConst _tc_ValidationError; - - -/* - * Base class and common definitions for interface ITypeDescriptor - */ - -class ITypeDescriptor : - virtual public CORBA::Object -{ - public: - virtual ~ITypeDescriptor(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef ITypeDescriptor_ptr _ptr_type; - typedef ITypeDescriptor_var _var_type; - #endif - - static ITypeDescriptor_ptr _narrow( CORBA::Object_ptr obj ); - static ITypeDescriptor_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static ITypeDescriptor_ptr _duplicate( ITypeDescriptor_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static ITypeDescriptor_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::FoamXType type() = 0; - virtual void type( ::FoamXServer::FoamXType value ) = 0; - virtual CORBA::Boolean isPrimitiveType() = 0; - virtual CORBA::Boolean isCompoundType() = 0; - virtual char* path() = 0; - virtual void path( const char* value ) = 0; - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* comment() = 0; - virtual void comment( const char* value ) = 0; - virtual char* category() = 0; - virtual void category( const char* value ) = 0; - virtual char* helpURL() = 0; - virtual void helpURL( const char* value ) = 0; - virtual char* iconURL() = 0; - virtual void iconURL( const char* value ) = 0; - virtual CORBA::Boolean optional() = 0; - virtual void optional( CORBA::Boolean value ) = 0; - virtual CORBA::Boolean visible() = 0; - virtual void visible( CORBA::Boolean value ) = 0; - virtual CORBA::Boolean editable() = 0; - virtual void editable( CORBA::Boolean value ) = 0; - virtual ::FoamXServer::FoamXAny* minValue() = 0; - virtual void minValue( const ::FoamXServer::FoamXAny& value ) = 0; - virtual ::FoamXServer::FoamXAny* maxValue() = 0; - virtual void maxValue( const ::FoamXServer::FoamXAny& value ) = 0; - virtual char* lookupDict() = 0; - virtual void lookupDict( const char* value ) = 0; - virtual ::FoamXServer::FoamXAnyList* valueList() = 0; - virtual void valueList( const ::FoamXServer::FoamXAnyList& value ) = 0; - virtual char* dictionaryPath() = 0; - virtual void dictionaryPath( const char* value ) = 0; - virtual CORBA::Long numElements() = 0; - virtual void numElements( CORBA::Long value ) = 0; - virtual ::FoamXServer::StringList* elementLabels() = 0; - virtual void elementLabels( const ::FoamXServer::StringList& value ) = 0; - virtual ::FoamXServer::TypeDescriptorList* subTypes() = 0; - virtual ::FoamXServer::ITypeDescriptor_ptr elementType() = 0; - - virtual CORBA::Boolean hasDefaultValue() = 0; - virtual void getDefaultValue( IDictionaryEntry_out defaultValue ) = 0; - virtual void addSubType( FoamXType type, ITypeDescriptor_out subEntry ) = 0; - virtual void removeSubType( ITypeDescriptor_ptr subEntry ) = 0; - virtual void validate() = 0; - - protected: - ITypeDescriptor() {}; - private: - ITypeDescriptor( const ITypeDescriptor& ); - void operator=( const ITypeDescriptor& ); -}; - -extern CORBA::TypeCodeConst _tc_ITypeDescriptor; - -// Stub for interface ITypeDescriptor -class ITypeDescriptor_stub: - virtual public ITypeDescriptor -{ - public: - virtual ~ITypeDescriptor_stub(); - ::FoamXServer::FoamXType type(); - void type( ::FoamXServer::FoamXType value ); - CORBA::Boolean isPrimitiveType(); - CORBA::Boolean isCompoundType(); - char* path(); - void path( const char* value ); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - char* comment(); - void comment( const char* value ); - char* category(); - void category( const char* value ); - char* helpURL(); - void helpURL( const char* value ); - char* iconURL(); - void iconURL( const char* value ); - CORBA::Boolean optional(); - void optional( CORBA::Boolean value ); - CORBA::Boolean visible(); - void visible( CORBA::Boolean value ); - CORBA::Boolean editable(); - void editable( CORBA::Boolean value ); - ::FoamXServer::FoamXAny* minValue(); - void minValue( const ::FoamXServer::FoamXAny& value ); - ::FoamXServer::FoamXAny* maxValue(); - void maxValue( const ::FoamXServer::FoamXAny& value ); - char* lookupDict(); - void lookupDict( const char* value ); - ::FoamXServer::FoamXAnyList* valueList(); - void valueList( const ::FoamXServer::FoamXAnyList& value ); - char* dictionaryPath(); - void dictionaryPath( const char* value ); - CORBA::Long numElements(); - void numElements( CORBA::Long value ); - ::FoamXServer::StringList* elementLabels(); - void elementLabels( const ::FoamXServer::StringList& value ); - ::FoamXServer::TypeDescriptorList* subTypes(); - ::FoamXServer::ITypeDescriptor_ptr elementType(); - - CORBA::Boolean hasDefaultValue(); - void getDefaultValue( IDictionaryEntry_out defaultValue ); - void addSubType( FoamXType type, ITypeDescriptor_out subEntry ); - void removeSubType( ITypeDescriptor_ptr subEntry ); - void validate(); - - private: - void operator=( const ITypeDescriptor_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class ITypeDescriptor_stub_clp : - virtual public ITypeDescriptor_stub, - virtual public PortableServer::StubBase -{ - public: - ITypeDescriptor_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~ITypeDescriptor_stub_clp (); - ::FoamXServer::FoamXType type(); - void type( ::FoamXServer::FoamXType value ); - CORBA::Boolean isPrimitiveType(); - CORBA::Boolean isCompoundType(); - char* path(); - void path( const char* value ); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - char* comment(); - void comment( const char* value ); - char* category(); - void category( const char* value ); - char* helpURL(); - void helpURL( const char* value ); - char* iconURL(); - void iconURL( const char* value ); - CORBA::Boolean optional(); - void optional( CORBA::Boolean value ); - CORBA::Boolean visible(); - void visible( CORBA::Boolean value ); - CORBA::Boolean editable(); - void editable( CORBA::Boolean value ); - ::FoamXServer::FoamXAny* minValue(); - void minValue( const ::FoamXServer::FoamXAny& value ); - ::FoamXServer::FoamXAny* maxValue(); - void maxValue( const ::FoamXServer::FoamXAny& value ); - char* lookupDict(); - void lookupDict( const char* value ); - ::FoamXServer::FoamXAnyList* valueList(); - void valueList( const ::FoamXServer::FoamXAnyList& value ); - char* dictionaryPath(); - void dictionaryPath( const char* value ); - CORBA::Long numElements(); - void numElements( CORBA::Long value ); - ::FoamXServer::StringList* elementLabels(); - void elementLabels( const ::FoamXServer::StringList& value ); - ::FoamXServer::TypeDescriptorList* subTypes(); - ::FoamXServer::ITypeDescriptor_ptr elementType(); - - CORBA::Boolean hasDefaultValue(); - void getDefaultValue( IDictionaryEntry_out defaultValue ); - void addSubType( FoamXType type, ITypeDescriptor_out subEntry ); - void removeSubType( ITypeDescriptor_ptr subEntry ); - void validate(); - - protected: - ITypeDescriptor_stub_clp (); - private: - void operator=( const ITypeDescriptor_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -typedef IfaceSequenceTmpl< IDictionaryEntry_var,IDictionaryEntry_ptr> DictionaryEntryList; -typedef TSeqVar< IfaceSequenceTmpl< IDictionaryEntry_var,IDictionaryEntry_ptr> > DictionaryEntryList_var; -typedef TSeqOut< IfaceSequenceTmpl< IDictionaryEntry_var,IDictionaryEntry_ptr> > DictionaryEntryList_out; - -extern CORBA::TypeCodeConst _tc_DictionaryEntryList; - - -/* - * Base class and common definitions for interface IDictionaryEntry - */ - -class IDictionaryEntry : - virtual public CORBA::Object -{ - public: - virtual ~IDictionaryEntry(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IDictionaryEntry_ptr _ptr_type; - typedef IDictionaryEntry_var _var_type; - #endif - - static IDictionaryEntry_ptr _narrow( CORBA::Object_ptr obj ); - static IDictionaryEntry_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IDictionaryEntry_ptr _duplicate( IDictionaryEntry_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IDictionaryEntry_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::ITypeDescriptor_ptr typeDescriptor() = 0; - virtual ::FoamXServer::FoamXAny* value() = 0; - virtual void value( const ::FoamXServer::FoamXAny& value ) = 0; - virtual ::FoamXServer::DictionaryEntryList* subElements() = 0; - virtual CORBA::Long selection() = 0; - virtual void selection( CORBA::Long value ) = 0; - - virtual void setValue( const FoamXAny& value ) = 0; - virtual CORBA::Long nSubElements() = 0; - virtual CORBA::Boolean packedList() = 0; - virtual void addElement( IDictionaryEntry_out subEntry ) = 0; - virtual void removeElement( IDictionaryEntry_ptr subEntry ) = 0; - virtual void validate() = 0; - virtual CORBA::Boolean modified() = 0; - virtual void save() = 0; - - protected: - IDictionaryEntry() {}; - private: - IDictionaryEntry( const IDictionaryEntry& ); - void operator=( const IDictionaryEntry& ); -}; - -extern CORBA::TypeCodeConst _tc_IDictionaryEntry; - -// Stub for interface IDictionaryEntry -class IDictionaryEntry_stub: - virtual public IDictionaryEntry -{ - public: - virtual ~IDictionaryEntry_stub(); - ::FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - ::FoamXServer::FoamXAny* value(); - void value( const ::FoamXServer::FoamXAny& value ); - ::FoamXServer::DictionaryEntryList* subElements(); - CORBA::Long selection(); - void selection( CORBA::Long value ); - - void setValue( const FoamXAny& value ); - CORBA::Long nSubElements(); - CORBA::Boolean packedList(); - void addElement( IDictionaryEntry_out subEntry ); - void removeElement( IDictionaryEntry_ptr subEntry ); - void validate(); - CORBA::Boolean modified(); - void save(); - - private: - void operator=( const IDictionaryEntry_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IDictionaryEntry_stub_clp : - virtual public IDictionaryEntry_stub, - virtual public PortableServer::StubBase -{ - public: - IDictionaryEntry_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IDictionaryEntry_stub_clp (); - ::FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - ::FoamXServer::FoamXAny* value(); - void value( const ::FoamXServer::FoamXAny& value ); - ::FoamXServer::DictionaryEntryList* subElements(); - CORBA::Long selection(); - void selection( CORBA::Long value ); - - void setValue( const FoamXAny& value ); - CORBA::Long nSubElements(); - CORBA::Boolean packedList(); - void addElement( IDictionaryEntry_out subEntry ); - void removeElement( IDictionaryEntry_ptr subEntry ); - void validate(); - CORBA::Boolean modified(); - void save(); - - protected: - IDictionaryEntry_stub_clp (); - private: - void operator=( const IDictionaryEntry_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -enum JobStatus { - JOB_UNDEFINED = 0, - JOB_LAUNCHING, - JOB_RUNNING, - JOB_STOPPING, - JOB_SUSPENDED, - JOB_FINISHED, - JOB_ABORTED -}; - -typedef JobStatus& JobStatus_out; - -extern CORBA::TypeCodeConst _tc_JobStatus; - -enum MessageType { - M_DIAGNOSTIC = 0, - M_WARNING, - M_ERROR -}; - -typedef MessageType& MessageType_out; - -extern CORBA::TypeCodeConst _tc_MessageType; - -typedef SequenceTmpl< CORBA::Double,MICO_TID_DEF> DoubleList; -typedef TSeqVar< SequenceTmpl< CORBA::Double,MICO_TID_DEF> > DoubleList_var; -typedef TSeqOut< SequenceTmpl< CORBA::Double,MICO_TID_DEF> > DoubleList_out; - -extern CORBA::TypeCodeConst _tc_DoubleList; - -typedef SequenceTmpl< CORBA::Float,MICO_TID_DEF> FloatList; -typedef TSeqVar< SequenceTmpl< CORBA::Float,MICO_TID_DEF> > FloatList_var; -typedef TSeqOut< SequenceTmpl< CORBA::Float,MICO_TID_DEF> > FloatList_out; - -extern CORBA::TypeCodeConst _tc_FloatList; - -typedef SequenceTmpl< CORBA::Long,MICO_TID_DEF> LongList; -typedef TSeqVar< SequenceTmpl< CORBA::Long,MICO_TID_DEF> > LongList_var; -typedef TSeqOut< SequenceTmpl< CORBA::Long,MICO_TID_DEF> > LongList_out; - -extern CORBA::TypeCodeConst _tc_LongList; - -typedef CORBA::Float Point3[ 3 ]; -typedef CORBA::Float Point3_slice; -typedef ArrayFixVar< CORBA::Float,Point3_slice,Point3,3 > Point3_var; -typedef Point3 Point3_out; -enum _dummy_Point3 { _dummy_Point3_0 }; -typedef ArrayFixForAny < CORBA::Float,Point3_slice,Point3,3,_dummy_Point3> Point3_forany; -#undef MICO_ARRAY_ARG -#define MICO_ARRAY_ARG CORBA::Float -DECLARE_ARRAY_ALLOC(Point3,MICO_ARRAY_ARG,Point3_slice,3) -DECLARE_ARRAY_DUP(Point3,MICO_ARRAY_ARG,Point3_slice,3) -DECLARE_ARRAY_FREE(Point3,MICO_ARRAY_ARG,Point3_slice,3) -DECLARE_ARRAY_COPY(Point3,MICO_ARRAY_ARG,Point3_slice,3) -extern CORBA::TypeCodeConst _tc_Point3; - -struct StringPair; -typedef TVarVar< StringPair > StringPair_var; -typedef TVarOut< StringPair > StringPair_out; - - -struct StringPair { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef StringPair_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - StringPair(); - ~StringPair(); - StringPair( const StringPair& s ); - StringPair& operator=( const StringPair& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::String_var name; - CORBA::String_var value; -}; - -extern CORBA::TypeCodeConst _tc_StringPair; - -typedef SequenceTmpl< StringPair,MICO_TID_DEF> StringPairList; -typedef TSeqVar< SequenceTmpl< StringPair,MICO_TID_DEF> > StringPairList_var; -typedef TSeqOut< SequenceTmpl< StringPair,MICO_TID_DEF> > StringPairList_out; - -extern CORBA::TypeCodeConst _tc_StringPairList; - -struct HostDescriptor; -typedef TVarVar< HostDescriptor > HostDescriptor_var; -typedef TVarOut< HostDescriptor > HostDescriptor_out; - - -struct HostDescriptor { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef HostDescriptor_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - HostDescriptor(); - ~HostDescriptor(); - HostDescriptor( const HostDescriptor& s ); - HostDescriptor& operator=( const HostDescriptor& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::String_var name; - CORBA::Boolean alive; -}; - -extern CORBA::TypeCodeConst _tc_HostDescriptor; - -typedef SequenceTmpl< HostDescriptor,MICO_TID_DEF> HostDescriptorList; -typedef TSeqVar< SequenceTmpl< HostDescriptor,MICO_TID_DEF> > HostDescriptorList_var; -typedef TSeqOut< SequenceTmpl< HostDescriptor,MICO_TID_DEF> > HostDescriptorList_out; - -extern CORBA::TypeCodeConst _tc_HostDescriptorList; - -struct ApplicationDescriptor; -typedef TVarVar< ApplicationDescriptor > ApplicationDescriptor_var; -typedef TVarOut< ApplicationDescriptor > ApplicationDescriptor_out; - - -struct ApplicationDescriptor { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef ApplicationDescriptor_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - ApplicationDescriptor(); - ~ApplicationDescriptor(); - ApplicationDescriptor( const ApplicationDescriptor& s ); - ApplicationDescriptor& operator=( const ApplicationDescriptor& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::String_var name; - CORBA::String_var category; - CORBA::String_var path; - CORBA::Boolean systemClass; -}; - -extern CORBA::TypeCodeConst _tc_ApplicationDescriptor; - -typedef SequenceTmpl< ApplicationDescriptor,MICO_TID_DEF> ApplicationDescriptorList; -typedef TSeqVar< SequenceTmpl< ApplicationDescriptor,MICO_TID_DEF> > ApplicationDescriptorList_var; -typedef TSeqOut< SequenceTmpl< ApplicationDescriptor,MICO_TID_DEF> > ApplicationDescriptorList_out; - -extern CORBA::TypeCodeConst _tc_ApplicationDescriptorList; - -struct CaseDescriptor; -typedef TVarVar< CaseDescriptor > CaseDescriptor_var; -typedef TVarOut< CaseDescriptor > CaseDescriptor_out; - - -struct CaseDescriptor { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef CaseDescriptor_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - CaseDescriptor(); - ~CaseDescriptor(); - CaseDescriptor( const CaseDescriptor& s ); - CaseDescriptor& operator=( const CaseDescriptor& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::String_var rootDir; - CORBA::String_var rawRootDir; - CORBA::String_var caseName; - CORBA::String_var app; - CORBA::Long nProcs; - CORBA::Boolean managed; - CORBA::Boolean locked; - CORBA::Boolean error; -}; - -extern CORBA::TypeCodeConst _tc_CaseDescriptor; - -typedef SequenceTmpl< CaseDescriptor,MICO_TID_DEF> CaseDescriptorList; -typedef TSeqVar< SequenceTmpl< CaseDescriptor,MICO_TID_DEF> > CaseDescriptorList_var; -typedef TSeqOut< SequenceTmpl< CaseDescriptor,MICO_TID_DEF> > CaseDescriptorList_out; - -extern CORBA::TypeCodeConst _tc_CaseDescriptorList; - -struct JobID; -typedef TVarVar< JobID > JobID_var; -typedef TVarOut< JobID > JobID_out; - - -struct JobID { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef JobID_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - JobID(); - ~JobID(); - JobID( const JobID& s ); - JobID& operator=( const JobID& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::String_var hostName; - CORBA::Long processID; -}; - -extern CORBA::TypeCodeConst _tc_JobID; - -typedef SequenceTmpl< JobID,MICO_TID_DEF> JobIDList; -typedef TSeqVar< SequenceTmpl< JobID,MICO_TID_DEF> > JobIDList_var; -typedef TSeqOut< SequenceTmpl< JobID,MICO_TID_DEF> > JobIDList_out; - -extern CORBA::TypeCodeConst _tc_JobIDList; - -struct JobDescriptor; -typedef TVarVar< JobDescriptor > JobDescriptor_var; -typedef TVarOut< JobDescriptor > JobDescriptor_out; - - -struct JobDescriptor { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef JobDescriptor_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - JobDescriptor(); - ~JobDescriptor(); - JobDescriptor( const JobDescriptor& s ); - JobDescriptor& operator=( const JobDescriptor& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - JobID jobID; - CORBA::Long ppid; - CORBA::Long pgid; - CORBA::String_var startDate; - CORBA::String_var startTime; - CORBA::String_var userName; - CORBA::String_var foamVersion; - CORBA::String_var code; - CORBA::String_var argList; - CORBA::String_var currentDir; - CORBA::String_var rootDir; - CORBA::String_var caseName; - CORBA::Long nProcs; - JobIDList slaves; - CORBA::Long nCountedProcs; - CORBA::Double cpuTime; - CORBA::String_var endDate; - CORBA::String_var endTime; - JobStatus status; -}; - -extern CORBA::TypeCodeConst _tc_JobDescriptor; - -typedef SequenceTmpl< JobDescriptor,MICO_TID_DEF> JobDescriptorList; -typedef TSeqVar< SequenceTmpl< JobDescriptor,MICO_TID_DEF> > JobDescriptorList_var; -typedef TSeqOut< SequenceTmpl< JobDescriptor,MICO_TID_DEF> > JobDescriptorList_out; - -extern CORBA::TypeCodeConst _tc_JobDescriptorList; - -struct DimensionSet; -typedef TFixVar< DimensionSet > DimensionSet_var; -typedef DimensionSet& DimensionSet_out; - - -struct DimensionSet { - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef DimensionSet_var _var_type; - #endif - #ifdef HAVE_EXPLICIT_STRUCT_OPS - DimensionSet(); - ~DimensionSet(); - DimensionSet( const DimensionSet& s ); - DimensionSet& operator=( const DimensionSet& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - CORBA::Double mass; - CORBA::Double length; - CORBA::Double time; - CORBA::Double temperature; - CORBA::Double moles; - CORBA::Double current; - CORBA::Double luminousIntensity; -}; - -extern CORBA::TypeCodeConst _tc_DimensionSet; - -typedef SequenceTmpl< DimensionSet,MICO_TID_DEF> DimensionSetList; -typedef TSeqVar< SequenceTmpl< DimensionSet,MICO_TID_DEF> > DimensionSetList_var; -typedef TSeqOut< SequenceTmpl< DimensionSet,MICO_TID_DEF> > DimensionSetList_out; - -extern CORBA::TypeCodeConst _tc_DimensionSetList; - -struct FoamXSYSError : public CORBA::UserException { - #ifdef HAVE_EXPLICIT_STRUCT_OPS - FoamXSYSError(); - ~FoamXSYSError(); - FoamXSYSError( const FoamXSYSError& s ); - FoamXSYSError& operator=( const FoamXSYSError& s ); - #endif //HAVE_EXPLICIT_STRUCT_OPS - - #ifndef HAVE_EXPLICIT_STRUCT_OPS - FoamXSYSError(); - #endif //HAVE_EXPLICIT_STRUCT_OPS - FoamXSYSError( ::FoamXServer::ErrorCode _m0, const char* _m1, const char* _m2, const char* _m3, const char* _m4, CORBA::Long _m5 ); - - #ifdef HAVE_STD_EH - FoamXSYSError *operator->() { return this; } - FoamXSYSError& operator*() { return *this; } - operator FoamXSYSError*() { return this; } - #endif // HAVE_STD_EH - - void _throwit() const; - const char *_repoid() const; - void _encode( CORBA::DataEncoder &en ) const; - void _encode_any( CORBA::Any &a ) const; - CORBA::Exception *_clone() const; - static FoamXSYSError *_downcast( CORBA::Exception *ex ); - static const FoamXSYSError *_downcast( const CORBA::Exception *ex ); - ErrorCode errorCode; - CORBA::String_var errorMessage; - CORBA::String_var hostName; - CORBA::String_var methodName; - CORBA::String_var fileName; - CORBA::Long lineNo; -}; - -#ifdef HAVE_STD_EH -typedef FoamXSYSError FoamXSYSError_catch; -#else -typedef ExceptVar< FoamXSYSError > FoamXSYSError_var; -typedef TVarOut< FoamXSYSError > FoamXSYSError_out; -typedef FoamXSYSError_var FoamXSYSError_catch; -#endif // HAVE_STD_EH - -extern CORBA::TypeCodeConst _tc_FoamXSYSError; - - - -namespace CaseServer -{ - - -/* - * Base class and common definitions for interface ICaseServer - */ - -class ICaseServer : - virtual public CORBA::Object -{ - public: - virtual ~ICaseServer(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef ICaseServer_ptr _ptr_type; - typedef ICaseServer_var _var_type; - #endif - - static ICaseServer_ptr _narrow( CORBA::Object_ptr obj ); - static ICaseServer_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static ICaseServer_ptr _duplicate( ICaseServer_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static ICaseServer_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual CORBA::Boolean managed() = 0; - virtual void managed( CORBA::Boolean value ) = 0; - virtual char* caseRoot() = 0; - virtual char* caseName() = 0; - virtual ::FoamXServer::CaseServer::IApplication_ptr application() = 0; - virtual ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties() = 0; - virtual ::FoamXServer::StringList* availableTimeSteps() = 0; - virtual CORBA::Boolean meshDefined() = 0; - virtual ::FoamXServer::StringList* patchNames() = 0; - - virtual char* getTime() = 0; - virtual void setTime( const char* timeName, CORBA::Long timeIndex ) = 0; - virtual void readMesh() = 0; - virtual void importMesh( const char* hostName, const char* rootDir, const char* caseName ) = 0; - virtual void getFieldValues( const char* fieldName, IGeometricField_out fieldValues ) = 0; - virtual void addPatch( const char* patchName, const char* patchPhysicalType ) = 0; - virtual void deletePatch( const char* patchName ) = 0; - virtual void deleteAllPatches() = 0; - virtual void setPatchPhysicalType( const char* patchName, const char* patchPhysicalType ) = 0; - virtual void getPatchPhysicalType( const char* patchName, CORBA::String_out patchPhysicalType ) = 0; - virtual void getDictionary( const char* dictionaryName, CORBA::Boolean forceRead, IDictionaryEntry_out dictRoot ) = 0; - virtual void readFile( const char* name, CORBA::String_out contents ) = 0; - virtual void writeFile( const char* name, const char* contents ) = 0; - virtual CORBA::Long fileModificationDate( const char* fileName ) = 0; - virtual CORBA::Long runCase( const char* arguments ) = 0; - virtual void killCase() = 0; - virtual void validate() = 0; - virtual CORBA::Boolean modified() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - ICaseServer() {}; - private: - ICaseServer( const ICaseServer& ); - void operator=( const ICaseServer& ); -}; - -extern CORBA::TypeCodeConst _tc_ICaseServer; - -// Stub for interface ICaseServer -class ICaseServer_stub: - virtual public ICaseServer -{ - public: - virtual ~ICaseServer_stub(); - CORBA::Boolean managed(); - void managed( CORBA::Boolean value ); - char* caseRoot(); - char* caseName(); - ::FoamXServer::CaseServer::IApplication_ptr application(); - ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties(); - ::FoamXServer::StringList* availableTimeSteps(); - CORBA::Boolean meshDefined(); - ::FoamXServer::StringList* patchNames(); - - char* getTime(); - void setTime( const char* timeName, CORBA::Long timeIndex ); - void readMesh(); - void importMesh( const char* hostName, const char* rootDir, const char* caseName ); - void getFieldValues( const char* fieldName, IGeometricField_out fieldValues ); - void addPatch( const char* patchName, const char* patchPhysicalType ); - void deletePatch( const char* patchName ); - void deleteAllPatches(); - void setPatchPhysicalType( const char* patchName, const char* patchPhysicalType ); - void getPatchPhysicalType( const char* patchName, CORBA::String_out patchPhysicalType ); - void getDictionary( const char* dictionaryName, CORBA::Boolean forceRead, IDictionaryEntry_out dictRoot ); - void readFile( const char* name, CORBA::String_out contents ); - void writeFile( const char* name, const char* contents ); - CORBA::Long fileModificationDate( const char* fileName ); - CORBA::Long runCase( const char* arguments ); - void killCase(); - void validate(); - CORBA::Boolean modified(); - void save(); - void close(); - - private: - void operator=( const ICaseServer_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class ICaseServer_stub_clp : - virtual public ICaseServer_stub, - virtual public PortableServer::StubBase -{ - public: - ICaseServer_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~ICaseServer_stub_clp (); - CORBA::Boolean managed(); - void managed( CORBA::Boolean value ); - char* caseRoot(); - char* caseName(); - ::FoamXServer::CaseServer::IApplication_ptr application(); - ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties(); - ::FoamXServer::StringList* availableTimeSteps(); - CORBA::Boolean meshDefined(); - ::FoamXServer::StringList* patchNames(); - - char* getTime(); - void setTime( const char* timeName, CORBA::Long timeIndex ); - void readMesh(); - void importMesh( const char* hostName, const char* rootDir, const char* caseName ); - void getFieldValues( const char* fieldName, IGeometricField_out fieldValues ); - void addPatch( const char* patchName, const char* patchPhysicalType ); - void deletePatch( const char* patchName ); - void deleteAllPatches(); - void setPatchPhysicalType( const char* patchName, const char* patchPhysicalType ); - void getPatchPhysicalType( const char* patchName, CORBA::String_out patchPhysicalType ); - void getDictionary( const char* dictionaryName, CORBA::Boolean forceRead, IDictionaryEntry_out dictRoot ); - void readFile( const char* name, CORBA::String_out contents ); - void writeFile( const char* name, const char* contents ); - CORBA::Long fileModificationDate( const char* fileName ); - CORBA::Long runCase( const char* arguments ); - void killCase(); - void validate(); - CORBA::Boolean modified(); - void save(); - void close(); - - protected: - ICaseServer_stub_clp (); - private: - void operator=( const ICaseServer_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IFoamProperties - */ - -class IFoamProperties : - virtual public CORBA::Object -{ - public: - virtual ~IFoamProperties(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IFoamProperties_ptr _ptr_type; - typedef IFoamProperties_var _var_type; - #endif - - static IFoamProperties_ptr _narrow( CORBA::Object_ptr obj ); - static IFoamProperties_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IFoamProperties_ptr _duplicate( IFoamProperties_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IFoamProperties_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::StringList* availableModules() = 0; - virtual ::FoamXServer::StringList* rootDirectories() = 0; - virtual ::FoamXServer::StringList* rawRootDirectories() = 0; - virtual ::FoamXServer::StringList* foamTypes() = 0; - virtual ::FoamXServer::StringList* geometryTypes() = 0; - virtual ::FoamXServer::StringList* patchTypes() = 0; - virtual ::FoamXServer::StringList* patchFieldTypes() = 0; - virtual ::FoamXServer::ApplicationDescriptorList* applicationes() = 0; - virtual ::FoamXServer::ApplicationDescriptorList* utilities() = 0; - - virtual void addRootDirectory( const char* rawRootDir ) = 0; - virtual void deleteRootDirectory( const char* rawRootDir ) = 0; - virtual void getFoamType( const char* foamTypeName, ITypeDescriptor_out typeDesc ) = 0; - virtual void getGeometryType( const char* geometryTypeName, IGeometryDescriptor_out geometryDesc ) = 0; - virtual void getPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ) = 0; - virtual void findPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ) = 0; - virtual void getPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ) = 0; - virtual void findPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ) = 0; - virtual void getFoamControlDict( IDictionaryEntry_out controlDict ) = 0; - virtual void getApplication( const char* appName, IApplication_out app ) = 0; - virtual void addApplication( const char* appName, IApplication_out app ) = 0; - virtual void deleteApplication( const char* appName ) = 0; - virtual void cloneApplication( const char* appNameSrc, const char* appNameDest, const char* appDestPath, IApplication_out app ) = 0; - virtual void getUtilityControlDict( const char* utilityName, const char* rootDir, const char* caseName, IDictionaryEntry_out controlDict ) = 0; - virtual void validate() = 0; - virtual void saveSystemProperties() = 0; - virtual void saveUserProperties() = 0; - - protected: - IFoamProperties() {}; - private: - IFoamProperties( const IFoamProperties& ); - void operator=( const IFoamProperties& ); -}; - -extern CORBA::TypeCodeConst _tc_IFoamProperties; - -// Stub for interface IFoamProperties -class IFoamProperties_stub: - virtual public IFoamProperties -{ - public: - virtual ~IFoamProperties_stub(); - ::FoamXServer::StringList* availableModules(); - ::FoamXServer::StringList* rootDirectories(); - ::FoamXServer::StringList* rawRootDirectories(); - ::FoamXServer::StringList* foamTypes(); - ::FoamXServer::StringList* geometryTypes(); - ::FoamXServer::StringList* patchTypes(); - ::FoamXServer::StringList* patchFieldTypes(); - ::FoamXServer::ApplicationDescriptorList* applicationes(); - ::FoamXServer::ApplicationDescriptorList* utilities(); - - void addRootDirectory( const char* rawRootDir ); - void deleteRootDirectory( const char* rawRootDir ); - void getFoamType( const char* foamTypeName, ITypeDescriptor_out typeDesc ); - void getGeometryType( const char* geometryTypeName, IGeometryDescriptor_out geometryDesc ); - void getPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ); - void findPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ); - void getPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ); - void findPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ); - void getFoamControlDict( IDictionaryEntry_out controlDict ); - void getApplication( const char* appName, IApplication_out app ); - void addApplication( const char* appName, IApplication_out app ); - void deleteApplication( const char* appName ); - void cloneApplication( const char* appNameSrc, const char* appNameDest, const char* appDestPath, IApplication_out app ); - void getUtilityControlDict( const char* utilityName, const char* rootDir, const char* caseName, IDictionaryEntry_out controlDict ); - void validate(); - void saveSystemProperties(); - void saveUserProperties(); - - private: - void operator=( const IFoamProperties_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IFoamProperties_stub_clp : - virtual public IFoamProperties_stub, - virtual public PortableServer::StubBase -{ - public: - IFoamProperties_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IFoamProperties_stub_clp (); - ::FoamXServer::StringList* availableModules(); - ::FoamXServer::StringList* rootDirectories(); - ::FoamXServer::StringList* rawRootDirectories(); - ::FoamXServer::StringList* foamTypes(); - ::FoamXServer::StringList* geometryTypes(); - ::FoamXServer::StringList* patchTypes(); - ::FoamXServer::StringList* patchFieldTypes(); - ::FoamXServer::ApplicationDescriptorList* applicationes(); - ::FoamXServer::ApplicationDescriptorList* utilities(); - - void addRootDirectory( const char* rawRootDir ); - void deleteRootDirectory( const char* rawRootDir ); - void getFoamType( const char* foamTypeName, ITypeDescriptor_out typeDesc ); - void getGeometryType( const char* geometryTypeName, IGeometryDescriptor_out geometryDesc ); - void getPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ); - void findPatchType( const char* patchTypeName, IPatchDescriptor_out patchDesc ); - void getPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ); - void findPatchFieldType( const char* patchFieldTypeName, ITypeDescriptor_out patchFieldDesc ); - void getFoamControlDict( IDictionaryEntry_out controlDict ); - void getApplication( const char* appName, IApplication_out app ); - void addApplication( const char* appName, IApplication_out app ); - void deleteApplication( const char* appName ); - void cloneApplication( const char* appNameSrc, const char* appNameDest, const char* appDestPath, IApplication_out app ); - void getUtilityControlDict( const char* utilityName, const char* rootDir, const char* caseName, IDictionaryEntry_out controlDict ); - void validate(); - void saveSystemProperties(); - void saveUserProperties(); - - protected: - IFoamProperties_stub_clp (); - private: - void operator=( const IFoamProperties_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IApplication - */ - -class IApplication : - virtual public CORBA::Object -{ - public: - virtual ~IApplication(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IApplication_ptr _ptr_type; - typedef IApplication_var _var_type; - #endif - - static IApplication_ptr _narrow( CORBA::Object_ptr obj ); - static IApplication_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IApplication_ptr _duplicate( IApplication_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IApplication_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* category() = 0; - virtual void category( const char* value ) = 0; - virtual ::FoamXServer::StringList* modules() = 0; - virtual void modules( const ::FoamXServer::StringList& value ) = 0; - virtual CORBA::Boolean systemClass() = 0; - virtual ::FoamXServer::StringList* fields() = 0; - virtual ::FoamXServer::StringList* patchPhysicalTypes() = 0; - virtual ::FoamXServer::StringList* dictionaries() = 0; - - virtual void getField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void findField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void addField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void deleteField( const char* fieldName ) = 0; - virtual void getPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void findPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void addPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void deletePatchPhysicalType( const char* patchPhysicalTypeName ) = 0; - virtual void getDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ) = 0; - virtual void addDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ) = 0; - virtual void deleteDictionary( const char* dictName ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - - protected: - IApplication() {}; - private: - IApplication( const IApplication& ); - void operator=( const IApplication& ); -}; - -extern CORBA::TypeCodeConst _tc_IApplication; - -// Stub for interface IApplication -class IApplication_stub: - virtual public IApplication -{ - public: - virtual ~IApplication_stub(); - char* name(); - void name( const char* value ); - char* description(); - void description( const char* value ); - char* category(); - void category( const char* value ); - ::FoamXServer::StringList* modules(); - void modules( const ::FoamXServer::StringList& value ); - CORBA::Boolean systemClass(); - ::FoamXServer::StringList* fields(); - ::FoamXServer::StringList* patchPhysicalTypes(); - ::FoamXServer::StringList* dictionaries(); - - void getField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void findField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void addField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void deleteField( const char* fieldName ); - void getPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void findPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void addPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void deletePatchPhysicalType( const char* patchPhysicalTypeName ); - void getDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ); - void addDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ); - void deleteDictionary( const char* dictName ); - void validate(); - void save(); - - private: - void operator=( const IApplication_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IApplication_stub_clp : - virtual public IApplication_stub, - virtual public PortableServer::StubBase -{ - public: - IApplication_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IApplication_stub_clp (); - char* name(); - void name( const char* value ); - char* description(); - void description( const char* value ); - char* category(); - void category( const char* value ); - ::FoamXServer::StringList* modules(); - void modules( const ::FoamXServer::StringList& value ); - CORBA::Boolean systemClass(); - ::FoamXServer::StringList* fields(); - ::FoamXServer::StringList* patchPhysicalTypes(); - ::FoamXServer::StringList* dictionaries(); - - void getField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void findField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void addField( const char* fieldName, IGeometricFieldDescriptor_out fieldDescriptor ); - void deleteField( const char* fieldName ); - void getPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void findPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void addPatchPhysicalType( const char* patchPhysicalTypeName, IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ); - void deletePatchPhysicalType( const char* patchPhysicalTypeName ); - void getDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ); - void addDictionary( const char* dictName, ITypeDescriptor_out dictTypeDescriptor ); - void deleteDictionary( const char* dictName ); - void validate(); - void save(); - - protected: - IApplication_stub_clp (); - private: - void operator=( const IApplication_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IGeometricFieldDescriptor - */ - -class IGeometricFieldDescriptor : - virtual public CORBA::Object -{ - public: - virtual ~IGeometricFieldDescriptor(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IGeometricFieldDescriptor_ptr _ptr_type; - typedef IGeometricFieldDescriptor_var _var_type; - #endif - - static IGeometricFieldDescriptor_ptr _narrow( CORBA::Object_ptr obj ); - static IGeometricFieldDescriptor_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IGeometricFieldDescriptor_ptr _duplicate( IGeometricFieldDescriptor_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IGeometricFieldDescriptor_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::ITypeDescriptor_ptr typeDescriptor() = 0; - virtual ::FoamXServer::ITypeDescriptor_ptr fieldTypeDescriptor() = 0; - virtual ::FoamXServer::CaseServer::IGeometryDescriptor_ptr geometryDescriptor() = 0; - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* fieldTypeName() = 0; - virtual void fieldTypeName( const char* value ) = 0; - virtual char* geometryTypeName() = 0; - virtual void geometryTypeName( const char* value ) = 0; - virtual ::FoamXServer::DimensionSet dimensions() = 0; - virtual void dimensions( const ::FoamXServer::DimensionSet& value ) = 0; - - protected: - IGeometricFieldDescriptor() {}; - private: - IGeometricFieldDescriptor( const IGeometricFieldDescriptor& ); - void operator=( const IGeometricFieldDescriptor& ); -}; - -extern CORBA::TypeCodeConst _tc_IGeometricFieldDescriptor; - -// Stub for interface IGeometricFieldDescriptor -class IGeometricFieldDescriptor_stub: - virtual public IGeometricFieldDescriptor -{ - public: - virtual ~IGeometricFieldDescriptor_stub(); - ::FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - ::FoamXServer::ITypeDescriptor_ptr fieldTypeDescriptor(); - ::FoamXServer::CaseServer::IGeometryDescriptor_ptr geometryDescriptor(); - char* name(); - void name( const char* value ); - char* description(); - void description( const char* value ); - char* fieldTypeName(); - void fieldTypeName( const char* value ); - char* geometryTypeName(); - void geometryTypeName( const char* value ); - ::FoamXServer::DimensionSet dimensions(); - void dimensions( const ::FoamXServer::DimensionSet& value ); - - private: - void operator=( const IGeometricFieldDescriptor_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IGeometricFieldDescriptor_stub_clp : - virtual public IGeometricFieldDescriptor_stub, - virtual public PortableServer::StubBase -{ - public: - IGeometricFieldDescriptor_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IGeometricFieldDescriptor_stub_clp (); - ::FoamXServer::ITypeDescriptor_ptr typeDescriptor(); - ::FoamXServer::ITypeDescriptor_ptr fieldTypeDescriptor(); - ::FoamXServer::CaseServer::IGeometryDescriptor_ptr geometryDescriptor(); - char* name(); - void name( const char* value ); - char* description(); - void description( const char* value ); - char* fieldTypeName(); - void fieldTypeName( const char* value ); - char* geometryTypeName(); - void geometryTypeName( const char* value ); - ::FoamXServer::DimensionSet dimensions(); - void dimensions( const ::FoamXServer::DimensionSet& value ); - - protected: - IGeometricFieldDescriptor_stub_clp (); - private: - void operator=( const IGeometricFieldDescriptor_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IPatchDescriptor - */ - -class IPatchDescriptor : - virtual public CORBA::Object -{ - public: - virtual ~IPatchDescriptor(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IPatchDescriptor_ptr _ptr_type; - typedef IPatchDescriptor_var _var_type; - #endif - - static IPatchDescriptor_ptr _narrow( CORBA::Object_ptr obj ); - static IPatchDescriptor_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IPatchDescriptor_ptr _duplicate( IPatchDescriptor_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IPatchDescriptor_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - - protected: - IPatchDescriptor() {}; - private: - IPatchDescriptor( const IPatchDescriptor& ); - void operator=( const IPatchDescriptor& ); -}; - -extern CORBA::TypeCodeConst _tc_IPatchDescriptor; - -// Stub for interface IPatchDescriptor -class IPatchDescriptor_stub: - virtual public IPatchDescriptor -{ - public: - virtual ~IPatchDescriptor_stub(); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - - private: - void operator=( const IPatchDescriptor_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IPatchDescriptor_stub_clp : - virtual public IPatchDescriptor_stub, - virtual public PortableServer::StubBase -{ - public: - IPatchDescriptor_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IPatchDescriptor_stub_clp (); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - - protected: - IPatchDescriptor_stub_clp (); - private: - void operator=( const IPatchDescriptor_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IGeometryDescriptor - */ - -class IGeometryDescriptor : - virtual public CORBA::Object -{ - public: - virtual ~IGeometryDescriptor(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IGeometryDescriptor_ptr _ptr_type; - typedef IGeometryDescriptor_var _var_type; - #endif - - static IGeometryDescriptor_ptr _narrow( CORBA::Object_ptr obj ); - static IGeometryDescriptor_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IGeometryDescriptor_ptr _duplicate( IGeometryDescriptor_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IGeometryDescriptor_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - - protected: - IGeometryDescriptor() {}; - private: - IGeometryDescriptor( const IGeometryDescriptor& ); - void operator=( const IGeometryDescriptor& ); -}; - -extern CORBA::TypeCodeConst _tc_IGeometryDescriptor; - -// Stub for interface IGeometryDescriptor -class IGeometryDescriptor_stub: - virtual public IGeometryDescriptor -{ - public: - virtual ~IGeometryDescriptor_stub(); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - - private: - void operator=( const IGeometryDescriptor_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IGeometryDescriptor_stub_clp : - virtual public IGeometryDescriptor_stub, - virtual public PortableServer::StubBase -{ - public: - IGeometryDescriptor_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IGeometryDescriptor_stub_clp (); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - - protected: - IGeometryDescriptor_stub_clp (); - private: - void operator=( const IGeometryDescriptor_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IPatchPhysicalTypeDescriptor - */ - -class IPatchPhysicalTypeDescriptor : - virtual public CORBA::Object -{ - public: - virtual ~IPatchPhysicalTypeDescriptor(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IPatchPhysicalTypeDescriptor_ptr _ptr_type; - typedef IPatchPhysicalTypeDescriptor_var _var_type; - #endif - - static IPatchPhysicalTypeDescriptor_ptr _narrow( CORBA::Object_ptr obj ); - static IPatchPhysicalTypeDescriptor_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IPatchPhysicalTypeDescriptor_ptr _duplicate( IPatchPhysicalTypeDescriptor_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IPatchPhysicalTypeDescriptor_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* patchType() = 0; - virtual void patchType( const char* value ) = 0; - virtual char* parentType() = 0; - virtual void parentType( const char* value ) = 0; - virtual ::FoamXServer::StringPairList* patchFieldTypes() = 0; - virtual void patchFieldTypes( const ::FoamXServer::StringPairList& value ) = 0; - - protected: - IPatchPhysicalTypeDescriptor() {}; - private: - IPatchPhysicalTypeDescriptor( const IPatchPhysicalTypeDescriptor& ); - void operator=( const IPatchPhysicalTypeDescriptor& ); -}; - -extern CORBA::TypeCodeConst _tc_IPatchPhysicalTypeDescriptor; - -// Stub for interface IPatchPhysicalTypeDescriptor -class IPatchPhysicalTypeDescriptor_stub: - virtual public IPatchPhysicalTypeDescriptor -{ - public: - virtual ~IPatchPhysicalTypeDescriptor_stub(); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - char* patchType(); - void patchType( const char* value ); - char* parentType(); - void parentType( const char* value ); - ::FoamXServer::StringPairList* patchFieldTypes(); - void patchFieldTypes( const ::FoamXServer::StringPairList& value ); - - private: - void operator=( const IPatchPhysicalTypeDescriptor_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IPatchPhysicalTypeDescriptor_stub_clp : - virtual public IPatchPhysicalTypeDescriptor_stub, - virtual public PortableServer::StubBase -{ - public: - IPatchPhysicalTypeDescriptor_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IPatchPhysicalTypeDescriptor_stub_clp (); - char* name(); - void name( const char* value ); - char* displayName(); - void displayName( const char* value ); - char* description(); - void description( const char* value ); - char* patchType(); - void patchType( const char* value ); - char* parentType(); - void parentType( const char* value ); - ::FoamXServer::StringPairList* patchFieldTypes(); - void patchFieldTypes( const ::FoamXServer::StringPairList& value ); - - protected: - IPatchPhysicalTypeDescriptor_stub_clp (); - private: - void operator=( const IPatchPhysicalTypeDescriptor_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - - -/* - * Base class and common definitions for interface IGeometricField - */ - -class IGeometricField : - virtual public CORBA::Object -{ - public: - virtual ~IGeometricField(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IGeometricField_ptr _ptr_type; - typedef IGeometricField_var _var_type; - #endif - - static IGeometricField_ptr _narrow( CORBA::Object_ptr obj ); - static IGeometricField_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IGeometricField_ptr _duplicate( IGeometricField_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IGeometricField_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* name() = 0; - - virtual void getInternalFieldValue( IDictionaryEntry_out internalFieldValue ) = 0; - virtual void getPatchFieldParameters( const char* patchName, IDictionaryEntry_out patchFieldValue ) = 0; - virtual CORBA::Boolean modified() = 0; - - protected: - IGeometricField() {}; - private: - IGeometricField( const IGeometricField& ); - void operator=( const IGeometricField& ); -}; - -extern CORBA::TypeCodeConst _tc_IGeometricField; - -// Stub for interface IGeometricField -class IGeometricField_stub: - virtual public IGeometricField -{ - public: - virtual ~IGeometricField_stub(); - char* name(); - - void getInternalFieldValue( IDictionaryEntry_out internalFieldValue ); - void getPatchFieldParameters( const char* patchName, IDictionaryEntry_out patchFieldValue ); - CORBA::Boolean modified(); - - private: - void operator=( const IGeometricField_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IGeometricField_stub_clp : - virtual public IGeometricField_stub, - virtual public PortableServer::StubBase -{ - public: - IGeometricField_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IGeometricField_stub_clp (); - char* name(); - - void getInternalFieldValue( IDictionaryEntry_out internalFieldValue ); - void getPatchFieldParameters( const char* patchName, IDictionaryEntry_out patchFieldValue ); - CORBA::Boolean modified(); - - protected: - IGeometricField_stub_clp (); - private: - void operator=( const IGeometricField_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -} - - -namespace CasePostServer -{ - - -/* - * Base class and common definitions for interface ICasePostServer - */ - -class ICasePostServer : - virtual public CORBA::Object -{ - public: - virtual ~ICasePostServer(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef ICasePostServer_ptr _ptr_type; - typedef ICasePostServer_var _var_type; - #endif - - static ICasePostServer_ptr _narrow( CORBA::Object_ptr obj ); - static ICasePostServer_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static ICasePostServer_ptr _duplicate( ICasePostServer_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static ICasePostServer_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual char* caseRoot() = 0; - virtual char* caseName() = 0; - virtual CORBA::Long nProcs() = 0; - virtual ::FoamXServer::StringList* availableTimeSteps() = 0; - - virtual void setTime( const char* timeName, CORBA::Long timeIndex ) = 0; - virtual void setTimeSlave() = 0; - virtual StringList* getPatchNames() = 0; - virtual void getPatchNamesSlave() = 0; - virtual StringList* getFieldNames( const char* type ) = 0; - virtual void getMeshBb( Point3_out min, Point3_out max ) = 0; - virtual void getMeshBbSlave() = 0; - virtual void getPatchMesh( const char* patchName, CORBA::Double creaseAngle, FloatList_out points, LongList_out edges ) = 0; - virtual void getPatchMeshSlave() = 0; - virtual void getCutMesh( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ) = 0; - virtual void getCutMeshSlave() = 0; - virtual void getCutMeshOutline( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ) = 0; - virtual void getCutMeshOutlineSlave() = 0; - virtual void getTriPatch( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ) = 0; - virtual void getTriPatchSlave() = 0; - virtual void getTriPatchVec( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ) = 0; - virtual void getTriPatchVecSlave() = 0; - virtual void cutPlane( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ) = 0; - virtual void cutPlaneSlave() = 0; - virtual void cutPlaneVec( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ) = 0; - virtual void cutPlaneVecSlave() = 0; - virtual void close() = 0; - - protected: - ICasePostServer() {}; - private: - ICasePostServer( const ICasePostServer& ); - void operator=( const ICasePostServer& ); -}; - -extern CORBA::TypeCodeConst _tc_ICasePostServer; - -// Stub for interface ICasePostServer -class ICasePostServer_stub: - virtual public ICasePostServer -{ - public: - virtual ~ICasePostServer_stub(); - char* caseRoot(); - char* caseName(); - CORBA::Long nProcs(); - ::FoamXServer::StringList* availableTimeSteps(); - - void setTime( const char* timeName, CORBA::Long timeIndex ); - void setTimeSlave(); - StringList* getPatchNames(); - void getPatchNamesSlave(); - StringList* getFieldNames( const char* type ); - void getMeshBb( Point3_out min, Point3_out max ); - void getMeshBbSlave(); - void getPatchMesh( const char* patchName, CORBA::Double creaseAngle, FloatList_out points, LongList_out edges ); - void getPatchMeshSlave(); - void getCutMesh( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ); - void getCutMeshSlave(); - void getCutMeshOutline( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ); - void getCutMeshOutlineSlave(); - void getTriPatch( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void getTriPatchSlave(); - void getTriPatchVec( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void getTriPatchVecSlave(); - void cutPlane( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void cutPlaneSlave(); - void cutPlaneVec( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void cutPlaneVecSlave(); - void close(); - - private: - void operator=( const ICasePostServer_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class ICasePostServer_stub_clp : - virtual public ICasePostServer_stub, - virtual public PortableServer::StubBase -{ - public: - ICasePostServer_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~ICasePostServer_stub_clp (); - char* caseRoot(); - char* caseName(); - CORBA::Long nProcs(); - ::FoamXServer::StringList* availableTimeSteps(); - - void setTime( const char* timeName, CORBA::Long timeIndex ); - void setTimeSlave(); - StringList* getPatchNames(); - void getPatchNamesSlave(); - StringList* getFieldNames( const char* type ); - void getMeshBb( Point3_out min, Point3_out max ); - void getMeshBbSlave(); - void getPatchMesh( const char* patchName, CORBA::Double creaseAngle, FloatList_out points, LongList_out edges ); - void getPatchMeshSlave(); - void getCutMesh( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ); - void getCutMeshSlave(); - void getCutMeshOutline( const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out edges ); - void getCutMeshOutlineSlave(); - void getTriPatch( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void getTriPatchSlave(); - void getTriPatchVec( const char* fieldName, const char* patchName, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void getTriPatchVecSlave(); - void cutPlane( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void cutPlaneSlave(); - void cutPlaneVec( const char* fieldName, const Point3 basePoint, const Point3 normal, FloatList_out points, LongList_out triFaces, FloatList_out values ); - void cutPlaneVecSlave(); - void close(); - - protected: - ICasePostServer_stub_clp (); - private: - void operator=( const ICasePostServer_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -} - - -namespace CaseBrowser -{ - - -/* - * Base class and common definitions for interface ICaseBrowser - */ - -class ICaseBrowser : - virtual public CORBA::Object -{ - public: - virtual ~ICaseBrowser(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef ICaseBrowser_ptr _ptr_type; - typedef ICaseBrowser_var _var_type; - #endif - - static ICaseBrowser_ptr _narrow( CORBA::Object_ptr obj ); - static ICaseBrowser_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static ICaseBrowser_ptr _duplicate( ICaseBrowser_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static ICaseBrowser_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties() = 0; - virtual ::FoamXServer::CaseDescriptorList* cases() = 0; - virtual ::FoamXServer::JobDescriptorList* runningJobs() = 0; - virtual ::FoamXServer::JobDescriptorList* finishedJobs() = 0; - - virtual void getEnv( const char* envName, CORBA::String_out hostName ) = 0; - virtual void getHostName( CORBA::String_out hostName ) = 0; - virtual void getUserName( CORBA::String_out userName ) = 0; - virtual CORBA::Long fileModificationDate( const char* fileName ) = 0; - virtual void readFile( const char* fileName, CORBA::String_out contents ) = 0; - virtual void writeFile( const char* fileName, const char* contents ) = 0; - virtual CORBA::Long invokeUtility( const char* hostName, const char* utilityName, const StringList& arguments, const char* logName, CORBA::Boolean backGround ) = 0; - virtual void refreshCaseList() = 0; - virtual void addToCaseList( const char* rootDir ) = 0; - virtual void openCase( const CaseDescriptor& caseDesc ) = 0; - virtual void newCase( const char* rootDir, const char* caseName, const char* app ) = 0; - virtual void importCase( const char* rootDir, const char* caseName, const char* app ) = 0; - virtual void deleteCase( const CaseDescriptor& caseDesc ) = 0; - virtual void cloneCase( const CaseDescriptor& caseDesc, const char* newCaseRootDir, const char* newCaseName, const char* newAppClassName, const char* timeSel ) = 0; - virtual CORBA::Boolean getCaseServerReference( const char* rootDir, const char* caseName, CaseServer::ICaseServer_out caseObj ) = 0; - virtual void openCasePost( const CaseDescriptor& caseDesc, CORBA::Long nProcs ) = 0; - virtual CORBA::Boolean getCasePostServerReference( const char* rootDir, const char* caseName, CORBA::Long nProcs, CasePostServer::ICasePostServer_out caseObj ) = 0; - virtual CORBA::Boolean caseLocked( const CaseDescriptor& caseDesc ) = 0; - virtual void unlockCase( const char* rootDir, const char* caseName ) = 0; - virtual void unlockCaseDescriptor( const CaseDescriptor& caseDesc ) = 0; - virtual void addCase( const char* rootDir, const char* rawRootDir, const char* caseName, const char* app ) = 0; - virtual void caseOpen( const char* rootDir, const char* caseName ) = 0; - virtual CORBA::Boolean isCaseInError( const CaseDescriptor& caseDesc ) = 0; - virtual void caseIsInError( const CaseDescriptor& caseDesc ) = 0; - virtual void refreshJobsLists() = 0; - virtual void checkRunningJobs() = 0; - virtual void purgeRunningJobs() = 0; - virtual void purgeFinishedJob( const JobID& jobID ) = 0; - virtual void purgeFinishedJobs( CORBA::Long nDays ) = 0; - virtual void kill( const JobID& jobID ) = 0; - virtual void suspend( const JobID& jobID ) = 0; - virtual void cont( const JobID& jobID ) = 0; - virtual void end( const JobID& jobID, const char* rootDir, const char* caseName, CORBA::Boolean now ) = 0; - virtual void setStatus( const JobID& jobID, JobStatus jobStatus ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - ICaseBrowser() {}; - private: - ICaseBrowser( const ICaseBrowser& ); - void operator=( const ICaseBrowser& ); -}; - -extern CORBA::TypeCodeConst _tc_ICaseBrowser; - -// Stub for interface ICaseBrowser -class ICaseBrowser_stub: - virtual public ICaseBrowser -{ - public: - virtual ~ICaseBrowser_stub(); - ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties(); - ::FoamXServer::CaseDescriptorList* cases(); - ::FoamXServer::JobDescriptorList* runningJobs(); - ::FoamXServer::JobDescriptorList* finishedJobs(); - - void getEnv( const char* envName, CORBA::String_out hostName ); - void getHostName( CORBA::String_out hostName ); - void getUserName( CORBA::String_out userName ); - CORBA::Long fileModificationDate( const char* fileName ); - void readFile( const char* fileName, CORBA::String_out contents ); - void writeFile( const char* fileName, const char* contents ); - CORBA::Long invokeUtility( const char* hostName, const char* utilityName, const StringList& arguments, const char* logName, CORBA::Boolean backGround ); - void refreshCaseList(); - void addToCaseList( const char* rootDir ); - void openCase( const CaseDescriptor& caseDesc ); - void newCase( const char* rootDir, const char* caseName, const char* app ); - void importCase( const char* rootDir, const char* caseName, const char* app ); - void deleteCase( const CaseDescriptor& caseDesc ); - void cloneCase( const CaseDescriptor& caseDesc, const char* newCaseRootDir, const char* newCaseName, const char* newAppClassName, const char* timeSel ); - CORBA::Boolean getCaseServerReference( const char* rootDir, const char* caseName, CaseServer::ICaseServer_out caseObj ); - void openCasePost( const CaseDescriptor& caseDesc, CORBA::Long nProcs ); - CORBA::Boolean getCasePostServerReference( const char* rootDir, const char* caseName, CORBA::Long nProcs, CasePostServer::ICasePostServer_out caseObj ); - CORBA::Boolean caseLocked( const CaseDescriptor& caseDesc ); - void unlockCase( const char* rootDir, const char* caseName ); - void unlockCaseDescriptor( const CaseDescriptor& caseDesc ); - void addCase( const char* rootDir, const char* rawRootDir, const char* caseName, const char* app ); - void caseOpen( const char* rootDir, const char* caseName ); - CORBA::Boolean isCaseInError( const CaseDescriptor& caseDesc ); - void caseIsInError( const CaseDescriptor& caseDesc ); - void refreshJobsLists(); - void checkRunningJobs(); - void purgeRunningJobs(); - void purgeFinishedJob( const JobID& jobID ); - void purgeFinishedJobs( CORBA::Long nDays ); - void kill( const JobID& jobID ); - void suspend( const JobID& jobID ); - void cont( const JobID& jobID ); - void end( const JobID& jobID, const char* rootDir, const char* caseName, CORBA::Boolean now ); - void setStatus( const JobID& jobID, JobStatus jobStatus ); - void validate(); - void save(); - void close(); - - private: - void operator=( const ICaseBrowser_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class ICaseBrowser_stub_clp : - virtual public ICaseBrowser_stub, - virtual public PortableServer::StubBase -{ - public: - ICaseBrowser_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~ICaseBrowser_stub_clp (); - ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties(); - ::FoamXServer::CaseDescriptorList* cases(); - ::FoamXServer::JobDescriptorList* runningJobs(); - ::FoamXServer::JobDescriptorList* finishedJobs(); - - void getEnv( const char* envName, CORBA::String_out hostName ); - void getHostName( CORBA::String_out hostName ); - void getUserName( CORBA::String_out userName ); - CORBA::Long fileModificationDate( const char* fileName ); - void readFile( const char* fileName, CORBA::String_out contents ); - void writeFile( const char* fileName, const char* contents ); - CORBA::Long invokeUtility( const char* hostName, const char* utilityName, const StringList& arguments, const char* logName, CORBA::Boolean backGround ); - void refreshCaseList(); - void addToCaseList( const char* rootDir ); - void openCase( const CaseDescriptor& caseDesc ); - void newCase( const char* rootDir, const char* caseName, const char* app ); - void importCase( const char* rootDir, const char* caseName, const char* app ); - void deleteCase( const CaseDescriptor& caseDesc ); - void cloneCase( const CaseDescriptor& caseDesc, const char* newCaseRootDir, const char* newCaseName, const char* newAppClassName, const char* timeSel ); - CORBA::Boolean getCaseServerReference( const char* rootDir, const char* caseName, CaseServer::ICaseServer_out caseObj ); - void openCasePost( const CaseDescriptor& caseDesc, CORBA::Long nProcs ); - CORBA::Boolean getCasePostServerReference( const char* rootDir, const char* caseName, CORBA::Long nProcs, CasePostServer::ICasePostServer_out caseObj ); - CORBA::Boolean caseLocked( const CaseDescriptor& caseDesc ); - void unlockCase( const char* rootDir, const char* caseName ); - void unlockCaseDescriptor( const CaseDescriptor& caseDesc ); - void addCase( const char* rootDir, const char* rawRootDir, const char* caseName, const char* app ); - void caseOpen( const char* rootDir, const char* caseName ); - CORBA::Boolean isCaseInError( const CaseDescriptor& caseDesc ); - void caseIsInError( const CaseDescriptor& caseDesc ); - void refreshJobsLists(); - void checkRunningJobs(); - void purgeRunningJobs(); - void purgeFinishedJob( const JobID& jobID ); - void purgeFinishedJobs( CORBA::Long nDays ); - void kill( const JobID& jobID ); - void suspend( const JobID& jobID ); - void cont( const JobID& jobID ); - void end( const JobID& jobID, const char* rootDir, const char* caseName, CORBA::Boolean now ); - void setStatus( const JobID& jobID, JobStatus jobStatus ); - void validate(); - void save(); - void close(); - - protected: - ICaseBrowser_stub_clp (); - private: - void operator=( const ICaseBrowser_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -} - - -namespace HostBrowser -{ - - -/* - * Base class and common definitions for interface IHostBrowser - */ - -class IHostBrowser : - virtual public CORBA::Object -{ - public: - virtual ~IHostBrowser(); - - #ifdef HAVE_TYPEDEF_OVERLOAD - typedef IHostBrowser_ptr _ptr_type; - typedef IHostBrowser_var _var_type; - #endif - - static IHostBrowser_ptr _narrow( CORBA::Object_ptr obj ); - static IHostBrowser_ptr _narrow( CORBA::AbstractBase_ptr obj ); - static IHostBrowser_ptr _duplicate( IHostBrowser_ptr _obj ) - { - CORBA::Object::_duplicate (_obj); - return _obj; - } - - static IHostBrowser_ptr _nil() - { - return 0; - } - - virtual void *_narrow_helper( const char *repoid ); - - virtual ::FoamXServer::HostDescriptorList* hosts() = 0; - - virtual void refreshHostList() = 0; - virtual CORBA::Boolean isHostAlive( const char* hostName ) = 0; - virtual void hostIsAlive( const char* hostName ) = 0; - virtual void hostIsDead( const char* hostName ) = 0; - virtual void openCaseBrowser( const char* hostName ) = 0; - virtual CORBA::Boolean getCaseBrowserReference( const char* hostName, CaseBrowser::ICaseBrowser_out browserObj ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - IHostBrowser() {}; - private: - IHostBrowser( const IHostBrowser& ); - void operator=( const IHostBrowser& ); -}; - -extern CORBA::TypeCodeConst _tc_IHostBrowser; - -// Stub for interface IHostBrowser -class IHostBrowser_stub: - virtual public IHostBrowser -{ - public: - virtual ~IHostBrowser_stub(); - ::FoamXServer::HostDescriptorList* hosts(); - - void refreshHostList(); - CORBA::Boolean isHostAlive( const char* hostName ); - void hostIsAlive( const char* hostName ); - void hostIsDead( const char* hostName ); - void openCaseBrowser( const char* hostName ); - CORBA::Boolean getCaseBrowserReference( const char* hostName, CaseBrowser::ICaseBrowser_out browserObj ); - void validate(); - void save(); - void close(); - - private: - void operator=( const IHostBrowser_stub& ); -}; - -#ifndef MICO_CONF_NO_POA - -class IHostBrowser_stub_clp : - virtual public IHostBrowser_stub, - virtual public PortableServer::StubBase -{ - public: - IHostBrowser_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr); - virtual ~IHostBrowser_stub_clp (); - ::FoamXServer::HostDescriptorList* hosts(); - - void refreshHostList(); - CORBA::Boolean isHostAlive( const char* hostName ); - void hostIsAlive( const char* hostName ); - void hostIsDead( const char* hostName ); - void openCaseBrowser( const char* hostName ); - CORBA::Boolean getCaseBrowserReference( const char* hostName, CaseBrowser::ICaseBrowser_out browserObj ); - void validate(); - void save(); - void close(); - - protected: - IHostBrowser_stub_clp (); - private: - void operator=( const IHostBrowser_stub_clp & ); -}; - -#endif // MICO_CONF_NO_POA - -} -} - - -#ifndef MICO_CONF_NO_POA - - - -namespace POA_FoamXServer -{ - -class ITypeDescriptor : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~ITypeDescriptor (); - FoamXServer::ITypeDescriptor_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static ITypeDescriptor * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::FoamXType type() = 0; - virtual void type( ::FoamXServer::FoamXType value ) = 0; - virtual CORBA::Boolean isPrimitiveType() = 0; - virtual CORBA::Boolean isCompoundType() = 0; - virtual char* path() = 0; - virtual void path( const char* value ) = 0; - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* comment() = 0; - virtual void comment( const char* value ) = 0; - virtual char* category() = 0; - virtual void category( const char* value ) = 0; - virtual char* helpURL() = 0; - virtual void helpURL( const char* value ) = 0; - virtual char* iconURL() = 0; - virtual void iconURL( const char* value ) = 0; - virtual CORBA::Boolean optional() = 0; - virtual void optional( CORBA::Boolean value ) = 0; - virtual CORBA::Boolean visible() = 0; - virtual void visible( CORBA::Boolean value ) = 0; - virtual CORBA::Boolean editable() = 0; - virtual void editable( CORBA::Boolean value ) = 0; - virtual ::FoamXServer::FoamXAny* minValue() = 0; - virtual void minValue( const ::FoamXServer::FoamXAny& value ) = 0; - virtual ::FoamXServer::FoamXAny* maxValue() = 0; - virtual void maxValue( const ::FoamXServer::FoamXAny& value ) = 0; - virtual char* lookupDict() = 0; - virtual void lookupDict( const char* value ) = 0; - virtual ::FoamXServer::FoamXAnyList* valueList() = 0; - virtual void valueList( const ::FoamXServer::FoamXAnyList& value ) = 0; - virtual char* dictionaryPath() = 0; - virtual void dictionaryPath( const char* value ) = 0; - virtual CORBA::Long numElements() = 0; - virtual void numElements( CORBA::Long value ) = 0; - virtual ::FoamXServer::StringList* elementLabels() = 0; - virtual void elementLabels( const ::FoamXServer::StringList& value ) = 0; - virtual ::FoamXServer::TypeDescriptorList* subTypes() = 0; - virtual ::FoamXServer::ITypeDescriptor_ptr elementType() = 0; - - virtual CORBA::Boolean hasDefaultValue() = 0; - virtual void getDefaultValue( ::FoamXServer::IDictionaryEntry_out defaultValue ) = 0; - virtual void addSubType( ::FoamXServer::FoamXType type, ::FoamXServer::ITypeDescriptor_out subEntry ) = 0; - virtual void removeSubType( ::FoamXServer::ITypeDescriptor_ptr subEntry ) = 0; - virtual void validate() = 0; - - protected: - ITypeDescriptor () {}; - - private: - ITypeDescriptor (const ITypeDescriptor &); - void operator= (const ITypeDescriptor &); -}; - -class IDictionaryEntry : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IDictionaryEntry (); - FoamXServer::IDictionaryEntry_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IDictionaryEntry * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::ITypeDescriptor_ptr typeDescriptor() = 0; - virtual ::FoamXServer::FoamXAny* value() = 0; - virtual void value( const ::FoamXServer::FoamXAny& value ) = 0; - virtual ::FoamXServer::DictionaryEntryList* subElements() = 0; - virtual CORBA::Long selection() = 0; - virtual void selection( CORBA::Long value ) = 0; - - virtual void setValue( const ::FoamXServer::FoamXAny& value ) = 0; - virtual CORBA::Long nSubElements() = 0; - virtual CORBA::Boolean packedList() = 0; - virtual void addElement( ::FoamXServer::IDictionaryEntry_out subEntry ) = 0; - virtual void removeElement( ::FoamXServer::IDictionaryEntry_ptr subEntry ) = 0; - virtual void validate() = 0; - virtual CORBA::Boolean modified() = 0; - virtual void save() = 0; - - protected: - IDictionaryEntry () {}; - - private: - IDictionaryEntry (const IDictionaryEntry &); - void operator= (const IDictionaryEntry &); -}; - - - -namespace CaseServer -{ - -class ICaseServer : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~ICaseServer (); - FoamXServer::CaseServer::ICaseServer_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static ICaseServer * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual CORBA::Boolean managed() = 0; - virtual void managed( CORBA::Boolean value ) = 0; - virtual char* caseRoot() = 0; - virtual char* caseName() = 0; - virtual ::FoamXServer::CaseServer::IApplication_ptr application() = 0; - virtual ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties() = 0; - virtual ::FoamXServer::StringList* availableTimeSteps() = 0; - virtual CORBA::Boolean meshDefined() = 0; - virtual ::FoamXServer::StringList* patchNames() = 0; - - virtual char* getTime() = 0; - virtual void setTime( const char* timeName, CORBA::Long timeIndex ) = 0; - virtual void readMesh() = 0; - virtual void importMesh( const char* hostName, const char* rootDir, const char* caseName ) = 0; - virtual void getFieldValues( const char* fieldName, ::FoamXServer::CaseServer::IGeometricField_out fieldValues ) = 0; - virtual void addPatch( const char* patchName, const char* patchPhysicalType ) = 0; - virtual void deletePatch( const char* patchName ) = 0; - virtual void deleteAllPatches() = 0; - virtual void setPatchPhysicalType( const char* patchName, const char* patchPhysicalType ) = 0; - virtual void getPatchPhysicalType( const char* patchName, CORBA::String_out patchPhysicalType ) = 0; - virtual void getDictionary( const char* dictionaryName, CORBA::Boolean forceRead, ::FoamXServer::IDictionaryEntry_out dictRoot ) = 0; - virtual void readFile( const char* name, CORBA::String_out contents ) = 0; - virtual void writeFile( const char* name, const char* contents ) = 0; - virtual CORBA::Long fileModificationDate( const char* fileName ) = 0; - virtual CORBA::Long runCase( const char* arguments ) = 0; - virtual void killCase() = 0; - virtual void validate() = 0; - virtual CORBA::Boolean modified() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - ICaseServer () {}; - - private: - ICaseServer (const ICaseServer &); - void operator= (const ICaseServer &); -}; - -class IFoamProperties : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IFoamProperties (); - FoamXServer::CaseServer::IFoamProperties_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IFoamProperties * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::StringList* availableModules() = 0; - virtual ::FoamXServer::StringList* rootDirectories() = 0; - virtual ::FoamXServer::StringList* rawRootDirectories() = 0; - virtual ::FoamXServer::StringList* foamTypes() = 0; - virtual ::FoamXServer::StringList* geometryTypes() = 0; - virtual ::FoamXServer::StringList* patchTypes() = 0; - virtual ::FoamXServer::StringList* patchFieldTypes() = 0; - virtual ::FoamXServer::ApplicationDescriptorList* applicationes() = 0; - virtual ::FoamXServer::ApplicationDescriptorList* utilities() = 0; - - virtual void addRootDirectory( const char* rawRootDir ) = 0; - virtual void deleteRootDirectory( const char* rawRootDir ) = 0; - virtual void getFoamType( const char* foamTypeName, ::FoamXServer::ITypeDescriptor_out typeDesc ) = 0; - virtual void getGeometryType( const char* geometryTypeName, ::FoamXServer::CaseServer::IGeometryDescriptor_out geometryDesc ) = 0; - virtual void getPatchType( const char* patchTypeName, ::FoamXServer::CaseServer::IPatchDescriptor_out patchDesc ) = 0; - virtual void findPatchType( const char* patchTypeName, ::FoamXServer::CaseServer::IPatchDescriptor_out patchDesc ) = 0; - virtual void getPatchFieldType( const char* patchFieldTypeName, ::FoamXServer::ITypeDescriptor_out patchFieldDesc ) = 0; - virtual void findPatchFieldType( const char* patchFieldTypeName, ::FoamXServer::ITypeDescriptor_out patchFieldDesc ) = 0; - virtual void getFoamControlDict( ::FoamXServer::IDictionaryEntry_out controlDict ) = 0; - virtual void getApplication( const char* appName, ::FoamXServer::CaseServer::IApplication_out app ) = 0; - virtual void addApplication( const char* appName, ::FoamXServer::CaseServer::IApplication_out app ) = 0; - virtual void deleteApplication( const char* appName ) = 0; - virtual void cloneApplication( const char* appNameSrc, const char* appNameDest, const char* appDestPath, ::FoamXServer::CaseServer::IApplication_out app ) = 0; - virtual void getUtilityControlDict( const char* utilityName, const char* rootDir, const char* caseName, ::FoamXServer::IDictionaryEntry_out controlDict ) = 0; - virtual void validate() = 0; - virtual void saveSystemProperties() = 0; - virtual void saveUserProperties() = 0; - - protected: - IFoamProperties () {}; - - private: - IFoamProperties (const IFoamProperties &); - void operator= (const IFoamProperties &); -}; - -class IApplication : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IApplication (); - FoamXServer::CaseServer::IApplication_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IApplication * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* category() = 0; - virtual void category( const char* value ) = 0; - virtual ::FoamXServer::StringList* modules() = 0; - virtual void modules( const ::FoamXServer::StringList& value ) = 0; - virtual CORBA::Boolean systemClass() = 0; - virtual ::FoamXServer::StringList* fields() = 0; - virtual ::FoamXServer::StringList* patchPhysicalTypes() = 0; - virtual ::FoamXServer::StringList* dictionaries() = 0; - - virtual void getField( const char* fieldName, ::FoamXServer::CaseServer::IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void findField( const char* fieldName, ::FoamXServer::CaseServer::IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void addField( const char* fieldName, ::FoamXServer::CaseServer::IGeometricFieldDescriptor_out fieldDescriptor ) = 0; - virtual void deleteField( const char* fieldName ) = 0; - virtual void getPatchPhysicalType( const char* patchPhysicalTypeName, ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void findPatchPhysicalType( const char* patchPhysicalTypeName, ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void addPatchPhysicalType( const char* patchPhysicalTypeName, ::FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_out patchPhysicalTypeDescriptor ) = 0; - virtual void deletePatchPhysicalType( const char* patchPhysicalTypeName ) = 0; - virtual void getDictionary( const char* dictName, ::FoamXServer::ITypeDescriptor_out dictTypeDescriptor ) = 0; - virtual void addDictionary( const char* dictName, ::FoamXServer::ITypeDescriptor_out dictTypeDescriptor ) = 0; - virtual void deleteDictionary( const char* dictName ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - - protected: - IApplication () {}; - - private: - IApplication (const IApplication &); - void operator= (const IApplication &); -}; - -class IGeometricFieldDescriptor : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IGeometricFieldDescriptor (); - FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IGeometricFieldDescriptor * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::ITypeDescriptor_ptr typeDescriptor() = 0; - virtual ::FoamXServer::ITypeDescriptor_ptr fieldTypeDescriptor() = 0; - virtual ::FoamXServer::CaseServer::IGeometryDescriptor_ptr geometryDescriptor() = 0; - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* fieldTypeName() = 0; - virtual void fieldTypeName( const char* value ) = 0; - virtual char* geometryTypeName() = 0; - virtual void geometryTypeName( const char* value ) = 0; - virtual ::FoamXServer::DimensionSet dimensions() = 0; - virtual void dimensions( const ::FoamXServer::DimensionSet& value ) = 0; - - protected: - IGeometricFieldDescriptor () {}; - - private: - IGeometricFieldDescriptor (const IGeometricFieldDescriptor &); - void operator= (const IGeometricFieldDescriptor &); -}; - -class IPatchDescriptor : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IPatchDescriptor (); - FoamXServer::CaseServer::IPatchDescriptor_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IPatchDescriptor * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - - protected: - IPatchDescriptor () {}; - - private: - IPatchDescriptor (const IPatchDescriptor &); - void operator= (const IPatchDescriptor &); -}; - -class IGeometryDescriptor : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IGeometryDescriptor (); - FoamXServer::CaseServer::IGeometryDescriptor_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IGeometryDescriptor * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - - protected: - IGeometryDescriptor () {}; - - private: - IGeometryDescriptor (const IGeometryDescriptor &); - void operator= (const IGeometryDescriptor &); -}; - -class IPatchPhysicalTypeDescriptor : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IPatchPhysicalTypeDescriptor (); - FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IPatchPhysicalTypeDescriptor * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* name() = 0; - virtual void name( const char* value ) = 0; - virtual char* displayName() = 0; - virtual void displayName( const char* value ) = 0; - virtual char* description() = 0; - virtual void description( const char* value ) = 0; - virtual char* patchType() = 0; - virtual void patchType( const char* value ) = 0; - virtual char* parentType() = 0; - virtual void parentType( const char* value ) = 0; - virtual ::FoamXServer::StringPairList* patchFieldTypes() = 0; - virtual void patchFieldTypes( const ::FoamXServer::StringPairList& value ) = 0; - - protected: - IPatchPhysicalTypeDescriptor () {}; - - private: - IPatchPhysicalTypeDescriptor (const IPatchPhysicalTypeDescriptor &); - void operator= (const IPatchPhysicalTypeDescriptor &); -}; - -class IGeometricField : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IGeometricField (); - FoamXServer::CaseServer::IGeometricField_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IGeometricField * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* name() = 0; - - virtual void getInternalFieldValue( ::FoamXServer::IDictionaryEntry_out internalFieldValue ) = 0; - virtual void getPatchFieldParameters( const char* patchName, ::FoamXServer::IDictionaryEntry_out patchFieldValue ) = 0; - virtual CORBA::Boolean modified() = 0; - - protected: - IGeometricField () {}; - - private: - IGeometricField (const IGeometricField &); - void operator= (const IGeometricField &); -}; - -} - - -namespace CasePostServer -{ - -class ICasePostServer : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~ICasePostServer (); - FoamXServer::CasePostServer::ICasePostServer_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static ICasePostServer * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual char* caseRoot() = 0; - virtual char* caseName() = 0; - virtual CORBA::Long nProcs() = 0; - virtual ::FoamXServer::StringList* availableTimeSteps() = 0; - - virtual void setTime( const char* timeName, CORBA::Long timeIndex ) = 0; - virtual void setTimeSlave() = 0; - virtual ::FoamXServer::StringList* getPatchNames() = 0; - virtual void getPatchNamesSlave() = 0; - virtual ::FoamXServer::StringList* getFieldNames( const char* type ) = 0; - virtual void getMeshBb( ::FoamXServer::Point3_out min, ::FoamXServer::Point3_out max ) = 0; - virtual void getMeshBbSlave() = 0; - virtual void getPatchMesh( const char* patchName, CORBA::Double creaseAngle, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out edges ) = 0; - virtual void getPatchMeshSlave() = 0; - virtual void getCutMesh( const ::FoamXServer::Point3 basePoint, const ::FoamXServer::Point3 normal, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out edges ) = 0; - virtual void getCutMeshSlave() = 0; - virtual void getCutMeshOutline( const ::FoamXServer::Point3 basePoint, const ::FoamXServer::Point3 normal, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out edges ) = 0; - virtual void getCutMeshOutlineSlave() = 0; - virtual void getTriPatch( const char* fieldName, const char* patchName, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out triFaces, ::FoamXServer::FloatList_out values ) = 0; - virtual void getTriPatchSlave() = 0; - virtual void getTriPatchVec( const char* fieldName, const char* patchName, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out triFaces, ::FoamXServer::FloatList_out values ) = 0; - virtual void getTriPatchVecSlave() = 0; - virtual void cutPlane( const char* fieldName, const ::FoamXServer::Point3 basePoint, const ::FoamXServer::Point3 normal, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out triFaces, ::FoamXServer::FloatList_out values ) = 0; - virtual void cutPlaneSlave() = 0; - virtual void cutPlaneVec( const char* fieldName, const ::FoamXServer::Point3 basePoint, const ::FoamXServer::Point3 normal, ::FoamXServer::FloatList_out points, ::FoamXServer::LongList_out triFaces, ::FoamXServer::FloatList_out values ) = 0; - virtual void cutPlaneVecSlave() = 0; - virtual void close() = 0; - - protected: - ICasePostServer () {}; - - private: - ICasePostServer (const ICasePostServer &); - void operator= (const ICasePostServer &); -}; - -} - - -namespace CaseBrowser -{ - -class ICaseBrowser : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~ICaseBrowser (); - FoamXServer::CaseBrowser::ICaseBrowser_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static ICaseBrowser * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::CaseServer::IFoamProperties_ptr foamProperties() = 0; - virtual ::FoamXServer::CaseDescriptorList* cases() = 0; - virtual ::FoamXServer::JobDescriptorList* runningJobs() = 0; - virtual ::FoamXServer::JobDescriptorList* finishedJobs() = 0; - - virtual void getEnv( const char* envName, CORBA::String_out hostName ) = 0; - virtual void getHostName( CORBA::String_out hostName ) = 0; - virtual void getUserName( CORBA::String_out userName ) = 0; - virtual CORBA::Long fileModificationDate( const char* fileName ) = 0; - virtual void readFile( const char* fileName, CORBA::String_out contents ) = 0; - virtual void writeFile( const char* fileName, const char* contents ) = 0; - virtual CORBA::Long invokeUtility( const char* hostName, const char* utilityName, const ::FoamXServer::StringList& arguments, const char* logName, CORBA::Boolean backGround ) = 0; - virtual void refreshCaseList() = 0; - virtual void addToCaseList( const char* rootDir ) = 0; - virtual void openCase( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void newCase( const char* rootDir, const char* caseName, const char* app ) = 0; - virtual void importCase( const char* rootDir, const char* caseName, const char* app ) = 0; - virtual void deleteCase( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void cloneCase( const ::FoamXServer::CaseDescriptor& caseDesc, const char* newCaseRootDir, const char* newCaseName, const char* newAppClassName, const char* timeSel ) = 0; - virtual CORBA::Boolean getCaseServerReference( const char* rootDir, const char* caseName, ::FoamXServer::CaseServer::ICaseServer_out caseObj ) = 0; - virtual void openCasePost( const ::FoamXServer::CaseDescriptor& caseDesc, CORBA::Long nProcs ) = 0; - virtual CORBA::Boolean getCasePostServerReference( const char* rootDir, const char* caseName, CORBA::Long nProcs, ::FoamXServer::CasePostServer::ICasePostServer_out caseObj ) = 0; - virtual CORBA::Boolean caseLocked( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void unlockCase( const char* rootDir, const char* caseName ) = 0; - virtual void unlockCaseDescriptor( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void addCase( const char* rootDir, const char* rawRootDir, const char* caseName, const char* app ) = 0; - virtual void caseOpen( const char* rootDir, const char* caseName ) = 0; - virtual CORBA::Boolean isCaseInError( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void caseIsInError( const ::FoamXServer::CaseDescriptor& caseDesc ) = 0; - virtual void refreshJobsLists() = 0; - virtual void checkRunningJobs() = 0; - virtual void purgeRunningJobs() = 0; - virtual void purgeFinishedJob( const ::FoamXServer::JobID& jobID ) = 0; - virtual void purgeFinishedJobs( CORBA::Long nDays ) = 0; - virtual void kill( const ::FoamXServer::JobID& jobID ) = 0; - virtual void suspend( const ::FoamXServer::JobID& jobID ) = 0; - virtual void cont( const ::FoamXServer::JobID& jobID ) = 0; - virtual void end( const ::FoamXServer::JobID& jobID, const char* rootDir, const char* caseName, CORBA::Boolean now ) = 0; - virtual void setStatus( const ::FoamXServer::JobID& jobID, ::FoamXServer::JobStatus jobStatus ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - ICaseBrowser () {}; - - private: - ICaseBrowser (const ICaseBrowser &); - void operator= (const ICaseBrowser &); -}; - -} - - -namespace HostBrowser -{ - -class IHostBrowser : virtual public PortableServer::StaticImplementation -{ - public: - virtual ~IHostBrowser (); - FoamXServer::HostBrowser::IHostBrowser_ptr _this (); - bool dispatch (CORBA::StaticServerRequest_ptr); - virtual void invoke (CORBA::StaticServerRequest_ptr); - virtual CORBA::Boolean _is_a (const char *); - virtual CORBA::InterfaceDef_ptr _get_interface (); - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr); - - virtual void * _narrow_helper (const char *); - static IHostBrowser * _narrow (PortableServer::Servant); - virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr); - - virtual ::FoamXServer::HostDescriptorList* hosts() = 0; - - virtual void refreshHostList() = 0; - virtual CORBA::Boolean isHostAlive( const char* hostName ) = 0; - virtual void hostIsAlive( const char* hostName ) = 0; - virtual void hostIsDead( const char* hostName ) = 0; - virtual void openCaseBrowser( const char* hostName ) = 0; - virtual CORBA::Boolean getCaseBrowserReference( const char* hostName, ::FoamXServer::CaseBrowser::ICaseBrowser_out browserObj ) = 0; - virtual void validate() = 0; - virtual void save() = 0; - virtual void close() = 0; - - protected: - IHostBrowser () {}; - - private: - IHostBrowser (const IHostBrowser &); - void operator= (const IHostBrowser &); -}; - -} -} - - -#endif // MICO_CONF_NO_POA - -void operator<<=( CORBA::Any &a, const ::FoamXServer::FoamXType &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::FoamXType &e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXType; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::FoamXAny &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::FoamXAny *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::FoamXAny &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::FoamXAny *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXAny; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::ErrorCode &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::ErrorCode &e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_ErrorCode; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::FoamXError &e ); -void operator<<=( CORBA::Any &a, ::FoamXServer::FoamXError *e ); -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::FoamXError &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, const ::FoamXServer::FoamXError *&e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXError; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::FoamXIOError &e ); -void operator<<=( CORBA::Any &a, ::FoamXServer::FoamXIOError *e ); -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::FoamXIOError &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, const ::FoamXServer::FoamXIOError *&e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXIOError; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::ValidationError &e ); -void operator<<=( CORBA::Any &a, ::FoamXServer::ValidationError *e ); -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::ValidationError &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, const ::FoamXServer::ValidationError *&e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_ValidationError; - -void operator<<=( CORBA::Any &a, const FoamXServer::ITypeDescriptor_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::ITypeDescriptor_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::ITypeDescriptor_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_ITypeDescriptor; - -void operator<<=( CORBA::Any &a, const FoamXServer::IDictionaryEntry_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::IDictionaryEntry_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::IDictionaryEntry_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_IDictionaryEntry; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::JobStatus &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::JobStatus &e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobStatus; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::MessageType &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::MessageType &e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_MessageType; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::Point3_forany &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::Point3_forany &_s ); -void operator<<=( CORBA::Any &_a, const ::FoamXServer::StringPair &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::StringPair *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::StringPair &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::StringPair *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_StringPair; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::HostDescriptor &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::HostDescriptor *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::HostDescriptor &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::HostDescriptor *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_HostDescriptor; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::ApplicationDescriptor &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::ApplicationDescriptor *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::ApplicationDescriptor &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::ApplicationDescriptor *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_ApplicationDescriptor; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::CaseDescriptor &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::CaseDescriptor *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::CaseDescriptor &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::CaseDescriptor *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseDescriptor; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::JobID &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::JobID *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::JobID &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::JobID *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobID; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::JobDescriptor &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::JobDescriptor *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::JobDescriptor &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::JobDescriptor *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_JobDescriptor; - -void operator<<=( CORBA::Any &_a, const ::FoamXServer::DimensionSet &_s ); -void operator<<=( CORBA::Any &_a, ::FoamXServer::DimensionSet *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, ::FoamXServer::DimensionSet &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::FoamXServer::DimensionSet *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_DimensionSet; - -void operator<<=( CORBA::Any &a, const ::FoamXServer::FoamXSYSError &e ); -void operator<<=( CORBA::Any &a, ::FoamXServer::FoamXSYSError *e ); -CORBA::Boolean operator>>=( const CORBA::Any &a, ::FoamXServer::FoamXSYSError &e ); - -CORBA::Boolean operator>>=( const CORBA::Any &a, const ::FoamXServer::FoamXSYSError *&e ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_FoamXSYSError; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::ICaseServer_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::ICaseServer_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::ICaseServer_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_ICaseServer; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IFoamProperties_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IFoamProperties_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IFoamProperties_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IFoamProperties; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IApplication_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IApplication_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IApplication_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IApplication; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IGeometricFieldDescriptor_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometricFieldDescriptor; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IPatchDescriptor_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IPatchDescriptor_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IPatchDescriptor_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IPatchDescriptor; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IGeometryDescriptor_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IGeometryDescriptor_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IGeometryDescriptor_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometryDescriptor; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IPatchPhysicalTypeDescriptor_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IPatchPhysicalTypeDescriptor; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseServer::IGeometricField_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseServer::IGeometricField_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseServer::IGeometricField_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseServer_IGeometricField; - -void operator<<=( CORBA::Any &a, const FoamXServer::CasePostServer::ICasePostServer_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CasePostServer::ICasePostServer_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CasePostServer::ICasePostServer_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CasePostServer_ICasePostServer; - -void operator<<=( CORBA::Any &a, const FoamXServer::CaseBrowser::ICaseBrowser_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::CaseBrowser::ICaseBrowser_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::CaseBrowser::ICaseBrowser_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_CaseBrowser_ICaseBrowser; - -void operator<<=( CORBA::Any &a, const FoamXServer::HostBrowser::IHostBrowser_ptr obj ); -void operator<<=( CORBA::Any &a, FoamXServer::HostBrowser::IHostBrowser_ptr* obj_ptr ); -CORBA::Boolean operator>>=( const CORBA::Any &a, FoamXServer::HostBrowser::IHostBrowser_ptr &obj ); - -extern CORBA::StaticTypeInfo *_marshaller_FoamXServer_HostBrowser_IHostBrowser; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::FoamXAny,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_FoamXAny; - -void operator<<=( CORBA::Any &_a, const StringSequenceTmpl &_s ); -void operator<<=( CORBA::Any &_a, StringSequenceTmpl *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, StringSequenceTmpl &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const StringSequenceTmpl *&_s ); - -void operator<<=( CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> &_s ); -void operator<<=( CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::ITypeDescriptor_var,FoamXServer::ITypeDescriptor_ptr> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_ITypeDescriptor; - -void operator<<=( CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> &_s ); -void operator<<=( CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const IfaceSequenceTmpl< FoamXServer::IDictionaryEntry_var,FoamXServer::IDictionaryEntry_ptr> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_IDictionaryEntry; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< CORBA::Double,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< CORBA::Double,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< CORBA::Double,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< CORBA::Double,MICO_TID_DEF> *&_s ); - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< CORBA::Float,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< CORBA::Float,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< CORBA::Float,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< CORBA::Float,MICO_TID_DEF> *&_s ); - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< CORBA::Long,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< CORBA::Long,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< CORBA::Long,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< CORBA::Long,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__a3_float; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::StringPair,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_StringPair; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::HostDescriptor,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_HostDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::ApplicationDescriptor,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_ApplicationDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::CaseDescriptor,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_CaseDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobID,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_JobID; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::JobDescriptor,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_JobDescriptor; - -void operator<<=( CORBA::Any &_a, const SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> &_s ); -void operator<<=( CORBA::Any &_a, SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> *_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> &_s ); -CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< FoamXServer::DimensionSet,MICO_TID_DEF> *&_s ); - -extern CORBA::StaticTypeInfo *_marshaller__seq_FoamXServer_DimensionSet; - -#endif diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/files b/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/files deleted file mode 100644 index dd7efcc695..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -FoamX.C - -LIB = $(FOAM_LIBBIN)/libFoamXServer diff --git a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/options b/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/options deleted file mode 100644 index 49624f712c..0000000000 --- a/applications/utilities/preProcessing/FoamX/C++/FoamXServer/Make/options +++ /dev/null @@ -1,4 +0,0 @@ -#include "../../FoamXLib/Make/orbOptions" - -EXE_INC = $(ORB_INC) -EXE_LIBS = $(ORB_LIBS) diff --git a/applications/utilities/preProcessing/FoamX/FoamX.idl b/applications/utilities/preProcessing/FoamX/FoamX.idl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/applications/utilities/preProcessing/FoamX/Idl/FoamX.idl b/applications/utilities/preProcessing/FoamX/Idl/FoamX.idl deleted file mode 100644 index cd25cedc43..0000000000 --- a/applications/utilities/preProcessing/FoamX/Idl/FoamX.idl +++ /dev/null @@ -1,1320 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - FoamX - -Description - IDL definitions for FoamX pre-processor. - -SourceFiles - FoamX.H - FoamX.C - -\*---------------------------------------------------------------------------*/ - -#ifndef FoamX_IDL -#define FoamX_IDL - -module FoamXServer -{ - // Forward declare all interfaces in this module. - interface ITypeDescriptor; - interface IDictionaryEntry; - - // ------------------------------------------------------------------------- - // - Enums ----------------------------------------------------------------- - // ------------------------------------------------------------------------- - - enum FoamXType - { - Type_Undefined, - Type_Boolean, - Type_Label, - Type_Scalar, - Type_Char, - Type_Word, - Type_String, - Type_RootDir, // Any directory in caseRoots - Type_RootAndCase, // Path to valid case - Type_CaseName, // Valid case directory - Type_HostName, // Valid license host - Type_File, // Generic file (not directory) - Type_Directory, // Generic directory - Type_Time, // Time (as string) - Type_DimensionSet, - Type_FixedList, - Type_List, - Type_Dictionary, - Type_Selection, - Type_Compound, - Type_Field // Special type for late-bound field types. - }; - - enum ErrorCode - { - S_OK, - E_FAIL, - E_FOAM, - E_INVALID_ARG, - E_INVALID_PTR, - E_INVALID_REF, - E_INDEX_OUT_OF_BOUNDS, - E_UNKNOWN_NAME, - E_UNEXPECTED - }; - - enum JobStatus - { - JOB_UNDEFINED, - JOB_LAUNCHING, - JOB_RUNNING, - JOB_STOPPING, - JOB_SUSPENDED, - JOB_FINISHED, - JOB_ABORTED - }; - - enum MessageType - { - M_DIAGNOSTIC, // Diagnostic and informational messages. - M_WARNING, // Warning messages. - M_ERROR // Error messages. - }; - - - // ------------------------------------------------------------------------- - // - General Typedefs------------------------------------------------------- - // ------------------------------------------------------------------------- - - typedef sequence StringList; - typedef sequence TypeDescriptorList; - typedef sequence DictionaryEntryList; - typedef sequence DoubleList; - typedef sequence FloatList; - typedef sequence LongList; - typedef float Point3[3]; - - - // ------------------------------------------------------------------------- - // - Structs---------------------------------------------------------------- - // ------------------------------------------------------------------------- - - struct FoamXAny - { - FoamXType type; - any value; - }; - typedef sequence FoamXAnyList; - - struct StringPair - { - string name; - string value; - }; - typedef sequence StringPairList; - - // Host descriptor structure. - struct HostDescriptor - { - string name; - boolean alive; - }; - typedef sequence HostDescriptorList; - - // Application descriptor structure. - struct ApplicationDescriptor - { - string name; - string category; - string path; - boolean systemClass; // System defined application class. - }; - typedef sequence ApplicationDescriptorList; - - // Case descriptor structure. - struct CaseDescriptor - { - string rootDir; // rootDir (after expansion) - string rawRootDir; // rootDir (before expansion) - string caseName; - string app; - long nProcs; // 1 or number of subdomains in parallel - boolean managed; // True if this is a FoamX managed case. - boolean locked; // True if this case is locked by another user. - boolean error; // True if this case is in error. - }; - typedef sequence CaseDescriptorList; - - // Job ID. - struct JobID - { - string hostName; // Host name. - long processID; // Process ID. - }; - typedef sequence JobIDList; - - // Job descriptor structure. - struct JobDescriptor - { - JobID jobID; // Job ID. - long ppid; // Parent pid. - long pgid; // Group pid. - string startDate; // Start date. - string startTime; // Start time. - string userName; // Username. - string foamVersion; // Software version. - string code; // Code. - string argList; // Argument list. - string currentDir; // Current working directory. - string rootDir; // Case root. - string caseName; // Case name. - long nProcs; // Number of processes. - JobIDList slaves; // slave JobIDs - long nCountedProcs; // Number of licences taken up. - double cpuTime; // Used cpuTime. - string endDate; // End date. - string endTime; // End time. - JobStatus status; // Job status. - }; - typedef sequence JobDescriptorList; - - struct DimensionSet - { - double mass; // Kilogramme Kg. - double length; // meter m. - double time; // second s. - double temperature; // Kelvin K. - double moles; // mole mol. - double current; // Ampere Amp. - double luminousIntensity; // Candela Cd. - }; - typedef sequence DimensionSetList; - - - // ------------------------------------------------------------------------- - // - Exceptions------------------------------------------------------------- - // ------------------------------------------------------------------------- - - // Standard exception - exception FoamXError - { - ErrorCode errorCode; - string errorMessage; - - string methodName; - string fileName; - long lineNo; - }; - - // Invalid remote system invocation (e.g. machine can't be reached) - exception FoamXSYSError - { - ErrorCode errorCode; - string errorMessage; - string hostName; - - string methodName; - string fileName; - long lineNo; - }; - - // Invalid dictionary - exception ValidationError - { - ErrorCode errorCode; - string errorMessage; - string itemPath; - }; - - // Exception from error on file - exception FoamXIOError - { - string errorMessage; - string ioFileName; - long ioStartLineNo; - long ioEndLineNo; - - string methodName; - string fileName; - long lineNo; - }; - - - // ------------------------------------------------------------------------- - // - Interfaces ------------------------------------------------------------ - // ------------------------------------------------------------------------- - - interface ITypeDescriptor - { - // Properties common to all types. - - //- The type of this parameter. - attribute FoamXType type; - - //- Primitive type flag. - readonly attribute boolean isPrimitiveType; - - //- Compound type flag. - readonly attribute boolean isCompoundType; - - //- Path of this parameter relative to root dictionary. - attribute string path; - - //- Foam parameter name. - attribute string name; - - //- Short display name. - attribute string displayName; - - //- Long descriptive name. - attribute string description; - - //- Dictionary comment. - attribute string comment; - - //- GUI category. - attribute string category; - - //- URL to relevant help file. - attribute string helpURL; - - //- URL to a nice icon for this entry. - attribute string iconURL; - - //- Flag indicating whether this parameter is optional. - // Defaults to false. - attribute boolean optional; - - //- Flag indicating whether this parameter is visible within FoamX. - // Defaults to true. - attribute boolean visible; - - // Properties for non-compound types. - - //- Flag indicating whether this parameter is editable within FoamX. - // Defaults to true. - attribute boolean editable; - - //- Minimum value for this parameter. - attribute FoamXAny minValue; - - //- Maximum value for this parameter. - attribute FoamXAny maxValue; - - //- Name of dictionary to use as a lookup table. - attribute string lookupDict; - - //- List of permissible values for this parameter. - attribute FoamXAnyList valueList; - - // Properties for compound types. - - //- Top-level dictionary location relative to case root. - attribute string dictionaryPath; - - //- Number of vector space elements. - attribute long numElements; - - //- Labels of vector space elements (eg, x, y, z). - attribute StringList elementLabels; - - //- List of sub-types for compound types. - readonly attribute TypeDescriptorList subTypes; - - //- Element type in List of elements. - readonly attribute ITypeDescriptor elementType; - - - boolean hasDefaultValue(); - - void getDefaultValue - ( - out IDictionaryEntry defaultValue - ) raises(FoamXError, FoamXIOError); - - //- Compound sub-type methods. - void addSubType - ( - in FoamXType type, - out ITypeDescriptor subEntry - ) raises(FoamXError, FoamXIOError); - - void removeSubType(in ITypeDescriptor subEntry) - raises(FoamXError, FoamXIOError); - - //- Validation. - // Checks that this type and all sub-types are valid. - // Returns the path to the offending type if any invalid entries - // are found. - void validate() - raises(FoamXError, FoamXIOError, ValidationError); - }; - - // ------------------------------------------------------------------------- - - interface IDictionaryEntry - { - // ---- Common attributes -------------------------------------- - // Reference to the type descriptor object for this entry. - readonly attribute ITypeDescriptor typeDescriptor; - - // ---- Non-compound attributes -------------------------------- - // Current value for this (non compound) entry. - attribute FoamXAny value; - - void setValue(in FoamXAny value) - raises(FoamXError); - - // ---- Compound attributes ------------------------------------ - // Sub-elements for compound types. - readonly attribute DictionaryEntryList subElements; - long nSubElements() raises(FoamXError); - boolean packedList() raises(FoamXError); - - // ---- Selection attributes ----------------------------------- - // The current selection index - attribute long selection; - - // Add a new element to the list and return the new dictionary - // entry object. - void addElement(out IDictionaryEntry subEntry) - raises(FoamXError); - - // Remove element from list. - void removeElement(in IDictionaryEntry subEntry) - raises(FoamXError); - - // ---- Recursive state methods -------------------------------- - // Returns true if this entry, and all sub-entries are valid. - // Returns the path to the offending entry if any invalid entries - // are found. - void validate() - raises(FoamXError, ValidationError); - - // Returns true if this entry, or any sub-entries have been modified. - boolean modified() - raises(FoamXError); - - // ---- Persistence methods ------------------------------------ - // Save method for root (dictionary) objects. - void save() - raises(FoamXError, FoamXIOError); - }; - - - // ------------------------------------------------------------------------- - // - FoamX CaseServer Module ----------------------------------------------- - // ------------------------------------------------------------------------- - - module CaseServer - { - // Forward declare all interfaces in this module. - interface ICaseServer; - interface IFoamProperties; - interface IApplication; - interface IGeometricFieldDescriptor; - interface IPatchDescriptor; - interface IGeometryDescriptor; - interface IPatchPhysicalTypeDescriptor; - interface IGeometricField; - - - // --------------------------------------------------------------------- - // - Interfaces -------------------------------------------------------- - // --------------------------------------------------------------------- - - interface ICaseServer - { - // Attributes. - attribute boolean managed; - readonly attribute string caseRoot; - readonly attribute string caseName; - - // Application class for this case (read only). - readonly attribute IApplication application; - - // Foam system properties (read only). - readonly attribute IFoamProperties foamProperties; - - // Time-steps. - readonly attribute StringList availableTimeSteps; - - // Get current time - string getTime() - raises(FoamXError, FoamXIOError); - - // Set time - void setTime(in string timeName, in long timeIndex) - raises(FoamXError, FoamXIOError); - - // Mesh. - readonly attribute boolean meshDefined; - - void readMesh() - raises(FoamXError, FoamXIOError); - - void importMesh - ( - in string hostName, - in string rootDir, - in string caseName - ) raises(FoamXError, FoamXIOError); - - // Field values. - void getFieldValues - ( - in string fieldName, - out IGeometricField fieldValues - ) raises(FoamXError, FoamXIOError); - - // Patches. - readonly attribute StringList patchNames; - - void addPatch(in string patchName, in string patchPhysicalType) - raises(FoamXError, FoamXIOError); - - void deletePatch(in string patchName) - raises(FoamXError, FoamXIOError); - - void deleteAllPatches() raises(FoamXError, FoamXIOError); - - // Patch physical type - void setPatchPhysicalType - ( - in string patchName, - in string patchPhysicalType - ) raises(FoamXError, FoamXIOError); - - void getPatchPhysicalType - ( - in string patchName, - out string patchPhysicalType - ) raises(FoamXError, FoamXIOError); - - // Dictionaries. - void getDictionary - ( - in string dictionaryName, - in boolean forceRead, // Do not use cache - out IDictionaryEntry dictRoot - ) raises(FoamXError, FoamXIOError); - - void readFile - ( - in string name, - out string contents - ) raises(FoamXError, FoamXIOError); - - void writeFile - ( - in string name, - in string contents - ) raises(FoamXError, FoamXIOError); - - // Get modification date - long fileModificationDate - ( - in string fileName - ) raises(FoamXIOError); - - //- Calculation control. - long runCase(in string arguments) raises(FoamXError, FoamXIOError); - void killCase() raises(FoamXError); - - //- Validation. - void validate() raises(FoamXError, FoamXIOError, ValidationError); - - // Returns true if this has been modified - boolean modified(); - - //- Persistence. - void save() raises(FoamXError, FoamXIOError, ValidationError); - - //- Lifetime management. - oneway void close(); - }; - - // --------------------------------------------------------------------- - - interface IFoamProperties - { - //- Attributes. - readonly attribute StringList availableModules; // Defined modules. - - //- Root directories to search for cases. - - readonly attribute StringList rootDirectories; - - //- Unexpanded form of rootDirectories. - readonly attribute StringList rawRootDirectories; - - void addRootDirectory(in string rawRootDir) - raises(FoamXError, FoamXIOError); - - void deleteRootDirectory(in string rawRootDir) - raises(FoamXError, FoamXIOError); - - - // Foam types. - - readonly attribute StringList foamTypes; - - void getFoamType - ( - in string foamTypeName, - out ITypeDescriptor typeDesc - ) raises(FoamXError, FoamXIOError); - - - // Geometry types. - - readonly attribute StringList geometryTypes; - - void getGeometryType - ( - in string geometryTypeName, - out IGeometryDescriptor geometryDesc - ) raises(FoamXError, FoamXIOError); - - - // Patch types. - - readonly attribute StringList patchTypes; - - void getPatchType - ( - in string patchTypeName, - out IPatchDescriptor patchDesc - ) raises(FoamXError, FoamXIOError); - - void findPatchType - ( - in string patchTypeName, - out IPatchDescriptor patchDesc - ) raises(FoamXError, FoamXIOError); - - - // Patch field types. - - readonly attribute StringList patchFieldTypes; - - void getPatchFieldType - ( - in string patchFieldTypeName, - out ITypeDescriptor patchFieldDesc - ) raises(FoamXError, FoamXIOError); - - void findPatchFieldType - ( - in string patchFieldTypeName, - out ITypeDescriptor patchFieldDesc - ) raises(FoamXError, FoamXIOError); - - - // FOAM controlDict - - void getFoamControlDict - ( - out IDictionaryEntry controlDict - ) raises(FoamXError, FoamXIOError); - - - // Application classes. - - readonly attribute ApplicationDescriptorList - applicationes; - - void getApplication - ( - in string appName, - out IApplication app - ) raises(FoamXError, FoamXIOError); - - void addApplication - ( - in string appName, - out IApplication app - ) raises(FoamXError, FoamXIOError); - - void deleteApplication(in string appName) - raises(FoamXError, FoamXIOError); - - void cloneApplication - ( - in string appNameSrc, - in string appNameDest, - in string appDestPath, - out IApplication app - ) raises(FoamXError, FoamXIOError); - - - // Foam utilities. - - readonly attribute ApplicationDescriptorList utilities; - - void getUtilityControlDict - ( - in string utilityName, - in string rootDir, - in string caseName, - out IDictionaryEntry controlDict - ) raises(FoamXError, FoamXIOError); - - - //- Validation. - void validate() - raises(FoamXError, FoamXIOError, ValidationError); - - //- Persistence. - void saveSystemProperties() - raises(FoamXError, FoamXIOError, ValidationError); - - void saveUserProperties() - raises(FoamXError, FoamXIOError, ValidationError); - }; - - // --------------------------------------------------------------------- - - interface IApplication - { - //- Short name for this application class. - attribute string name; - - //- Application class description. - attribute string description; - - //- Application class category. - attribute string category; - - //- List of modules required to pre-process this application class. - attribute StringList modules; - - //- System or user defined application class. - readonly attribute boolean systemClass; - - // Fields. - - //- List of defined fields. - readonly attribute StringList fields; - void getField - ( - in string fieldName, - out IGeometricFieldDescriptor fieldDescriptor - ) raises(FoamXError, FoamXIOError); - - void findField - ( - in string fieldName, - out IGeometricFieldDescriptor fieldDescriptor - ) raises(FoamXError, FoamXIOError); - - void addField - ( - in string fieldName, - out IGeometricFieldDescriptor fieldDescriptor - ) raises(FoamXError, FoamXIOError); - - void deleteField(in string fieldName) - raises(FoamXError, FoamXIOError); - - // Patch physical types. - readonly attribute StringList patchPhysicalTypes; - - // List of defined patch physical types. - void getPatchPhysicalType - ( - in string patchPhysicalTypeName, - out IPatchPhysicalTypeDescriptor patchPhysicalTypeDescriptor - ) raises(FoamXError, FoamXIOError); - - void findPatchPhysicalType - ( - in string patchPhysicalTypeName, - out IPatchPhysicalTypeDescriptor patchPhysicalTypeDescriptor - ) raises(FoamXError, FoamXIOError); - - void addPatchPhysicalType - ( - in string patchPhysicalTypeName, - out IPatchPhysicalTypeDescriptor patchPhysicalTypeDescriptor - ) raises(FoamXError, FoamXIOError); - - void deletePatchPhysicalType(in string patchPhysicalTypeName) - raises(FoamXError, FoamXIOError); - - // Dictionaries. - readonly attribute StringList dictionaries; - - // List of defined dictionaries. - void getDictionary - ( - in string dictName, - out ITypeDescriptor dictTypeDescriptor - ) raises(FoamXError, FoamXIOError); - - void addDictionary - ( - in string dictName, - out ITypeDescriptor dictTypeDescriptor - ) raises(FoamXError, FoamXIOError); - - void deleteDictionary(in string dictName) - raises(FoamXError, FoamXIOError); - - // Validation. - void validate() - raises(FoamXError, FoamXIOError, ValidationError); - - // Persistence. - void save() - raises(FoamXError, FoamXIOError, ValidationError); - }; - - // --------------------------------------------------------------------- - - interface IPatchDescriptor - { - //- Name of patch type (eg, "wall"). - attribute string name; - - //- Display name (eg, "Wall"). - attribute string displayName; - - //- Description (eg, "Solid Wall"). - attribute string description; - }; - - // --------------------------------------------------------------------- - - interface IGeometryDescriptor - { - //- Name of geometry type (eg, "volume"). - attribute string name; - - //- Display name (eg, "Volume"). - attribute string displayName; - - //- Description (eg, "Finite Volume Geometry"). - attribute string description; - }; - - // --------------------------------------------------------------------- - - interface IGeometricFieldDescriptor - { - readonly attribute ITypeDescriptor typeDescriptor; - readonly attribute ITypeDescriptor fieldTypeDescriptor; - readonly attribute IGeometryDescriptor geometryDescriptor; - - //- Field name (eg, "p"). - attribute string name; - - //- Field description (eg, "Pressure"). - attribute string description; - - //- Field type name (eg, "scalar"). - attribute string fieldTypeName; - - //- Geometry type name (eg, "vol"). - attribute string geometryTypeName; - - //- Field dimensions. - attribute DimensionSet dimensions; - }; - - // --------------------------------------------------------------------- - - interface IPatchPhysicalTypeDescriptor - { - //- Patch physical type name (eg, "inlet"). - attribute string name; - - attribute string displayName; - attribute string description; - attribute string patchType; - attribute string parentType; - attribute StringPairList patchFieldTypes; - }; - - // --------------------------------------------------------------------- - - interface IGeometricField - { - readonly attribute string name; - - void getInternalFieldValue - ( - out IDictionaryEntry internalFieldValue - ) raises(FoamXError, FoamXIOError); - - void getPatchFieldParameters - ( - in string patchName, - out IDictionaryEntry patchFieldValue - ) raises(FoamXError, FoamXIOError); - - // Returns true if this has been modified - boolean modified(); - }; - }; - - - // ------------------------------------------------------------------------- - // - FoamX CasePostServer Module ----------------------------------------------- - // ------------------------------------------------------------------------- - - module CasePostServer - { - // Forward declare all interfaces in this module. - interface ICasePostServer; - - - // --------------------------------------------------------------------- - // - Interfaces -------------------------------------------------------- - // --------------------------------------------------------------------- - - interface ICasePostServer - { - // Attributes. - readonly attribute string caseRoot; - readonly attribute string caseName; - readonly attribute long nProcs; - - // - // Database - // - - // Time-steps. - readonly attribute StringList availableTimeSteps; - - // Set database - void setTime(in string timeName, in long timeIndex) - raises(FoamXError, FoamXIOError); - // Slave variant - oneway void setTimeSlave(); - - // Get patchnames over all domains - StringList getPatchNames() - raises(FoamXError, FoamXIOError); - // Slave variant - oneway void getPatchNamesSlave(); - - // Get fieldNames - StringList getFieldNames(in string type) - raises(FoamXError, FoamXIOError); - - - // - // Mesh - // - - // Bounding box - void getMeshBb(out Point3 min, out Point3 max) - raises(FoamXError); - // Slave variant - oneway void getMeshBbSlave(); - - // Patch mesh - void getPatchMesh - ( - in string patchName, - in double creaseAngle, - out FloatList points, - out LongList edges - ) raises(FoamXError); - // Slave variant - oneway void getPatchMeshSlave(); - - // Cut mesh - void getCutMesh - ( - in Point3 basePoint, - in Point3 normal, - out FloatList points, - out LongList edges - ) raises(FoamXError); - // Slave variant - oneway void getCutMeshSlave(); - - // Cut mesh outline - void getCutMeshOutline - ( - in Point3 basePoint, - in Point3 normal, - out FloatList points, - out LongList edges - ) raises(FoamXError); - // Slave variant - oneway void getCutMeshOutlineSlave(); - - - // - // Cut , sample - // - - - // - // OLD - // - - // Triangulate and sample patch - void getTriPatch - ( - in string fieldName, - in string patchName, - out FloatList points, - out LongList triFaces, - out FloatList values - ) raises(FoamXError, FoamXIOError); - // Slave variant - oneway void getTriPatchSlave(); - - // Triangulate and sample patch - void getTriPatchVec - ( - in string fieldName, - in string patchName, - out FloatList points, - out LongList triFaces, - out FloatList values - ) raises(FoamXError, FoamXIOError); - // Slave variant - oneway void getTriPatchVecSlave(); - - // Cutplane and sample - void cutPlane - ( - in string fieldName, - in Point3 basePoint, - in Point3 normal, - out FloatList points, - out LongList triFaces, - out FloatList values - ) raises(FoamXError, FoamXIOError); - // Slave variant - oneway void cutPlaneSlave(); - - // Cutplane and sample - void cutPlaneVec - ( - in string fieldName, - in Point3 basePoint, - in Point3 normal, - out FloatList points, - out LongList triFaces, - out FloatList values - ) raises(FoamXError, FoamXIOError); - // Slave variant - oneway void cutPlaneVecSlave(); - - //- Lifetime management. - oneway void close(); - }; - }; - - // ------------------------------------------------------------------------- - // - FoamX CaseBrowser Module ---------------------------------------------- - // ------------------------------------------------------------------------- - - module CaseBrowser - { - // Forward declare all interfaces in this module. - interface ICaseBrowser; - - // --------------------------------------------------------------------- - // - Interfaces--------------------------------------------------------- - // --------------------------------------------------------------------- - - interface ICaseBrowser - { - // Foam system properties (user data editable). - readonly attribute CaseServer::IFoamProperties - foamProperties; - - // Managed cases list. - readonly attribute CaseDescriptorList cases; - - // Running jobs list. - readonly attribute JobDescriptorList runningJobs; - - // Finished jobs list. - readonly attribute JobDescriptorList finishedJobs; - - // Get environment variable - void getEnv - ( - in string envName, - out string hostName - ) raises(FoamXError); - - // Get the machines hostName - void getHostName - ( - out string hostName - ) raises(FoamXError); - - // Get userName - void getUserName - ( - out string userName - ) raises(FoamXError); - - // Get modification date - long fileModificationDate - ( - in string fileName - ) raises(FoamXIOError); - - // Read file and store contents in string - void readFile(in string fileName, out string contents) - raises(FoamXError, FoamXIOError); - - // Write contents of string as a file - void writeFile(in string fileName, in string contents) - raises(FoamXError, FoamXIOError); - - // Utility execution. - long invokeUtility - ( - in string hostName, - in string utilityName, - in StringList arguments, - in string logName, - in boolean backGround - ) raises(FoamXError); - - void refreshCaseList() - raises(FoamXError, FoamXIOError); - - void addToCaseList(in string rootDir) - raises(FoamXError, FoamXIOError); - - // Case manipulation. - void openCase(in CaseDescriptor caseDesc) - raises(FoamXError, FoamXIOError); - - void newCase - ( - in string rootDir, - in string caseName, - in string app - ) raises(FoamXError, FoamXIOError); - - void importCase - ( - in string rootDir, - in string caseName, - in string app - ) raises(FoamXError, FoamXIOError); - - void deleteCase(in CaseDescriptor caseDesc) - raises(FoamXError, FoamXIOError); - - void cloneCase - ( - in CaseDescriptor caseDesc, - in string newCaseRootDir, - in string newCaseName, - in string newAppClassName, - in string timeSel - ) raises(FoamXError, FoamXIOError); - - // Try to resolve NameServer entry for caseServer - boolean getCaseServerReference - ( - in string rootDir, - in string caseName, - out CaseServer::ICaseServer caseObj - ) raises(FoamXError, FoamXSYSError); - - // start casePostServer - void openCasePost(in CaseDescriptor caseDesc, in long nProcs) - raises(FoamXError, FoamXIOError); - - // Try to resolve NameServer entry for casePostServer - boolean getCasePostServerReference - ( - in string rootDir, - in string caseName, - in long nProcs, - out CasePostServer::ICasePostServer caseObj - ) raises(FoamXError, FoamXSYSError); - - boolean caseLocked(in CaseDescriptor caseDesc) - raises(FoamXError); - - void unlockCase - ( - in string rootDir, - in string caseName - ) raises(FoamXError, FoamXIOError); - - void unlockCaseDescriptor(in CaseDescriptor caseDesc) - raises(FoamXError, FoamXIOError); - - void addCase - ( - in string rootDir, - in string rawRootDir, - in string caseName, - in string app - ) raises(FoamXError); - - void caseOpen - ( - in string rootDir, - in string caseName - ) raises(FoamXError); - - boolean isCaseInError(in CaseDescriptor caseDesc) - raises(FoamXError); - - void caseIsInError(in CaseDescriptor caseDesc) - raises(FoamXError); - - - - // Process control - - void refreshJobsLists() - raises(FoamXError, FoamXIOError); - - void checkRunningJobs() - raises(FoamXError, FoamXSYSError); - - void purgeRunningJobs() - raises(FoamXError, FoamXIOError); - - void purgeFinishedJob(in JobID jobID) - raises(FoamXError, FoamXIOError); - - void purgeFinishedJobs(in long nDays) - raises(FoamXError, FoamXIOError); - - // Kill process. - void kill(in JobID jobID) - raises(FoamXError, FoamXSYSError); - - // Suspend process - void suspend(in JobID jobID) - raises(FoamXError, FoamXSYSError); - - // Continue process - void cont(in JobID jobID) - raises(FoamXError, FoamXSYSError); - - // Nicely end process (with dump) in - // now=true: iteration after next - // now=false: next natural dump - void end - ( - in JobID jobID, - in string rootDir, - in string caseName, - in boolean now - ) raises(FoamXError, FoamXSYSError); - - // Reset the job status - void setStatus(in JobID jobID, in JobStatus jobStatus) - raises(FoamXError); - - - // IO - - // Validation. - void validate() - raises(FoamXError, ValidationError); - - // Persistence. - void save() - raises(FoamXError, FoamXIOError, ValidationError); - - // Lifetime management. - oneway void close(); - }; - }; - - - // ------------------------------------------------------------------------- - // - FoamX Host Browser Module --------------------------------------------- - // ------------------------------------------------------------------------- - - module HostBrowser - { - // Forward declare all interfaces in this module. - interface IHostBrowser; - - // --------------------------------------------------------------------- - // - Interfaces--------------------------------------------------------- - // --------------------------------------------------------------------- - - interface IHostBrowser - { - readonly attribute HostDescriptorList hosts; - - void refreshHostList() - raises(FoamXError); - - boolean isHostAlive(in string hostName) - raises(FoamXError); - - void hostIsAlive(in string hostName) - raises(FoamXError); - - void hostIsDead(in string hostName) - raises(FoamXError); - - void openCaseBrowser - ( - in string hostName - ) raises(FoamXError, FoamXSYSError); - - boolean getCaseBrowserReference - ( - in string hostName, - out CaseBrowser::ICaseBrowser browserObj - ) raises(FoamXError, FoamXSYSError); - - - // Validation. - void validate() - raises(FoamXError, FoamXIOError, ValidationError); - - // Persistence. - void save() - raises(FoamXError, FoamXIOError, ValidationError); - - // Lifetime management. - oneway void close(); - }; - }; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/FoamX/Idl/Makefile b/applications/utilities/preProcessing/FoamX/Idl/Makefile deleted file mode 100644 index fa6fdbe87b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Idl/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -#------------------------------------------------------------------------------ -# Makefile for FoamX Client-Side Idl Java Code. -#------------------------------------------------------------------------------ - -JAVA_IDL = idlj -JAVA_IDLFLAGS = -td ../Java -fclient -FOAMXSERVER_JAVA_DIR = ../Java/FoamXServer -FOAMXSERVER_JAVA_FILE = $(FOAMXSERVER_JAVA_DIR)/FoamXError.java - -MICO_IDL = $(MICO_ARCH_PATH)/bin/idl -MICO_INCDIR = $(MICO_ARCH_PATH)/include -MICO_IDLFLAGS = --poa --c++-suffix=C --hh-suffix=H --any --typecode -FOAMXLIB_DIR = ../C++/FoamXServer -FOAMXLIB_H_FILE = $(FOAMXLIB_DIR)/FoamX.H - -IDLFILE = FoamX.idl - -all: $(FOAMXSERVER_JAVA_FILE) $(FOAMXLIB_H_FILE) - -$(FOAMXSERVER_JAVA_FILE): $(IDLFILE) - $(JAVA_IDL) $(JAVA_IDLFLAGS) $(IDLFILE) - -$(FOAMXLIB_H_FILE): $(IDLFILE) - $(MICO_IDL) $(MICO_IDLFLAGS) $(IDLFILE) - mv FoamX.[HC] $(FOAMXLIB_DIR) - -clean: - rm -rf $(FOAMXSERVER_JAVA_DIR) - rm -rf $(FOAMXLIB_DIR)/FoamX.[HC] - -#------------------------------------------------------------------------------ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/.nbattrs deleted file mode 100644 index e24bbb009c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/.nbattrs +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/.nbattrs deleted file mode 100644 index bed0094801..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/.nbattrs +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/ActionManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/ActionManager.java deleted file mode 100644 index 0983413506..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ActionManagement/ActionManager.java +++ /dev/null @@ -1,157 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ActionManagement; - -import java.lang.ref.*; -import java.util.*; -import javax.swing.*; - -import FoamX.App; - -public class ActionManager - extends Object -{ - //-------------------------------------------------------------------------- - - protected Hashtable actionMap_; - - //-------------------------------------------------------------------------- - /** ActionManager constructor. */ - public ActionManager() - { - actionMap_ = new Hashtable(); - } - - //-------------------------------------------------------------------------- - - public boolean isRegistered(String actionName) - { - return actionMap_.containsKey(actionName); - } - - //-------------------------------------------------------------------------- - - public void registerAction(String actionName, Action action) - throws IllegalArgumentException - { - if (actionMap_.containsKey(actionName)) - { - throw new IllegalArgumentException - ( - "Duplication action name in ActionManager.registerAction" - + " method call." - ); - } - - actionMap_.put(actionName, action); - } - - //-------------------------------------------------------------------------- - - public void unregisterAction(String actionName) - throws IllegalArgumentException - { - if (!actionMap_.containsKey(actionName)) - { - throw new IllegalArgumentException - ( - "Duplication action name in ActionManager.unregisterAction" - + " method call." - ); - } - - actionMap_.remove(actionName); - } - - //-------------------------------------------------------------------------- - - public Action getAction(String actionName) - throws IllegalArgumentException - { - if (!actionMap_.containsKey(actionName)) - { - throw new IllegalArgumentException - ( - "Invalid action name in ActionManager.getAction method call." - ); - } - - return (Action)actionMap_.get(actionName); - } - - //-------------------------------------------------------------------------- - - public void registerActions(IActionProvider provider) - { - try - { - // Get provider's prefix string. - String prefix = provider.getPrefix(); - if (prefix != null) - { - prefix += "."; - } else { - prefix = ""; - } - - // Loop over all actions and register each. - javax.swing.Action[] actions = provider.getActions(); - for (int i = 0; i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/App.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/App.java deleted file mode 100644 index 73f1ecc312..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/App.java +++ /dev/null @@ -1,1717 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX; - -import java.awt.*; -import java.awt.event.*; - -import java.io.*; -import java.net.URL; -import java.util.*; - -import javax.swing.*; - -import org.omg.CosNaming.*; - -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXError; -import FoamXServer.FoamXSYSError; - -import FoamXServer.HostBrowser.IHostBrowserHelper; -import FoamXServer.HostBrowser.IHostBrowser; - -import FoamX.Exceptions.FoamXException; -import FoamX.Exceptions.CaseBrowserIOException; -import FoamX.Util.FileEditor; -import FoamX.Util.MemoryView; -import FoamX.Util.MenuItemActionChangedListener; -import FoamX.Util.ResourceHelper; - -import FoamX.Options.OptionsManager; -import FoamX.ToolbarManagement.Toolbar; -import FoamX.ToolbarManagement.ToolbarManager; -import FoamX.ActionManagement.ActionManager; -import FoamX.TaskManagement.TaskManager; -import FoamX.Reporting.ReportingManager; -import FoamX.Reporting.ReportingWindow; -import FoamX.CaseManagement.CaseManager; -import FoamX.CaseManagement.CaseBrowserPanel; -import FoamX.WindowManagement.WindowManager; - -public class App - extends javax.swing.JFrame - implements FoamX.ActionManagement.IActionProvider -{ - //-------------------------------------------------------------------------- - - /** Singleton App object */ - protected static App mainFrame_; - - /** Singleton resource helper object. */ - protected static ResourceHelper resources_; - - /** Singleton options object. */ - protected static OptionsManager options_; - - /** Singleton window manager object. */ - protected static WindowManager windowManager_; - - /** Singleton reporting manager object. */ - protected static ReportingManager reportingManager_; - - /** Singleton action manager object. */ - protected static ActionManager actionManager_; - - /** Singleton task manager object. */ - protected static TaskManager taskManager_; - - /** Singleton toolbar manager object. */ - protected static ToolbarManager toolbarManager_; - - /** Singleton Corba host manager object. */ - protected static IHostBrowser hostBrowser_; - - /** Singleton case manager object. */ - protected static CaseManager caseManager_; - - //-------------------------------------------------------------------------- - - public static JFrame getRootFrame() - { - return mainFrame_; - } - public static ResourceHelper getResources() - { - return resources_; - } - public static OptionsManager getOptions() - { - return options_; - } - public static WindowManager getWindowManager() - { - return windowManager_; - } - public static ReportingManager getReportingManager() - { - return reportingManager_; - } - public static TaskManager getTaskManager() - { - return taskManager_; - } - public static ActionManager getActionManager() - { - return actionManager_; - } - public static ToolbarManager getToolbarManager() - { - return toolbarManager_; - } - public static IHostBrowser getHostBrowser() - { - return hostBrowser_; - } - public static CaseManager getCaseManager() - { - return caseManager_; - } - - //-------------------------------------------------------------------------- - - protected static final String IMAGE_SUFFIX = "Image"; - protected static final String LABEL_SUFFIX = "Label"; - protected static final String SHORT_DESCRIPTION_SUFFIX = "ShortDescription"; - protected static final String LONG_DESCRIPTION_SUFFIX = "LongDescription"; - protected static final String ACTION_SUFFIX = "Action"; - protected static final String TIP_SUFFIX = "Tooltip"; - - public static final int DEBUGLEVEL_ERROR = 0; - public static final int DEBUGLEVEL_NORMAL = 1; - public static final int DEBUGLEVEL_VERBOSE = 2; - public static final int DEBUGLEVEL_DEBUG = 3; - protected static int debugLevel_ = 1; - - protected Toolbar defaultToolbar_; - - /** Actions provided by this object. */ - protected Action[] defaultActions_; - - protected boolean showCallStack_ = true; - - //-------------------------------------------------------------------------- - //---- Static Methods - //-------------------------------------------------------------------------- - /** - * Main program entry point. - * @param args The command line arguments. - */ - public static void main(String args[]) - { - mainFrame_ = new App(); - - mainFrame_.initialise(args); - - mainFrame_.setVisible(true); - } - - //-------------------------------------------------------------------------- - //---- App Methods - //-------------------------------------------------------------------------- - /** FoamX Application constructor. */ - public App() - { - try - { - // Initialise the basic GUI. - initComponents(); - - // Sometimes Forte does not add menuBar so do explicitly - setJMenuBar(menuBar_); - - - // Initialise the resource helper object. - resources_ = new ResourceHelper("resources.FoamX"); - - // Initialise the reporting manager object. - // Any subsequent errors will be reported in the report window. - reportingManager_ = new ReportingManager(); - horizontalSplitPane_.setBottomComponent(reportingManager_); - - // Initialise the option manager object. - options_ = new OptionsManager(); - - // Initialise the window manager object. - windowManager_ = new WindowManager(desktopPanel_); - - // Initialise the task status bar. - taskManager_ = new TaskManager(); - statusPanel_.add(taskManager_.getStatusBar()); - - // Create the action manager object. - actionManager_ = new ActionManager(); - - // Create action objects. - defaultActions_ = new Action[8]; - defaultActions_[0] = new ExitAction("Exit"); - defaultActions_[1] = new ShowMemoryViewAction("ShowMemoryView"); - //defaultActions_[2] = new EditOptionsAction("EditOptions"); - defaultActions_[2] = new ShowHTMLAction("FoamX"); - defaultActions_[3] = new ShowPDFAction("DemoGuide"); - defaultActions_[4] = new ShowPDFAction("ProgrammersGuide"); - defaultActions_[5] = new ShowHTMLAction("Code"); - defaultActions_[6] = new ShowHTMLOnlineAction("Online"); - defaultActions_[7] = new ShowHTMLAction("AboutFoamX"); - - // Register all actions with the action manager. - actionManager_.registerActions(this); - actionManager_.registerActions(windowManager_); - - // Create toolbar manager object and add to main frame. - toolbarManager_ = new ToolbarManager(); - GridBagConstraints gbc = new java.awt.GridBagConstraints(); - gbc.fill = java.awt.GridBagConstraints.HORIZONTAL; - gbc.gridx = 0; - gbc.gridy = 0; - gbc.weightx = 1.0; - gbc.anchor = java.awt.GridBagConstraints.NORTHWEST; - getContentPane().add(toolbarManager_, gbc); - - // Initialise the default user interface. - initialiseDefaultGUI(); - - //------------------------------------------------------------------ - // Now, initialise the case manager object. - caseManager_ = new CaseManager(); - verticalSplitPane_.setLeftComponent(caseManager_); - - // Register the reporting manager as a listener to the case browser. - caseManager_.addCaseManagerListener(reportingManager_); - - //------------------------------------------------------------------ - // Get the debug level. - debugLevel_ = Integer.parseInt - ( - options_.getProperty("FoamX.DebugLevel", "1") - ); - - if (debugLevel_ < App.DEBUGLEVEL_ERROR) - { - debugLevel_ = App.DEBUGLEVEL_ERROR; - } - - if (debugLevel_> App.DEBUGLEVEL_DEBUG) - { - debugLevel_ = App.DEBUGLEVEL_DEBUG; - } - - //------------------------------------------------------------------ - // Get the frame size. - int frameWidth = Integer.parseInt - ( - options_.getProperty("FoamX.FrameWidth", "800") - ); - - int frameHeight = Integer.parseInt - ( - options_.getProperty("FoamX.FrameHeight", "600") - ); - - // Repack and reposition. - pack(); - java.awt.Dimension screenSize = - java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(frameWidth, frameHeight)); - setLocation - ( - Math.max((screenSize.width - frameWidth ) / 2, 0), - Math.max((screenSize.height - frameHeight) / 2, 0) - ); - horizontalSplitPane_.setDividerLocation(0.90F); - verticalSplitPane_.setDividerLocation(0.50F); - -// verticalSplitPane_.setSize -// ( -// new java.awt.Dimension -// ( -// 300, -// verticalSplitPane_.getSize().height -// ) -// ); - -// horizontalSplitPane_.setDividerLocation(0.80F); -// verticalSplitPane_.setDividerLocation(0.90F); -// horizontalSplitPane_.setSize -// ( -// new java.awt.Dimension -// ( -// horizontalSplitPane_.getSize().width, -// frameHeight - 200 -// ) -// ); - } - catch (Exception ex) - { - // Can't use App's exception handler here - // since we are in the constructor. - System.err.println(ex.getMessage()); - ex.printStackTrace(); - System.exit(-1); - } - } - - //-------------------------------------------------------------------------- - /** Initialise the FoamX Application object. */ - void initialise(String[] args) - { - try - { - // Initialise the host manager reference. - if (initialiseHostBrowser(args)) - { - // Refresh the case browser to show the hosts. - caseManager_.getCaseBrowser().refreshCaseBrowser(false); - - // Do some simple command line parsing - - int argI = 0; - - while - ( - (argI < args.length) - && (args[argI].substring(0,4).equals("-ORB")) - ) - { - argI += 2; - } - - String hostName = null; - String caseRoot = null; - String caseName = null; - String action = "open"; - - if (argI < args.length) - { - hostName = args[argI++]; - } - if (argI < args.length) - { - caseRoot = args[argI++]; - } - if (argI < args.length) - { - caseName = args[argI++]; - } - if (argI < args.length) - { - action = args[argI++]; - } - - if (hostName != null) - { - if - ( - !caseManager_.getCaseBrowser().serverStart - ( - hostName, caseRoot, caseName, action - ) - ) - { - throw new FoamXException - ( - "Cannot find host " + hostName + " in name service" - ); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public boolean initialiseHostBrowser(String[] args) - { - boolean bret = false; - - try - { - if (hostBrowser_ == null) - { - // Create th'orb. - org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init - ( - args, - options_ - ); - - // Get the root naming context from the naming service. - NamingContextExt rootContext = null; - org.omg.CORBA.Object nsObj = null; - - try - { - // Try resolve_initial_references first. - nsObj = orb.resolve_initial_references("PNameService"); - - // Print nice status message. - App.printMessage - ( - App.DEBUGLEVEL_VERBOSE, - "Connecting to name service " - + orb.toString() - ); - } - catch (Exception ex) - { - // The resolve_initial_references call didn't work so try - // and read the name service IOR written to the ns.ref file - // in the FoamX user directory. - String userPath = options_.foamXUserConfigPath(); - if (userPath != null) - { - String nsFileName = userPath + "/ns.ref"; - - // Print nice status message. - App.printMessage - ( - App.DEBUGLEVEL_VERBOSE, - "Reading name service reference from '" - + nsFileName + "'." - ); - - // Check that the nameservice reference file exists. - File nsFile = new File(nsFileName); - if (nsFile.exists()) - { - BufferedReader br = new BufferedReader - ( - new FileReader(nsFileName) - ); - String ior = br.readLine(); - nsObj = orb.string_to_object(ior); - - // Print nice status message. - App.printMessage - ( - App.DEBUGLEVEL_DEBUG, - "Connecting to name service." - ); - } - else - { - // Print error message. - App.printMessage - ( - App.DEBUGLEVEL_ERROR, - "Name service reference file not found in '" - + nsFileName + "'." - ); - } - } - } - - try - { - rootContext = NamingContextExtHelper.narrow(nsObj); - - if (rootContext == null || rootContext._non_existent()) - { - rootContext = null; - throw new FoamXException - ( - "Cannot find rootContext in name service." - ); - } - - // Print success message. - App.printMessage - ( - App.DEBUGLEVEL_NORMAL, - "Successfully connected to name service." - ); - } - catch (Exception ex) - { - throw new FoamXException - ( - "Default name service could not be contacted." - ); - } - - - // Get a reference to the host browser. - try - { - NameComponent[] name = new NameComponent[1]; - name[0] = new NameComponent("FoamXHostBrowser", ""); - - org.omg.CORBA.Object obj = rootContext.resolve(name); - hostBrowser_ = IHostBrowserHelper.narrow(obj); - if - ( - hostBrowser_ == null - || hostBrowser_._non_existent() - ) - { - hostBrowser_ = null; - throw new FoamXException - ( - "Cannot find FoamXHostBrowser in name service." - ); - } - } - catch (Exception ex) - { - throw new FoamXException - ( - "Foam Host Browser object could not be contacted." - ); - } - } - - // Indicate success. - bret = true; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - bret = false; - } - - return bret; - } - - //-------------------------------------------------------------------------- - - public static void handleException(FoamXIOError ioErr) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - String message = - ioErr.errorMessage - + "\nin file " + ioErr.ioFileName + "\n" - + " start at line " + new Integer(ioErr.ioStartLineNo).toString(); - - if (ioErr.ioEndLineNo > 0) - { - message += " ending at line " + new Integer(ioErr.ioEndLineNo).toString(); - } - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - message += - "\nin function " + ioErr.methodName - + "\nin file " + ioErr.fileName - + " at line " + new Integer(ioErr.lineNo).toString(); - } - - // Print the exception's message - printMessage(message); - - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - ioErr.printStackTrace(); - } - - String fileName = ioErr.ioFileName; - int subPos = fileName.indexOf("::"); - if (subPos != -1) - { - fileName = fileName.substring(0, subPos); - } - message += "\n\nDo you want to edit " + fileName + "?"; - - // Ask whether to open editor on file - if - ( - JOptionPane.showConfirmDialog - ( - App.getRootFrame(), - message, - "FoamXIOError", - JOptionPane.YES_NO_OPTION, - JOptionPane.ERROR_MESSAGE - ) - == JOptionPane.OK_OPTION - ) - { - new FileEditor - ( - true, // modal - false, // no follow mode - null, // no caseBrowser - fileName, - ioErr.ioStartLineNo, - ioErr.ioEndLineNo, - 0 - ); - } - } - - //-------------------------------------------------------------------------- - - /* exception same as FoamXIOError but carries extra caseBrowser field */ - public static void handleException(CaseBrowserIOException cbErr) - { - FoamXIOError ioErr = cbErr.getIoErr(); - - // Beep. - Toolkit.getDefaultToolkit().beep(); - - String message = - ioErr.errorMessage - + "\nin file " + ioErr.ioFileName + "\n" - + " start at line " + new Integer(ioErr.ioStartLineNo).toString(); - - if (ioErr.ioEndLineNo > 0) - { - message += " ending at line " + new Integer(ioErr.ioEndLineNo).toString(); - } - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - message += - "\nin function " + ioErr.methodName - + "\nin file " + ioErr.fileName - + " at line " + new Integer(ioErr.lineNo).toString(); - } - - // Print the exception's message - printMessage(message); - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - cbErr.printStackTrace(); - } - - String fileName = ioErr.ioFileName; - int subPos = fileName.indexOf("::"); - if (subPos != -1) - { - fileName = fileName.substring(0, subPos); - } - message += "\n\nDo you want to edit " + fileName + "?"; - - // Ask whether to open editor on file - if - ( - JOptionPane.showConfirmDialog - ( - App.getRootFrame(), - message, - "FoamXIOError", - JOptionPane.YES_NO_OPTION, - JOptionPane.ERROR_MESSAGE - ) - == JOptionPane.OK_OPTION - ) - { - new FileEditor - ( - true, // modal - false, // edit, not follow mode - cbErr.getCaseBrower(), // use caseBrowser to get file - fileName, - ioErr.ioStartLineNo, - ioErr.ioEndLineNo, - 0 - ); - } - } - - //-------------------------------------------------------------------------- - - public static void handleException(FoamXError fxErr) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - String message = fxErr.errorMessage; - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - message += - "\nin function " + fxErr.methodName - + "\nin file " + fxErr.fileName - + " at line " + new Integer(fxErr.lineNo).toString(); - } - - // Print the exception's message - printMessage(message); - - //TODO: originates maybe from opening case so reportingWindow not valid - //printStack(fxErr); - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - fxErr.printStackTrace(); - } - - // Print the message in a dialogue box - JOptionPane.showMessageDialog - ( - App.getRootFrame(), - message, - "FoamXError", - JOptionPane.ERROR_MESSAGE - ); - } - - //-------------------------------------------------------------------------- - - /** machine can't be reached */ - public static void handleException(FoamXSYSError sysErr) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - String message = sysErr.errorMessage; - - if (debugLevel_ >= App.DEBUGLEVEL_DEBUG) - { - message += - "\nin function " + sysErr.methodName - + "\nin file " + sysErr.fileName - + " at line " + new Integer(sysErr.lineNo).toString(); - } - - // Print the exception's message - printMessage(message); - - // Print the message in a dialogue box - JOptionPane.showMessageDialog - ( - App.getRootFrame(), - message, - "FoamXSYSError", - JOptionPane.ERROR_MESSAGE - ); - - // Refresh the case browser to show the hosts. - CaseBrowserPanel caseBrowserPanel = caseManager_.getCaseBrowser(); - if (caseBrowserPanel != null) - { - caseBrowserPanel.setHostOffLine - ( - sysErr.hostName, - "" - ); - } - //caseBrowserPanel.refreshCaseBrowser(false); - } - - //-------------------------------------------------------------------------- - - public static void handleException(FoamXException fxEx) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - //printStack(fxErr); - fxEx.printStackTrace(); - - // Print the exception's message - printMessage(fxEx.getMessage()); - - // Print the message in a dialogue box - JOptionPane.showMessageDialog - ( - App.getRootFrame(), - fxEx.getMessage(), - "FoamXException", - JOptionPane.ERROR_MESSAGE - ); - } - - //-------------------------------------------------------------------------- - - public static void handleException(MissingResourceException ex) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - //printStack(fxErr); - ex.printStackTrace(); - - - // Print the exception's message - printMessage(ex.getMessage()); - - // Print the message in a dialogue box - JOptionPane.showMessageDialog - ( - App.getRootFrame(), - ex.getMessage() - + " for key " + ex.getKey() + " for resource " + ex.getClassName(), - "MissingResourceException", - JOptionPane.ERROR_MESSAGE - ); - } - - //-------------------------------------------------------------------------- - - public static void handleException(Exception ex) - { - // Beep. - Toolkit.getDefaultToolkit().beep(); - - //printStack(fxErr); - ex.printStackTrace(); - - // Print the exception's message - printMessage(ex.getMessage()); - - // Print the message in a dialogue box - JOptionPane.showMessageDialog - ( - App.getRootFrame(), - ex.getMessage(), - ex.getClass().toString(), - JOptionPane.ERROR_MESSAGE - ); - } - - //-------------------------------------------------------------------------- - - public static void handleAllExceptions(Exception ex) - { - if (ex instanceof FoamXIOError) - { - handleException((FoamXIOError)ex); - } - else if (ex instanceof FoamXError) - { - handleException((FoamXError)ex); - } - else if (ex instanceof FoamXSYSError) - { - handleException((FoamXSYSError)ex); - } - else if (ex instanceof FoamXException) - { - handleException((FoamXException)ex); - } - else if (ex instanceof CaseBrowserIOException) - { - handleException((CaseBrowserIOException)ex); - } - else if (ex instanceof MissingResourceException) - { - handleException((MissingResourceException)ex); - } - else - { - handleException(ex); - } - } - - //-------------------------------------------------------------------------- - - public static void printMessage(String message) - { - // Print message to reporting window if we have one. - if (reportingManager_ != null) - { - ReportingWindow reportWin = reportingManager_.getReportingWindow - ( - "FoamX" - ); - - if (reportWin != null) - { - // Print message into main reporting window. - reportWin.printMessage(message); - } - else - { - System.err.println(message); - } - } - else - { - System.err.println(message); - } - } - - //-------------------------------------------------------------------------- - - public static void printStack(Exception ex) - { - // Print message to reporting window if we have one. - if (reportingManager_ != null) - { - ReportingWindow reportWin = reportingManager_.getReportingWindow - ( - "FoamX" - ); - - if (reportWin != null) - { - ByteArrayOutputStream strStream = new ByteArrayOutputStream(); - PrintStream printStream = new PrintStream(strStream); - - // Print message into main reporting window. - ex.printStackTrace(printStream); - } - else - { - // Print the stack trace to standard error. - ex.printStackTrace(); - } - } - } - - //-------------------------------------------------------------------------- - - public static void printMessage(int level, String message) - { - if (debugLevel_ >= level) - { - printMessage(message); - } - } - - - //-------------------------------------------------------------------------- - - public static void pm(Object o) - { - java.lang.reflect.Method ms[] = o.getClass().getMethods(); - System.out.println(o.getClass().getName()); - for(int i = 0; i < ms.length; i++) - { - System.out.print - ( - ms[i].getReturnType().getName() - + " " - + ms[i].getName() - + "(" - ); - java.lang.Class cs[] = ms[i].getParameterTypes(); - for(int j = 0; j < cs.length; j++) - { - System.out.println - ( - " " + cs[j].getName() + - ((j==cs.length-1)?"":",") - ); - } - System.out.println(")"); - } - } - - //-------------------------------------------------------------------------- - - protected void initialiseDefaultGUI() - { - try - { - // Initialise menu and tool bars. - initialiseMenubar(); - initialiseToolbar(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** - * Initialise the menubar for the app. By default this pulls the - * definition of the menu from the associated resource file. - */ - protected void initialiseMenubar() - { - try - { - menuBar_.removeAll(); - - // Get names of menu items to create from resource file. - String[] menuKeys = - resources_.getResourceStringArray("FoamX.Menubar"); - - for (int i=0; i 0) - { - - // Create default toolbar. - defaultToolbar_ = toolbarManager_.addToolbar - ( - "Default", - "Default" - ); - - - for (int i=0; i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserModel.java deleted file mode 100644 index dcdba133ec..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserModel.java +++ /dev/null @@ -1,887 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.util.Hashtable; -import java.util.Properties; -import java.util.Enumeration; -import javax.swing.*; -import javax.swing.tree.*; - -import org.omg.CosNaming.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -import FoamXServer.*; -import FoamXServer.CaseServer.*; - -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.CaseBrowser.ICaseBrowserHolder; -import FoamXServer.CaseDescriptor; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.HostBrowser.IHostBrowser; - -public class CaseBrowserModel - extends DefaultTreeModel -{ - //-------------------------------------------------------------------------- - - protected IHostBrowser hostBrowser_; - protected DefaultMutableTreeNode root_; - protected Hashtable hostMap_; // from host to treeNode - protected Hashtable rootDirMap_; // from root to treeNode - protected Hashtable keyMap_; // from key (root/case) to treeNode - protected ICaseBrowser caseBrowserCopy_; - - //-------------------------------------------------------------------------- - /** CaseManagerModel constructor. */ - public CaseBrowserModel() - { - super(new DefaultMutableTreeNode()); - - try - { - // Get reference to root node. - root_ = (DefaultMutableTreeNode)getRoot(); - - // Create host map. - hostMap_ = new Hashtable(10); - rootDirMap_ = new Hashtable(10); - keyMap_ = new Hashtable(10); - - // Initialise the model. - // Show only the Hosts node unless the model is refreshed. - hostBrowser_ = null; - root_.setUserObject - ( - new ContextInfo("Hosts", ContextInfo.INVALID_REF) - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Initialise the (licenseHosts) tree model. */ - protected void initialiseModel() - { - try - { - // Get host manager reference. - hostBrowser_ = App.getHostBrowser(); - - if (hostBrowser_ != null) - { - // Set root node's context info object. - root_.removeAllChildren(); - root_.setUserObject - ( - new ContextInfo("Hosts", ContextInfo.ROOTCONTEXT) - ); - - // Add a host node for each host. - HostDescriptor[] licensedHosts = hostBrowser_.hosts(); - for (int i=0; i - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserPanel.java deleted file mode 100644 index e10bbfefa2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseBrowserPanel.java +++ /dev/null @@ -1,3356 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.awt.event.ActionEvent; -import java.awt.event.MouseEvent; -import java.util.*; -import javax.swing.*; -import javax.swing.tree.*; -import javax.swing.event.*; -import java.awt.*; - -import org.omg.CosNaming.*; -import org.omg.CORBA.StringHolder; - -import FoamXServer.ApplicationDescriptor; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXSYSError; -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.CaseDescriptor; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CaseServer.ICaseServerHolder; -import FoamXServer.CaseServer.IFoamProperties; -import FoamXServer.CasePostServer.ICasePostServer; -import FoamXServer.CasePostServer.ICasePostServerHolder; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.ApplicationDescriptor; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.BusyCursor; -import FoamX.Util.CollapseTreeAction; -import FoamX.Util.ExpandTreeAction; -import FoamX.Util.FoamXTreeRenderer; -import FoamX.Tools.InvokeUtilityAction; -import FoamX.ToolbarManagement.Toolbar; -import FoamX.ProcessManagement.ProcessEditor; -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.WordCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.ListCache; - -public class CaseBrowserPanel - extends javax.swing.JPanel - implements FoamX.Util.TabSelection -{ - //-------------------------------------------------------------------------- - - public static int SELECT_HOST_MODE = 1; - public static int SELECT_ROOT_MODE = 2; - public static int SELECT_CASE_MODE = 3; - public static int OPEN_CASE_MODE = 4; - - protected CaseBrowserModel model_; - protected EventListenerList listenerList_; - protected Toolbar toolBar_; - protected int selectionMode_; - - // Case Browser actions. - StartCaseBrowserAction startCaseBrowserAction_; - StopCaseBrowserAction stopCaseBrowserAction_; - StartProcessEditorAction startProcessEditorAction_; - EditFoamControlDictAction editFoamControlDictAction_; - OpenRootAction openRootAction_; - OpenCaseAction openCaseAction_; - //OpenCasePostAction openCasePostAction_; - CreateCaseAction createCaseAction_; - //ImportCaseAction importCaseAction_; - DeleteCaseAction deleteCaseAction_; - CloneCaseAction cloneCaseAction_; - UnlockCaseAction unlockCaseAction_; - - SelectHostAction selectHostAction_; - SelectRootAction selectRootAction_; - SelectCaseAction selectCaseAction_; - - RefreshAction refreshAction_; - ExpandTreeAction expandAllAction_; - CollapseTreeAction collapseAllAction_; - - - //-------------------------------------------------------------------------- - /** CaseBrowserPanel constructor. - * - * Implements a panel where users can select hosts to run caseBrowser on - * and select root and case. - * Works in one of three modes, determined by selectionMode argument: - * - caseserver mode: normal operation. Double clicking on case starts - * editing of case. (i.e. fires caseStatus events) - * - host selection mode: used for selecting hosts. - * Double clicking on hosts fires hostSelection events - * - root selection mode: used for selecting root directories. - * Double clicking on roots fires rootSelection events - * - case selection mode: used for selecting case. Double clicking on - * case just selects case. (i.e. fires caseSelection events) - * - * For selection mode one normally reuses the CaseBrowserModel - * so only one ICaseBrowser per node runs. - */ - public CaseBrowserPanel(CaseBrowserModel model, int selectionMode) - { - try - { - selectionMode_ = selectionMode; - - // Initialise the GUI components. - initComponents(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - // Set the tree model and renderer. - if (model != null) - { - model_ = model; - } - else - { - model_ = new CaseBrowserModel(); - } - tree_.setModel(model_); - tree_.setCellRenderer(new FoamXTreeRenderer()); - tree_.putClientProperty - ( - "JTree.lineStyle", - App.getResources().getResourceString("Tree.LineStyle") - ); - - - // Initialise actions. - startCaseBrowserAction_ = new StartCaseBrowserAction(); - stopCaseBrowserAction_ = new StopCaseBrowserAction(); - startProcessEditorAction_ = new StartProcessEditorAction(); - editFoamControlDictAction_ = new EditFoamControlDictAction(); - - openRootAction_ = new OpenRootAction(); - openCaseAction_ = new OpenCaseAction(); - //openCasePostAction_ = new OpenCasePostAction(); - createCaseAction_ = new CreateCaseAction(); - //importCaseAction_ = new ImportCaseAction(); - deleteCaseAction_ = new DeleteCaseAction(); - cloneCaseAction_ = new CloneCaseAction(); - unlockCaseAction_ = new UnlockCaseAction(); - - selectHostAction_ = new SelectHostAction(); - selectRootAction_ = new SelectRootAction(); - selectCaseAction_ = new SelectCaseAction(); - - refreshAction_ = new RefreshAction(); - expandAllAction_ = new ExpandTreeAction(tree_); - collapseAllAction_ = new CollapseTreeAction(tree_); - - if (selectionMode_ == OPEN_CASE_MODE) - { - // Initialise toolbar. - toolBar_ = App.getToolbarManager().addToolbar - ( - "FoamXCaseBrowser", - "Case Browser" - ); - - // Initialise toolbar. - addToolbarButton(startProcessEditorAction_); - toolBar_.addSeparator(); - addToolbarButton(startCaseBrowserAction_); - addToolbarButton(stopCaseBrowserAction_); - toolBar_.addSeparator(); - addToolbarButton(createCaseAction_); - //addToolbarButton(importCaseAction_); - addToolbarButton(openCaseAction_); - //addToolbarButton(openCasePostAction_); - addToolbarButton(deleteCaseAction_); - addToolbarButton(cloneCaseAction_); - addToolbarButton(unlockCaseAction_); - toolBar_.addSeparator(); - addToolbarButton(editFoamControlDictAction_); - toolBar_.addSeparator(); - addToolbarButton(refreshAction_); - addToolbarButton(expandAllAction_); - addToolbarButton(collapseAllAction_); - - } - // Reset all actions. - resetActions(true); - - // Listen out for selection events. - tree_.getSelectionModel().addTreeSelectionListener - ( - new TreeSelectionListener() - { - public void valueChanged(TreeSelectionEvent evt) - { - OnTreeSelectionChanged(evt); - } - } - ); - - if (model == null) - { - // Make sure the tree is displayed properly. - updateUI(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Close all case browsers. */ - public void shutdown() - { - try - { - // Close all case browsers. - model_.shutdown(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Get selection mode */ - public int getSelectionMode() - { - return selectionMode_; - } - - //-------------------------------------------------------------------------- - /** Set selection mode */ - public void setSelectionMode(int selectionMode) - { - selectionMode_ = selectionMode; - } - - //-------------------------------------------------------------------------- - /** Get tree model */ - public CaseBrowserModel getModel() - { - return model_; - } - - //-------------------------------------------------------------------------- - /** Set tree model */ - public void setModel(CaseBrowserModel model) - { - model_ = model; - } - - //-------------------------------------------------------------------------- - /** Refresh the case browser model. */ - public void refreshCaseBrowser(boolean forceReread) - { - //// Refresh the hosts lists - //model_.refreshHosts(); - - // Refresh the case browser tree model. - model_.refresh(forceReread); - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Refresh the case browser model for single directory only */ - public void refreshRoot(String hostName, String caseRoot) - { - // Refresh the case browser tree model. - model_.refreshRoot(hostName, caseRoot); - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Refresh the case browser model for single directory only */ - public void refreshRoot(ICaseBrowser caseBrowser, String caseRoot) - throws FoamXError - { - // Get hostname from browser - StringHolder holder = new StringHolder(); - caseBrowser.getHostName(holder); - - refreshRoot(holder.value, caseRoot); - } - - //-------------------------------------------------------------------------- - /** Refresh a single case in the case browser model. */ - public void refreshCaseNode(String caseRoot, String caseName) - { - // Refresh the case browser tree model. - model_.refreshCaseNode - ( - caseRoot, - caseName - ); - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Delete a single case in the case browser model. */ - public void deleteCaseNode(String caseRoot, String caseName) - { - // Refresh the case browser tree model. - model_.deleteCaseNode - ( - caseRoot, - caseName - ); - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Refresh the case browser model for hosts as well as roots. */ - public void refreshAll() - { - // Refresh the hosts lists - model_.refreshHosts(); - - // Reread roots/cases - model_.refresh(true); - - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Set host browser status. */ - public void setHostOffLine(String hostName, String msg) - { - // Refresh the host browser with information on a certain host - model_.setHostOffLine - ( - hostName, - msg - ); - tree_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Handle commandline opening of various */ - public boolean serverStart - ( - String hostName, - String caseRoot, - String caseName, - String action - ) - { - if (hostName != null) - { - Rectangle rect = new Rectangle(); - int row = getHostPos(hostName, rect); - if (row == -1) - { - return false; - } - - // Insert host-open event - OpenHostThread openHost = new OpenHostThread(this, hostName); - SwingUtilities.invokeLater(openHost); - } - - if (caseRoot != null) - { - // Insert root-open event - OpenRootThread openRoot = new OpenRootThread(this, caseRoot); - SwingUtilities.invokeLater(openRoot); - } - - if ((caseName != null) && (action != null)) - { - if (action.equals("open")) - { - // Insert case-open event - OpenCaseThread openCase = new OpenCaseThread(this, caseName); - SwingUtilities.invokeLater(openCase); - } - else if (action.equals("post")) - { - // Insert case-post event - PostCaseThread postCase = new PostCaseThread(this, caseName); - SwingUtilities.invokeLater(postCase); - } - } - return true; - } - - //-------------------------------------------------------------------------- - /** Helper class to convert tree entry into x,y */ - private int getHostPos(String hostName, Rectangle rect) - { - for(int row = 0; row < tree_.getRowCount(); row++) - { - Rectangle rowRect = tree_.getRowBounds(row); - - TreePath tp = tree_.getPathForLocation(rowRect.x, rowRect.y); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode hostNode = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)hostNode.getUserObject(); - String contextName = context.getText(); - - if (context.isHost() && contextName.equals(hostName)) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - rect.x = rowRect.x; - rect.y = rowRect.y; - - return row; - } - } - } - - return -1; - } - - //-------------------------------------------------------------------------- - /** Helper class to convert tree entry into x,y */ - private int getRootPos(String caseRoot, Rectangle rect) - { - for(int row = 0; row < tree_.getRowCount(); row++) - { - Rectangle rowRect = tree_.getRowBounds(row); - - TreePath tp = tree_.getPathForLocation(rowRect.x, rowRect.y); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode node = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)node.getUserObject(); - - if - ( - context.isCaseRoot() - && (caseRoot.equals(context.getCaseRoot())) - ) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - rect.x = rowRect.x; - rect.y = rowRect.y; - - return row; - } - } - } - - return -1; - } - - //-------------------------------------------------------------------------- - /** Helper class to convert tree entry into x,y */ - private int getCaseNamePos(String caseName, Rectangle rect) - { - for(int row = 0; row < tree_.getRowCount(); row++) - { - Rectangle rowRect = tree_.getRowBounds(row); - - TreePath tp = tree_.getPathForLocation(rowRect.x, rowRect.y); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode node = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)node.getUserObject(); - - if - ( - context.isCaseName() - && (context.getCaseName().equals(caseName)) - ) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - rect.x = rowRect.x; - rect.y = rowRect.y; - - return row; - } - } - } - - return -1; - } - - //-------------------------------------------------------------------------- - /** Thread class for mouse selection action. */ - protected class OpenHostThread implements Runnable - { - JComponent comp_; - String hostName_; - - public OpenHostThread(JComponent comp, String hostName) - { - super(); - comp_ = comp; - hostName_ = hostName; - } - - public void run() - { - Rectangle rect = new Rectangle(); - int row = getHostPos(hostName_, rect); - - if (row != -1) - { - // Found host at row. Do as if double-clicked on it. - if (!tree_.isExpanded(row)) - { - MouseEvent evt = - new MouseEvent - ( - comp_, // component - 0, // id - 8888888888888L, // when - 0, // modifiers - rect.x, // x - rect.y, // y - 2, // click count - false // popup trigger - ); - OnMouseClicked(evt); - } - } - } - } - - //-------------------------------------------------------------------------- - /** Thread class for mouse selection action. */ - protected class OpenRootThread implements Runnable - { - JComponent comp_; - String caseRoot_; - - public OpenRootThread(JComponent comp, String caseRoot) - { - super(); - comp_ = comp; - caseRoot_ = caseRoot; - } - - public void run() - { - Rectangle rect = new Rectangle(); - int row = getRootPos(caseRoot_, rect); - - if (row != -1) - { - // Found caseRoot at row. Expand tree to show cases. - if (!tree_.isExpanded(row)) - { - openRootAction_.actionPerformed(null); - } - } - } - } - - //-------------------------------------------------------------------------- - /** Thread class for mouse selection action. */ - protected class OpenCaseThread implements Runnable - { - JComponent comp_; - String caseName_; - - public OpenCaseThread(JComponent comp, String caseName) - { - super(); - comp_ = comp; - caseName_ = caseName; - } - - public void run() - { - Rectangle rect = new Rectangle(); - int row = getCaseNamePos(caseName_, rect); - - if (row != -1) - { - openCaseAction_.actionPerformed(null); - } - } - } - - //-------------------------------------------------------------------------- - /** Thread class for mouse selection action. */ - protected class PostCaseThread implements Runnable - { - JComponent comp_; - String caseName_; - - public PostCaseThread(JComponent comp, String caseName) - { - super(); - comp_ = comp; - caseName_ = caseName; - } - - public void run() - { - Rectangle rect = new Rectangle(); - int row = getCaseNamePos(caseName_, rect); - - if (row != -1) - { - //openCasePostAction_.actionPerformed(null); - } - } - } - - - //-------------------------------------------------------------------------- - /** Reset all actions to the default (disabled) state. */ - protected void resetActions(boolean tabSelected) - { - startCaseBrowserAction_.setEnabled(false); - stopCaseBrowserAction_.setEnabled(false); - startProcessEditorAction_.setEnabled(false); - editFoamControlDictAction_.setEnabled(false); - openRootAction_.setEnabled(false); - openCaseAction_.setEnabled(false); - //openCasePostAction_.setEnabled(false); - createCaseAction_.setEnabled(false); - //importCaseAction_.setEnabled(false); - deleteCaseAction_.setEnabled(false); - cloneCaseAction_.setEnabled(false); - unlockCaseAction_.setEnabled(false); - - selectHostAction_.setEnabled(false); - selectRootAction_.setEnabled(false); - selectCaseAction_.setEnabled(false); - - // Always available if this tab is selected. - refreshAction_.setEnabled(tabSelected); - expandAllAction_.setEnabled(tabSelected); - collapseAllAction_.setEnabled(tabSelected); - } - - //-------------------------------------------------------------------------- - /** Set all actions according to the current selection. */ - protected void setActions() - { - try - { - // Reset all actions. - resetActions(true); - - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - DefaultMutableTreeNode node = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)node.getUserObject(); - - if (context != null) - { - if (context.isHost()) - { - if (selectionMode_ == SELECT_HOST_MODE) - { - selectHostAction_.setEnabled(true); - } - else - { - if (context.getCaseBrowser() == null) - { - startCaseBrowserAction_.setEnabled(true); - } - else - { - stopCaseBrowserAction_.setEnabled(true); - startProcessEditorAction_.setEnabled(true); - editFoamControlDictAction_.setEnabled(true); - } - } - } - else if (context.isCaseRoot()) - { - if (selectionMode_ == OPEN_CASE_MODE) - { - startProcessEditorAction_.setEnabled(true); - editFoamControlDictAction_.setEnabled(true); - createCaseAction_.setEnabled(true); - //importCaseAction_.setEnabled(true); - openRootAction_.setEnabled(true); - } - else if (selectionMode_ == SELECT_ROOT_MODE) - { - selectRootAction_.setEnabled(true); - } - else if (selectionMode_ == SELECT_CASE_MODE) - { - openRootAction_.setEnabled(true); - } - } - else if (context.isCaseName()) - { - if (selectionMode_ == OPEN_CASE_MODE) - { - startProcessEditorAction_.setEnabled(true); - editFoamControlDictAction_.setEnabled(true); - openCaseAction_.setEnabled(true); - //openCasePostAction_.setEnabled(true); - deleteCaseAction_.setEnabled(true); - cloneCaseAction_.setEnabled(true); - //if (!context.isCaseManaged()) - //{ - // importCaseAction_.setEnabled(true); - //} - unlockCaseAction_.setEnabled(true); - } - else if (selectionMode_ == SELECT_CASE_MODE) - { - selectCaseAction_.setEnabled(true); - } - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - protected void addToolbarButton(AbstractAction action) - { - // Add new button to the toolbar using the action object. - javax.swing.JButton button = toolBar_.add(action); - - // Set the tooltip text. - button.setToolTipText - ( - (String)action.getValue(Action.SHORT_DESCRIPTION) - ); - button.setText(""); - button.setFont(toolBar_.getFont()); // Use same font as toolbar. - } - - //-------------------------------------------------------------------------- - - protected void buildUtilsMenu(JPopupMenu contextMenu, ContextInfo context) - { - try - { - // Get case browser reference from context info object. - ICaseBrowser caseBrowser = context.getCaseBrowser(); - if (caseBrowser != null) - { - boolean caseNode = context.isCaseName(); - - Hashtable utilityMenuMap = new Hashtable(5); - - // Construct root utilities menu and add to context menu. - JMenu utilitiesMenu = new JMenu("Foam Utilities"); - utilitiesMenu.setFont(contextMenu_.getFont()); - contextMenu_.add(utilitiesMenu); - - // Get utility descriptors. - ApplicationDescriptor[] utilities = - caseBrowser.foamProperties().utilities(); - - for (int i = 0; i 0 - ) - { - // Add all required sub-menus. - StringTokenizer tok= new StringTokenizer - ( - utilities[i].category, - "/" - ); - String catKey = new String(); - while (tok.hasMoreTokens()) - { - String category = tok.nextToken(); - catKey = catKey + category; - if (utilityMenuMap.containsKey(catKey)) - { - menu = (JMenu)utilityMenuMap.get(catKey); - } - else - { - JMenu catMenu = new JMenu(category); - catMenu.setFont(contextMenu_.getFont()); - menu.add(catMenu); - utilityMenuMap.put(catKey, catMenu); - menu = catMenu; - } - } - } - - // Add a menu item for this utility. - JMenuItem utilityItem = new JMenuItem(utilities[i].name); - utilityItem.setFont(contextMenu_.getFont()); - - // Hook up to invoke utility action. - utilityItem.addActionListener - ( - new InvokeUtilityAction - ( - caseBrowser, - context.getCaseRoot(), - context.getCaseName() - ) - ); - - // Specify which utility to invoke and on which case - // browser. - utilityItem.putClientProperty - ( - "utilityDescriptor", - utilities[i] - ); - - // Add to menu. - menu.add(utilityItem); -// } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- TabSelection Interface Methods - //-------------------------------------------------------------------------- - - public void tabSelected() - { - setActions(); - } - - public void tabDeselected() - { - resetActions(false); - } - - //-------------------------------------------------------------------------- - //---- CaseStatusListener Event Source Methods - //-------------------------------------------------------------------------- - - public synchronized void addCaseStatusListener(CaseStatusListener l) - { - listenerList_.add(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - public synchronized void removeCaseStatusListener(CaseStatusListener l) - { - listenerList_.remove(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireCaseOpened - ( - String caseRoot, - String caseName, - ICaseServer caseServer, - ICaseBrowser caseBrowser - ) - { - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent - ( - this, - caseRoot, - caseName, - caseServer, - null, - caseBrowser - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).caseOpened(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireCasePostOpened - ( - String caseRoot, - String caseName, - ICasePostServer casePostServer, - ICaseBrowser caseBrowser - ) - { - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent - ( - this, - caseRoot, - caseName, - null, - casePostServer, - caseBrowser - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).casePostOpened(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireCaseClosed(String caseRoot, String caseName) - { - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).caseClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireCaseDeleted - ( - String caseRoot, - String caseName - ) - { - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).caseDeleted(evt); - } - } - } - - - //-------------------------------------------------------------------------- - //---- CaseSelectionListener Event Source Methods - //-------------------------------------------------------------------------- - - public synchronized void addCaseSelectionListener(CaseSelectionListener l) - { - listenerList_.add(CaseSelectionListener.class, l); - } - - //-------------------------------------------------------------------------- - - public synchronized void removeCaseSelectionListener(CaseSelectionListener l) - { - listenerList_.remove(CaseSelectionListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireCaseSelected - ( - String hostName, - String caseRoot, - String caseName, - ICaseBrowser caseBrowser - ) - { - // Create event object. - CaseSelectionEvent evt = - new CaseSelectionEvent - ( - this, - hostName, - caseRoot, - caseName, - caseBrowser - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseSelectionListener.class) - { - ((CaseSelectionListener)listeners[i+1]).caseSelected(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireRootSelected - ( - String hostName, - String caseRoot, - ICaseBrowser caseBrowser - ) - { - // Create event object. - CaseSelectionEvent evt = - new CaseSelectionEvent - ( - this, - hostName, - caseRoot, - null, - caseBrowser - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseSelectionListener.class) - { - ((CaseSelectionListener)listeners[i+1]).rootSelected(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected synchronized void fireHostSelected(String hostName) - { - // Create event object. - CaseSelectionEvent evt = - new CaseSelectionEvent - ( - this, - hostName, - null, - null, - null - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseSelectionListener.class) - { - ((CaseSelectionListener)listeners[i+1]).hostSelected(evt); - } - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - contextMenu_ = new javax.swing.JPopupMenu(); - scrollPane_ = new javax.swing.JScrollPane(); - tree_ = new javax.swing.JTree(); - - contextMenu_.setFont(new java.awt.Font("Dialog", 0, 10)); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - tree_.setFont(new java.awt.Font("Dialog", 0, 10)); - tree_.setShowsRootHandles(true); - tree_.addMouseListener(new java.awt.event.MouseAdapter() - { - public void mouseClicked(java.awt.event.MouseEvent evt) - { - OnMouseClicked(evt); - } - }); - - tree_.addTreeExpansionListener(new javax.swing.event.TreeExpansionListener() - { - public void treeExpanded(javax.swing.event.TreeExpansionEvent evt) - { - OnTreeExpand(evt); - } - public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt) - { - } - }); - - tree_.addTreeWillExpandListener(new javax.swing.event.TreeWillExpandListener() - { - public void treeWillExpand(javax.swing.event.TreeExpansionEvent evt) - throws javax.swing.tree.ExpandVetoException - { - OnTreeWillExpand(evt); - } - public void treeWillCollapse(javax.swing.event.TreeExpansionEvent evt) - throws javax.swing.tree.ExpandVetoException - { - } - }); - - scrollPane_.setViewportView(tree_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTHWEST; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(scrollPane_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnTreeWillExpand(javax.swing.event.TreeExpansionEvent evt) - {//GEN-FIRST:event_OnTreeWillExpand - // Add your handling code here: - }//GEN-LAST:event_OnTreeWillExpand - - //-------------------------------------------------------------------------- - - private void OnTreeExpand(javax.swing.event.TreeExpansionEvent evt) - {//GEN-FIRST:event_OnTreeExpand - // Add your handling code here: - // Get the node object for the current selection. -// TreePath tp = evt.getPath(); -// if (tp != null) -// { -// // Make sure the node is selected. -// tree_.getSelectionModel().clearSelection(); -// tree_.getSelectionModel().setSelectionPath(tp); -// -// DefaultMutableTreeNode node = -// (DefaultMutableTreeNode)tp.getLastPathComponent(); -// ContextInfo context = (ContextInfo)node.getUserObject(); -// -// if (context.isCaseRoot()) -// { -// -// System.out.println("OnTreeExpand root:" + context.getCaseRoot()); -// -// DefaultMutableTreeNode parentNode = -// (DefaultMutableTreeNode) -// tp.getParentPath().getLastPathComponent(); -// ContextInfo parentContext = -// (ContextInfo)parentNode.getUserObject(); -// -// System.out.println("OnTreeExpand host:" + parentContext.getText()); -// -// if (parentContext.isHost()) -// { -// String rootDir = context.getCaseRoot(); -// String hostName = parentContext.getText(); -// refreshRoot(hostName, rootDir); -// -// tree_.expandPath(tp); -// } -// } -// } - }//GEN-LAST:event_OnTreeExpand - - //-------------------------------------------------------------------------- - - private void OnMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnMouseClicked - if (selectionMode_ == OPEN_CASE_MODE) - { - handleMouseOpen(evt); - } - else if - ( - (selectionMode_ == SELECT_HOST_MODE) - || (selectionMode_ == SELECT_ROOT_MODE) - || (selectionMode_ == SELECT_CASE_MODE) - ) - { - handleMouseSelection(evt); - } - else - { - System.out.println("ILLEGAL:CaseBrowserPanel::OnMouseClicked"); - } - }//GEN-LAST:event_OnMouseClicked - - - //-------------------------------------------------------------------------- - - - private void handleMouseOpen(java.awt.event.MouseEvent evt) - { - try - { - // Get the node object for the current selection. - TreePath tp = tree_.getPathForLocation(evt.getX(), evt.getY()); - if (tp != null) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - DefaultMutableTreeNode node = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)node.getUserObject(); - - // Check for popup menu trigger. - //if (evt.isPopupTrigger()) - // Check explicitly for right mouse button. - if (evt.getModifiers() == evt.BUTTON3_MASK) - { - // Construct an appropriate context menu, - contextMenu_.removeAll(); - java.awt.Font font = contextMenu_.getFont(); - - if (context == null) - { - // Do not have a licence manager reference. - // Can only refresh the tree. - contextMenu_.add(refreshAction_).setFont(font); - } - else if (context.isRootContext()) - { - // Can only refresh or expand/collapse the tree. - contextMenu_.add(refreshAction_).setFont(font); - contextMenu_.add(expandAllAction_).setFont(font); - contextMenu_.add(collapseAllAction_).setFont(font); - } - else if (context.isHost()) - { - // Host node - if (context.getCaseBrowser() == null) - { - // Allow start caseBrowser if non running - contextMenu_.add(startCaseBrowserAction_).setFont - ( - font - ); - } - else - { - // Allow various and utilities invocation - contextMenu_.add(stopCaseBrowserAction_).setFont - ( - font - ); - contextMenu_.add(createCaseAction_).setFont(font); - //contextMenu_.add(importCaseAction_).setFont(font); - contextMenu_.add(startProcessEditorAction_).setFont - ( - font - ); - contextMenu_.add(editFoamControlDictAction_).setFont - ( - font - ); - // Allow invoke utilities - buildUtilsMenu(contextMenu_, context); - } - } - else if (context.isCaseRoot()) - { - // caseroot: open directory, create/import cases - contextMenu_.add(openRootAction_).setFont(font); - contextMenu_.add(createCaseAction_).setFont(font); - //contextMenu_.add(importCaseAction_).setFont(font); - - // Allow processEditing on rootDir - contextMenu_.add(startProcessEditorAction_).setFont - ( - font - ); - contextMenu_.add(editFoamControlDictAction_).setFont - ( - font - ); - // Allow invoke utilities - buildUtilsMenu(contextMenu_, context); - } - else if (context.isCaseName()) - { - // Can open, delete or unlock specific cases. - contextMenu_.add(openCaseAction_).setFont(font); - //contextMenu_.add(openCasePostAction_).setFont(font); - contextMenu_.add(deleteCaseAction_).setFont(font); - contextMenu_.add(cloneCaseAction_).setFont(font); - //contextMenu_.add(importCaseAction_).setFont(font); - contextMenu_.add(unlockCaseAction_).setFont(font); - - // caseName: allow processEditing - contextMenu_.add(startProcessEditorAction_).setFont - ( - font - ); - // Allow invoke utilities - buildUtilsMenu(contextMenu_, context); - } - - // Show context menu. - contextMenu_.show(tree_, evt.getX(), evt.getY()); - } - else if (evt.getClickCount() >= 2) - { - // Start a case browser if double clicking on a host node. - if (context.isHost() && context.getCaseBrowser() == null) - { - startCaseBrowserAction_.actionPerformed(null); - } - // Invoke the open case action if the user - // has double clicked on a case. - else if (context.isCaseName()) - { - openCaseAction_.actionPerformed(null); - } - // Invoke the open root action if the user - // has double clicked on a root. - else if (context.isCaseRoot()) - { - openRootAction_.actionPerformed(null); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** Handle mouse clicks if in selection mode. */ - private void handleMouseSelection(java.awt.event.MouseEvent evt) - { - try - { - // Get the node object for the current selection. - TreePath tp = tree_.getPathForLocation(evt.getX(), evt.getY()); - if (tp != null) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - DefaultMutableTreeNode node = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)node.getUserObject(); - - // Check explicitly for right mouse button. - if (evt.getModifiers() == evt.BUTTON3_MASK) - { - // Construct an appropriate context menu, - contextMenu_.removeAll(); - java.awt.Font font = contextMenu_.getFont(); - - if (context == null) - { - // Do not have a licence manager reference. - // Can only refresh the tree. - contextMenu_.add(refreshAction_).setFont(font); - } - else if (context.isRootContext()) - { - // Can only refresh or expand/collapse the tree. - contextMenu_.add(refreshAction_).setFont(font); - contextMenu_.add(expandAllAction_).setFont(font); - contextMenu_.add(collapseAllAction_).setFont(font); - } - else if (context.isHost()) - { - if (selectionMode_ == SELECT_HOST_MODE) - { - contextMenu_.add(selectHostAction_).setFont(font); - } - else if (context.getCaseBrowser() == null) - { - // Can start a case browser. - contextMenu_.add(startCaseBrowserAction_).setFont - ( - font - ); - } - else - { - // Can stop a case browser. - contextMenu_.add(stopCaseBrowserAction_).setFont - ( - font - ); - } - } - else if (context.isCaseRoot()) - { - if (selectionMode_ == SELECT_ROOT_MODE) - { - contextMenu_.add(selectRootAction_).setFont(font); - } - else if (selectionMode_ == SELECT_CASE_MODE) - { - contextMenu_.add(openRootAction_).setFont(font); - } - } - else if (context.isCaseName()) - { - if (selectionMode_ == SELECT_CASE_MODE) - { - contextMenu_.add(selectCaseAction_).setFont(font); - } - } - - // Show context menu. - contextMenu_.show(tree_, evt.getX(), evt.getY()); - } - else if (evt.getClickCount()>= 2) - { - if (selectionMode_ == SELECT_HOST_MODE) - { - selectHostAction_.actionPerformed(null); - } - else if - ( - context.isHost() && context.getCaseBrowser() == null - ) - { - // Start a case browser if double clicking on a host - // node. - startCaseBrowserAction_.actionPerformed(null); - } - // Invoke the root/case selection if the user - // has double clicked on a root/case. - else if (context.isCaseRoot()) - { - if (selectionMode_ == SELECT_ROOT_MODE) - { - selectRootAction_.actionPerformed(null); - } - else if (selectionMode_ == SELECT_CASE_MODE) - { - openRootAction_.actionPerformed(null); - } - } - else if (context.isCaseName()) - { - if (selectionMode_ == SELECT_CASE_MODE) - { - selectCaseAction_.actionPerformed(null); - } - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - protected void OnTreeSelectionChanged(TreeSelectionEvent evt) - { - try - { - // Get the node object for the current selection. - // Has the new node been added to the selection? - if (evt.isAddedPath()) - { - TreePath tp = evt.getPath(); - if (tp != null) - { - setActions(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPopupMenu contextMenu_; - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JTree tree_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //---- Action Classes. CaseBrowser specific - //-------------------------------------------------------------------------- - - private class StartCaseBrowserAction - extends AbstractAction - { - StartCaseBrowserAction() - { - putValue - ( - Action.SMALL_ICON, App.getResources().getIcon - ( - "CaseBrowser.StartBrowserImage" - ) - ); - putValue(Action.NAME, "Open Case Browser"); - putValue(Action.SHORT_DESCRIPTION, "Open Case Browser"); - putValue(Action.LONG_DESCRIPTION, "Open Case Browser"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - //BusyCursor busyCursor = new BusyCursor(CaseBrowserPanel.this); - BusyCursor cursor = new BusyCursor(App.getRootFrame()); - - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode hostNode = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)hostNode.getUserObject(); - - // Check node type. - if - ( - context.isHost() - && context.getCaseBrowser() == null - && model_.startCaseBrowser(context.getText()) - ) - { - // Expand the host node. - tree_.expandPath(tp); - tree_.updateUI(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class StopCaseBrowserAction - extends AbstractAction - { - StopCaseBrowserAction() - { - putValue - ( - Action.SMALL_ICON, App.getResources().getIcon - ( - "CaseBrowser.StopBrowserImage" - ) - ); - putValue(Action.NAME, "Close Case Browser"); - putValue(Action.SHORT_DESCRIPTION, "Close Case Browser"); - putValue(Action.LONG_DESCRIPTION, "Close Case Browser"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(CaseBrowserPanel.this); - - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode hostNode = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)hostNode.getUserObject(); - - // Check node type. - if (context.isHost() && context.getCaseBrowser() != null) - { - model_.stopCaseBrowser(context.getText()); - tree_.updateUI(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - - //-------------------------------------------------------------------------- - - private class StartProcessEditorAction - extends AbstractAction - { - StartProcessEditorAction() - { - putValue - ( - Action.SMALL_ICON, App.getResources().getIcon - ( - "CaseBrowser.StartProcessEditorImage" - ) - ); - putValue(Action.NAME, "Start Process Editor"); - putValue(Action.SHORT_DESCRIPTION, "Start Process Editor"); - putValue(Action.LONG_DESCRIPTION, "Start Process Editor"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(CaseBrowserPanel.this); - - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode hostNode = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)hostNode.getUserObject(); - - // Check node type. - if (context.getCaseBrowser() != null) - { - // Start process editor as free standing window. - ProcessEditor processEditor = - new ProcessEditor - ( - null, - context.getCaseBrowser() - ); - processEditor.setVisible(true); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class EditFoamControlDictAction - extends AbstractAction - { - EditFoamControlDictAction() - { - putValue - ( - Action.SMALL_ICON, App.getResources().getIcon - ( - "CaseBrowser.EditFoamControlDictImage" - ) - ); - putValue(Action.NAME, "Edit OpenFOAM controlDict"); - putValue(Action.SHORT_DESCRIPTION, "Edit OpenFOAM controlDict"); - putValue(Action.LONG_DESCRIPTION, "Edit OpenFOAM controlDict"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(CaseBrowserPanel.this); - - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode hostNode = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - ContextInfo context = (ContextInfo)hostNode.getUserObject(); - - // Check node type. - if (context.getCaseBrowser() != null) - { - // We have a case browser. Load the system controlDict - // and start editor on it. - ICaseBrowser caseBrowser = context.getCaseBrowser(); - - IDictionaryEntryHolder dictHolder = - new IDictionaryEntryHolder(); - caseBrowser.foamProperties().getFoamControlDict - ( - dictHolder - ); - - if (dictHolder.value == null) - { - throw new FoamXException - ( - "Could not find OpenFOAM controlDict" - ); - } - - CompoundEditor compoundEditor = - new CompoundEditor - ( - App.getRootFrame(), - dictHolder.value - ); - compoundEditor.setTitle("OpenFOAM Dictionary"); - compoundEditor.setVisible(true); - - if (dictHolder.value.modified()) - { - System.out.println - ( - "Saving modified OpenFOAM Dictionary" - ); - dictHolder.value.save(); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - // Connects to existing/starts new caseServer. Returns true if started. - static private void getCaseServerReference - ( - String caseRoot, - String caseName, - CaseDescriptor caseDescriptor, - ICaseBrowser caseBrowser, - ICaseServerHolder caseHolder - ) throws FoamXException, FoamXSYSError, FoamXError, FoamXIOError - { - boolean caseOK = false; - - // First try to connect to already running server - caseOK = caseBrowser.getCaseServerReference - ( - caseRoot, - caseName, - caseHolder - ); - if (caseOK) - { - //ICaseServer caseServer = caseHolder.value; - String[] options = { "Use", "Cancel" }; - int ret = - JOptionPane.showOptionDialog - ( - App.getRootFrame(), - "Found running Case Server" - + "\nUse it ?", - "Case Server", - JOptionPane.DEFAULT_OPTION, - JOptionPane.QUESTION_MESSAGE, - null, - options, - options[0] - ); - if (ret == 0) return; - } - - // Start case server - if (caseDescriptor != null) - { - caseBrowser.openCase(caseDescriptor); - } - - // Go into loop to detect when it has registered. - int sleep = Integer.parseInt - ( - App.getOptions().getProperty("FoamX.Sleep", "500") - ); - int nRetries = Integer.parseInt - ( - App.getOptions().getProperty("FoamX.NRetries", "20") - ); - - for (;;) - { - for (int i=0; i - -
- - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseManager.java deleted file mode 100644 index 6ee519e143..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseManager.java +++ /dev/null @@ -1,990 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.util.Hashtable; -import java.util.Enumeration; -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamX.TaskManagement.Task; -import FoamX.ToolbarManagement.Toolbar; -import FoamX.Util.BusyCursor; -import FoamX.Exceptions.FoamXException; -import FoamX.Exceptions.CaseBrowserIOException; - -import FoamXServer.*; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CasePostServer.ICasePostServer; - -public class CaseManager - extends javax.swing.JPanel - implements CaseStatusListener, ChangeListener -{ - //-------------------------------------------------------------------------- - - // Case browser panel object. - protected CaseBrowserPanel caseBrowserPanel_; - // Map of CasePanel objects. - protected Hashtable caseMap_; - // Map of CasePostPanel objects. - protected Hashtable casePostMap_; - // Objects interested in case manager events. - protected EventListenerList listenerList_; - protected Toolbar toolBar_; - //protected SaveCurrentCaseAction saveCurrentCaseAction_; - //protected CloseCurrentCaseAction closeCurrentCaseAction_; - //protected SaveAllCasesAction saveAllCasesAction_; - //protected CloseAllCasesAction closeAllCasesAction_; - - //-------------------------------------------------------------------------- - /** CaseManager constructor. */ - public CaseManager() - { - try - { - // Initialise the GUI components. - initComponents(); - - // Create case map. - caseMap_ = new Hashtable(); - casePostMap_ = new Hashtable(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - // Initialise actions and toolbar. - //saveCurrentCaseAction_ = new SaveCurrentCaseAction(); - //closeCurrentCaseAction_ = new CloseCurrentCaseAction(); - //saveAllCasesAction_ = new SaveAllCasesAction(); - //closeAllCasesAction_ = new CloseAllCasesAction(); - - //saveCurrentCaseAction_.setEnabled(false); - //closeCurrentCaseAction_.setEnabled(false); - //saveAllCasesAction_.setEnabled(false); - //closeAllCasesAction_.setEnabled(false); - - - // Add case browser tab. Have it start a new model. - caseBrowserPanel_ = - new CaseBrowserPanel(null, CaseBrowserPanel.OPEN_CASE_MODE); - tabbedPanel_.addTab("Case Browser", caseBrowserPanel_); - - // Initialise toolbar with my actions - //toolBar_ = - // App.getToolbarManager().addToolbar - // ( - // "CaseManager", - // "Case Manager" - // ); - //addToolbarButton(saveCurrentCaseAction_); - //addToolbarButton(saveAllCasesAction_); - //toolBar_.addSeparator(); - //addToolbarButton(closeCurrentCaseAction_); - //addToolbarButton(closeAllCasesAction_); - - // Register this object as a tab selection changed listener. - tabbedPanel_.getModel().addChangeListener(this); - - // Register this object as a CaseStatusListener. - caseBrowserPanel_.addCaseStatusListener(this); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Close all open cases. */ - public void closeAllCases() - { - try - { - // Create a task object to keep track of progress. - Task task = App.getTaskManager().createTask - ( - "Closing All Cases", - 0, - caseMap_.size() - ); - int caseNo = 0; - - // Close all cases. - Enumeration iter = caseMap_.elements(); - while (iter.hasMoreElements()) - { - // Get next case. - CasePanel casePanel = (CasePanel)iter.nextElement(); - - // Give option of saving if modified - casePanel.checkAndSave - ( - false, - "Case has been changed. Save before closing?", - "Save Case" - ); - - // Do exactly if 'close case' on casePanel was pressed - caseClosed - ( - new CaseStatusEvent - ( - this, - casePanel.getCaseRoot(), - casePanel.getCaseName() - ) - ); - - // Update the progress info. - task.setProgress(caseNo++); - } - - - //// Close all post processing in a similar way - //task = App.getTaskManager().createTask - // ( - // "Closing All Postprocessing", - // 0, - // caseMap_.size() - // ); - //caseNo = 0; - //// Close all cases. - //iter = casePostMap_.elements(); - //while (iter.hasMoreElements()) - //{ - // // Get next case. - // CasePostPanel casePostPanel = (CasePostPanel)iter.nextElement(); - // - // // Do exactly if 'close case' on casePostPanel was pressed - // casePostClosed - // ( - // new CaseStatusEvent - // ( - // this, - // casePanel.getCaseRoot(), - // casePanel.getCaseName() - // ) - // ); - // - // // Update the progress info. - // task.setProgress(caseNo++); - //} - - - // Refresh the case browser panel - caseBrowserPanel_.refreshCaseBrowser(false); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - finally - { - App.getTaskManager().endTask(); - } - } - - //-------------------------------------------------------------------------- - /** Save open case. Ask first. */ - public void saveCaseNice(String caseRoot, String caseName) - { - CasePanel casePanel = getCasePanel(caseRoot, caseName); - - if (casePanel != null) - { - // Give option of saving if modified - casePanel.checkAndSave - ( - false, - "Case " + caseName - + " has been changed. Save before invoking utility?", - "Save Case" - ); - - } - } - - - //-------------------------------------------------------------------------- - /** Shut down the CaseManager object and close all open cases. */ - public void shutdown() - { - try - { - // Close all cases. - closeAllCases(); - - // Unregister as a CaseStatusListener. - caseBrowserPanel_.removeCaseStatusListener(this); - - // Shutdown the case browser. - caseBrowserPanel_.shutdown(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public CaseBrowserPanel getCaseBrowser() - { - return caseBrowserPanel_; - } - - //-------------------------------------------------------------------------- - - public CasePanel getCasePanel(String caseRoot, String caseName) - { - CasePanel casePanel = null; - - String rootAndCase = caseRoot + "/" + caseName; - - if (caseMap_.containsKey(rootAndCase)) - { - // Create a new case panel object to manage the case. - casePanel = (CasePanel)caseMap_.get(rootAndCase); - } - - return casePanel; - } - - //-------------------------------------------------------------------------- - - protected void addToolbarButton(AbstractAction action) - { - // Add new button to the toolbar using the action object. - javax.swing.JButton button = toolBar_.add(action); - - // Set the tooltip text. - button.setToolTipText((String)action.getValue - ( - Action.SHORT_DESCRIPTION) - ); - button.setText(""); - button.setFont(toolBar_.getFont()); // Use same font as toolbar. - } - - //-------------------------------------------------------------------------- - //---- CaseManagerListener Interface - //-------------------------------------------------------------------------- - - public void addCaseManagerListener(CaseManagerListener l) - { - listenerList_.add(CaseManagerListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCaseManagerListener(CaseManagerListener l) - { - listenerList_.remove(CaseManagerListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireOpenCase - ( - String caseRoot, - String caseName, - ICaseServer caseServer - ) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent - ( - this, - caseRoot, - caseName, - caseServer - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).caseOpened(evt); - } - } - } - - - //-------------------------------------------------------------------------- - - protected void fireOpenPostCase - ( - String caseRoot, - String caseName, - ICasePostServer casePostServer - ) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent - ( - this, - caseRoot, - caseName, - casePostServer - ); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).casePostOpened(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireCloseCase(String caseRoot, String caseName) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).caseClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireClosePostCase(String caseRoot, String caseName) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).casePostClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireDeleteCase(String caseRoot, String caseName) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).caseDeleted(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireCasePanelSelected(String caseRoot, String caseName) - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).casePanelSelected(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireCaseBrowserSelected() - { - // Create event object. - CaseManagerEvent evt = new CaseManagerEvent(this); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseManagerListener.class) - { - ((CaseManagerListener)listeners[i+1]).caseBrowserSelected(evt); - } - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - tabbedPanel_ = new javax.swing.JTabbedPane(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - tabbedPanel_.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); - tabbedPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(tabbedPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JTabbedPane tabbedPanel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //---- CaseStatusListener Interface - //-------------------------------------------------------------------------- - - public void caseOpened(CaseStatusEvent evt) - { - try - { - // Make sure the event object has a case server reference. - if (evt.caseServer() != null) - { - // See if we already have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - - if (!caseMap_.containsKey(key)) - { - // Create a new case panel object to manage the case. - // Note: will throw exception if case in error. - CasePanel casePanel = new CasePanel - ( - evt.caseBrowser(), - evt.caseServer() - ); - - // Register this object as a CaseStatusListener. - casePanel.addCaseStatusListener(this); - - - // Add new tab. - tabbedPanel_.addTab(evt.caseName(), casePanel); - caseMap_.put(key, casePanel); - - // Pop the new tab to the front. - tabbedPanel_.setSelectedComponent(casePanel); - - // Inform case manager listeners. - fireOpenCase - ( - evt.caseRoot(), - evt.caseName(), - evt.caseServer() - ); - } - } - } - catch (FoamXIOError ioErr) - { - // io error. Add caseBrowser information - if (evt.caseBrowser() != null) - { - // Add caseBrowser info - App.handleAllExceptions - ( - new CaseBrowserIOException - ( - ioErr, - evt.caseBrowser() - ) - ); - } - else - { - App.handleAllExceptions(ioErr); - } - } - catch (Exception ex) - { -// caseBrowserPanel_.refreshCaseNode -// ( -// evt.caseRoot(), -// evt.caseName() -// ); - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void casePostOpened(CaseStatusEvent evt) - { - try - { - // Make sure the event object has a case server reference. - if (evt.casePostServer() == null) - { - return; - } - - // See if we already have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - - if (casePostMap_.containsKey(key)) - { - System.out.println("Already postprocessing case " + key); - } - else - { - System.out.println("Starting postprocessing case " + key); - } - - //PostApp pp = - // new PostApp - // ( - // evt.casePostServer(), - // evt.caseRoot(), - // evt.caseName() - // ); - ////MainFrame mf = new MainFrame(pp, 300, 600); - // - //// Register this object as a CaseStatusListener. - //pp.getPostWindow().addCaseStatusListener(this); - // - //casePostMap_.put(key, pp); - - // Inform case manager listeners. - fireOpenPostCase - ( - evt.caseRoot(), - evt.caseName(), - evt.casePostServer() - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void caseClosed(CaseStatusEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - - if (caseMap_.containsKey(key)) - { - // Get CasePanel object for this case. - CasePanel casePanel = (CasePanel)caseMap_.get(key); - - // Unregister as a CaseStatusListener. - casePanel.removeCaseStatusListener(this); - - // Close the case. - casePanel.closeCase(CasePanel.KILL_SERVER); - - // Remove tab. - tabbedPanel_.remove(casePanel); - caseMap_.remove(key); - - // Pop the case browser tab to the front. - tabbedPanel_.setSelectedComponent(caseBrowserPanel_); - - // Refresh the case browser panel - caseBrowserPanel_.refreshCaseNode - ( - evt.caseRoot(), - evt.caseName() - ); - - // Inform case manager listeners. - fireCloseCase(evt.caseRoot(), evt.caseName()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void casePostClosed(CaseStatusEvent evt) - { - try - { - //// See if we have this case. - //String key = evt.caseRoot() + "/" + evt.caseName(); - // - //if (casePostMap_.containsKey(key)) - //{ - // System.out.println - // ( - // "CaseManager:casePostClosed for " + evt.caseName() - // ); - // - // PostApp pp = (PostApp)casePostMap_.get(key); - // - // PostWindow ps = pp.getPostWindow(); - // - // // Unregister as a CaseStatusListener. - // ps.removeCaseStatusListener(this); - // - // pp.destroy(); - // - // casePostMap_.remove(key); - // - // // Inform case manager listeners. - // fireClosePostCase(evt.caseRoot(), evt.caseName()); - //} - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void caseDeleted(CaseStatusEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (caseMap_.containsKey(key)) - { - // Get CasePanel object for this case. - CasePanel casePanel = (CasePanel)caseMap_.get(key); - - // Unregister as a CaseStatusListener. - casePanel.removeCaseStatusListener(this); - - // Close the case. - casePanel.closeCase(CasePanel.KILL_SERVER); - - // Remove tab. - tabbedPanel_.remove(casePanel); - caseMap_.remove(key); - - // Pop the case browser tab to the front. - tabbedPanel_.setSelectedComponent(caseBrowserPanel_); - - // Refresh the case browser. - caseBrowserPanel_.deleteCaseNode - ( - evt.caseRoot(), - evt.caseName() - ); - - // Inform case manager listeners. - fireDeleteCase(evt.caseRoot(), evt.caseName()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- ChangeEventListener Interface - //-------------------------------------------------------------------------- - - public void stateChanged(javax.swing.event.ChangeEvent evt) - { - try - { - // See which tab has been selected; - Component comp = tabbedPanel_.getSelectedComponent(); - if (comp instanceof CaseBrowserPanel) - { - // Tell the case browser tab that it's selected. - caseBrowserPanel_.tabSelected(); - - // Deselect all case tabs. - Component[] tabs = tabbedPanel_.getComponents(); - for (int i = 0; i - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CasePanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CasePanel.java deleted file mode 100644 index 8c7358bb03..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CasePanel.java +++ /dev/null @@ -1,1421 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.io.*; -import java.awt.*; -import java.awt.event.ActionEvent; -import java.awt.event.FocusListener; -import java.awt.event.FocusEvent; -import java.util.*; -import javax.swing.*; -import javax.swing.tree.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.CaseManagement.HostChooserDlg; -import FoamX.Reporting.ReportingWindow; -import FoamX.ToolbarManagement.Toolbar; -import FoamX.Tools.InvokeUtilityAction; -import FoamX.Util.BusyCursor; -import FoamX.Util.CollapseTreeAction; -import FoamX.Util.ExpandTreeAction; -import FoamX.Util.FoamXTreeRenderer; -import FoamX.Util.TabSelection; -import FoamX.Util.RunPanel; -import FoamX.Util.FileEvent; -import FoamX.WindowManagement.FoamXInternalFrame; - - -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.ApplicationDescriptor; - -public class CasePanel - extends javax.swing.JPanel - implements IModuleHost, TabSelection -{ - //-------------------------------------------------------------------------- - - public static final boolean KILL_SERVER = true; - public static final boolean KEEP_SERVER = false; - - - protected static final String TOOLBAR_NAME = "CaseToolbar"; - - protected ICaseServer caseServer_; - protected ICaseBrowser caseBrowser_; - protected EventListenerList listenerList_; - protected Hashtable moduleMap_; // Map of IModule objects. - protected Hashtable caseActionMap_; // Map of possible actions - protected DefaultTreeModel treeModel_; - protected DefaultMutableTreeNode rootNode_; - protected Toolbar toolBar_; - protected String toolBarKey_; - protected int moduleCount_; - protected int treeNodeCount_; - - // Case Panel actions. - CloseCaseAction closeCaseAction_; - SaveCaseAction saveCaseAction_; - StartCalculationAction startCalculationAction_; - RunCalculationAction runCalculationAction_; - StopCalculationAction stopCalculationAction_; - ExpandTreeAction expandAllAction_; - CollapseTreeAction collapseAllAction_; - InvokeUtilityAction invokeUtilityAction_; - - //-------------------------------------------------------------------------- - /** CasePanel constructor. */ - public CasePanel(ICaseBrowser caseBrowser, ICaseServer caseServer) - throws Exception - { - try - { - // Initialise the GUI components. - initComponents(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - // Create module map. - moduleMap_ = new Hashtable(); - - // Create case action map - caseActionMap_ = new Hashtable(); - - // Store the primary reference to the case server. - caseServer_ = caseServer; - caseServer_.managed(true); // Mark this case as managed. - - // Store the primary reference to the case browser. - // (is used for invoking external actions e.g. running) - caseBrowser_ = caseBrowser; - - // Initialise the tree model. - Icon icon = App.getResources().getIcon("Case.CaseRootImage"); - TreeNodeInfo nodeInfo = - new TreeNodeInfo(caseServer_.caseName(), 0, icon); - rootNode_ = new DefaultMutableTreeNode(nodeInfo, true); - treeModel_ = new DefaultTreeModel(rootNode_); - treeNodeCount_ = 1; - - // Set the tree model and renderer. - tree_.setModel(treeModel_); - tree_.setCellRenderer(new FoamXTreeRenderer()); - tree_.putClientProperty - ( - "JTree.lineStyle", - App.getResources().getResourceString("Tree.LineStyle") - ); - - // Initialise actions. - closeCaseAction_ = new CloseCaseAction(); - saveCaseAction_ = new SaveCaseAction(); - runCalculationAction_ = new RunCalculationAction(); - startCalculationAction_ = new StartCalculationAction(); - stopCalculationAction_ = new StopCalculationAction(); - expandAllAction_ = new ExpandTreeAction(tree_); - collapseAllAction_ = new CollapseTreeAction(tree_); - invokeUtilityAction_ = - new InvokeUtilityAction - ( - caseBrowser_, - caseServer_.caseRoot(), - caseServer_.caseName() - ); - - // Initialise toolbar. Toolbar may already exist. - toolBarKey_ = - caseServer_.caseRoot() + '/' + caseServer_.caseName(); - toolBar_ = - App.getToolbarManager().addMultiToolbar - ( - TOOLBAR_NAME, - "Case Toolbar", - toolBarKey_ - ); - - addToolbarButton(closeCaseAction_); - addToolbarButton(saveCaseAction_); - toolBar_.addSeparator(); - addToolbarButton(runCalculationAction_); - addToolbarButton(startCalculationAction_); - addToolbarButton(stopCalculationAction_); - toolBar_.addSeparator(); - addToolbarButton(expandAllAction_); - addToolbarButton(collapseAllAction_); - - // Attach utilities context menu to root node. - buildUtilsMenu(); - - // Reset all actions. - resetActions(true); - - // Initialise and activate the modules for this case. - loadCaseModules(); - activateCaseModules(); - - // Listen out for selection events. - tree_.getSelectionModel().addTreeSelectionListener - ( - new TreeSelectionListener() - { - public void valueChanged(TreeSelectionEvent evt) - { - OnTreeSelectionChanged(evt); - } - } - ); - - // Expand the root node. - TreePath tp = new TreePath(treeModel_.getPathToRoot(rootNode_)); - if (tp != null) - { - tree_.expandPath(tp); - tree_.updateUI(); - } - - // Print success message to FoamX tab in reporting window - printAppMessage - ( - "Opened case " + caseServer_.caseName() + - " at database time " + caseServer_.getTime() - ); - - // Cannot print to case tab in reporting window since is not - // yet open! - } - catch (FoamXIOError ioErr) - { - // Problem: caseManager hasn't yet registered me so cannot use - // closeCaseAction_.actionPerformed(null) - // So close myself and throw up to caseManager. - caseServer_.managed(false); - closeCase(KEEP_SERVER); - // Handle at higher levels - throw ioErr; - } - catch (Exception ex) - { - App.handleException(ex); - } - } - - //-------------------------------------------------------------------------- - - public String getCaseRoot() - { - return caseServer_ == null ? "" : caseServer_.caseRoot(); - } - - //-------------------------------------------------------------------------- - - public String getCaseName() - { - return caseServer_ == null ? "" : caseServer_.caseName(); - } - - //-------------------------------------------------------------------------- - /** Close the case and release the case server object. - * Argument determines whether the caseServer gets killed. Is tricky. - * Is usually true, except when CasePanel fails to construct - * correctly and caseServer.managed(false) is used to signal - * the caseBrowserPanel that it failed. - * (the normal cleanup action through the - * status listeners does not function if CasePanel has not been - * constructed correctly) - */ - void closeCase(boolean killServer) - { - try - { - // Shutdown all case modules. - shutdownCaseModules(); - - // Close down the case server and unlock the case. - if (killServer && (caseServer_ != null)) - { - caseServer_.close(); - caseServer_ = null; - } - - // Remove toolbar. - App.getToolbarManager().removeMultiToolbar - ( - TOOLBAR_NAME, - toolBarKey_ - ); - toolBar_ = null; - toolBarKey_ = ""; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - /** Close the case but ask whether to save case beforehand */ - void closeCaseNice(boolean killServer) - { - try - { - // Check if should have been saved. - if (caseServer_ != null) - { - checkAndSave - ( - false, - caseServer_.caseName() + " : case has been changed." - + " Save before closing?", - "Save Case" - ); - } - - // Close case as normal - closeCase(killServer); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** - * helper function to save case dialog if needed - * @return false if cancel pressed, true otherwise - */ - protected boolean checkAndSave - ( - boolean allowCancel, - String msg, - String title - ) - { - boolean cancelled = false; - - if (caseServer_.modified()) - { - int option; - if (allowCancel) - { - option = JOptionPane.YES_NO_CANCEL_OPTION; - } - else - { - option = JOptionPane.YES_NO_OPTION; - } - - // Prompt the user to see if the case files are - // to be saved. - int ret = JOptionPane.showConfirmDialog - ( - App.getRootFrame(), - msg, - title, - option, - JOptionPane.QUESTION_MESSAGE - ); - if (ret == JOptionPane.OK_OPTION) - { - // Behave as if 'save' button pressed - saveCaseAction_.actionPerformed(null); - } - else if (ret == JOptionPane.CANCEL_OPTION) - { - cancelled = true; - } - } - return !cancelled; - } - - //-------------------------------------------------------------------------- - - protected void printAppMessage(String message) - { - // Get reporting window for Application. - ReportingWindow reportWin = - App.getReportingManager().getReportingWindow("FoamX"); - if (reportWin != null) - { - // Print message into main reporting window. - reportWin.printMessage(message); - } - } - - //-------------------------------------------------------------------------- - - protected void printCaseMessage(String message) - { - // Get reporting window for this case. - String reportWinName = getCaseRoot() + '/' + getCaseName(); - ReportingWindow reportWin = - App.getReportingManager().getReportingWindow(reportWinName); - if (reportWin != null) - { - // Print message into main reporting window. - reportWin.printMessage(message); - } - } - - //-------------------------------------------------------------------------- - - protected DefaultMutableTreeNode getNode(int nodeID) - { - DefaultMutableTreeNode node = null; - - try - { - // Find the specified node. - Enumeration nodeIter = rootNode_.depthFirstEnumeration(); - while (nodeIter.hasMoreElements()) - { - DefaultMutableTreeNode nodeItem = - (DefaultMutableTreeNode)nodeIter.nextElement(); - TreeNodeInfo fxNode = (TreeNodeInfo)nodeItem.getUserObject(); - if (fxNode.getNodeID() == nodeID) - { - node = nodeItem; - break; - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return node; - } - - //-------------------------------------------------------------------------- - - protected TreeNodeInfo getNodeInfo(int nodeID) - { - TreeNodeInfo fxNode = null; - - try - { - // Find the specified node. - DefaultMutableTreeNode node = getNode(nodeID); - if (node != null) - { - fxNode = (TreeNodeInfo)node.getUserObject(); - } - } - catch (Exception ex) - { - ex.printStackTrace(); - App.handleAllExceptions(ex); - } - - return fxNode; - } - - //-------------------------------------------------------------------------- - - protected void loadCaseModules() throws FoamXIOError - { - try - { - // Get the list of modules to load from the application class - // object. - String[] moduleNames = caseServer_.application().modules(); - - // Load and initialise all modules. - for (short i = 0; i 0) - ) - { - // Add all required sub-menus. - StringTokenizer tok = - new StringTokenizer(utilities[i].category, "/"); - String catKey = new String(); - while (tok.hasMoreTokens()) - { - String category = tok.nextToken(); - catKey = catKey + category; - if (utilMenuMap.containsKey(catKey)) - { - menu = (JMenu)utilMenuMap.get(catKey); - } - else - { - JMenu catMenu = new JMenu(category); - catMenu.setFont(contextMenu.getFont()); - menu.add(catMenu); - utilMenuMap.put(catKey, catMenu); - menu = catMenu; - } - } - } - - // Add a menu item for this utility. - JMenuItem utilItem = new JMenuItem(utilities[i].name); - utilItem.setFont(contextMenu.getFont()); - - // Hook up to invoke utility action. - utilItem.addActionListener(invokeUtilityAction_); - - // Specify which utility to invoke. - utilItem.putClientProperty - ( - "utilityDescriptor", - utilities[i] - ); - - // Add to menu. - menu.add(utilItem); - } - - // Attach context menu to root node. - TreeNodeInfo nodeInfo = (TreeNodeInfo)rootNode_.getUserObject(); - nodeInfo.setContextMenu(contextMenu); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- TabSelection Interface Methods - //-------------------------------------------------------------------------- - - public void tabSelected() - { - // Check to see if we still have a toolbar. - if (toolBar_ != null) - { - // Get the muti-action toolbar to direct the actions to this object. - toolBar_.selectClient(toolBarKey_); - setActions(); - } - } - - public void tabDeselected() - { - resetActions(false); - } - - //-------------------------------------------------------------------------- - //---- CaseStatusListener Methods - //-------------------------------------------------------------------------- - - public void addCaseStatusListener(CaseStatusListener l) - { - listenerList_.add(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCaseStatusListener(CaseStatusListener l) - { - listenerList_.remove(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireCloseCase(String caseRoot, String caseName) - { - // Create event object. - CaseStatusEvent evt = - new CaseStatusEvent(this, caseRoot, caseName, caseServer_); - - // Process the listeners last to first, notifying those that - // are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).caseClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - contextMenu_ = new javax.swing.JPopupMenu(); - scrollPanel_ = new javax.swing.JScrollPane(); - tree_ = new javax.swing.JTree(); - - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - tree_.setFont(new java.awt.Font("Dialog", 0, 10)); - tree_.setShowsRootHandles(true); - tree_.setToggleClickCount(3); - tree_.addMouseListener(new java.awt.event.MouseAdapter() - { - public void mouseClicked(java.awt.event.MouseEvent evt) - { - OnMouseClicked(evt); - } - }); - - scrollPanel_.setViewportView(tree_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTHWEST; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(scrollPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnMouseClicked - try - { - // Get the node object for the current selection. - TreePath tp = tree_.getPathForLocation(evt.getX(), evt.getY()); - if (tp != null) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - DefaultMutableTreeNode nodeItem = - (DefaultMutableTreeNode)tp.getLastPathComponent(); - TreeNodeInfo fxNode = - (TreeNodeInfo)nodeItem.getUserObject(); - - // Check for popup menu trigger. - //else if (evt.isPopupTrigger()) - if (evt.getModifiers() == evt.BUTTON3_MASK) - { - if (fxNode.getContextMenu() != null) - { - fxNode.showPopupMenu - ( - (JComponent)evt.getSource(), - evt.getX(), - evt.getY() - ); - } - } - else if (evt.getClickCount() == 2) - { - // If there is a default command bound to this node, - // invoke it. - fxNode.invokeDefaultAction(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnMouseClicked - - //-------------------------------------------------------------------------- - - public void OnTreeSelectionChanged(TreeSelectionEvent evt) - { - try - { - // Get the node object for the current selection. - - // Has the new node been added to the selection? - if (evt.isAddedPath()) - { - TreePath tp = evt.getPath(); - if (tp != null) - { - setActions(); - //DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - //TreeNodeInfo fxNode = (TreeNodeInfo)nodeItem.getUserObject(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPopupMenu contextMenu_; - private javax.swing.JScrollPane scrollPanel_; - private javax.swing.JTree tree_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //---- IModuleHost Interface - //-------------------------------------------------------------------------- - - public JFrame getRootFrame() - { - // Return root frame object. - return App.getRootFrame(); - } - - //-------------------------------------------------------------------------- - - public ICaseServer getCaseServer() - { - // Return our case server reference. - return caseServer_; - } - - //-------------------------------------------------------------------------- - - public ICaseBrowser getCaseBrowser() - { - return caseBrowser_; - } - - //-------------------------------------------------------------------------- - - public void printMessage(String message) - { - // Get the window key for this case. - String windowKey = - caseServer_.caseRoot() + '/' + caseServer_.caseName(); - - // Get the ReportingWindow object for this case. - ReportingWindow reportingWindow = - App.getReportingManager().getReportingWindow(windowKey); - - if (reportingWindow != null) - { - reportingWindow.printMessage(message); - } - } - - //-------------------------------------------------------------------------- - - public void setRootLabel(String label) - { - // Set the label of the root node. - TreeNodeInfo fxNode = (TreeNodeInfo)rootNode_.getUserObject(); - fxNode.setNodeLabel(label); - treeModel_.nodeChanged(rootNode_); - } - - //-------------------------------------------------------------------------- - - public String getRootLabel() - { - // Set the label of the root node. - TreeNodeInfo fxNode = (TreeNodeInfo)rootNode_.getUserObject(); - return fxNode.getNodeLabel(); - } - - //-------------------------------------------------------------------------- - - public int addNode(int parentNodeID, String nodeLabel, Icon icon) - { - int nodeID = -1; - - try - { - if (icon == null) - { - throw new FoamXException("Null icon in addNode."); - } - - // Find the specified parent node. - DefaultMutableTreeNode parentNode = getNode(parentNodeID); - if (parentNode == null) - { - throw new FoamXException("Invalid parent node ID."); - } - - // Allocate a new node ID. - nodeID = treeNodeCount_++; - - // Create new node. - DefaultMutableTreeNode newNode = - new DefaultMutableTreeNode - ( - new TreeNodeInfo(nodeLabel, nodeID, icon) - ); - - // Insert node into tree. - treeModel_.insertNodeInto - ( - newNode, - parentNode, - parentNode.getChildCount() - ); - treeModel_.nodeChanged(parentNode); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - nodeID = -1; - } - - return nodeID; - } - - //-------------------------------------------------------------------------- - - public void removeNode(int nodeID) - { - try - { - // Find the specified node info object. - TreeNodeInfo fxNode = getNodeInfo(nodeID); - if (fxNode == null) - { - throw new Exception("Invalide node ID."); - } - // And clear it. - fxNode.clearActions(); - - // Find the specified node. - DefaultMutableTreeNode node = getNode(nodeID); - if (node == null) - { - throw new FoamXException("Invalid node ID."); - } - - // Remove node from tree. - treeModel_.removeNodeFromParent(node); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void addNodeAction(int nodeID, Action action, String context) - { - try - { - // Find the specified node info object. - TreeNodeInfo fxNode = getNodeInfo(nodeID); - if (fxNode == null) - { - throw new Exception("Invalide node ID."); - } - - // Store reference to action under its name - caseActionMap_.put(action.getValue(Action.NAME), action); - - // Attach the command to the node. - fxNode.addAction(action, context); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public Action getAction(String actionName) - { - // Return stored action - return (Action)caseActionMap_.get(actionName); - } - - //-------------------------------------------------------------------------- - - public int createWindow(javax.swing.JComponent component) - { - // Create a new window and return it's ID. - return App.getWindowManager().createWindow(component); - } - - //-------------------------------------------------------------------------- - - public FoamXInternalFrame getWindowFrame(int windowID) - { - // Get the window frame from the window manager and return. - return App.getWindowManager().getWindowFrame(windowID); - } - - //-------------------------------------------------------------------------- - - public void closeWindow(int windowID) - { - // Close the specified window. - App.getWindowManager().closeWindow(windowID); - } - - //-------------------------------------------------------------------------- - - public void showWindow(int windowID) - { - // Show the specified window. - App.getWindowManager().showWindow(windowID); - } - - //-------------------------------------------------------------------------- - - public void hideWindow(int windowID) - { - // Hide the specified window. - App.getWindowManager().hideWindow(windowID); - } - - //-------------------------------------------------------------------------- - //---- Action Classes - //-------------------------------------------------------------------------- - - private class CloseCaseAction - extends AbstractAction - { - CloseCaseAction() - { - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("CloseCaseImage") - ); - putValue(Action.NAME, "Close Case"); - putValue(Action.SHORT_DESCRIPTION, "Close Case"); - putValue(Action.LONG_DESCRIPTION, "Close Case"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); - - try - { - if (caseServer_ != null) - { - boolean doClose = checkAndSave - ( - true, - caseServer_.caseName() + " : case has been changed." - + " Save before closing?", - "Save Case" - ); - if (doClose) - { - // Get the case manager to do all the work. - // Case is actually closed in the closeCase method. - fireCloseCase - ( - caseServer_.caseRoot(), - caseServer_.caseName() - ); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class SaveCaseAction - extends AbstractAction - { - SaveCaseAction() - { - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("SaveCaseImage") - ); - putValue(Action.NAME, "Save Case"); - putValue(Action.SHORT_DESCRIPTION, "Save Case"); - putValue(Action.LONG_DESCRIPTION, "Save Case"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); - - try - { - if (caseServer_ != null) - { - // Temporarily have modules editing this case do nothing - deactivateCaseModules(); - - // Save the case. - caseServer_.save(); - - // Reactivate modules - activateCaseModules(); - - // Print success message. - printCaseMessage - ( - "Case " + toolBarKey_ + " saved successfully to time " - + caseServer_.getTime() - ); - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class RunCalculationAction - extends AbstractAction - { - RunCalculationAction() - { - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("RunCalculationImage") - ); - putValue(Action.NAME, "Start Calculation"); - putValue(Action.SHORT_DESCRIPTION, "Start Calculation"); - putValue(Action.LONG_DESCRIPTION, "Start Calculation"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); - - try - { - if (caseServer_ != null) - { - boolean doRun = - checkAndSave - ( - true, - caseServer_.caseName() - + " : case has been changed." - + " Save before running?", - "Save Case" - ); - if (doRun) - { - RunPanel runPanel = new RunPanel - ( - App.getRootFrame(), - caseBrowser_, - caseServer_.caseRoot(), - caseServer_.caseName(), - caseServer_.application().name(), - true, // Is application - "controlDict", - null - ); - runPanel.setVisible(true); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - //-------------------------------------------------------------------------- - - // Not used anymore. Use runPanel always. - private class StartCalculationAction - extends AbstractAction - { - StartCalculationAction() - { - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("StartCalculationImage") - ); - putValue(Action.NAME, "Start Calculation Now"); - putValue(Action.SHORT_DESCRIPTION, "Start Calculation Now"); - putValue(Action.LONG_DESCRIPTION, "Start Calculation Now"); - } - - public void actionPerformed(ActionEvent e) - { - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); - - try - { - if (caseServer_ != null) - { - boolean doRun = checkAndSave - ( - true, - caseServer_.caseName() + " : case has been changed." - + " Save before running?", - "Save Case" - ); - if (doRun) - { - // Start calculation. - int pid = caseServer_.runCase(""); - - System.out.println - ("Application started with pid " + pid); - } - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class StopCalculationAction - extends AbstractAction - { - StopCalculationAction() - { - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("StopCalculationImage") - ); - putValue(Action.NAME, "Stop Calculation"); - putValue(Action.SHORT_DESCRIPTION, "Stop Calculation"); - putValue(Action.LONG_DESCRIPTION, "Stop Calculation"); - } - - public void actionPerformed(ActionEvent e) - { - - // Show busy cursor. - BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); - - try - { - if (caseServer_ != null) - { - // Stop a calculation. - caseServer_.killCase(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionEvent.java deleted file mode 100644 index abad276a3f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionEvent.java +++ /dev/null @@ -1,85 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CaseBrowser.ICaseBrowser; - -public class CaseSelectionEvent - extends java.util.EventObject -{ - protected String hostName_; - protected String caseRoot_; - protected String caseName_; - protected ICaseBrowser caseBrowser_; - - /** CaseSelectionEvent constructor. */ - public CaseSelectionEvent - ( - Object source, - String hostName, - String caseRoot, - String caseName, - ICaseBrowser caseBrowser - ) - { - super(source); - hostName_ = hostName; - caseRoot_ = caseRoot; - caseName_ = caseName; - caseBrowser_ = caseBrowser; - } - - public String toString() - { - return - "CaseSelectionEvent : " + hostName_ + ":" + caseRoot_ - + " " + caseName_; - } - - public String hostName() - { - return hostName_; - } - - public String caseRoot() - { - return caseRoot_; - } - - public String caseName() - { - return caseName_; - } - - public ICaseBrowser caseBrowser() - { - return caseBrowser_; - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionListener.java deleted file mode 100644 index 5cb5d67fb5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseSelectionListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -public interface CaseSelectionListener - extends java.util.EventListener -{ - public abstract void hostSelected(CaseSelectionEvent evt); - public abstract void rootSelected(CaseSelectionEvent evt); - public abstract void caseSelected(CaseSelectionEvent evt); -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusEvent.java deleted file mode 100644 index c380890966..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusEvent.java +++ /dev/null @@ -1,125 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CasePostServer.ICasePostServer; -import FoamXServer.CaseBrowser.ICaseBrowser; - -public class CaseStatusEvent - extends java.util.EventObject -{ - protected String caseRoot_; - protected String caseName_; - protected ICaseServer caseServer_; - protected ICasePostServer casePostServer_; - protected ICaseBrowser caseBrowser_; - - /** CaseStatusEvent constructor. */ - public CaseStatusEvent - ( - Object source, - String caseRoot, - String caseName, - ICaseServer caseServer, - ICasePostServer casePostServer, - ICaseBrowser caseBrowser - ) - { - super(source); - caseRoot_ = caseRoot; - caseName_ = caseName; - caseServer_ = caseServer; - casePostServer_ = casePostServer; - caseBrowser_ = caseBrowser; - } - - /** CaseStatusEvent constructor. */ - public CaseStatusEvent - ( - Object source, - String caseRoot, - String caseName, - ICaseServer caseServer - ) - { - this(source, caseRoot, caseName, caseServer, null, null); - } - - public CaseStatusEvent - ( - Object source, - String caseRoot, - String caseName, - ICasePostServer casePostServer - ) - { - this(source, caseRoot, caseName, null, casePostServer, null); - } - - public CaseStatusEvent - ( - Object source, - String caseRoot, - String caseName - ) - { - this(source, caseRoot, caseName, null, null, null); - } - - public String toString() - { - return "CaseStatusEvent : " + caseRoot_ + " " + caseName_; - } - - public String caseRoot() - { - return caseRoot_; - } - - public String caseName() - { - return caseName_; - } - - public ICaseServer caseServer() - { - return caseServer_; - } - - public ICasePostServer casePostServer() - { - return casePostServer_; - } - - public ICaseBrowser caseBrowser() - { - return caseBrowser_; - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusListener.java deleted file mode 100644 index 51953a6cef..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CaseStatusListener.java +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -public interface CaseStatusListener - extends java.util.EventListener -{ - public abstract void caseOpened(CaseStatusEvent evt); - public abstract void caseClosed(CaseStatusEvent evt); - public abstract void caseDeleted(CaseStatusEvent evt); - - public abstract void casePostOpened(CaseStatusEvent evt); - public abstract void casePostClosed(CaseStatusEvent evt); -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CloneCaseDialog.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CloneCaseDialog.form deleted file mode 100644 index 9a5dfb5185..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CloneCaseDialog.form +++ /dev/null @@ -1,221 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/ContextInfo.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/ContextInfo.java deleted file mode 100644 index cb129c160a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/ContextInfo.java +++ /dev/null @@ -1,267 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import javax.swing.Icon; - -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.CaseDescriptor; - -import FoamX.App; - -public class ContextInfo - implements FoamX.Util.FoamXTreeRenderer.FoamXTreeItem -{ - //-------------------------------------------------------------------------- - // Symbolic constants for icon indexes. - protected static final int ROOTCONTEXT = 0; - protected static final int HOST = 1; - protected static final int HOSTOFFLINE = 2; - protected static final int CASEROOT = 3; - protected static final int CASENAME = 4; - protected static final int LOCKEDCASE = 5; - protected static final int MANAGEDCASE = 6; - protected static final int ERRORCASE = 7; - protected static final int INVALID_REF = 8; - - protected int type_ = ROOTCONTEXT; - protected String name_ = ""; - protected ICaseBrowser caseBrowser_ = null; - protected CaseDescriptor caseDescriptor_ = null; - protected String caseRoot_ = ""; - protected String caseName_ = ""; - protected String app_ = ""; - protected String statusText_ = ""; - protected boolean caseLocked_ = false; - protected boolean caseManaged_ = false; - protected boolean caseError_ = false; - - protected static Icon[] icons_; - - //-------------------------------------------------------------------------- - - static - { - try - { - // Load icons. - icons_ = new Icon[9]; - icons_[ROOTCONTEXT] = - App.getResources().getIcon("CaseBrowser.RootContextImage"); - icons_[HOST] = - App.getResources().getIcon("CaseBrowser.HostImage"); - icons_[HOSTOFFLINE] = - App.getResources().getIcon("CaseBrowser.HostOfflineImage"); - icons_[CASEROOT] = - App.getResources().getIcon("CaseBrowser.CaseRootImage"); - icons_[CASENAME] = - App.getResources().getIcon("CaseBrowser.CaseNameImage"); - icons_[LOCKEDCASE] = - App.getResources().getIcon("CaseBrowser.LockedCaseImage"); - icons_[MANAGEDCASE] = - App.getResources().getIcon("CaseBrowser.ManagedCaseImage"); - icons_[ERRORCASE] = - App.getResources().getIcon("CaseBrowser.InvalidRefImage"); - icons_[INVALID_REF] = - App.getResources().getIcon("CaseBrowser.InvalidRefImage"); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** ContextInfo constructor. */ - public ContextInfo(String name, int type) - { - name_ = name; - type_ = type; - } - - public ContextInfo - ( - ICaseBrowser caseBrowser, - String caseRoot, - String displayCaseRoot - ) - { - name_ = displayCaseRoot; - type_ = CASEROOT; - caseBrowser_ = caseBrowser; - caseRoot_ = caseRoot; - } - - public ContextInfo(ICaseBrowser caseBrowser, CaseDescriptor caseDescriptor) - { - caseBrowser_ = caseBrowser; - caseDescriptor_ = caseDescriptor; - - name_ = caseDescriptor_.caseName; - type_ = CASENAME; - caseRoot_ = caseDescriptor_.rootDir; - caseName_ = caseDescriptor_.caseName; - app_ = caseDescriptor_.app; - caseLocked_ = caseDescriptor_.locked; - caseManaged_ = caseDescriptor_.managed; - caseError_ = caseDescriptor_.error; - } - - //-------------------------------------------------------------------------- - // FoamXTreeItem interface functions. - - public Icon getIcon() - { - // See if this case is in error, locked or unmanaged. - if (type_ == CASENAME && caseError_) - { - return icons_[ERRORCASE]; - } - else if (type_ == CASENAME && caseLocked_) - { - return icons_[LOCKEDCASE]; - } - else if (type_ == CASENAME && caseManaged_) - { - return icons_[MANAGEDCASE]; - } - return icons_[type_]; - } - - public String getText() - { - return toString(); - } - - //-------------------------------------------------------------------------- - - public String toString() - { - return name_; - } - - public int getType() - { - return type_; - } - public void setType(int type) - { - type_ = type; - } - - public ICaseBrowser getCaseBrowser() - { - return caseBrowser_; - } - public void setCaseBrowser(ICaseBrowser caseBrowser) - { - caseBrowser_ = caseBrowser; - } - - public CaseDescriptor getCaseDescriptor() - { - return caseDescriptor_; - } - public void setCaseDescriptor(CaseDescriptor caseDescriptor) - { - caseDescriptor_ = caseDescriptor; - } - - public String getCaseRoot() - { - return caseRoot_; - } - public String getCaseName() - { - return caseName_; - } - public String getAppClass() - { - return app_; - } - - public String getStatusText() - { - return statusText_; - } - public void setStatusText(String text) - { - statusText_ = text; - } - - public boolean isCaseLocked() - { - return caseLocked_; - } - public void setCaseLocked(boolean locked) - { - caseLocked_ = locked; - } - - public boolean isCaseError() - { - return caseError_; - } - public void setCaseError(boolean error) - { - caseError_ = error; - } - - public boolean isCaseManaged() - { - return caseManaged_; - } - public void setCaseManaged(boolean managed) - { - caseManaged_ = managed; - } - - public boolean isRootContext() - { - return type_ == ROOTCONTEXT; - } - public boolean isHost() - { - return (type_ == HOST || type_ == HOSTOFFLINE); - } - public boolean isCaseRoot() - { - return type_ == CASEROOT; - } - public boolean isCaseName() - { - return type_ == CASENAME; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.form deleted file mode 100644 index 629ec96657..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.form +++ /dev/null @@ -1,180 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.java deleted file mode 100644 index a155101ed4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/CreateCaseDialog.java +++ /dev/null @@ -1,422 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.util.*; -import javax.swing.*; - -import FoamX.App; -import FoamXServer.ApplicationDescriptor; - -public class CreateCaseDialog - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - protected boolean wasCancelled_; - protected String caseClass_; - protected String caseRoot_; - protected ApplicationDescriptor[] applicationes_; - - //-------------------------------------------------------------------------- - /** CreateCaseDialog constructor. */ - public CreateCaseDialog - ( - java.awt.Frame parent, - ApplicationDescriptor[] applicationes, - String[] caseRoots - ) - { - super(parent, true); // Modal. - - wasCancelled_ = false; - applicationes_ = applicationes; - - // Initialise the default GUI. - initComponents(); - - // Initialise the application class combo box. - for (int i = 0; i 0)) -// { -// // Has category. Build hierarchical submenus by splitting -// // category at '/' -// // Set menu to be submenu. -// StringTokenizer tok = -// new StringTokenizer(appCat, "/"); -// -// String catKey = new String(); -// -// while (tok.hasMoreTokens()) -// { -// String category = tok.nextToken(); -// catKey = catKey + category; -// if (appsMenuMap.containsKey(catKey)) -// { -// // Menu already exists for this category -// menu = (JComboBox)appsMenuMap.get(catKey); -// } -// else -// { -// // No menu yet for this category -// JComboBox catMenu = new JComboBox(category); -// catMenu.setFont(appsMenu.getFont()); -// menu.add(catMenu); -// appsMenuMap.put(catKey, catMenu); -// menu = catMenu; -// } -// } -// } -// -// // Handle item itself -// -// // Add a menu item for this utility. -// JComboItem comboItem = new JComboItem(appName); -// comboItem.setFont(appsMenu.getFont()); -// -// // Add to menu (is either toplevel or category menu) -// menu.add(comboItem); -// } -// -// } - - //-------------------------------------------------------------------------- - - public boolean wasCancelled() - { - return wasCancelled_; - } - - //-------------------------------------------------------------------------- - - public String getCaseClass() - { - return caseClass_; - } - public void setCaseClass(String app) - { - // Update the application class combo box. - appCombo_.setSelectedItem(app); - } - - //-------------------------------------------------------------------------- - - public String getCaseRoot() - { - return caseRoot_; - } - public void setCaseRoot(String root) - { - // Update the root combo box. - rootCombo_.setSelectedItem(root); - } - - //-------------------------------------------------------------------------- - - public String getCaseName() - { - return caseNameTextField_.getText(); - } - public void setCaseName(String name) - { - caseNameTextField_.setText(name); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - mainPanel_ = new javax.swing.JPanel(); - label1_ = new javax.swing.JLabel(); - appCombo_ = new javax.swing.JComboBox(); - label2_ = new javax.swing.JLabel(); - rootCombo_ = new javax.swing.JComboBox(); - label3_ = new javax.swing.JLabel(); - caseNameTextField_ = new javax.swing.JTextField(); - buttonPanel_ = new javax.swing.JPanel(); - buttonOK_ = new javax.swing.JButton(); - buttonCancel_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setTitle("Create New Case"); - setModal(true); - addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent evt) { - closeDialog(evt); - } - }); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setPreferredSize(new java.awt.Dimension(350, 100)); - label1_.setText("Class"); - label1_.setForeground(java.awt.Color.black); - label1_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(10, 10, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(label1_, gridBagConstraints2); - - appCombo_.setFont(new java.awt.Font("Dialog", 0, 10)); - appCombo_.addItemListener(new java.awt.event.ItemListener() { - public void itemStateChanged(java.awt.event.ItemEvent evt) { - OnAppClassComboChanged(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(10, 5, 5, 10); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints2.weightx = 1.0; - mainPanel_.add(appCombo_, gridBagConstraints2); - - label2_.setText("Case Root"); - label2_.setForeground(java.awt.Color.black); - label2_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 10, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(label2_, gridBagConstraints2); - - rootCombo_.setFont(new java.awt.Font("Dialog", 0, 10)); - rootCombo_.addItemListener(new java.awt.event.ItemListener() { - public void itemStateChanged(java.awt.event.ItemEvent evt) { - OnRootComboChanged(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 10); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints2.weightx = 1.0; - mainPanel_.add(rootCombo_, gridBagConstraints2); - - label3_.setText("Case Name"); - label3_.setForeground(java.awt.Color.black); - label3_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 10, 10, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(label3_, gridBagConstraints2); - - caseNameTextField_.setFont(new java.awt.Font("Default", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 10, 10); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints2.weightx = 1.0; - mainPanel_.add(caseNameTextField_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - buttonOK_.setFont(new java.awt.Font("Dialog", 0, 10)); - buttonOK_.setText("OK"); - buttonOK_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - OnOK(evt); - } - }); - - buttonPanel_.add(buttonOK_); - - buttonCancel_.setFont(new java.awt.Font("Dialog", 0, 10)); - buttonCancel_.setText("Cancel"); - buttonCancel_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - OnCancel(evt); - } - }); - - buttonPanel_.add(buttonCancel_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTH; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(400, 300)); - setLocation((screenSize.width-400)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnRootComboChanged (java.awt.event.ItemEvent evt) - {//GEN-FIRST:event_OnRootComboChanged - // Get the selected case root. - if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) - { - caseRoot_ = (String)evt.getItem(); - } - }//GEN-LAST:event_OnRootComboChanged - - //-------------------------------------------------------------------------- - - private void OnAppClassComboChanged (java.awt.event.ItemEvent evt) - {//GEN-FIRST:event_OnAppClassComboChanged - // Get the selected application class. - if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) - { - caseClass_ = (String)evt.getItem(); - } - }//GEN-LAST:event_OnAppClassComboChanged - - //-------------------------------------------------------------------------- - - private void OnCancel (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnCancel - wasCancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_OnCancel - - //-------------------------------------------------------------------------- - - private void OnOK (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnOK - - //JTextField edit = (JTextField)rootCombo_.getEditor().getEditorComponent(); - //edit.setText(caseRoot_); - - // Only close if we have a case name entered. - if (getCaseName().trim().length()> 0) - { - wasCancelled_ = false; - setVisible(false); - dispose(); - } - else - { - App.getRootFrame().getToolkit().getDefaultToolkit().beep(); - } - - }//GEN-LAST:event_OnOK - - //-------------------------------------------------------------------------- - - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - wasCancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JLabel label1_; - private javax.swing.JComboBox appCombo_; - private javax.swing.JLabel label2_; - private javax.swing.JComboBox rootCombo_; - private javax.swing.JLabel label3_; - private javax.swing.JTextField caseNameTextField_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton buttonOK_; - private javax.swing.JButton buttonCancel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/HostChooserDlg.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/HostChooserDlg.java deleted file mode 100644 index 06f68f27a1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/HostChooserDlg.java +++ /dev/null @@ -1,180 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.CaseManagement.CaseBrowserPanel; - -import FoamXServer.CaseBrowser.ICaseBrowser; - -public class HostChooserDlg - extends javax.swing.JDialog - implements CaseSelectionListener -{ - //-------------------------------------------------------------------------- - - protected CaseBrowserPanel caseBrowserPanel_; - - protected String hostName_; - - private static final int DEFAULT_WIDTH = 300; - private static final int DEFAULT_HEIGHT = 400; - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** HostChooserDlg constructor. */ - public HostChooserDlg(java.awt.Frame parent) - { - super(parent, "Select Host", true); - - try - { - - // Get current caseBrowserModel from existing caseBrowserPanel - CaseManager caseManager = App.getCaseManager(); - - if (caseManager == null) - { - throw new FoamXException - ( - "No caseManager in top-level App." - ); - } - CaseBrowserModel model = - caseManager.getCaseBrowser().getModel(); - - // Open new caseBrowserPanel with existing model in - // case-selection mode. - caseBrowserPanel_ = - new CaseBrowserPanel(model, CaseBrowserPanel.SELECT_HOST_MODE); - - initComponents(); - - // Get warned of any selection - caseBrowserPanel_.addCaseSelectionListener(this); - } - catch (FoamXException ex) - { - App.handleAllExceptions(ex); - } - } - - - - /** GUI initialisation */ - private void initComponents() - { - getContentPane().add(caseBrowserPanel_); - - addWindowListener - ( - new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - } - ); - - caseBrowserPanel_.setPreferredSize - ( - new java.awt.Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT) - ); - pack(); - - java.awt.Dimension screenSize = - java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setLocation - ( - (screenSize.width-getSize().width)/2, - (screenSize.height-getSize().height)/2 - ); - } - - private void closeDialog(java.awt.event.WindowEvent evt) - { - clearSelection(); - exitWindow(); - } - - private void clearSelection() - { - hostName_ = null; - } - - private void exitWindow() - { - //caseBrowserPanel_.shutdown(); - setVisible(false); - dispose(); - } - - //-------------------------------------------------------------------------- - //---- public accessors - //-------------------------------------------------------------------------- - - /** get selected root */ - public String getHostName() - { - return hostName_; - } - - //-------------------------------------------------------------------------- - //---- CaseSelectionListener Interface - //-------------------------------------------------------------------------- - - - public void hostSelected(CaseSelectionEvent evt) - { - hostName_ = evt.hostName(); - exitWindow(); - } - - public void rootSelected(CaseSelectionEvent evt) - { - } - - public void caseSelected(CaseSelectionEvent evt) - { - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModule.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModule.java deleted file mode 100644 index 6dd8f72c41..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModule.java +++ /dev/null @@ -1,46 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import FoamXServer.*; - -public interface IModule - extends java.beans.Visibility -{ - public int getModuleID(); - public String getModuleName(); - public String getModuleDescription(); - public boolean initialiseModule - ( - IModuleHost moduleHost, - int moduleID - ) throws Exception; - public boolean shutdownModule(); - - // Tell module not to do any actions (e.g. listen to file changes) - public boolean deactivate(); - public boolean activate(); -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModuleHost.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModuleHost.java deleted file mode 100644 index 8beeecf7b3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/IModuleHost.java +++ /dev/null @@ -1,66 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import javax.swing.Action; -import javax.swing.Icon; -import javax.swing.JFrame; - -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CaseBrowser.ICaseBrowser; - -import FoamX.WindowManagement.FoamXInternalFrame; - -public interface IModuleHost -{ - // Miscellaneous methods. - public JFrame getRootFrame(); - public ICaseServer getCaseServer(); - public ICaseBrowser getCaseBrowser(); - - // Reporting methods. - public void printMessage(String message); - - // Tree management methods. - public void setRootLabel(String label); - public String getRootLabel(); - public int addNode(int parentNodeID, String nodeLabel, Icon icon); - public void removeNode(int nodeID); - - // Add action as popup to treeNode - public void addNodeAction(int nodeID, Action action, String context); - // Retrieve stored action - public Action getAction(String actionName); - - // Window management methods. - public int createWindow(javax.swing.JComponent component); - public FoamXInternalFrame getWindowFrame(int windowID); - public void closeWindow(int windowID); - public void showWindow(int windowID); - public void hideWindow(int windowID); -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/TreeNodeInfo.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/TreeNodeInfo.java deleted file mode 100644 index 82f7fb95b7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/TreeNodeInfo.java +++ /dev/null @@ -1,199 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.CaseManagement; - -import java.awt.event.*; -import javax.swing.*; -import javax.swing.tree.DefaultMutableTreeNode; - -import FoamX.App; -import FoamX.Util.MenuItemActionChangedListener; - -class TreeNodeInfo - implements FoamX.Util.FoamXTreeRenderer.FoamXTreeItem -{ - //-------------------------------------------------------------------------- - - protected String nodeLabel_; - protected int nodeID_; - protected JPopupMenu popupMenu_; - protected Action defaultAction_; - protected String defaultContext_; - protected Icon icon_; - - //-------------------------------------------------------------------------- - /** ModuleTreeNode constructor. */ - TreeNodeInfo(String nodeLabel, int nodeID, Icon icon) - { - nodeLabel_ = nodeLabel; - nodeID_ = nodeID; - popupMenu_ = null; - defaultAction_ = null; - icon_ = icon; - } - - //-------------------------------------------------------------------------- - - public String toString() - { - return nodeLabel_; - } - - String getNodeLabel() - { - return nodeLabel_; - } - void setNodeLabel(String label) - { - nodeLabel_ = label; - } - - int getNodeID() - { - return nodeID_; - } - - JPopupMenu getContextMenu() - { - return popupMenu_; - } - void setContextMenu(JPopupMenu contextMenu) - { - popupMenu_ = contextMenu; - } - - //-------------------------------------------------------------------------- - - void addAction(Action action, String context) - { - try - { - // Create the popup menu if required. - if (popupMenu_ == null) - { - popupMenu_ = new JPopupMenu(); - popupMenu_.setFont(new java.awt.Font("Dialog", 0, 10)); - - // First action is the default action. - defaultAction_ = action; - defaultContext_ = context; - } - - // Add new menu item. - JMenuItem menuItem = popupMenu_.add(action); - menuItem.setFont(popupMenu_.getFont()); - - // Set action command and link up action listener object. - menuItem.setActionCommand(context); - action.addPropertyChangeListener - ( - new MenuItemActionChangedListener(menuItem) - ); - menuItem.setEnabled(action.isEnabled()); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - void clearActions() - { - popupMenu_ = null; - defaultAction_ = null; - defaultContext_ = null; - } -// -// //-------------------------------------------------------------------------- -// -// Action getAction(String actionName) -// { -// if (popupMenu_ != null) -// { -// MenuElement[] menuElements = popupMenu_.getSubElements(); -// for (int i = 0; i < menuElements.length; i++) -// { -// JMenuItem menuItem = menuElements[i].getComponent(); -// } -// } -// } -// - - //-------------------------------------------------------------------------- - - void invokeDefaultAction() - { - try - { - if (defaultAction_ != null) - { - ActionEvent evt = new ActionEvent - ( - this, - nodeID_, - defaultContext_ - ); - defaultAction_.actionPerformed(evt); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - void showPopupMenu(JComponent parent, int x, int y) - { - // Show the popup menu if we have one. - if (popupMenu_ != null) - { - popupMenu_.show(parent, x, y); - } - } - - //-------------------------------------------------------------------------- - //----- FoamXTreeRenderer.FoamXTreeItem Interface - //-------------------------------------------------------------------------- - - public String getText() - { - return nodeLabel_; - } - public Icon getIcon() - { - return icon_; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/filesystem.attributes deleted file mode 100644 index f7fe29e0d5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/CaseManagement/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/.nbattrs deleted file mode 100644 index 74c037be2f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/.nbattrs +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/.nbattrs deleted file mode 100644 index 734d097af1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/.nbattrs +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.form deleted file mode 100644 index 52d4f209a4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.form +++ /dev/null @@ -1,209 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.java deleted file mode 100644 index 68d0e24945..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationDetailsTab.java +++ /dev/null @@ -1,329 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.ApplicationEditor; - -import java.util.Vector; -import javax.swing.DefaultListModel; -import javax.swing.JOptionPane; - -public class ApplicationDetailsTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private ApplicationModel appModel_; - private DefaultListModel listModel_; - - //-------------------------------------------------------------------------- - /** Creates a new AppClassPanel form. */ - public ApplicationDetailsTab(ApplicationModel appModel) - { - appModel_ = appModel; - listModel_ = new DefaultListModel(); - - // Initialise the gui. - initComponents(); - - // Initialise the argument list. - Vector argVec = appModel_.getAppParameters(); - for (int i=0; i = minIndex; i--) - { - listModel_.removeElementAt(i); - } - } - }//GEN-LAST:event_removeButtonActionPerformed_ - - //-------------------------------------------------------------------------- - -private void addButtonActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_addButtonActionPerformed_ - // Add a new program argument. - String arg = (String)JOptionPane.showInputDialog(this, - "Enter Application Argument", - "FoamX...", - JOptionPane.PLAIN_MESSAGE, null, null, null); - if (arg != null && arg.trim().length()> 0) - { - listModel_.addElement(arg); - } - -}//GEN-LAST:event_addButtonActionPerformed_ - - //-------------------------------------------------------------------------- - -// Variables declaration - do not modify//GEN-BEGIN:variables -private javax.swing.JPanel subPanel_; -private javax.swing.JLabel classNameLabel_; -private javax.swing.JTextField appNameEdit_; -private javax.swing.JLabel appDescriptionLabel_; -private javax.swing.JTextField appDescriptionEdit_; -private javax.swing.JLabel appNameLabel_; -private javax.swing.JTextField appNameEdit_; -private javax.swing.JLabel argumentListLabel_; -private javax.swing.JPanel argPanel_; -private javax.swing.JScrollPane argListScroll_; -private javax.swing.JList argumentList_; -private javax.swing.JPanel argButtonPanel_; -private javax.swing.JButton addButton_; -private javax.swing.JButton removeButton_; -// End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.form deleted file mode 100644 index cc36d18eae..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.form +++ /dev/null @@ -1,80 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.java deleted file mode 100644 index 2efa0ccdc5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationEditorDlg.java +++ /dev/null @@ -1,300 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.awt.*; -import java.util.Hashtable; -import javax.swing.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Editors.TypeEditor.TypeEditorPanel; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.BusyCursor; -import FoamXServer.CaseServer.IFoamProperties; - -public class ApplicationEditorDlg - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private ApplicationModel appModel_; - private Hashtable tabMap_; - private ApplicationDetailsTab appDetailsTab_; - private FieldsTab fieldsTab_; - private TypeEditorPanel dictionariesTab_; - private PatchPhysicalTypesTab patchPhysicalTypesTab_; - private ModulesTab modulesTab_; - private boolean cancelled_; - private boolean readOnly_; - - //-------------------------------------------------------------------------- - /** Creates a new ApplicationEditor dialog based on the specified application class object. */ - public ApplicationEditorDlg(IFoamProperties foamSys, String appName, boolean readOnly) throws FoamXException - { - super(new javax.swing.JFrame(), true); // Modal. - - try - { - // Set readonly flag. - readOnly_ = readOnly; - - App.printMessage("Constructing Model..."); - // Create application class model. - appModel_ = new ApplicationModel(foamSys); - - App.printMessage("Loading Model..."); - // Initialise the model object from the application class object. - appModel_.loadApplication(appName); - - // Create tabs. - App.printMessage("Constructing App Details Tab..."); - appDetailsTab_ = new ApplicationDetailsTab(appModel_); - App.printMessage("Constructing Field Tab..."); - fieldsTab_ = new FieldsTab(appModel_); - App.printMessage("Constructing Boundary Types Tab..."); - patchPhysicalTypesTab_ = new PatchPhysicalTypesTab(appModel_); - App.printMessage("Constructing Type Editor Tab..."); - dictionariesTab_ = new TypeEditorPanel(appModel_.getAppClassDescriptor()); - App.printMessage("Constructing Modules Tab..."); - modulesTab_ = new ModulesTab(appModel_); - - // Initialise components and add tabs. - initComponents(); - tabbedPane.addTab("General", appDetailsTab_); - tabbedPane.addTab("Fields", fieldsTab_); - tabbedPane.addTab("Boundary Types", patchPhysicalTypesTab_); - tabbedPane.addTab("Dictionaries", dictionariesTab_); - tabbedPane.addTab("Modules", modulesTab_); - - // Initialise tab map. - tabMap_ = new Hashtable(5); - tabMap_.put("General", appDetailsTab_); - tabMap_.put("Fields", fieldsTab_); - tabMap_.put("Boundary Types", patchPhysicalTypesTab_); - tabMap_.put("Dictionaries", dictionariesTab_); - tabMap_.put("Modules", modulesTab_); - - cancelled_ = true; - - App.printMessage("Fin..."); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - throw new FoamXException("Failed to construct ApplicationEditorDlg for class " + appName); - } - } - - //-------------------------------------------------------------------------- - - public boolean wasCancelled() - { - return cancelled_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - tabbedPane = new javax.swing.JTabbedPane(); - buttonPanel = new javax.swing.JPanel(); - closeButton_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setTitle("Application Class Editor"); - setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); - setName(""); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - OnWindowClosing(evt); - } - }); - - tabbedPane.setFont(new java.awt.Font("Dialog", 0, 10)); - tabbedPane.setAutoscrolls(true); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(tabbedPane, gridBagConstraints1); - - buttonPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel.setBorder(new javax.swing.border.EtchedBorder(javax.swing.border.EtchedBorder.RAISED)); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setLabel("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - buttonPanel.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTH; - getContentPane().add(buttonPanel, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(650, 450)); - setLocation((screenSize.width-650)/2,(screenSize.height-450)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnClose(java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - - closeWindow(); - - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - - /** Event handler for window closing event. */ - private void OnWindowClosing (java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_OnWindowClosing - - closeWindow(); - - }//GEN-LAST:event_OnWindowClosing - - //-------------------------------------------------------------------------- - - private void closeWindow() - { - try - { - if (!readOnly_) - { - int ret = JOptionPane.showConfirmDialog(this, - "Save changes to application class data?", - "FoamX...", - JOptionPane.YES_NO_CANCEL_OPTION, - JOptionPane.QUESTION_MESSAGE); - if (ret == JOptionPane.YES_OPTION) - { - if (!checkAndSaveData()) return; - } - else if (ret == JOptionPane.CANCEL_OPTION) - { - return; - } - } - - setVisible(false); - dispose(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - private boolean checkAndSaveData() - { - // Show busy cursor. - BusyCursor cursor = new BusyCursor(this); - - // Get each tab to update the model. - appDetailsTab_.updateModel(); - fieldsTab_.updateModel(); - dictionariesTab_.updateModel(); - patchPhysicalTypesTab_.updateModel(); - modulesTab_.updateModel(); - - // Validate the model and see if it's happy. - try - { - appModel_.validate(); - } - catch (ApplicationExeption ex) - { - JOptionPane.showMessageDialog(this, - "Error : " + ex.getMessage(), - "FoamX...", - JOptionPane.ERROR_MESSAGE); - - // Select offending tab. - String tabName = ex.getTabName(); - if (tabMap_.containsKey(tabName)) - { - Component tab = (Component)tabMap_.get(tabName); - tabbedPane.setSelectedComponent(tab); - } - return false; - } - - // Get model to serialise itself. - appModel_.saveApplication(); - - // Indicate that we have committed the data. - cancelled_ = false; - - return true; - } - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JTabbedPane tabbedPane; - private javax.swing.JPanel buttonPanel; - private javax.swing.JButton closeButton_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationExeption.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationExeption.java deleted file mode 100644 index 54f9fd45a5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationExeption.java +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -public class ApplicationExeption - extends java.lang.Exception -{ - private String tabName_; - - /** - * Constructs an ApplicationExeption with the specified detail message. - * @param msg the detail message. - */ - public ApplicationExeption(String tabName, String message) - { - super(message); - tabName_ = tabName; - } - - - public String getTabName() - { - return tabName_; - } -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationModel.java deleted file mode 100644 index 9bc5fb30bb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ApplicationModel.java +++ /dev/null @@ -1,415 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.util.Vector; -import java.util.Hashtable; - -import FoamX.App; -import FoamX.FoamXException.*; -import FoamXServer.CaseServer.IApplication; -import FoamXServer.CaseServer.IApplicationHolder; -import FoamXServer.CaseServer.IFoamProperties; -import FoamXServer.CaseServer.IGeometryDescriptor; -import FoamXServer.CaseServer.IGeometryDescriptorHolder; -import FoamXServer.CaseServer.IPatchDescriptor; -import FoamXServer.CaseServer.IPatchDescriptorHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.ITypeDescriptor; -import FoamXServer.ITypeDescriptorHolder; -import FoamXServer.ValidationError; - -class ApplicationModel -{ - //-------------------------------------------------------------------------- - - private IFoamProperties foamSys_; - private IApplication app_; - private boolean modified_; - - // Simple application class properties. - private String appName_; - private String appDescription_; - private String appExeName_; - private Vector appParameters_; - private Vector appModules_; - - private FieldDefinitionModel fieldModel_; - private BoundaryDefinitionModel boundaryModel_; - - // Field, Geometry, Patch and PatchField type information, - private Hashtable fieldTypeMap_; // Map of ITypeDescriptor objects. - private Hashtable geometryTypeMap_; // Map of IGeometryDescriptor objects. - private Hashtable patchTypeMap_; // Map of IPatchDescriptor objects. - private Hashtable patchFieldTypeMap_; // Map of ITypeDescriptor objects. - - // Simple lists of global FoamX type names. - private String[] availableModules_; // Available FoamX modules. - private String[] foamTypes_; // Field type names. - private String[] geometryTypes_; // Geometry type names. - private String[] patchTypes_; // Defined patch types. - private String[] patchFieldTypes_; // Defined patch field types. - - //-------------------------------------------------------------------------- - - ApplicationModel(IFoamProperties foamSys) - { - try - { - // Extract FoamX global data. - foamSys_ = foamSys; - - // Initialise available module list. - availableModules_ = foamSys_.availableModules(); - - // Initialise patch types - wall, patch, symmetry, etc. - patchTypeMap_ = new java.util.Hashtable(); - patchTypes_ = foamSys_.patchTypes(); - for (int i = 0; i 0 && !boundaryDefMap_.containsKey(nodeInfo.getParentType())) - { - throw new FoamXException("Invalid super type in boundary definition in BoundaryDefinitionModel::initialisePatchPhysicalTypes."); - } - - // Get the parent node. - DefaultMutableTreeNode parentNode = null; - if (nodeInfo.getParentType().length()> 0) - { - // Sub-type boundary definition. - parentNode = (DefaultMutableTreeNode)boundaryDefMap_.get(nodeInfo.getParentType()); - } - else - { - // Top-level boundary definition. - parentNode = (DefaultMutableTreeNode)patchNodeMap_.get(nodeInfo.getPatchType()); - } - - // Add new node to tree. - treeModel_.insertNodeInto(node, parentNode, 0); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- FieldModelListener Interface - //-------------------------------------------------------------------------- - - public void fieldAdded(FieldModelEvent evt) - { - try - { - Enumeration enum = boundaryDefMap_.elements(); - while (enum.hasMoreElements()) - { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)enum.nextElement(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)node.getUserObject(); - - // Set default patch field type. - String[] patchFieldTypes = getAppClassModel().getPatchFieldTypes(); - nodeInfo.addField(evt.getFieldName(), patchFieldTypes[0]); - } - // When the field table model changes, so does this one. - fireTableDataChanged(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void fieldRemoved(FieldModelEvent evt) - { - try - { - Enumeration enum = boundaryDefMap_.elements(); - while (enum.hasMoreElements()) - { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)enum.nextElement(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)node.getUserObject(); - nodeInfo.deleteField(evt.getFieldName()); - } - // When the field table model changes, so does this one. - fireTableDataChanged(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void fieldRenamed(FieldModelEvent evt) - { - try - { - Enumeration enum = boundaryDefMap_.elements(); - while (enum.hasMoreElements()) - { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)enum.nextElement(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)node.getUserObject(); - //nodeInfo.renameField(evt.getOldFieldName(), evt.getFieldName()); - } - // When the field table model changes, so does this one. - fireTableDataChanged(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- AbstractTableModel methods - //-------------------------------------------------------------------------- - - public int getRowCount() - { - // If we are not displaying a boundary definition, show no rows. - if (currentboundaryDef_ != null && currentboundaryDef_.isBoundaryDefinition()) - { - return getAppClassModel().getFieldDefinitionModel().getRowCount(); - } - else - { - return 0; - } - } - - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return ColumnNames.length; - } - - //-------------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return ColumnNames[columnIndex]; - } - - //-------------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Everything is of type String. - return String.class; - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - // Patch field type column is editable. - return (columnIndex == FIELD_NAME_INDEX) ? false : true; - } - - //-------------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - // Get field details. - FieldDescriptorCache fieldDesc = getAppClassModel().getFieldDefinitionModel().getFieldDescriptor(rowIndex); - - switch (columnIndex) - { - case FIELD_NAME_INDEX: - return fieldDesc.getFieldName(); - case PATCH_FIELD_TYPE_INDEX: - // Return the patch field type for this field. - if (currentboundaryDef_ != null && currentboundaryDef_.isBoundaryDefinition()) - { - // Convert from true patch field type to display name. - String patchFieldType = currentboundaryDef_.getPatchFieldType(fieldDesc.getFieldName()); - return (String)patchFieldTypeNameMap_.get(patchFieldType); - } - break; - default: - // Buggeration. - break; - } - - return null; - } - - //-------------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - // Get field details. - FieldDescriptorCache fieldDesc = getAppClassModel().getFieldDefinitionModel().getFieldDescriptor(rowIndex); - - switch (columnIndex) - { - case FIELD_NAME_INDEX: - break; - case PATCH_FIELD_TYPE_INDEX: - if (currentboundaryDef_ != null && currentboundaryDef_.isBoundaryDefinition()) - { - // Set the patch field type for the current BoundaryDefinition object. - String displayName = (String)aValue; - - // Convert from display name to true patch field type. - String patchFieldType = (String)patchFieldTypeNameMap_.get(displayName); - currentboundaryDef_.setPatchFieldType(fieldDesc.getFieldName(), patchFieldType); - } - break; - default: - // Buggeration. - break; - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionModelItem.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionModelItem.java deleted file mode 100644 index 2a68b2d87b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionModelItem.java +++ /dev/null @@ -1,343 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import javax.swing.Icon; -import java.util.Enumeration; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor; -import FoamXServer.CaseServer.IPatchDescriptor; -import FoamXServer.StringPair; - -public class BoundaryDefinitionModelItem - implements FoamX.Util.FoamXTreeRenderer.FoamXTreeItem -{ - //-------------------------------------------------------------------------- - - private static final int NODE_TYPE_ROOT = 0; - private static final int NODE_TYPE_PATCHTYPE = 1; - private static final int NODE_TYPE_BOUNDARYDEF = 2; - private static Icon[] icons_; - - private IPatchPhysicalTypeDescriptor patchPhysicalTypeDesc_; - private int type_; // Type of this node - Root, Patch or BoundaryDefinition. - private String name_; - private String displayName_; - private String description_; - private String parentType_; - private String patchType_; - private java.util.Hashtable patchFieldTypeMap_; // Map between field names and patch field types. - - //-------------------------------------------------------------------------- - - static - { - try - { - icons_ = new Icon[3]; - icons_[NODE_TYPE_ROOT] = App.getResources().getIcon("PatchRootImage"); - icons_[NODE_TYPE_PATCHTYPE] = App.getResources().getIcon("PatchTypeImage"); - icons_[NODE_TYPE_BOUNDARYDEF] = App.getResources().getIcon("BoundaryDefinitionImage"); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Constructor for Root BoundaryDefinitionModelItem object. */ - public BoundaryDefinitionModelItem() - { - type_ = NODE_TYPE_ROOT; - name_ = "Patch Types"; - displayName_ = "Patch Types"; - } - - //-------------------------------------------------------------------------- - /** Constructor for Patch Type BoundaryDefinitionModelItem object. */ - public BoundaryDefinitionModelItem(IPatchDescriptor patchType) - { - try - { - type_ = NODE_TYPE_PATCHTYPE; - name_ = patchType.name(); - displayName_ = patchType.displayName(); - description_ = patchType.description(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Constructor for Boundary Definition Type BoundaryDefinitionModelItem object. */ - public BoundaryDefinitionModelItem(IPatchPhysicalTypeDescriptor patchPhysicalType) - { - try - { - patchPhysicalTypeDesc_ = patchPhysicalType; - type_ = NODE_TYPE_BOUNDARYDEF; - name_ = patchPhysicalType.name(); - displayName_ = patchPhysicalType.displayName(); - description_ = patchPhysicalType.description(); - parentType_ = patchPhysicalType.parentType(); - patchType_ = patchPhysicalType.patchType(); - patchFieldTypeMap_ = new java.util.Hashtable(); - - // Get the patch field types. - StringPair[] patchFieldTypes = patchPhysicalType.patchFieldTypes(); - for (int j=0; j - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionPanel.java deleted file mode 100644 index c5be693d13..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BoundaryDefinitionPanel.java +++ /dev/null @@ -1,402 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import javax.swing.table.*; -import javax.swing.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamXServer.CaseServer.IPatchDescriptor; -import FoamXServer.ITypeDescriptor; -//import FoamXServer.CaseServer.IPatchFieldDescriptor; - -public class BoundaryDefinitionPanel - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_WIDTH = 100; - - private ApplicationModel appModel_; - private BoundaryDefinitionModel tableModel_; - private DefaultCellEditor patchFieldTypeEditor_; - private JComboBox patchFieldTypeCombo_; - - //-------------------------------------------------------------------------- - /** Constructor for BoundaryDefinitionPanel. */ - public BoundaryDefinitionPanel(ApplicationModel appModel) - { - try - { - appModel_ = appModel; - tableModel_ = appModel_.getBoundaryDefinitionModel(); - - // Initialise the gui. - initComponents(); - - // Resize table to show the defined rows only. - int height = (table_.getRowHeight() + table_.getRowMargin()) * - (tableModel_.getRowCount() + 1); // Add an extra row to account for the header control. - table_.setPreferredScrollableViewportSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - - // Initialise the patch field type editor. - patchFieldTypeCombo_ = new JComboBox(); - String[] patchFieldTypes = appModel_.getPatchFieldTypes(); - for (int i = 0; i - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.form deleted file mode 100644 index 977404cf2a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.form +++ /dev/null @@ -1,186 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.java deleted file mode 100644 index 0143b43418..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/BrowseApplicationesDlg.java +++ /dev/null @@ -1,735 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.awt.*; -import javax.swing.*; -import javax.swing.event.ListSelectionEvent; -import javax.swing.event.ListSelectionListener; - -import FoamX.App; -import FoamX.Util.BusyCursor; - -import FoamXServer.ApplicationDescriptor; -import FoamXServer.CaseServer.IApplicationHolder; -import FoamXServer.CaseServer.IFoamProperties; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; - -public class BrowseApplicationesDlg - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private IFoamProperties foamSys_; - private DefaultListModel listModel_; - private boolean modified_; - - //-------------------------------------------------------------------------- - /** BrowseApplicationesDlg constructor. */ - public BrowseApplicationesDlg(IFoamProperties foamSys) - { - super(new javax.swing.JFrame(), true); - - try - { - modified_ = false; - - // Take a reference to the foam properties object. - foamSys_ = foamSys; - - // Initialise the list of defined application classes. - listModel_ = new DefaultListModel(); - initialiseAppClassList(); - - // Initialise gui. - initComponents(); - - // Listen out for selection events. - appList_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - OnSelectionChanged(evt); - } - } - ); - - // Set the list renderer. - appList_.setCellRenderer(new FoamX.Util.FoamXListRenderer()); - - // Select first item. - if (listModel_.getSize()> 0) - { - appList_.getSelectionModel().setLeadSelectionIndex(0); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public boolean getModified() - { - return modified_; - } - - //-------------------------------------------------------------------------- - - private void initialiseAppClassList() - { - try - { - listModel_.clear(); - ApplicationDescriptor[] appes = foamSys_.applicationes(); - - // Add an entry for all defined application classes. - for (int i = 0; i 0) - { - try - { - // Create a new application class object by cloning the selected one. - IApplicationHolder appHolder = new IApplicationHolder(); - foamSys_.cloneApplication(name, appName, appHolder); - } - catch (Exception ex) - { - Toolkit.getDefaultToolkit().beep(); - JOptionPane.showMessageDialog(this, - "Application class clone operation failed.", - "FoamX...", - JOptionPane.ERROR_MESSAGE); - return; - } - - // Show the application class editor dialog for the new class. - ApplicationEditorDlg dlg = new ApplicationEditorDlg(foamSys_, appName, false); - dlg.show(); - - // If dialog was cancelled, tidy up. - if (dlg.wasCancelled()) - { - // Delete application class. - foamSys_.deleteApplication(appName); - } - else - { - // Add name to list. - AppClassListItem app = new AppClassListItem(appName); - listModel_.addElement(app); - } - - // Set modified flag. - modified_ = true; - - // Save user properties. - foamSys_.saveUserProperties(); - } - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnCloneApplication - - //-------------------------------------------------------------------------- - - private void OnAppClassListMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnAppClassListMouseClicked - - try - { - // Show busy cursor. - BusyCursor cursor = new BusyCursor(this); - - // Check for double click on a list item. - if (evt.getClickCount() == 2) - { - if (!appList_.getSelectionModel().isSelectionEmpty()) - { - // Get name of application class to be edited. - int index = appList_.getSelectionModel().getLeadSelectionIndex(); - AppClassListItem item = (AppClassListItem)listModel_.getElementAt(index); - - // Show the application class editor dialog for this class. - ApplicationEditorDlg dlg = new ApplicationEditorDlg(foamSys_, item.getText(), item.isSystemClass()); - dlg.show(); - - // Set modified flag. - modified_ = !dlg.wasCancelled(); - - // Save user properties. - foamSys_.saveUserProperties(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnAppClassListMouseClicked - - //-------------------------------------------------------------------------- - - private void OnDeleteApplication (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnDeleteApplication - - try - { - // Show busy cursor. - BusyCursor cursor = new BusyCursor(this); - - // Remove the selected application classes. - if (!appList_.getSelectionModel().isSelectionEmpty()) - { - int minIndex = appList_.getSelectionModel().getMinSelectionIndex(); - int maxIndex = appList_.getSelectionModel().getMaxSelectionIndex(); - // Need to remove from the top so that it doesn't get its knickers in a twist. - for (int i=maxIndex; i>= minIndex; i--) - { - int index = appList_.getSelectionModel().getLeadSelectionIndex(); - AppClassListItem item = (AppClassListItem)listModel_.getElementAt(index); - - // Check whether this is a system class. - if (item.isSystemClass()) - { - JOptionPane.showMessageDialog(this, - "Can't delete system application class '" + item.getText() + ".", - "FoamX...", - JOptionPane.ERROR_MESSAGE); - } - else - { - if (JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(this, - "Are you sure you wish to delete user application class '" + item.getText() + "'?", - "FoamX...", - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE)) - { - // Remove from kernel. - foamSys_.deleteApplication(item.getText()); - - // Remove from list. - listModel_.removeElementAt(i); - - // Set modified flag. - modified_ = true; - } - } - } - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnDeleteApplication - - //-------------------------------------------------------------------------- - - private void OnNewApplication (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnNewApplication - - try - { - // Show busy cursor. - BusyCursor cursor = new BusyCursor(this); - - String appName = getNewAppClassName(); - if (appName != null && appName.trim().length()> 0) - { - try - { - // Create a new application class object. - IApplicationHolder appHolder = new IApplicationHolder(); - foamSys_.addApplication(appName, appHolder); - } - catch (Exception ex) - { - Toolkit.getDefaultToolkit().beep(); - JOptionPane.showMessageDialog(this, - "Application class create operation failed.", - "FoamX...", - JOptionPane.ERROR_MESSAGE); - return; - } - - // Show the application class editor dialog for this class. - ApplicationEditorDlg dlg = new ApplicationEditorDlg(foamSys_, appName, false); - dlg.show(); - - // If dialog was cancelled, tidy up. - if (dlg.wasCancelled()) - { - // Delete application class. - foamSys_.deleteApplication(appName); - } - else - { - // Add name to list. - AppClassListItem app = new AppClassListItem(appName); - listModel_.addElement(app); - } - - // Set modified flag. - modified_ = !dlg.wasCancelled(); - - // Save user properties. - foamSys_.saveUserProperties(); - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnNewApplication - - //-------------------------------------------------------------------------- - - private void OnEditApplicationsClass (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnEditApplicationsClass - - try - { - // Show busy cursor. - BusyCursor cursor = new BusyCursor(this); - - // Edit the selected application class. - if (!appList_.getSelectionModel().isSelectionEmpty()) - { - // Get name of application class to be edited. - int index = appList_.getSelectionModel().getLeadSelectionIndex(); - AppClassListItem item = (AppClassListItem)listModel_.getElementAt(index); - - // Show the application class editor dialog for this class. - ApplicationEditorDlg dlg = new ApplicationEditorDlg(foamSys_, item.getText(), item.isSystemClass()); - dlg.show(); - - // Set modified flag. - modified_ = !dlg.wasCancelled(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnEditApplicationsClass - - //-------------------------------------------------------------------------- - - private void OnOK (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnOK - - try - { - if (modified_) - { - foamSys_.saveUserProperties(); - } - - setVisible(false); - dispose(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - }//GEN-LAST:event_OnOK - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - - try - { - if (modified_) - { - foamSys_.saveUserProperties(); - } - - setVisible(false); - dispose(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel appListPanel_; - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JList appList_; - private javax.swing.JPanel appButtonPanel_; - private javax.swing.JButton openAppClassButton_; - private javax.swing.JButton newAppClassButton_; - private javax.swing.JButton cloneAppClassButton_; - private javax.swing.JButton delAppClassButton_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton buttonOK_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - static private class AppClassListItem - implements FoamX.Util.FoamXListRenderer.FoamXListItem - { - //----------------------------------------------------------------------------------------- - - protected String appName_; - protected boolean systemClass_; - protected static Icon[] icons_; - - //-------------------------------------------------------------------------- - - static - { - try - { - // Load icons. - icons_ = new Icon[3]; - icons_[0] = App.getResources().getIcon("SystemAppClassImage"); - icons_[1] = App.getResources().getIcon("UserAppClassImage"); - icons_[2] = App.getResources().getIcon("OverridenAppClassImage"); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //----------------------------------------------------------------------------------------- - - public AppClassListItem(ApplicationDescriptor desc) - { - appName_ = desc.name; - systemClass_ = desc.systemClass; - } - - //----------------------------------------------------------------------------------------- - - public AppClassListItem(String appName) - { - appName_ = appName; - systemClass_ = false; - } - - //----------------------------------------------------------------------------------------- - - public Icon getIcon() - { - return systemClass_ ? icons_[0] : icons_[1]; - } - - //----------------------------------------------------------------------------------------- - - public String getText() - { - return appName_; - } - - //----------------------------------------------------------------------------------------- - - public boolean isSystemClass() - { - return systemClass_; - } - - //----------------------------------------------------------------------------------------- - } - - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDefinitionModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDefinitionModel.java deleted file mode 100644 index f01b49ab48..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDefinitionModel.java +++ /dev/null @@ -1,465 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.lang.ref.WeakReference; -import java.util.Vector; -import java.util.Hashtable; -import java.util.Enumeration; -import javax.swing.table.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamXServer.CaseServer.IApplication; -import FoamXServer.CaseServer.IGeometricFieldDescriptor; -import FoamXServer.CaseServer.IGeometricFieldDescriptorHolder; -import FoamXServer.CaseServer.IGeometryDescriptor; -import FoamXServer.DimensionSet; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.ITypeDescriptor; - -class FieldDefinitionModel - extends AbstractTableModel -{ - //-------------------------------------------------------------------------- - - public static final int FIELDNAME_INDEX = 0; - public static final int FIELDDESC_INDEX = 1; - public static final int FIELDTYPE_INDEX = 2; - public static final int GEOMTYPE_INDEX = 3; - public static final int DIMENSION_INDEX = 4; - public static final String FIELDNAME_COLUMN = "Name"; - public static final String FIELDDESC_COLUMN = "Description"; - public static final String FIELDTYPE_COLUMN = "Type"; - public static final String GEOMTYPE_COLUMN = "Geometry Type"; - public static final String DIMENSION_COLUMN = "Dimension"; - private static final String[] s_columnNames = { - FIELDNAME_COLUMN, FIELDDESC_COLUMN, FIELDTYPE_COLUMN, GEOMTYPE_COLUMN, DIMENSION_COLUMN }; - - private WeakReference appModel_; // Weak reference to the application class model object. - private EventListenerList listenerList_; - private java.util.Vector fieldDefList_; // List of FieldDescriptorCache objects. - private java.util.Hashtable fieldDefMap_; // Map of FieldDescriptorCache objects. - private java.util.Hashtable fieldTypeNameMap_; // Map between true and display field type names. - private java.util.Hashtable geomTypeNameMap_; // Map between true and display geometry type names. - - //-------------------------------------------------------------------------- - - FieldDefinitionModel(ApplicationModel appModel) - { - try - { - appModel_ = new java.lang.ref.WeakReference(appModel); - fieldDefList_ = new java.util.Vector(5); - fieldDefMap_ = new java.util.Hashtable(); - fieldTypeNameMap_ = new java.util.Hashtable(); - geomTypeNameMap_ = new java.util.Hashtable(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - // Initialise the field model. - String[] fieldList = getAppClassModel().getAppClassDescriptor().fields(); - for (int i = 0; i = 0; i-=2) - { - if (listeners[i] == FieldModelListener.class) - { - ((FieldModelListener)listeners[i+1]).fieldAdded(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireFieldRemoved(String fieldName) - { - // Create event object. - FieldModelEvent evt = new FieldModelEvent(this, fieldName); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FieldModelListener.class) - { - ((FieldModelListener)listeners[i+1]).fieldRemoved(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireFieldRenamed(String newName, String oldName) - { - // Create event object. - FieldModelEvent evt = new FieldModelEvent(this, newName, oldName); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FieldModelListener.class) - { - ((FieldModelListener)listeners[i+1]).fieldRenamed(evt); - } - } - } - - //-------------------------------------------------------------------------- - //---- AbstractTableModel methods - //-------------------------------------------------------------------------- - - public int getRowCount() - { - return fieldDefList_.size(); - } - - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return s_columnNames.length; - } - - //-------------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return s_columnNames[columnIndex]; - } - - //-------------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Check for dimension column. - if (columnIndex == DIMENSION_INDEX) - { - return DimensionSet.class; - } - - // Everything else is of type String. - return String.class; - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - // All columns are editable - return true; - } - - //-------------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - FieldDescriptorCache fieldDesc = (FieldDescriptorCache)fieldDefList_.get(rowIndex); - switch (columnIndex) - { - case FIELDNAME_INDEX: - return fieldDesc.getFieldName(); - case FIELDDESC_INDEX: - return fieldDesc.getFieldDescription(); - case FIELDTYPE_INDEX: - // Convert from the true type name to the display type name. - String typeName = (String)fieldTypeNameMap_.get(fieldDesc.getFoamTypeName()); - return typeName; - case GEOMTYPE_INDEX: - // Convert from the true geometry name to the display geometry name. - String geomName = (String)geomTypeNameMap_.get(fieldDesc.getGeometryTypeName()); - return geomName; - case DIMENSION_INDEX: - return fieldDesc.getFieldDimensions(); - default: - // Bugger and damnation. - break; - } - - return null; - } - - //-------------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - FieldDescriptorCache fieldDesc = (FieldDescriptorCache)fieldDefList_.get(rowIndex); - switch (columnIndex) - { - case FIELDNAME_INDEX: - String oldName = fieldDesc.getFieldName(); - String newName = (String)aValue; - if (!oldName.equals(newName)) - { - fireFieldRenamed(newName, oldName); - } - fieldDesc.setFieldName((String)aValue); // Change name. - fireTableDataChanged(); - break; - case FIELDDESC_INDEX: - fieldDesc.setFieldDescription((String)aValue); - fireTableDataChanged(); - break; - case FIELDTYPE_INDEX: - // Convert from the display type name to the true type name. - String typeName = (String)fieldTypeNameMap_.get((String)aValue); - fieldDesc.setFieldTypeName(typeName); - fireTableDataChanged(); - break; - case GEOMTYPE_INDEX: - // Convert from the display geometry name to the true geometry name. - String geomName = (String)geomTypeNameMap_.get((String)aValue); - fieldDesc.setGeometryTypeName(geomName); - fireTableDataChanged(); - break; - case DIMENSION_INDEX: - fieldDesc.setFieldDimensions((DimensionSet)aValue); - fireTableDataChanged(); - break; - default: - // Bugger. - break; - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDescriptorCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDescriptorCache.java deleted file mode 100644 index a813c6efc8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDescriptorCache.java +++ /dev/null @@ -1,136 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import FoamX.App; -import FoamXServer.CaseServer.IGeometricFieldDescriptor; -import FoamXServer.DimensionSet; - -public class FieldDescriptorCache - extends Object -{ - //-------------------------------------------------------------------------- - - private IGeometricFieldDescriptor fieldDescriptor_; - private String fieldName_; - private String fieldDescription_; - private String fieldTypeName_; - private String geometryTypeName_; - private DimensionSet fieldDimension_; - - //-------------------------------------------------------------------------- - /** FieldDescriptorCache constructor. */ - public FieldDescriptorCache(IGeometricFieldDescriptor fieldDescriptor) - { - try - { - fieldDescriptor_ = fieldDescriptor; - fieldName_ = fieldDescriptor_.name(); - fieldDescription_ = fieldDescriptor_.description(); - fieldTypeName_ = fieldDescriptor_.fieldTypeName(); // True field type name. - geometryTypeName_ = fieldDescriptor_.geometryTypeName(); // True geometry type name. - fieldDimension_ = fieldDescriptor_.dimensions(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public String getFieldName() - { - return fieldName_; - } - public String getFieldDescription() - { - return fieldDescription_; - } - public String getFoamTypeName() - { - return fieldTypeName_; - } - public String getGeometryTypeName() - { - return geometryTypeName_; - } - public DimensionSet getFieldDimensions() - { - return fieldDimension_; - } - - public void setFieldName(String fieldName) - { - fieldName_ = fieldName.trim(); - } - public void setFieldDescription(String fieldDescription) - { - fieldDescription_ = fieldDescription.trim(); - } - public void setFieldTypeName(String fieldTypeName) - { - fieldTypeName_ = fieldTypeName.trim(); - } - public void setGeometryTypeName(String geometryTypeName) - { - geometryTypeName_ = geometryTypeName.trim(); - } - public void setFieldDimensions(DimensionSet fieldDimension) - { - fieldDimension_ = fieldDimension; - } - - //-------------------------------------------------------------------------- - /** - * Update the cached IGeometricFieldDescriptor object. - */ - public void updateFieldDescriptor() - { - try - { - // Update the IGeometricFieldDescriptor object. - fieldDescriptor_.name(fieldName_); - fieldDescriptor_.description(fieldDescription_); - fieldDescriptor_.fieldTypeName(fieldTypeName_); - fieldDescriptor_.geometryTypeName(geometryTypeName_); - fieldDescriptor_.dimensions(fieldDimension_); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellEditor.java deleted file mode 100644 index 88a435415b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellEditor.java +++ /dev/null @@ -1,285 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.awt.Component; -import java.awt.event.*; -import java.awt.AWTEvent; -import java.text.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import java.util.EventObject; - -import FoamX.App; -import FoamX.Util.FoamXAny; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundPanel; -import FoamX.Editors.DimensionSetEditor; - -import FoamXServer.DimensionSet; - -public class FieldDimensionCellEditor - implements TableCellEditor -{ - //-------------------------------------------------------------------------- - - protected DimensionSet dimensionSet_; // DimensionSet object being edited. - protected DictionaryEntryCompoundPanel panel_; - protected EventListenerList listenerList_; - transient protected ChangeEvent changeEvent_; - transient protected ActionEvent actionEvent_; - - //-------------------------------------------------------------------------- - - /** FieldDimensionCellEditor constructor. */ - public FieldDimensionCellEditor() - { - dimensionSet_ = null; - panel_ = new DictionaryEntryCompoundPanel(); - listenerList_ = new EventListenerList(); - - // Subscribe to the edit button's action event so that we can forward - // the event to the action event listeners of this object. - panel_.EditButton().addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - editButtonActionPerformed(evt); - } - } - ); - } - - //-------------------------------------------------------------------------- - // TableCellEditor interface functions. - //-------------------------------------------------------------------------- - /** Implementation of TableCellEditor interface's getTableCellEditorComponent function. */ - public Component getTableCellEditorComponent - ( - JTable table, - Object value, - boolean isSelected, - int row, - int column - ) - { - try - { - dimensionSet_ = (DimensionSet)value; - - // Set the panel text. - setPanelText(); - - // Make sure the label is rendered properly. - if (isSelected) - { - panel_.Label().setForeground(table.getSelectionForeground()); - panel_.Label().setBackground(table.getSelectionBackground()); - } else { - panel_.Label().setForeground(table.getForeground()); - panel_.Label().setBackground(table.getBackground()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return panel_; - } - - //-------------------------------------------------------------------------- - - private void setPanelText() - { - if (dimensionSet_ != null) - { - // Set the panel text. - panel_.Label().setText(FoamXAny.format(dimensionSet_)); - } - } - - //-------------------------------------------------------------------------- - // CellEditor interface functions. - //-------------------------------------------------------------------------- - - public Object getCellEditorValue() - { - return dimensionSet_; - } - - //-------------------------------------------------------------------------- - - public boolean stopCellEditing() - { - fireEditingStopped(); - return true; - } - - //-------------------------------------------------------------------------- - - public void cancelCellEditing() - { - fireEditingCanceled(); - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(EventObject anEvent) - { - return true; - } - - //-------------------------------------------------------------------------- - - public boolean shouldSelectCell(EventObject anEvent) - { - if (panel_ != null && anEvent instanceof MouseEvent && - ((MouseEvent)anEvent).getID() == MouseEvent.MOUSE_PRESSED) - { - Component dispatchComponent = SwingUtilities.getDeepestComponentAt(panel_, 3, 3); - MouseEvent e = (MouseEvent)anEvent; - MouseEvent e2 = new MouseEvent(dispatchComponent, MouseEvent.MOUSE_RELEASED, - e.getWhen() + 100000, e.getModifiers(), 3, 3, e.getClickCount(), - e.isPopupTrigger()); - dispatchComponent.dispatchEvent(e2); - e2 = new MouseEvent(dispatchComponent, MouseEvent.MOUSE_CLICKED, - e.getWhen() + 100001, e.getModifiers(), 3, 3, 1, - e.isPopupTrigger()); - dispatchComponent.dispatchEvent(e2); - } - return false; - } - - //-------------------------------------------------------------------------- - - public void addCellEditorListener(CellEditorListener l) - { - listenerList_.add(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCellEditorListener(CellEditorListener l) - { - listenerList_.remove(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditingStopped() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent_); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireEditingCanceled() - { - // Guaranteed to return a non-null array - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent_); - } - } - } - - //-------------------------------------------------------------------------- - - public void addActionListener(ActionListener l) - { - listenerList_.add(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeActionListener(ActionListener l) - { - listenerList_.remove(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditActionEvent() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == ActionListener.class) - { - // Lazily create the event: - if (actionEvent_ == null) - { - actionEvent_ = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, ""); - } - // Fire the event. - ((ActionListener)listeners[i+1]).actionPerformed(actionEvent_); - } - } - } - - //-------------------------------------------------------------------------- - - private void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // Show the DimensionSet editor dialog. - DimensionSetEditor dlg = new DimensionSetEditor(null, dimensionSet_); - dlg.show(); - // Update the panel text. - setPanelText(); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellRenderer.java deleted file mode 100644 index bff3518f8f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldDimensionCellRenderer.java +++ /dev/null @@ -1,85 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.text.*; -import java.awt.Component; -import javax.swing.JTable; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Util.FoamXAny; - -import FoamXServer.DimensionSet; - -public class FieldDimensionCellRenderer - extends DefaultTableCellRenderer -{ - //-------------------------------------------------------------------------- - - /** FieldDimensionCellRenderer constructor. */ - public FieldDimensionCellRenderer() - {} - - //-------------------------------------------------------------------------- - - public Component getTableCellRendererComponent - ( - JTable table, - Object value, - boolean isSelected, - boolean hasFocus, - int row, - int column - ) - { - Component comp = null; - - try - { - comp = super.getTableCellRendererComponent - ( - table, - FoamXAny.format((DimensionSet)value), - isSelected, - hasFocus, - row, - column - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return comp; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelEvent.java deleted file mode 100644 index 5f6f2f50d3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelEvent.java +++ /dev/null @@ -1,66 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -public class FieldModelEvent - extends java.util.EventObject -{ - protected String fieldName_; - protected String oldFieldName_; - - /** FieldModelEvent constructor. */ - public FieldModelEvent(Object source, String fieldName) - { - super(source); - fieldName_ = fieldName; - oldFieldName_ = ""; - } - - public FieldModelEvent(Object source, String fieldName, String oldFieldName) - { - super(source); - fieldName_ = fieldName; - oldFieldName_ = oldFieldName; - } - - public String toString() - { - return "FieldModelEvent : " + fieldName_; - } - - public String getFieldName() - { - return fieldName_; - } - - public String getOldFieldName() - { - return oldFieldName_; - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelListener.java deleted file mode 100644 index 9865e58cb0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldModelListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -public interface FieldModelListener - extends java.util.EventListener -{ - public abstract void fieldAdded(FieldModelEvent evt); - public abstract void fieldRemoved(FieldModelEvent evt); - public abstract void fieldRenamed(FieldModelEvent evt); -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.form deleted file mode 100644 index 5fbdde8a99..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.form +++ /dev/null @@ -1,76 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.java deleted file mode 100644 index ed1fa1d85f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/FieldsTab.java +++ /dev/null @@ -1,294 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import FoamX.App; - -import FoamXServer.CaseServer.IGeometryDescriptor; -import FoamXServer.ITypeDescriptor; - -public class FieldsTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_WIDTH = 400; - - private ApplicationModel appModel_; - private DefaultCellEditor stringEditor_; - private DefaultCellEditor fieldTypeEditor_; - private DefaultCellEditor geometryTypeEditor_; - private FieldDimensionCellEditor dimensionEditor_; - private FieldDimensionCellRenderer dimensionRenderer_; - private AddFieldAction addFieldAction_; - private DeleteFieldAction deleteFieldAction_; - - //-------------------------------------------------------------------------- - /** Constructor for PatchPhysicalTypePanel. */ - public FieldsTab(ApplicationModel appModel) - { - try - { - appModel_ = appModel; - - // Initialise the gui. - initComponents(); - - // Resize table to show the defined rows only. - int height = (table_.getRowHeight() + table_.getRowMargin()) * - (appModel_.getFieldDefinitionModel().getRowCount() + 1); // Add an extra row to account for the header control. - table_.setPreferredScrollableViewportSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - - // Initialise the field type, geometry type and dimension editors. - JComboBox fieldTypeCombo = new JComboBox(); - fieldTypeCombo.setFont(table_.getFont()); // Use same font as table. - String[] foamTypes = appModel_.getFoamTypes(); - for (int i = 0; i = minIndex; i--) - { - appModel_.getFieldDefinitionModel().removeField(i); - } - table_.getSelectionModel().clearSelection(); - deleteFieldAction_.setEnabled(false); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.form deleted file mode 100644 index 66e59021aa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.form +++ /dev/null @@ -1,182 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.java deleted file mode 100644 index 0bc919bad1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/ModulesTab.java +++ /dev/null @@ -1,400 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.ApplicationEditor; - -import java.util.Vector; -import javax.swing.event.ListSelectionEvent; -import javax.swing.event.ListSelectionListener; -import javax.swing.DefaultListModel; - -import FoamX.App; - - -public class ModulesTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private ApplicationModel appModel_; - private DefaultListModel availableModulesListModel_; - private DefaultListModel selectedModulesListModel_; - - //-------------------------------------------------------------------------- - /** Constructor for ModulesTab. */ - - public ModulesTab(ApplicationModel appModel) - { - try - { - appModel_ = appModel; - availableModulesListModel_ = new DefaultListModel(); - selectedModulesListModel_ = new DefaultListModel(); - - // Initialise the list of selected modules. - Vector appModules = appModel_.getAppModules(); - for (int i=0; i 0); - removeAllModulesButton_.setEnabled(selectedModulesListModel_.size()> 0); - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - availableModulesPanel_ = new javax.swing.JPanel(); - leftScrollPane_ = new javax.swing.JScrollPane(); - availableModulesList_ = new javax.swing.JList(); - buttonPanel_ = new javax.swing.JPanel(); - addModuleButton_ = new javax.swing.JButton(); - addAllModulesButton_ = new javax.swing.JButton(); - removeModuleButton_ = new javax.swing.JButton(); - removeAllModulesButton_ = new javax.swing.JButton(); - selectedModulesPanel_ = new javax.swing.JPanel(); - rightScrollPane_ = new javax.swing.JScrollPane(); - selectedModulesList_ = new javax.swing.JList(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setFont(new java.awt.Font("Dialog", 0, 10)); - availableModulesPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - availableModulesPanel_.setBorder(new javax.swing.border.TitledBorder(null, "Available Modules", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10), java.awt.Color.black)); - availableModulesList_.setModel(availableModulesListModel_); - availableModulesList_.setFont(new java.awt.Font("Dialog", 0, 10)); - leftScrollPane_.setViewportView(availableModulesList_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - availableModulesPanel_.add(leftScrollPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(availableModulesPanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - addModuleButton_.setToolTipText("Add module"); - addModuleButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - addModuleButton_.setText(">"); - addModuleButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - addModuleButtonActionPerformed_(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(10, 10, 5, 10); - buttonPanel_.add(addModuleButton_, gridBagConstraints3); - - addAllModulesButton_.setToolTipText("Add all modules"); - addAllModulesButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - addAllModulesButton_.setText(">>"); - addAllModulesButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - addAllModulesButtonActionPerformed_(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 1; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(5, 10, 5, 10); - buttonPanel_.add(addAllModulesButton_, gridBagConstraints3); - - removeModuleButton_.setToolTipText("Remove module"); - removeModuleButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - removeModuleButton_.setText("<"); - removeModuleButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - removeModuleButtonActionPerformed_(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 2; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(25, 10, 5, 10); - buttonPanel_.add(removeModuleButton_, gridBagConstraints3); - - removeAllModulesButton_.setToolTipText("Remove all modules"); - removeAllModulesButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - removeAllModulesButton_.setText("<<"); - removeAllModulesButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - removeAllModulesButtonActionPerformed_(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 3; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(5, 10, 10, 10); - buttonPanel_.add(removeAllModulesButton_, gridBagConstraints3); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 1; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.insets = new java.awt.Insets(10, 0, 10, 0); - add(buttonPanel_, gridBagConstraints1); - - selectedModulesPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints4; - - selectedModulesPanel_.setBorder(new javax.swing.border.TitledBorder(null, "Required Modules", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10), java.awt.Color.black)); - selectedModulesList_.setModel(selectedModulesListModel_); - selectedModulesList_.setFont(new java.awt.Font("Dialog", 0, 10)); - rightScrollPane_.setViewportView(selectedModulesList_); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 0; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints4.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints4.weightx = 1.0; - gridBagConstraints4.weighty = 1.0; - selectedModulesPanel_.add(rightScrollPane_, gridBagConstraints4); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 2; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.EAST; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(selectedModulesPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void removeAllModulesButtonActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_removeAllModulesButtonActionPerformed_ - // Remove all modules. - for (int i = 0; i = minIndex; i--) - { - ModuleDescriptor moduleDesc = (ModuleDescriptor)selectedModulesListModel_.getElementAt(i); - selectedModulesListModel_.removeElementAt(i); - availableModulesListModel_.addElement(moduleDesc); - } - } - selectedModulesList_.getSelectionModel().clearSelection(); - updateButtons(); - }//GEN-LAST:event_removeModuleButtonActionPerformed_ - - //-------------------------------------------------------------------------- - - private void addAllModulesButtonActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_addAllModulesButtonActionPerformed_ - // Add all modules. - for (int i = 0; i = minIndex; i--) - { - ModuleDescriptor moduleDesc = (ModuleDescriptor)availableModulesListModel_.getElementAt(i); - availableModulesListModel_.removeElementAt(i); - selectedModulesListModel_.addElement(moduleDesc); - } - } - availableModulesList_.getSelectionModel().clearSelection(); - updateButtons(); - }//GEN-LAST:event_addModuleButtonActionPerformed_ - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel availableModulesPanel_; - private javax.swing.JScrollPane leftScrollPane_; - private javax.swing.JList availableModulesList_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton addModuleButton_; - private javax.swing.JButton addAllModulesButton_; - private javax.swing.JButton removeModuleButton_; - private javax.swing.JButton removeAllModulesButton_; - private javax.swing.JPanel selectedModulesPanel_; - private javax.swing.JScrollPane rightScrollPane_; - private javax.swing.JList selectedModulesList_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - - private class ModuleDescriptor - { - private String moduleName_; - - public ModuleDescriptor(String moduleName) - { - moduleName_ = moduleName; - } - - public String toString() - { - return moduleName_; - } - - public String getModuleName() - { - return moduleName_; - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/PatchPhysicalTypesTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/PatchPhysicalTypesTab.java deleted file mode 100644 index 3b35cfa168..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/PatchPhysicalTypesTab.java +++ /dev/null @@ -1,417 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.ApplicationEditor; - -import java.net.URL; -import java.util.Hashtable; -import java.awt.Component; -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.tree.*; -import javax.swing.event.TreeSelectionEvent; -import javax.swing.event.TreeSelectionListener; - -import FoamX.App; -import FoamX.Util.FoamXTreeRenderer; - -public class PatchPhysicalTypesTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private BoundaryDefinitionModel boundaryDefinitionModel_; - private BoundaryDefinitionPanel boundaryDefinitionPanel_; - private AddPatchPhysicalTypeAction addPatchPhysicalTypeAction_; - private DeletePatchPhysicalTypeAction deletePatchPhysicalTypeAction_; - - //-------------------------------------------------------------------------- - /** Constructor for DictionaryPanel. */ - public PatchPhysicalTypesTab(ApplicationModel appModel) - { - try - { - boundaryDefinitionModel_ = appModel.getBoundaryDefinitionModel(); - boundaryDefinitionPanel_ = new BoundaryDefinitionPanel(appModel); - - // Initialise the gui. - initComponents(); - - // Set tree renderer. - tree_.setCellRenderer(new FoamXTreeRenderer()); - tree_.putClientProperty("JTree.lineStyle", "Angled"); - - // Set single selection mode. - tree_.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); - - // Listen out for tree node selection events. - tree_.getSelectionModel().addTreeSelectionListener - ( - new TreeSelectionListener() - { - public void valueChanged(TreeSelectionEvent evt) - { - OnSelectionChanged(evt); - } - } - ); - - // Make sure the tree is displayed properly. - tree_.updateUI(); - - // Initialise the toolbar. Create a button for each action. - addPatchPhysicalTypeAction_ = new AddPatchPhysicalTypeAction(); - deletePatchPhysicalTypeAction_ = new DeletePatchPhysicalTypeAction(); - addToolbarButton(addPatchPhysicalTypeAction_); - addToolbarButton(deletePatchPhysicalTypeAction_); - - // Initialise actions - addPatchPhysicalTypeAction_.setEnabled(false); - deletePatchPhysicalTypeAction_.setEnabled(false); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - private void addToolbarButton(Action action) - { - // Add new button to the toolbar using the action object. - javax.swing.JButton button = toolbar_.add(action); - - // Set the tooltip text. - button.setToolTipText((String)action.getValue(Action.SHORT_DESCRIPTION)); - button.setText(""); - button.setFont(toolbar_.getFont()); // Use same font as toolbar. - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - - private String getNewBoundaryDefinitionName() - { - // Prompt user for a new Boundary Definition name. - return (String)JOptionPane.showInputDialog(this, - "Enter New Boundary Definition Name", - "Boundary Definition Name", - JOptionPane.PLAIN_MESSAGE, null, null, null); - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - contextMenu_ = new javax.swing.JPopupMenu(); - subPanel_ = new javax.swing.JPanel(); - splitPane_ = new javax.swing.JSplitPane(); - scrollPaneRight_ = new javax.swing.JScrollPane(); - leftPanel_ = new javax.swing.JPanel(); - buttonPanel_ = new javax.swing.JPanel(); - toolbar_ = new javax.swing.JToolBar(); - scrollPaneTree_ = new javax.swing.JScrollPane(); - tree_ = new javax.swing.JTree(); - - contextMenu_.setFont(new java.awt.Font("Dialog", 0, 10)); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - subPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - splitPane_.setDividerLocation(200); - splitPane_.setLastDividerLocation(200); - scrollPaneRight_.setAutoscrolls(true); - scrollPaneRight_.setViewportView( boundaryDefinitionPanel_ ); - - splitPane_.setRightComponent(scrollPaneRight_); - - leftPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - toolbar_.setFloatable(false); - toolbar_.setFont(new java.awt.Font("Dialog", 0, 8)); - buttonPanel_.add(toolbar_); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints3.weightx = 1.0; - leftPanel_.add(buttonPanel_, gridBagConstraints3); - - scrollPaneTree_.setAutoscrolls(true); - tree_.setFont(new java.awt.Font("Dialog", 0, 10)); - tree_.setShowsRootHandles(true); - tree_.setModel( boundaryDefinitionModel_.getTreeModel() ); - tree_.setAutoscrolls(true); - tree_.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - OnTreeMouseClicked(evt); - } - }); - - scrollPaneTree_.setViewportView(tree_); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 1; - gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints3.anchor = java.awt.GridBagConstraints.SOUTH; - gridBagConstraints3.weightx = 1.0; - gridBagConstraints3.weighty = 1.0; - leftPanel_.add(scrollPaneTree_, gridBagConstraints3); - - splitPane_.setLeftComponent(leftPanel_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - subPanel_.add(splitPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(subPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnTreeMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnTreeMouseClicked - try - { - // Get the node object for the current selection. - TreePath tp = tree_.getPathForLocation(evt.getX(), evt.getY()); - if (tp != null) - { - // Check for popup menu trigger. - //if (evt.isPopupTrigger()) - if (evt.getModifiers() == evt.BUTTON3_MASK) // Check explicitly for right mouse click. - { - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)nodeItem.getUserObject(); - - // Construct an appropriate context menu, - contextMenu_.removeAll(); - java.awt.Font font = contextMenu_.getFont(); - - if (nodeInfo.isPatchType()) - { - contextMenu_.add(addPatchPhysicalTypeAction_).setFont(font); - } - else if (nodeInfo.isBoundaryDefinition()) - { - contextMenu_.add(addPatchPhysicalTypeAction_).setFont(font); - contextMenu_.add(deletePatchPhysicalTypeAction_).setFont(font); - } - - // Show context menu. - contextMenu_.show(tree_, evt.getX(), evt.getY()); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnTreeMouseClicked - - //-------------------------------------------------------------------------- - - public void OnSelectionChanged(TreeSelectionEvent evt) - { - try - { - // Get the node object for the current selection. - if (evt.isAddedPath()) // Has the new node been added to the selection? - { - TreePath tp = evt.getPath(); - if (tp != null) - { - // Select this node in the model. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)nodeItem.getUserObject(); - - // Set the action enabled/disabled status. - addPatchPhysicalTypeAction_.setEnabled(nodeInfo.isPatchType() || nodeInfo.isBoundaryDefinition()); - deletePatchPhysicalTypeAction_.setEnabled(nodeInfo.isBoundaryDefinition() && nodeItem.getChildCount() == 0); // Can't delete anything with a child, yet. - - boundaryDefinitionModel_.select(nodeItem); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPopupMenu contextMenu_; - private javax.swing.JPanel subPanel_; - private javax.swing.JSplitPane splitPane_; - private javax.swing.JScrollPane scrollPaneRight_; - private javax.swing.JPanel leftPanel_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JToolBar toolbar_; - private javax.swing.JScrollPane scrollPaneTree_; - private javax.swing.JTree tree_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - - class AddPatchPhysicalTypeAction - extends AbstractAction - { - AddPatchPhysicalTypeAction() - { - putValue(Action.SMALL_ICON, App.getResources().getIcon("NewPatchPhysicalTypeImage")); - putValue(Action.NAME, "Add Boundary Type"); - putValue(Action.SHORT_DESCRIPTION, "Add Boundary Type"); - putValue(Action.LONG_DESCRIPTION, "Add Boundary Type"); - } - - public void actionPerformed(ActionEvent e) - { - // Add a new boundary type to the current selection. - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // See if this is a patch node or a boundary definition node. - DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode)tp.getLastPathComponent(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)parentNode.getUserObject(); - // Make sure the selected node is not the root node. - if (!nodeInfo.isRoot()) - { - String name = getNewBoundaryDefinitionName(); - if (name != null && name.length()> 0) - { - DefaultMutableTreeNode newNode = boundaryDefinitionModel_.addBoundaryDefinitionNode(name, parentNode); - if (newNode != null) - { - // If addition successful, select the new child node. - tree_.expandPath(tp); - TreePath childTP = new TreePath(newNode.getPath()); - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(childTP); - } - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - class DeletePatchPhysicalTypeAction - extends AbstractAction - { - DeletePatchPhysicalTypeAction() - { - putValue(Action.SMALL_ICON, App.getResources().getIcon("DelPatchPhysicalTypeImage")); - putValue(Action.NAME, "Delete Boundary Type"); - putValue(Action.SHORT_DESCRIPTION, "Delete Boundary Type"); - putValue(Action.LONG_DESCRIPTION, "Delete Boundary Type"); - } - - public void actionPerformed(ActionEvent e) - { - // Delete the selected boundary definition. - try - { - // Get currently selected node. - TreePath tp = tree_.getSelectionModel().getSelectionPath(); - if (tp != null) - { - // See if this is a patch node or a boundary definition node with children. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - BoundaryDefinitionModelItem nodeInfo = (BoundaryDefinitionModelItem)nodeItem.getUserObject(); - // Make sure the selected node is a boundary type node. - if (nodeInfo.isBoundaryDefinition()) - { - if (boundaryDefinitionModel_.deleteBoundaryDefinitionNode(nodeItem)) - { - // If deletion successful, select the parent node. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp.getParentPath()); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/filesystem.attributes deleted file mode 100644 index 764553ed3b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ApplicationEditor/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.form deleted file mode 100644 index 2518c2e66d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.form +++ /dev/null @@ -1,99 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.java deleted file mode 100644 index 7a03d13a02..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/CompoundEditor.java +++ /dev/null @@ -1,226 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellEditor; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryNameCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryTableModel; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; - -public class CompoundEditor - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_HEIGHT = 400; - - private DictionaryEntryTableModel tableModel_; - - //-------------------------------------------------------------------------- - /** Creates new form CompoundEditor */ - public CompoundEditor(java.awt.Frame parent, IDictionaryEntry entry) - { - super(parent, "Compound Editor", true); - - // Initialise the table model. - tableModel_ = new DictionaryEntryTableModel(entry); - tableModel_.setNameColumnTitle("Item"); - - initComponents(); - - // Set cell renderer for name column. - table_.getColumn - ( - tableModel_.getNameColumnTitle() - ).setCellRenderer(new DictionaryNameCellRenderer()); - - // Set cell renderer and editor for value column. - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new DictionaryEntryCellRenderer()); - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - // Resize to show the defined rows only. - // Calculate size: table + panel + extra(=1 row height) - int height = - table_.getRowHeight() * (tableModel_.getRowCount() + 1) - + (int)getMinimumSize().height; // panel size - height = Math.min(height, DEFAULT_HEIGHT); - setSize(new java.awt.Dimension(getSize().width, height)); - } - - //-------------------------------------------------------------------------- - /** Access to underlying model */ - public DictionaryEntryTableModel getModel() - { - return tableModel_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - buttonPanel_ = new javax.swing.JPanel(); - closeButton_ = new javax.swing.JButton(); - mainPanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setName("Shape Editor"); - setModal(true); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - closeButtonActionPerformed_(evt); - } - }); - - buttonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - table_.setModel(tableModel_); - table_.setFont(new java.awt.Font("Dialog", 0, 10)); - tableScrollPane_.setViewportView(table_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - mainPanel_.add(tableScrollPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(350, 300)); - setLocation((screenSize.width-350)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void closeButtonActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_closeButtonActionPerformed_ - // Update the dictionary entry and close the dialog. - - // Commit any pending edits. - table_.editingStopped(new ChangeEvent(this)); - - // Close this dialog. - setVisible(false); - dispose(); - }//GEN-LAST:event_closeButtonActionPerformed_ - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton closeButton_; - private javax.swing.JPanel mainPanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/.nbattrs deleted file mode 100644 index d929cb5e9f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/.nbattrs +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryEvent.java deleted file mode 100644 index d66706f061..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import FoamX.App; - -public class CompoundEntryEvent - extends java.util.EventObject -{ - public static final int TYPE_PATCH = 0; - public static final int TYPE_DICTIONARY = 1; - - protected int type_; - protected String name_; - - /** CompoundEntryEvent constructor. */ - public CompoundEntryEvent(Object source, int type, String name) - { - - super(source); - type_ = type; - name_ = name; - } - - public int getType() - { - return type_; - } - - public String getName() - { - return name_; - } -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryListener.java deleted file mode 100644 index 5a5f86d225..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/CompoundEntryListener.java +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -public interface CompoundEntryListener - extends java.util.EventListener -{ - public boolean openSubDictionary(CompoundEntryEvent evt); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.form deleted file mode 100644 index e86e26909b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.form +++ /dev/null @@ -1,87 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.java deleted file mode 100644 index 6fa93c1a61..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEditorPanel.java +++ /dev/null @@ -1,282 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.table.*; -import javax.swing.event.*; -import java.awt.event.*; - -import FoamX.App; -import FoamXServer.IDictionaryEntry; -import FoamXServer.ITypeDescriptor; -import FoamXServer.FoamXType; - -public class DictionaryEditorPanel - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - protected static final int DEFAULT_WIDTH = 400; - protected DictionaryEntryTableModel tableModel_; - protected String tableName_; - - //-------------------------------------------------------------------------- - /** Creates a new DictionaryEditorPanel object. */ - public DictionaryEditorPanel(IDictionaryEntry compoundEntry, String key) - { - try - { - // Initialise the table model. - tableModel_ = new DictionaryEntryTableModel(compoundEntry); - - IDictionaryEntry[] subEntries = compoundEntry.subElements(); - - //tableName_ = compoundEntry.typeDescriptor().name(); - tableName_ = key; - int type = compoundEntry.typeDescriptor().type().value(); - - tableModel_.setDictionaryKey(key); - - // Initialise the table. - initComponents(); - - // Set single area selection mode. - parameterTable_.setSelectionMode(0); - - // Use 'standard' renderer for name - parameterTable_.getColumn - ( - tableModel_.getNameColumnTitle() - ).setCellRenderer(new DictionaryNameCellRenderer()); - - // Set cell renderer and editor for value column. - parameterTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new DictionaryEntryCellRenderer()); - parameterTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - // Subscribe to the list selection model event. - parameterTable_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - listSelectionChanged(evt); - } - } - ); - - // Select the first entry. - parameterTable_.clearSelection(); - parameterTable_.getSelectionModel().setLeadSelectionIndex(0); - - // Resize to show the defined rows only. - // Calculate size: table + panel + extra(=1 row height) - int height = - parameterTable_.getRowHeight() - * (tableModel_.getRowCount() + 2) - + (int)getMinimumSize().getHeight(); // panel size - - setPreferredSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Provide access to the table model object. */ - public DictionaryEntryTableModel getTableModel() - { - return tableModel_; - } - - //-------------------------------------------------------------------------- - /** Used to set the title of the host internal frame window. */ - public String toString() - { - return tableName_; - } - - //-------------------------------------------------------------------------- - - protected void listSelectionChanged(ListSelectionEvent evt) - { - // Update the entry status label. - if (!evt.getValueIsAdjusting()) - { - // Reset the entry status label. - statusLabel_.setText(""); - - int nSel = - parameterTable_.getSelectionModel().getMinSelectionIndex(); - if (nSel = 0) - { - // Get the currently selected entry. - DictionaryEntry entry = - (DictionaryEntry)tableModel_.getValueAt - ( - nSel, - DictionaryEntryTableModel.VALUE_COLUMN_INDEX - ); - if (entry != null) - { - statusLabel_.setText(entry.getEntryDescription()); - } - } - } - } - - //-------------------------------------------------------------------------- - - public void selectEntry(String entryName) - { - try - { - // Get index of specified entry. - int index = tableModel_.getIndexOfEntry(entryName); - - // Give table the focus. - parameterTable_.requestFocus(); - - // Set the specified entry. - parameterTable_.clearSelection(); - parameterTable_.getSelectionModel().setLeadSelectionIndex(index); - parameterTable_.getSelectionModel().setSelectionInterval(index, index); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - scrollPane_ = new javax.swing.JScrollPane(); - parameterTable_ = new javax.swing.JTable(); - statusPanel_ = new javax.swing.JPanel(); - statusLabel_ = new javax.swing.JLabel(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - setFont(new java.awt.Font("Dialog", 0, 10)); - setAutoscrolls(true); - scrollPane_.setAutoscrolls(true); - parameterTable_.setModel(tableModel_); - parameterTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - parameterTable_.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS); - parameterTable_.addKeyListener(new java.awt.event.KeyAdapter() - { - public void keyPressed(java.awt.event.KeyEvent evt) - { - OnKeyPressed(evt); - } - }); - - scrollPane_.setViewportView(parameterTable_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(scrollPane_, gridBagConstraints1); - - statusPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - statusPanel_.setBorder(new javax.swing.border.EtchedBorder()); - statusPanel_.setMinimumSize(new java.awt.Dimension(10, 25)); - statusLabel_.setText(" "); - statusLabel_.setForeground(java.awt.Color.black); - statusLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints2.weightx = 1.0; - statusPanel_.add(statusLabel_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - add(statusPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnKeyPressed(java.awt.event.KeyEvent evt) - {//GEN-FIRST:event_OnKeyPressed - // Add your handling code here: - if (evt.getKeyCode() == KeyEvent.VK_TAB) - { - int nSel = - parameterTable_.getSelectionModel().getMinSelectionIndex(); - if (nSel = 0) - { - boolean b = parameterTable_.editCellAt(0, 1); - if (b) App.printMessage("editCellAt true"); - } - } - }//GEN-LAST:event_OnKeyPressed - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JTable parameterTable_; - private javax.swing.JPanel statusPanel_; - private javax.swing.JLabel statusLabel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntry.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntry.java deleted file mode 100644 index 0eee74c454..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.table.*; - -public interface DictionaryEntry -{ - public String getEntryName(); - public String getEntryDescription(); - public String getEntryValueString(); - public boolean isEditable(); - public boolean isCurrent(); // selected entry (e.g. in TYPE_SELECTION) - - // Custom renderer and editor methods. - public TableCellRenderer getRenderer(); - public TableCellEditor getEditor(); - public boolean updateValue(Object value); - - // Support for compound entry editing. - public void addCompoundEntryListener(CompoundEntryListener l); - public void removeCompoundEntryListener(CompoundEntryListener l); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellEditor.java deleted file mode 100644 index 2b6420fe83..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellEditor.java +++ /dev/null @@ -1,226 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import java.awt.Component; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import java.util.EventObject; - -import FoamX.App; - -public class DictionaryEntryCellEditor - implements TableCellEditor -{ - //-------------------------------------------------------------------------- - - // DictionaryEntry object being edited. - private DictionaryEntry dictEntry_; - // Editor being used to edit the current value. - private TableCellEditor currEditor_; - // Default cell editor object. - private DefaultCellEditor defaultEditor_; - - //-------------------------------------------------------------------------- - /** DictionaryEntryCellEditor constructor. */ - public DictionaryEntryCellEditor() - { - - dictEntry_ = null; - currEditor_ = null; - defaultEditor_ = null; - } - - //-------------------------------------------------------------------------- - //---- TableCellEditor Interface Methods - //-------------------------------------------------------------------------- - /** Implementation of TableCellEditor interface's - * getTableCellEditorComponent function. - */ - public Component getTableCellEditorComponent - ( - JTable table, - Object value, - boolean isSelected, - int row, - int column - ) - { - Component comp = null; - - try - { - // Incoming object must support the DictionaryEntry interface. - dictEntry_ = (DictionaryEntry)value; - - // See if the DictionaryEntry has a custom editor. - if (dictEntry_.getEditor() != null) - { - currEditor_ = dictEntry_.getEditor(); - } - else - { - // This item does not have a custom editor so use the - // string-based default. - if (defaultEditor_ == null) - { - // Create on demand. - defaultEditor_ = - new DefaultCellEditor(new JTextField()); - } - currEditor_ = defaultEditor_; - } - - comp = currEditor_.getTableCellEditorComponent - ( - table, - value, - isSelected, - row, - column - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return comp; - } - - //-------------------------------------------------------------------------- - // CellEditor interface functions. - //-------------------------------------------------------------------------- - - public Object getCellEditorValue() - { - // Intercept the "value" object from the editor. - // Of class String for DefaultCellEditor (JTextField) class. - // May be null for other editors. - - try - { - Object objValue = currEditor_.getCellEditorValue(); - - // Update the DictionaryEntry object's value. - dictEntry_.updateValue(objValue); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - - // Return the DictionaryEntry object being edited. - // This is the value that gets sent to the model. - return dictEntry_; - } - - //-------------------------------------------------------------------------- - - public boolean stopCellEditing() - { - if (currEditor_ != null) - { - return currEditor_.stopCellEditing(); - } - return true; - } - - //-------------------------------------------------------------------------- - - public void cancelCellEditing() - { - if (currEditor_ != null) - { - currEditor_.cancelCellEditing(); - } - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(EventObject anEvent) - { - // For mouse events, only initiate the editing process is the user - // has double clicked. - //if (anEvent instanceof MouseEvent) - //{ - // MouseEvent evt = (MouseEvent)anEvent; - // return (evt.getID() - // == MouseEvent.MOUSE_PRESSED && evt.getClickCount()>= 2); - //} - return true; - } - - //-------------------------------------------------------------------------- - - public boolean shouldSelectCell(EventObject anEvent) - { - // Called at the start of the editing process. - if (currEditor_ != null) - { - return currEditor_.shouldSelectCell(anEvent); - } - return true; - } - - //-------------------------------------------------------------------------- - - public void addCellEditorListener(CellEditorListener l) - { - if (currEditor_ != null) - { - currEditor_.addCellEditorListener(l); - } - } - - //-------------------------------------------------------------------------- - - public void removeCellEditorListener(CellEditorListener l) - { - if (currEditor_ != null) - { - currEditor_.removeCellEditorListener(l); - } - - // Editing has finished. Reset the references. - currEditor_ = null; - dictEntry_ = null; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellRenderer.java deleted file mode 100644 index a5c327581b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCellRenderer.java +++ /dev/null @@ -1,139 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.JTable; -import javax.swing.table.*; -import java.awt.Component; - -import FoamX.App; - -public class DictionaryEntryCellRenderer - extends DefaultTableCellRenderer -{ - //-------------------------------------------------------------------------- - - protected java.awt.Font selectedFont_; - protected java.awt.Color selectedColor_; - - //-------------------------------------------------------------------------- - /** DictionaryEntryCellRenderer constructor. */ - public DictionaryEntryCellRenderer() - { - selectedFont_= new java.awt.Font("Dialog", java.awt.Font.BOLD, 10); - selectedColor_= new java.awt.Color(173, 255, 47); - } - - //-------------------------------------------------------------------------- - - public Component getTableCellRendererComponent - ( - JTable table, - Object value, - boolean isSelected, - boolean hasFocus, - int row, - int column - ) - { - Component comp = null; - - // Incoming object must support the DictionaryEntry interface. - DictionaryEntry dictEntry = (DictionaryEntry)value; - - // See if the DictionaryEntry has a custom renderer. - if (dictEntry.getRenderer() != null) - { - comp = - dictEntry.getRenderer().getTableCellRendererComponent - ( - table, - value, - isSelected, - hasFocus, - row, - column - ); - } - else - { - // This item does not have a custom renderer. Use the - // DictionaryEntry object - // to generate a string representation of the current value - // via the toString method. - comp = - super.getTableCellRendererComponent - ( - table, - value, - isSelected, - hasFocus, - row, - column - ); - } - - // If this entry is read-only, grey it out. - if (!dictEntry.isEditable()) - { - setForeground(java.awt.Color.gray); - } - else - { - setForeground(java.awt.Color.black); - } - -// // Currently selected entry -// if (dictEntry.isCurrent()) -// { -// //comp.setFont(selectedFont_); -// comp.setBackground(selectedColor_); -// } -// else -// { -// comp.setBackground(java.awt.Color.white); -// } - if (isSelected) - { - //comp.setFont(selectedFont_); - comp.setBackground(selectedColor_); - } - else - { - comp.setBackground(java.awt.Color.white); - } - - return comp; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundEditor.java deleted file mode 100644 index bd386b2b17..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundEditor.java +++ /dev/null @@ -1,297 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import java.awt.Component; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.TableCellEditor; -import java.util.EventObject; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.*; - -public class DictionaryEntryCompoundEditor - implements TableCellEditor -{ - //-------------------------------------------------------------------------- - - protected DictionaryEntryCompoundPanel panel_; - protected EventListenerList listenerList_; - protected boolean bAcceptEdit_; - transient protected ChangeEvent changeEvent_; - transient protected ActionEvent actionEvent_; - - //-------------------------------------------------------------------------- - /** DictionaryEntryCellEditor constructor. */ - public DictionaryEntryCompoundEditor() - { - panel_ = new DictionaryEntryCompoundPanel(); - listenerList_ = new EventListenerList(); - bAcceptEdit_ = false; - - // Subscribe to the edit button's action event so that we can forward - // the event to the action event listeners of this object. - panel_.EditButton().addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. Inform any interested - // parties. - if (bAcceptEdit_) fireEditActionEvent(); - bAcceptEdit_ = true; - } - } - ); - } - - //-------------------------------------------------------------------------- - //---- TableCellEditor Interface methods - //-------------------------------------------------------------------------- - /** Implementation of TableCellEditor interface's - * getTableCellEditorComponent method. - */ - public Component getTableCellEditorComponent - ( - JTable table, - Object value, - boolean isSelected, - int row, - int column - ) - { - try - { - // Incoming object must support the DictionaryEntry interface. - if (value instanceof DictionaryEntry) - { - DictionaryEntry dictEntry = (DictionaryEntry)value; - - // Set the panel text. - panel_.Label().setText(dictEntry.getEntryValueString()); - } - else - { - // Set the panel text. - panel_.Label().setText(value.toString()); - } - - // Make sure the label is rendered properly. - if (isSelected) - { - panel_.Label().setForeground(table.getSelectionForeground()); - panel_.Label().setBackground(table.getSelectionBackground()); - } - else - { - panel_.Label().setForeground(table.getForeground()); - panel_.Label().setBackground(table.getBackground()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return panel_; - } - - //-------------------------------------------------------------------------- - //---- CellEditor Interface Methods - //-------------------------------------------------------------------------- - - public Object getCellEditorValue() - { - return null; - } - - //-------------------------------------------------------------------------- - - public boolean stopCellEditing() - { - fireEditingStopped(); - return true; - } - - //-------------------------------------------------------------------------- - - public void cancelCellEditing() - { - fireEditingCanceled(); - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(EventObject anEvent) - { - // Always editable. - return true; - } - - //-------------------------------------------------------------------------- - - public boolean shouldSelectCell(EventObject anEvent) - { - // Called at the start of the editing process. - /* - if (anEvent instanceof MouseEvent) - { - MouseEvent mevt = (MouseEvent)anEvent; - if - ( - mevt.getID() == MouseEvent.MOUSE_PRESSED - && mevt.getClickCount()>= 2 - ) - { - bAcceptEdit_ = false; - } - } - */ - bAcceptEdit_ = true; - - // Make sure the panel is repainted. Don't know why - // but sometimes the panel is not rendererd properly - // despite the table being in edit mode!! - panel_.repaint(); - - return true; - } - - //-------------------------------------------------------------------------- - - public void addCellEditorListener(CellEditorListener l) - { - listenerList_.add(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCellEditorListener(CellEditorListener l) - { - listenerList_.remove(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditingStopped() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are - // interested in this event. - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingStopped - ( - changeEvent_ - ); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireEditingCanceled() - { - // Guaranteed to return a non-null array - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are - // interested in this event. - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingCanceled - ( - changeEvent_ - ); - } - } - } - - //-------------------------------------------------------------------------- - - public void addActionListener(ActionListener l) - { - listenerList_.add(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeActionListener(ActionListener l) - { - listenerList_.remove(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditActionEvent() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are - // interested in this event. - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == ActionListener.class) - { - // Lazily create the event: - if (actionEvent_ == null) - { - actionEvent_ = new ActionEvent - ( - this, - ActionEvent.ACTION_PERFORMED, - "" - ); - } - // Fire the event. - ((ActionListener)listeners[i+1]).actionPerformed(actionEvent_); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.form deleted file mode 100644 index e7ba0c0cda..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.form +++ /dev/null @@ -1,36 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.java deleted file mode 100644 index 9fc5180cad..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryCompoundPanel.java +++ /dev/null @@ -1,89 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.*; -import FoamX.App; - -public class DictionaryEntryCompoundPanel - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - /** Creates new form DictionaryEntryCompoundPanel */ - - public DictionaryEntryCompoundPanel() - { - initComponents(); - } - - //-------------------------------------------------------------------------- - - public JLabel Label() - { - return label; - } - public JButton EditButton() - { - return editButton; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - label = new javax.swing.JLabel(); - editButton = new javax.swing.JButton(); - - setLayout(new java.awt.BorderLayout()); - - label.setFont(new java.awt.Font("Dialog", 0, 10)); - label.setOpaque(true); - add(label, java.awt.BorderLayout.CENTER); - - editButton.setFont(new java.awt.Font("Dialog", 0, 10)); - editButton.setText("..."); - add(editButton, java.awt.BorderLayout.EAST); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JLabel label; - private javax.swing.JButton editButton; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryTableModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryTableModel.java deleted file mode 100644 index b4a7dd81c4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryEntryTableModel.java +++ /dev/null @@ -1,372 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import java.util.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; - -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; - -public class DictionaryEntryTableModel - extends AbstractTableModel - implements CompoundEntryListener -{ - //-------------------------------------------------------------------------- - - public static final int NAME_COLUMN_INDEX = 0; - public static final int VALUE_COLUMN_INDEX = 1; - - // Root DictionaryEntry object for this table. - protected DictionaryEntryCache rootEntry_; - - protected String dictionaryKey_; - - // List of DictionaryEntry objects (so can be extended by e.g. ListEditor) - protected java.util.List dictEntryList_; - - // Map of DictionaryEntry objects. - protected java.util.Hashtable dictEntryMap_; - protected EventListenerList listenerList_; - protected String[] columnNames_ = { "Name", "Value" }; - - //-------------------------------------------------------------------------- - /** DictionaryEntryTableModel default constructor for derived classes.. - */ - protected DictionaryEntryTableModel() - { - rootEntry_ = null; - dictionaryKey_ = ""; - dictEntryList_ = new Vector(10); - dictEntryMap_ = new Hashtable(); - listenerList_ = new EventListenerList(); - } - - //-------------------------------------------------------------------------- - /** - * DictionaryEntryTableModel constructor for compound types. - * @param compoundEntry Reference to the compound entry object. - */ - public DictionaryEntryTableModel(IDictionaryEntry compoundEntry) - { - // Default construction. - this(); - - try - { - // Store reference to DictionaryEntryCache for this compound entry. - rootEntry_ = DictionaryEntryCache.New(compoundEntry); - - // Default dictionary key. - dictionaryKey_ = rootEntry_.getTypeDescriptor().getName(); - - // Initialise event listener list. - listenerList_ = new EventListenerList(); - - // Create a DictionaryEntryCache object for each sub-entry. - DictionaryEntryCache[] subEntries = rootEntry_.getSubElements(); - - dictEntryList_ = new Vector(subEntries.length); - for (int i=0; i= 0; i -= 2) - { - if (listeners[i] == CompoundEntryListener.class) - { - return - ( - (CompoundEntryListener)listeners[i+1] - ).openSubDictionary(event); - } - } - } - else - { - App.printMessage - ( - "DictionaryEntryTableModel.fireOpenSubDictionaryEvent" - + "(CompoundEntryEvent evt)" - + " : cannot fire event" - ); - } - - return false; - } - - //-------------------------------------------------------------------------- - //--- CompoundEntryListener Interface Methods - //-------------------------------------------------------------------------- - - public boolean openSubDictionary(CompoundEntryEvent evt) - { - // Bounce the openSubDictionary event to any listeneres. - return fireOpenSubDictionaryEvent(evt); - } - - //-------------------------------------------------------------------------- - //--- Abstract AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public int getRowCount() - { - return dictEntryList_.size(); - } - - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return columnNames_.length; - } - - //-------------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - Object obj = null; - - try - { - // Check for valid row index. - if (rowIndex>= dictEntryList_.size()) - { - throw new Exception("Invalid row index"); - } - - // Get DictionaryEntry object for this row. - DictionaryEntry dictEntry = - (DictionaryEntry)dictEntryList_.get(rowIndex); - - if (columnIndex == NAME_COLUMN_INDEX) - { - // Return the DictionaryEntry display name. - obj = dictEntry.getEntryName(); - } - else - { - // Return the DictionaryEntry object for this entry. - obj = dictEntry; - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - - //-------------------------------------------------------------------------- - //--- Overriden AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return columnNames_[columnIndex]; - } - - //-------------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Value column is of type DictionaryEntry. - if (columnIndex == VALUE_COLUMN_INDEX) - { - return DictionaryEntry.class; - } - - // Name column is of type String. - return String.class; - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - boolean bEditable = false; - - try - { - if (columnIndex == VALUE_COLUMN_INDEX) - { - // Get DictionaryEntry object for this row. - DictionaryEntry dictEntry = - (DictionaryEntry)dictEntryList_.get(rowIndex); - - // Return the editable flag. - bEditable = dictEntry.isEditable(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bEditable; - } - - //-------------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - // Ignore any incoming DictionaryEntry objects. - fireTableCellUpdated(rowIndex, columnIndex); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryNameCellRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryNameCellRenderer.java deleted file mode 100644 index 964f241296..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/DictionaryNameCellRenderer.java +++ /dev/null @@ -1,93 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.JTable; -import javax.swing.table.*; -import java.awt.Component; - -import FoamX.App; - -public class DictionaryNameCellRenderer - extends DefaultTableCellRenderer -{ - //-------------------------------------------------------------------------- - - protected java.awt.Font selectedFont_; - protected java.awt.Color selectedColor_; - - //-------------------------------------------------------------------------- - /** DictionaryNameCellRenderer constructor. */ - public DictionaryNameCellRenderer() - { - selectedFont_= new java.awt.Font("Dialog", java.awt.Font.BOLD, 10); - selectedColor_= new java.awt.Color(173, 255, 47); - } - - //-------------------------------------------------------------------------- - - public Component getTableCellRendererComponent - ( - JTable table, - Object value, - boolean isSelected, - boolean hasFocus, - int row, - int column - ) - { - Component comp = super.getTableCellRendererComponent - ( - table, - value, - isSelected, - hasFocus, - row, - column - ); - - if (isSelected) - { - //comp.setFont(selectedFont_); - comp.setBackground(selectedColor_); - } - else - { - comp.setBackground(java.awt.Color.white); - } - - - return comp; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/BooleanCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/BooleanCache.java deleted file mode 100644 index a237abde87..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/BooleanCache.java +++ /dev/null @@ -1,158 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class BooleanCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** BooleanCache constructor. */ - public BooleanCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** BooleanCache constructor. */ - public BooleanCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** BooleanCache constructor. */ - public BooleanCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Use a true/false combo box. - JComboBox combo = new JComboBox(); - combo.setFont(new java.awt.Font("Dialog", 0, 10)); - combo.addItem("True"); - combo.addItem("False"); - editor_ = new DefaultCellEditor(combo); - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - - // Incoming value object is a string. - String strValue = (String)value; - - try - { - if (value != null) - { - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (NumberFormatException ex) - { - App.handleAllExceptions - ( - new FoamXException - ( - "Number " + strValue + " not of correct type." - ) - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CaseNameCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CaseNameCache.java deleted file mode 100644 index 41b78bc30d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CaseNameCache.java +++ /dev/null @@ -1,136 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.CaseManagement.CaseChooserDlg; -import FoamX.CaseManagement.CaseBrowserPanel; - -public class CaseNameCache - extends RootAndCaseCache -{ - - //-------------------------------------------------------------------------- - /** CaseNameCache constructor. */ - public CaseNameCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** CaseNameCache constructor. */ - public CaseNameCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** CaseNameCache constructor. */ - public CaseNameCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Pop up case chooser panel - CaseChooserDlg caseChooser = - new CaseChooserDlg - ( - App.getRootFrame(), - CaseBrowserPanel.SELECT_CASE_MODE - ); - caseChooser.setVisible(true); - - if - ( - (caseChooser.getCaseRoot() != null) - && (caseChooser.getCaseName() != null) - && (caseChooser.getCaseBrowser() != null) - ) - { - updateValue(caseChooser.getCaseName()); - - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CharCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CharCache.java deleted file mode 100644 index 9e529e1657..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CharCache.java +++ /dev/null @@ -1,142 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class CharCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** CharCache constructor. */ - public CharCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** CharCache constructor. */ - public CharCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** CharCache constructor. */ - public CharCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CompoundCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CompoundCache.java deleted file mode 100644 index d663fbeae7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/CompoundCache.java +++ /dev/null @@ -1,286 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.SelectionEditor; -import FoamX.Editors.DimensionSetEditor; -import FoamX.Editors.ListEditor; -import FoamX.Editors.FixedListEditor; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.Editors.DictionaryEntryEditor.*; - -public class CompoundCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** CompoundCache constructor. */ - public CompoundCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - - if (dictEntry_.subElements().length == 0) - { - editable_ = false; - } - } - - //-------------------------------------------------------------------------- - /** CompoundCache constructor. */ - public CompoundCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** CompoundCache constructor. */ - public CompoundCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Initialise if required. - if (displayValue_.length() == 0) - { - displayValue_ = getCompoundDisplayString(3); - } - return displayValue_; - } - - //-------------------------------------------------------------------------- - /** - * Variant of toString which appends compound entries. - * Used to convert argument dictionary to argument string. - */ - public void toStringRaw(Vector argListVector) - { - getCompoundValueString(argListVector); - } - - //-------------------------------------------------------------------------- - - // Update cached value from IDictionaryEntry - protected void getEntryValue() - {} - - //-------------------------------------------------------------------------- - - // Update IDictionaryEntry value from cached value - protected void setEntryValue() - {} - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Use compound editor. - DictionaryEntryCompoundEditor compEdit = - new DictionaryEntryCompoundEditor(); - - // Subscribe to the edit button's action event so - // that we can invoke the appropriate edit action for - // the compound types. - compEdit.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed - ( - java.awt.event.ActionEvent evt - ) - { - editButtonActionPerformed(evt); - } - } - ); - editor_ = compEdit; - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Show modal compound editor dialog. - CompoundEditor editor = new CompoundEditor - ( - App.getRootFrame(), - dictEntry_ - ); - editor.setTitle(displayName_); - - editor.setVisible(true); - // Update the cached display string. - displayValue_ = getCompoundDisplayString(3); - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - /* render compound by adding first maxEntries values, separated by ',' */ - protected String getCompoundDisplayString(int maxEntries) - { - String vecString = ""; - - try - { - // Loop over sub-entries and generate a string representation of - // the vector. - IDictionaryEntry[] subEntries = dictEntry_.subElements(); - for (int i=0; i = 0; i -= 2) - { - if (listeners[i] == CompoundEntryListener.class) - { - return - ( - (CompoundEntryListener)listeners[i+1]) - .openSubDictionary(event); - } - } - - return false; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/DictionaryEntryCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/DictionaryEntryCache.java deleted file mode 100644 index f2d08e3b98..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/DictionaryEntryCache.java +++ /dev/null @@ -1,595 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.SelectionEditor; -import FoamX.Editors.DimensionSetEditor; -import FoamX.Editors.ListEditor; -import FoamX.Editors.FixedListEditor; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.SelectionEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryListener; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryEvent; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; - -public class DictionaryEntryCache - implements DictionaryEntry -{ - //-------------------------------------------------------------------------- - - // Reference to the dict entry object for this item. - protected IDictionaryEntry dictEntry_; - - // Cached type descriptor for this entry. - protected TypeDescriptorCache typeDescriptor_; - // Cached value - protected FoamXAny value_; - // Cached type of type descriptor - protected int typeValue_; - - // Name of this entry. Defaults to the display name specified by the - // type descriptor. - protected String displayName_; - - // Cached String representation of the current value of this entry. - protected String displayValue_; - - protected boolean editable_; - protected boolean current_; - protected boolean modified_; - - // Custom renderer object. - protected TableCellRenderer renderer_; - - // Custom editor object. - protected TableCellEditor editor_; - - // Listeners for open sub dictionary events - protected EventListenerList listenerList_; - - - //-------------------------------------------------------------------------- - - /** DictionaryEntryCache constructor. */ - public DictionaryEntryCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - try - { - // Store IDictionaryEntry reference. - dictEntry_ = dictEntry; - - // Get TypeDescriptor information. - typeDescriptor_ = typeDescriptor; - FoamXType type = typeDescriptor_.getType(); - typeValue_ = type.value(); - displayName_ = typeDescriptor_.getDisplayName(); - displayValue_ = ""; - - // Make sure that we have a name to display. - if (displayName_ == null || displayName_.length() == 0) - { - displayName_ = typeDescriptor_.getName(); - } - - // Initialise event listener list. - listenerList_ = new EventListenerList(); - - // Get current value if we have one. Need a value before we - // initialise the Renderer and Editor objects. - getEntryValue(); - - // Editable if typeDescriptor says so - editable_ = typeDescriptor_.isEditable(); - - // Now, initialise rest of member variables. - current_ = false; - modified_ = dictEntry.modified(); - - // Initialise the renderer and editor for this entry. - initialiseRenderer(); - initialiseEditor(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** DictionaryEntryCache constructor. */ - public DictionaryEntryCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** DictionaryEntryCache constructor. */ - public DictionaryEntryCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - /** DictionaryEntryCache factory. */ - static public DictionaryEntryCache New - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - try - { - int typeValue = typeDescriptor.getType().value(); - - switch (typeValue) - { - case FoamXType._Type_Boolean: - return new BooleanCache(dictEntry, typeDescriptor); - case FoamXType._Type_Label: - return new LabelCache(dictEntry, typeDescriptor); - case FoamXType._Type_Scalar: - return new ScalarCache(dictEntry, typeDescriptor); - case FoamXType._Type_Char: - return new CharCache(dictEntry, typeDescriptor); - case FoamXType._Type_Word: - return new WordCache(dictEntry, typeDescriptor); - case FoamXType._Type_String: - return new StringCache(dictEntry, typeDescriptor); - - case FoamXType._Type_RootDir: - return new RootDirCache(dictEntry, typeDescriptor); - case FoamXType._Type_RootAndCase: - return new RootAndCaseCache(dictEntry, typeDescriptor); - case FoamXType._Type_CaseName: - return new CaseNameCache(dictEntry, typeDescriptor); - case FoamXType._Type_HostName: - return new HostNameCache(dictEntry, typeDescriptor); - case FoamXType._Type_File: - return new StringCache(dictEntry, typeDescriptor); - case FoamXType._Type_Directory: - return new StringCache(dictEntry, typeDescriptor); - case FoamXType._Type_Time: - return new TimeCache(dictEntry, typeDescriptor); - - case FoamXType._Type_DimensionSet: - return new DimensionSetCache(dictEntry, typeDescriptor); - case FoamXType._Type_FixedList: - return new FixedListCache(dictEntry, typeDescriptor); - case FoamXType._Type_List: - return new ListCache(dictEntry, typeDescriptor); - case FoamXType._Type_Selection: - if (dictEntry.subElements().length == 1) - { - // Selection with one entry. - App.printMessage - ( - App.DEBUGLEVEL_DEBUG, - "Skipping single element Selection " + dictEntry - ); - - return New - ( - dictEntry.subElements()[0], - new TypeDescriptorCache - ( - typeDescriptor.TypeDescriptor().subTypes()[0], - false - ) - ); - } - else - { - return new SelectionCache(dictEntry, typeDescriptor); - } - case FoamXType._Type_Dictionary: - return new DictionaryCache(dictEntry, typeDescriptor); - case FoamXType._Type_Compound: - return new CompoundCache(dictEntry, typeDescriptor); - default: - throw new Exception - ( - "Invalid type in DictionaryEntryCache::New." - ); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - return null; - } - - //-------------------------------------------------------------------------- - /** DictionaryEntryCache factory. */ - static public DictionaryEntryCache New(IDictionaryEntry dictEntry) - { - // Invoke the other factory. - return New - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** DictionaryEntryCache constructor. */ - static public DictionaryEntryCache New - ( - IDictionaryEntry dictEntry, - String displayName - ) - { - // Invoke the other constructor. - DictionaryEntryCache entry = New(dictEntry); - - // Use the given display name. - entry.setEntryName(displayName); - - return entry; - } - - //-------------------------------------------------------------------------- - - public IDictionaryEntry getDictEntry() - { - return dictEntry_; - } - public TypeDescriptorCache getTypeDescriptor() - { - return typeDescriptor_; - } - public void setEditable(boolean editable) - { - editable_ = editable; - } - public void setCurrent(boolean current) - { - current_ = current; - } - public boolean isModified() - { - return modified_; - } - - public void setEntryName(String displayName) - { - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - /** - * Get array of sub elements - */ - public DictionaryEntryCache[] getSubElements() - { - IDictionaryEntry[] subEntries = dictEntry_.subElements(); - - DictionaryEntryCache[] cachedElems = - new DictionaryEntryCache[subEntries.length]; - - for (int i=0; i 0) - { - String[] valueList = typeDescriptor_.getValueList(); - JComboBox combo = new JComboBox(); - combo.setFont(new java.awt.Font("Dialog", 0, 10)); - for (int i=0; i 0) - { - argString += " "; - } - argString += (String)subArgs.elementAt(i); - } - - argString += ")"; - - // Add as single argument - argListVector.addElement(argString); - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Show modal vector space editor dialog. - FixedListEditor editor = new FixedListEditor - ( - App.getRootFrame(), - dictEntry_, - typeDescriptor_ - ); - editor.setTitle(displayName_); - editor.setVisible(true); - // Update the cached display string. - displayValue_ = getCompoundDisplayString(3); - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/HostNameCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/HostNameCache.java deleted file mode 100644 index 90f68f4353..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/HostNameCache.java +++ /dev/null @@ -1,195 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.CaseManagement.HostChooserDlg; - -public class HostNameCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** HostNameCache constructor. */ - public HostNameCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** HostNameCache constructor. */ - public HostNameCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** HostNameCache constructor. */ - public HostNameCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Use compound editor. - DictionaryEntryCompoundEditor compEdit = - new DictionaryEntryCompoundEditor(); - - // Subscribe to the edit button's action event so - // that we can invoke the appropriate edit action for - // the compound types. - compEdit.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed - ( - java.awt.event.ActionEvent evt - ) - { - editButtonActionPerformed(evt); - } - } - ); - editor_ = compEdit; - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Pop up host chooser panel - HostChooserDlg hostChooser = - new HostChooserDlg(App.getRootFrame()); - hostChooser.setVisible(true); - - if (hostChooser.getHostName() != null) - { - // Update the cached display string. - displayValue_ = hostChooser.getHostName(); - - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/LabelCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/LabelCache.java deleted file mode 100644 index 42adf800d0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/LabelCache.java +++ /dev/null @@ -1,193 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class LabelCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** LabelCache constructor. */ - public LabelCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** LabelCache constructor. */ - public LabelCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** LabelCache constructor. */ - public LabelCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue = ""; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Check against type min and max if available - FoamXAny minVal = typeDescriptor_.getMinValue(); - FoamXAny maxVal = typeDescriptor_.getMaxValue(); - if - ( - ( - minVal.getAny().type.value() - == FoamXType._Type_Label - ) - && - ( - maxVal.getAny().type.value() - == FoamXType._Type_Label - ) - ) - { - int intValue = Integer.parseInt(strValue); - int minValue = Integer.parseInt(minVal.toString()); - int maxValue = Integer.parseInt(maxVal.toString()); - - if ((intValue < minValue) || (intValue > maxValue)) - { - throw new FoamXException - ( - "Label " + intValue + " out of range [" - + minValue + " , " + maxValue + "]" - ); - } - } - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (NumberFormatException ex) - { - App.handleAllExceptions - ( - new FoamXException - ( - "Number " + strValue + " not of correct type." - ) - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ListCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ListCache.java deleted file mode 100644 index ec0560a822..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ListCache.java +++ /dev/null @@ -1,273 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.SelectionEditor; -import FoamX.Editors.DimensionSetEditor; -import FoamX.Editors.ListEditor; -import FoamX.Editors.FixedListEditor; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.SelectionEntryCellRenderer; - -public class ListCache - extends CompoundCache -// implements DictionaryEntry -{ - //-------------------------------------------------------------------------- - - // Length of list before confirming edit. - public static final int MAX_EDIT_LENGTH = 100; - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** ListCache constructor. */ - public ListCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - - // Reset editable. CompoundCache set it to false for zero element lists. - editable_ = typeDescriptor_.isEditable(); - } - - //-------------------------------------------------------------------------- - /** ListCache constructor. */ - public ListCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** ListCache constructor. */ - public ListCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Initialise if required. - if (displayValue_.length() == 0) - { - displayValue_ = "List..."; - } - - return displayValue_; - } - - //-------------------------------------------------------------------------- - /** - * Variant of toString which appends compound entries. - * Used to convert command line arguments dictionary to argument string. - * Note that now a List will become one argument string. - */ - public void toStringRaw(Vector argListVector) - { - // Collect arguments into vector (only so we can reuse - // CompoundCache.toStringRaw functionality) - Vector subArgs = new Vector(); - super.toStringRaw(subArgs); - - // Compose single string out of arguments. Enclose in brackets. - - String argString = "("; - - for (int i = 0; i < subArgs.size(); i++) - { - if (i > 0) - { - argString += " "; - } - argString += (String)subArgs.elementAt(i); - } - - argString += ")"; - - // Add as single argument - argListVector.addElement(argString); - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Check n elems and ask before editing. - boolean doEdit = true; - - int nSubElements = dictEntry_.nSubElements(); - if (nSubElements > MAX_EDIT_LENGTH) - { - if - ( - JOptionPane.showConfirmDialog - ( - App.getRootFrame(), - "List is large (" + nSubElements - + " elements).\n" - + "Are you sure you want to edit it?", - "Confirm Edit List", - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE - ) - != - JOptionPane.OK_OPTION - ) - { - doEdit = false; - } - } - - // Start editing - if (doEdit) - { - // Show modal list editor dialog. - ListEditor editor = new ListEditor - ( - App.getRootFrame(), - dictEntry_ - ); - editor.setTitle(displayName_); - - editor.setVisible(true); - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public DictionaryEntryCache addListElement() - { - DictionaryEntryCache listElement = null; - - try - { - // Add a new element to the list. - IDictionaryEntryHolder listElementHolder = - new IDictionaryEntryHolder(); - dictEntry_.addElement(listElementHolder); - - // If successful, create a new DictionaryEntryCache wrapper - // object and return it. - listElement = DictionaryEntryCache.New(listElementHolder.value); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return listElement; - } - - //-------------------------------------------------------------------------- - - public boolean removeElement(DictionaryEntryCache listElement) - { - boolean bRet = false; - - try - { - // Remove the specified sub-type. - dictEntry_.removeElement(listElement.getDictEntry()); - - // Return success. - bRet = true; - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - bRet = false; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - bRet = false; - } - - return bRet; - } - - - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootAndCaseCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootAndCaseCache.java deleted file mode 100644 index 816ece6e61..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootAndCaseCache.java +++ /dev/null @@ -1,267 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.CaseManagement.CaseChooserDlg; -import FoamX.CaseManagement.CaseBrowserPanel; - -public class RootAndCaseCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** RootAndCaseCache constructor. */ - public RootAndCaseCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** RootAndCaseCache constructor. */ - public RootAndCaseCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** RootAndCaseCache constructor. */ - public RootAndCaseCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - - /** - * Display as , - */ - public String toString() - { - try - { - displayValue_ = value_.toString(); - - if (displayValue_.length() != 0) - { - int lastSlash = displayValue_.lastIndexOf('/'); - - if (lastSlash == -1) - { - throw new FoamXException - ( - "RootAndCase " + displayValue_ + " cannot be split " - + " into root directory and case name" - ); - - } - displayValue_ = - displayValue_.substring(lastSlash+1) - + ',' - + displayValue_.substring(0, lastSlash); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return displayValue_; - } - - //-------------------------------------------------------------------------- - /** - * For argument strings rootAndCase becomes space separated - */ - public void toStringRaw(Vector argListVector) - { - try - { - String rootAndCase = value_.toString(); - - if (rootAndCase.length() != 0) - { - argListVector.addElement("-case"); - argListVector.addElement(rootAndCase); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Use compound editor. - DictionaryEntryCompoundEditor compEdit = - new DictionaryEntryCompoundEditor(); - - // Subscribe to the edit button's action event so - // that we can invoke the appropriate edit action for - // the compound types. - compEdit.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed - ( - java.awt.event.ActionEvent evt - ) - { - editButtonActionPerformed(evt); - } - } - ); - editor_ = compEdit; - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Pop up case chooser panel - CaseChooserDlg caseChooser = - new CaseChooserDlg - ( - App.getRootFrame(), - CaseBrowserPanel.SELECT_CASE_MODE - ); - caseChooser.setVisible(true); - - if - ( - (caseChooser.getCaseRoot() != null) - && (caseChooser.getCaseName() != null) - && (caseChooser.getCaseBrowser() != null) - ) - { - updateValue - ( - caseChooser.getCaseRoot() - + '/' - + caseChooser.getCaseName() - ); - - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootDirCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootDirCache.java deleted file mode 100644 index 7a67be983e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/RootDirCache.java +++ /dev/null @@ -1,203 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.CaseManagement.CaseChooserDlg; -import FoamX.CaseManagement.CaseBrowserPanel; - -public class RootDirCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** RootDirCache constructor. */ - public RootDirCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** RootDirCache constructor. */ - public RootDirCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** RootDirCache constructor. */ - public RootDirCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Use compound editor. - DictionaryEntryCompoundEditor compEdit = - new DictionaryEntryCompoundEditor(); - - // Subscribe to the edit button's action event so - // that we can invoke the appropriate edit action for - // the compound types. - compEdit.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed - ( - java.awt.event.ActionEvent evt - ) - { - editButtonActionPerformed(evt); - } - } - ); - editor_ = compEdit; - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Pop up case chooser panel - CaseChooserDlg caseChooser = - new CaseChooserDlg - ( - App.getRootFrame(), - CaseBrowserPanel.SELECT_ROOT_MODE - ); - caseChooser.setVisible(true); - - if - ( - (caseChooser.getCaseRoot() != null) - && (caseChooser.getCaseBrowser() != null) - ) - { - updateValue(caseChooser.getCaseRoot()); - - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ScalarCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ScalarCache.java deleted file mode 100644 index a4913b6509..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/ScalarCache.java +++ /dev/null @@ -1,199 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class ScalarCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** ScalarCache constructor. */ - public ScalarCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** ScalarCache constructor. */ - public ScalarCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** ScalarCache constructor. */ - public ScalarCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue = ""; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Check against type min and max if available - FoamXAny minVal = typeDescriptor_.getMinValue(); - FoamXAny maxVal = typeDescriptor_.getMaxValue(); - if - ( - ( - minVal.getAny().type.value() - == FoamXType._Type_Scalar - ) - && ( - maxVal.getAny().type.value() - == FoamXType._Type_Scalar - ) - ) - { - double doubleValue = - Double.valueOf(strValue).doubleValue(); - double minValue = - Double.valueOf(minVal.toString()).doubleValue(); - double maxValue = - Double.valueOf(maxVal.toString()).doubleValue(); - - if - ( - (doubleValue < minValue) - || (doubleValue > maxValue) - ) - { - throw new FoamXException - ( - "Scalar " + doubleValue + " out of range [" - + minValue + " , " + maxValue + "]" - ); - } - } - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (NumberFormatException ex) - { - App.handleAllExceptions - ( - new FoamXException - ( - "Number " + strValue + " not of correct type." - ) - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/SelectionCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/SelectionCache.java deleted file mode 100644 index c50179685e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/SelectionCache.java +++ /dev/null @@ -1,195 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.SelectionEditor; -import FoamX.Editors.DimensionSetEditor; -import FoamX.Editors.ListEditor; -import FoamX.Editors.FixedListEditor; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; -import FoamX.Editors.DictionaryEntryEditor.SelectionEntryCellRenderer; - -public class SelectionCache - extends CompoundCache -// implements DictionaryEntry -{ - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** SelectionCache constructor. */ - public SelectionCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** SelectionCache constructor. */ - public SelectionCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** SelectionCache constructor. */ - public SelectionCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Initialise if required. - if (displayValue_.length() == 0) - { - displayValue_ = getSelectionDisplayString() + " ..."; - } - return displayValue_; - } - - //-------------------------------------------------------------------------- - - public void toStringRaw(Vector argListVector) - { - getSelectionValueString(argListVector); - } - - //-------------------------------------------------------------------------- - - protected void editButtonActionPerformed(java.awt.event.ActionEvent evt) - { - // The edit button has been pressed. The user wants to edit this entry. - try - { - // Show modal selection editor dialog. - // Differs from compoundEditor only in tableModel used - SelectionEditor editor = new SelectionEditor - ( - App.getRootFrame(), - dictEntry_ - ); - editor.setTitle(displayName_); - - editor.setVisible(true); - // Update the cached display string. - displayValue_ = getSelectionDisplayString(); - // Signal that editing has stopped. - editor_.stopCellEditing(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - //-------------------------------------------------------------------------- - - /* render selection by returning name of selected entry */ - protected String getSelectionDisplayString() - { - String renderedValue = ""; - - try - { - int i = dictEntry_.selection(); - - IDictionaryEntry subEntry = dictEntry_.subElements()[i]; - renderedValue = subEntry.typeDescriptor().name(); - subEntry = null; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - return renderedValue; - } - - //-------------------------------------------------------------------------- - - /* render selection by adding value to vector */ - protected void getSelectionValueString(Vector argListVector) - { - try - { - int i = dictEntry_.selection(); - - DictionaryEntryCache dictEntryCache = - DictionaryEntryCache.New(dictEntry_.subElements()[i]); - - dictEntryCache.toStringRaw(argListVector); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/StringCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/StringCache.java deleted file mode 100644 index 39ddbfffe7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/StringCache.java +++ /dev/null @@ -1,153 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class StringCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** StringCache constructor. */ - public StringCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** StringCache constructor. */ - public StringCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** StringCache constructor. */ - public StringCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/TimeCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/TimeCache.java deleted file mode 100644 index 95ca3011c1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/TimeCache.java +++ /dev/null @@ -1,145 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class TimeCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** TimeCache constructor. */ - public TimeCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** TimeCache constructor. */ - public TimeCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** TimeCache constructor. */ - public TimeCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/WordCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/WordCache.java deleted file mode 100644 index 9444e6252b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/EntryCache/WordCache.java +++ /dev/null @@ -1,153 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor.EntryCache; - -import java.text.*; -import java.awt.Frame; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamXServer.CaseServer.*; -import FoamXServer.IDictionaryEntry; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class WordCache - extends DictionaryEntryCache -// implements DictionaryEntry -{ - - //-------------------------------------------------------------------------- - /** WordCache constructor. */ - public WordCache - ( - IDictionaryEntry dictEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(dictEntry, typeDescriptor); - } - - //-------------------------------------------------------------------------- - /** WordCache constructor. */ - public WordCache(IDictionaryEntry dictEntry) - { - // Invoke the other constructor. - this - ( - dictEntry, - new TypeDescriptorCache(dictEntry.typeDescriptor(), false) - ); - } - - //-------------------------------------------------------------------------- - /** WordCache constructor. */ - public WordCache(IDictionaryEntry dictEntry, String displayName) - { - // Invoke the other constructor. - this(dictEntry); - - // Use the given display name. - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - protected void initialiseEditor() - { - // Give dictionaryEntryCache opportunity to install combo editor - super.initialiseEditor(); - - if (editor_ == null) - { - // No custom editor - use string-based - // DefaultCellEditor. - } - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - * Will not be called by editors for compound types since e.g. - * dictionary elements cannot be added/removed in FoamX. - */ - public boolean updateValue(Object value) - { - boolean bRet = false; - String strValue; - - try - { - if (value != null) - { - // Incoming value object is a string. - strValue = (String)value; - - // Update the Any object. - value_.setValue(strValue); - // Send the Any object to the dictionary entry object. - setEntryValue(); - - bRet = true; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bRet; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionEntryCellRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionEntryCellRenderer.java deleted file mode 100644 index dbf2e71c58..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionEntryCellRenderer.java +++ /dev/null @@ -1,100 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors.DictionaryEntryEditor; - -import javax.swing.JTable; -import javax.swing.table.*; -import java.awt.Component; - -import FoamX.App; - -public class SelectionEntryCellRenderer - extends DictionaryEntryCellRenderer -{ - //-------------------------------------------------------------------------- - - protected java.awt.Color selectedColor_; - - //-------------------------------------------------------------------------- - /** SelectionEntryCellRenderer constructor. */ - public SelectionEntryCellRenderer() - { - selectedColor_= new java.awt.Color(173, 255, 47); - } - - //-------------------------------------------------------------------------- - - public Component getTableCellRendererComponent - ( - JTable table, - Object value, - boolean isSelected, - boolean hasFocus, - int row, - int column - ) - { - Component comp = null; - - try - { - // Use DictionaryEntryCellRenderer(handles read-only) - comp = super.getTableCellRendererComponent - ( - table, - value, - isSelected, - hasFocus, - row, - column - ); - - if (isSelected) - { - //comp.setFont(selectedFont_); - comp.setBackground(selectedColor_); - } - else - { - comp.setBackground(java.awt.Color.white); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return comp; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionTableModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionTableModel.java deleted file mode 100644 index 4c466fc8bf..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/SelectionTableModel.java +++ /dev/null @@ -1,402 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.DictionaryEntryEditor; - -import java.util.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -public class SelectionTableModel - extends AbstractTableModel - implements CompoundEntryListener -{ - //-------------------------------------------------------------------------- - - public static final int NAME_COLUMN_INDEX = 0; - public static final int VALUE_COLUMN_INDEX = 1; - - // Root DictionaryEntry object for this table. - protected DictionaryEntryCache rootEntry_; - protected String dictionaryKey_; - - // List of DictionaryEntry objects. - protected java.util.List dictEntryList_; - - // Map of DictionaryEntry objects. - protected java.util.Hashtable dictEntryMap_; - protected EventListenerList listenerList_; - protected String[] columnNames_ = { "Name", "Value"}; - - //-------------------------------------------------------------------------- - /** SelectionTableModel default constructor for derived classes.. - */ - protected SelectionTableModel() - { - try - { - rootEntry_ = null; - dictionaryKey_ = ""; - dictEntryList_ = new Vector(10); - dictEntryMap_ = new Hashtable(); - listenerList_ = new EventListenerList(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** - * SelectionTableModel constructor for compound types. - * @param compoundEntry Reference to the compound entry object. - */ - public SelectionTableModel(IDictionaryEntry compoundEntry) - { - // Default construction. - this(); - - try - { - // Store reference to IDictionaryEntry for this compound entry. - rootEntry_ = DictionaryEntryCache.New(compoundEntry); - // Default dictionary key. - dictionaryKey_ = rootEntry_.getTypeDescriptor().getName(); - - // Initialise event listener list. - listenerList_ = new EventListenerList(); - - // Create a DictionaryEntryCache object for each sub-entry. - IDictionaryEntry[] subEntries = compoundEntry.subElements(); - - dictEntryList_ = new Vector(subEntries.length); - for (int i=0; i = 0; i -= 2) - { - if (listeners[i] == CompoundEntryListener.class) - { - return - ( - (CompoundEntryListener)listeners[i+1] - ).openSubDictionary(event); - } - } - } - else - { - App.printMessage - ( - "SelectionTableModel.fireOpenSubDictionaryEvent" - + "(CompoundEntryEvent evt)" - + " : cannot fire event" - ); - } - - return false; - } - - //-------------------------------------------------------------------------- - //--- CompoundEntryListener Interface Methods - //-------------------------------------------------------------------------- - - public boolean openSubDictionary(CompoundEntryEvent evt) - { - // Bounce the openSubDictionary event to any listeners. - return fireOpenSubDictionaryEvent(evt); - } - - //-------------------------------------------------------------------------- - //--- Abstract AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public int getRowCount() - { - return dictEntryList_.size(); - } - - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return columnNames_.length; - } - - //-------------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - Object obj = null; - - try - { - // Check for valid row index. - if (rowIndex>= dictEntryList_.size()) - { - throw new Exception("Invalid row index"); - } - - // Get DictionaryEntry object for this row. - DictionaryEntryCache dictEntry = - (DictionaryEntryCache)dictEntryList_.get(rowIndex); - - if (columnIndex == NAME_COLUMN_INDEX) - { - // Return the DictionaryEntry display name. - obj = dictEntry.getEntryName(); - } - else if (columnIndex == VALUE_COLUMN_INDEX) - { - obj = dictEntry; - } - else - { - throw new Exception("Invalid column index"); - } - - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - - //-------------------------------------------------------------------------- - //--- Overriden AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return columnNames_[columnIndex]; - } - - //-------------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Render according to value of row 0 ( so 0=string, 1=bool) - return getValueAt(0, columnIndex).getClass(); - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - boolean bEditable = false; - - try - { - if (columnIndex == VALUE_COLUMN_INDEX) - { - // Get DictionaryEntry object for this row. - DictionaryEntry dictEntry = - (DictionaryEntry)dictEntryList_.get(rowIndex); - - // Return the editable flag. - bEditable = dictEntry.isEditable(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return bEditable; - } - - //-------------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - try - { - if (columnIndex == NAME_COLUMN_INDEX) - { - } - else if (columnIndex == VALUE_COLUMN_INDEX) - { - // No need to change current selection here - // (Current-selection set by selection changes, not by editing) - - // Ignore any incoming DictionaryEntry objects. - fireTableCellUpdated(rowIndex, columnIndex); - } - else - { - throw new Exception("Invalid column index"); - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/filesystem.attributes deleted file mode 100644 index b7b1a00ea8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DictionaryEntryEditor/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.form deleted file mode 100644 index 5c6e0bd002..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.form +++ /dev/null @@ -1,104 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.java deleted file mode 100644 index f9d053aefe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/DimensionSetEditor.java +++ /dev/null @@ -1,324 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors; - -import java.awt.*; -import javax.swing.*; -import javax.swing.event.*; -import java.text.*; - -import FoamX.App; -import FoamXServer.DimensionSet; -import FoamXServer.DimensionSetHelper; -import FoamXServer.IDictionaryEntry; - -public class DimensionSetEditor - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - protected static final int MASS = 0; - protected static final int LENGTH = 1; - protected static final int TIME = 2; - protected static final int TEMPERATURE = 3; - protected static final int MOLES = 4; - protected static final int CURRENT = 5; - protected static final int LUMINOUSINTENSITY = 6; - - private javax.swing.JLabel[] labels_ = new javax.swing.JLabel[7]; - private javax.swing.JTextField[] textfields_ = new javax.swing.JTextField[7]; - private IDictionaryEntry entry_; - private DimensionSet dimensionSet_; - - //-------------------------------------------------------------------------- - /** Constructor for DimensionSetEditor given a non-compound dictionary entry. */ - - public DimensionSetEditor(java.awt.Frame parent, IDictionaryEntry entry) - { - - super(parent, "DimensionSet Editor", true); // Modal. - - // Get the dimension set values from the entry. - entry_ = entry; - dimensionSet_ = DimensionSetHelper.extract(entry_.value().value); - - // Common initialisation. - initialise(); - - // Set default dialog position to centre of parent frame. - if (parent != null) - { - setLocation(parent.getLocation().x + (parent.getSize().width - getSize().width)/2, - parent.getLocation().y + (parent.getSize().height - getSize().height)/2); - } - else - { - Dimension screen = getToolkit().getScreenSize(); - setLocation((screen.getSize().width - getSize().width)/2, - (screen.getSize().height - getSize().height)/2); - } - } - - //-------------------------------------------------------------------------- - - public DimensionSet getDimensionSet() - { - return dimensionSet_; - } - - //-------------------------------------------------------------------------- - /** Constructor for DimensionSetEditor given a DimensionSet. */ - - public DimensionSetEditor(java.awt.Frame parent, DimensionSet dimensionSet) - { - super(parent, "DimensionSet Editor", true); - - dimensionSet_ = dimensionSet; - - // Common initialisation. - initialise(); - - // Set default dialog position to centre of parent frame. - if (parent != null) - { - setLocation(parent.getLocation().x + (parent.getSize().width - getSize().width)/2, - parent.getLocation().y + (parent.getSize().height - getSize().height)/2); - } - else - { - Dimension screen = getToolkit().getScreenSize(); - setLocation((screen.getSize().width - getSize().width)/2, - (screen.getSize().height - getSize().height)/2); - } - } - - //-------------------------------------------------------------------------- - /** Common initialisation. */ - public void initialise() - { - initComponents(); - - // Construct Format object. - DecimalFormat format = new DecimalFormat(); - format.setGroupingUsed(false); - format.setMaximumFractionDigits(6); - - // Initialise the dimension edit controls. - labels_[0] = new javax.swing.JLabel("Mass"); - labels_[1] = new javax.swing.JLabel("Length"); - labels_[2] = new javax.swing.JLabel("Time"); - labels_[3] = new javax.swing.JLabel("Temperature"); - labels_[4] = new javax.swing.JLabel("Moles"); - labels_[5] = new javax.swing.JLabel("Current"); - labels_[6] = new javax.swing.JLabel("Luminous Intensity"); - - textfields_[MASS] = new javax.swing.JTextField(); - textfields_[MASS].setText(format.format(dimensionSet_.mass)); - textfields_[LENGTH] = new javax.swing.JTextField(); - textfields_[LENGTH].setText(format.format(dimensionSet_.length)); - textfields_[TIME] = new javax.swing.JTextField(); - textfields_[TIME].setText(format.format(dimensionSet_.time)); - textfields_[TEMPERATURE] = new javax.swing.JTextField(); - textfields_[TEMPERATURE].setText(format.format(dimensionSet_.temperature)); - textfields_[MOLES] = new javax.swing.JTextField(); - textfields_[MOLES].setText(format.format(dimensionSet_.moles)); - textfields_[CURRENT] = new javax.swing.JTextField(); - textfields_[CURRENT].setText(format.format(dimensionSet_.current)); - textfields_[LUMINOUSINTENSITY] = new javax.swing.JTextField(); - textfields_[LUMINOUSINTENSITY].setText(format.format(dimensionSet_.luminousIntensity)); - - for (int i=0; i <7; i++) - { - labels_[i].setFont(getFont()); - labels_[i].setForeground(java.awt.Color.black); - textfields_[i].setFont(getFont()); - dimensionPanel_.add(labels_[i]); - dimensionPanel_.add(textfields_[i]); - } - - // Resize dialog. - //pack(); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - buttonPanel_ = new javax.swing.JPanel(); - btnOK = new javax.swing.JButton(); - btnCancel = new javax.swing.JButton(); - dimensionPanel_ = new javax.swing.JPanel(); - - setName("Dimension Set Editor"); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT, 10, 10)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - buttonPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnOK.setFont(new java.awt.Font("Dialog", 0, 10)); - btnOK.setText("OK"); - btnOK.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - btnOKActionPerformed(evt); - } - }); - - buttonPanel_.add(btnOK); - - btnCancel.setFont(new java.awt.Font("Dialog", 0, 10)); - btnCancel.setText("Cancel"); - btnCancel.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - btnCancelActionPerformed(evt); - } - }); - - buttonPanel_.add(btnCancel); - - getContentPane().add(buttonPanel_, java.awt.BorderLayout.SOUTH); - - dimensionPanel_.setLayout(new java.awt.GridLayout(7, 2, 2, 2)); - - dimensionPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - dimensionPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - getContentPane().add(dimensionPanel_, java.awt.BorderLayout.CENTER); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(300, 250)); - setLocation((screenSize.width-300)/2,(screenSize.height-250)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - /** - */ - private void btnCancelActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_btnCancelActionPerformed - // Shutdown the dialog and return. - setVisible(false); - dispose(); - }//GEN-LAST:event_btnCancelActionPerformed - - //-------------------------------------------------------------------------- - private double toDouble(int dimi) - { - try - { - return Double.parseDouble(textfields_[dimi].getText()); - } - catch (NumberFormatException ex) - { - throw new IllegalArgumentException - ( - textfields_[dimi].getText() - + " is not a number for dimension " - + labels_[dimi].getText() - ); - } - } - - //-------------------------------------------------------------------------- - /** - */ - private void btnOKActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_btnOKActionPerformed - - try - { - // Get the values from the text controls and update the dimension set object. - dimensionSet_.mass = toDouble(MASS); - dimensionSet_.length = toDouble(LENGTH); - dimensionSet_.time = toDouble(TIME); - dimensionSet_.temperature = toDouble(TEMPERATURE); - dimensionSet_.current = toDouble(CURRENT); - dimensionSet_.moles = toDouble(MOLES); - dimensionSet_.luminousIntensity = toDouble(LUMINOUSINTENSITY); - - if (entry_ != null) - { - // Insert the value into the Any object: - FoamXServer.FoamXAny value = entry_.value(); - DimensionSetHelper.insert(value.value, dimensionSet_); - - // Update the dictionary entry object. - entry_.value(value); - } - - // Close this dialog down. - setVisible(false); - dispose(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_btnOKActionPerformed - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - // Shutdown the dialog and return. - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton btnOK; - private javax.swing.JButton btnCancel; - private javax.swing.JPanel dimensionPanel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/FixedListEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/FixedListEditor.java deleted file mode 100644 index cc186ef999..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/FixedListEditor.java +++ /dev/null @@ -1,292 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors; - -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellEditor; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryNameCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryTableModel; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; - -public class FixedListEditor - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_WIDTH = 400; - - private VectorTableModel tableModel_; - - //-------------------------------------------------------------------------- - /** FixedListEditor constructor. */ - public FixedListEditor - ( - java.awt.Frame parent, - IDictionaryEntry entry, - TypeDescriptorCache typeDescriptor - ) - { - super(parent, "Vector Editor", true); // Modal. - - // Initialise the table model. - tableModel_ = new VectorTableModel(entry, typeDescriptor); - - initComponents(); - - // Use 'standard' renderer for name - elementTable_.getColumn - ( - tableModel_.getNameColumnTitle() - ).setCellRenderer(new DictionaryNameCellRenderer()); - - // Set cell renderer and editor for value column. - elementTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new DictionaryEntryCellRenderer()); - elementTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - // Resize to show the defined rows only. - // Calculate size: table + some extra (= 1 row height) or - // space needed for panel itself (so with empty table) - int height = - elementTable_.getRowHeight() * (tableModel_.getRowCount() + 2) - + (int)getMinimumSize().getHeight(); - - setSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - tablePanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - elementTable_ = new javax.swing.JTable(); - buttonPanel_ = new javax.swing.JPanel(); - btnOK_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setName("Vector Space Editor"); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - tablePanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - tablePanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - tableScrollPane_.setFont(new java.awt.Font("Dialog", 0, 10)); - elementTable_.setModel(tableModel_); - elementTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - elementTable_.setPreferredScrollableViewportSize(new java.awt.Dimension(200, 50)); - elementTable_.setMinimumSize(new java.awt.Dimension(100, 100)); - tableScrollPane_.setViewportView(elementTable_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - tablePanel_.add(tableScrollPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(tablePanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - btnOK_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnOK_.setText("Close"); - btnOK_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - buttonPanel_.add(btnOK_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTH; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(350, 300)); - setLocation((screenSize.width-350)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - // Update the table to reflect the new shape type. - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void OnClose (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - - // Commit any pending edits. - elementTable_.editingStopped(new ChangeEvent(this)); - - setVisible(false); - dispose(); - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel tablePanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable elementTable_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton btnOK_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - private class VectorTableModel - extends DictionaryEntryTableModel - { - //-------------------------------------------------------------------------- - - private TypeDescriptorCache typeDescriptor_; - - //-------------------------------------------------------------------------- - /** VectorTableModel constructor for fixedList types. - * @param compoundEntry Reference to the fixedList entry object. - */ - public VectorTableModel - ( - IDictionaryEntry compoundEntry, - TypeDescriptorCache typeDescriptor - ) - { - super(compoundEntry); - setNameColumnTitle("Component"); - typeDescriptor_ = typeDescriptor; - } - - //-------------------------------------------------------------------------- - - public java.lang.Object getValueAt(int rowIndex, int columnIndex) - { - java.lang.Object obj = null; - - try - { - // Check for valid row index. - if (rowIndex>= getRowCount()) throw new Exception("Invalid row index"); - - if (columnIndex == NAME_COLUMN_INDEX) - { - // Return a new string containing the component name. - obj = typeDescriptor_.getElementLabels()[rowIndex]; - } - else - { - // Return the DictionaryEntry object for this entry. - DictionaryEntry dictEntry = (DictionaryEntry)dictEntryList_.get(rowIndex); - obj = dictEntry; - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.form deleted file mode 100644 index f433e3163a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.form +++ /dev/null @@ -1,176 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.java deleted file mode 100644 index 4fbf35effd..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ListEditor.java +++ /dev/null @@ -1,506 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.ListCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellEditor; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryNameCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryTableModel; -import FoamX.Util.ButtonActionChangedListener; - -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; - -public class ListEditor - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_HEIGHT = 400; - private static final int DEFAULT_WIDTH = 400; - - - private ListEntryModel tableModel_; - private AddElementAction addElementAction_; - private DeleteElementAction deleteElementAction_; - - //-------------------------------------------------------------------------- - /** Creates new form ListEditor */ - public ListEditor(java.awt.Frame parent, IDictionaryEntry entry) - { - - super(parent, "List Editor", true); // Modal. - - // Initialise the table model. - tableModel_ = new ListEntryModel(entry); - tableModel_.setNameColumnTitle("Item"); - - initComponents(); - - // Initialise actions and hookup to buttons. - addElementAction_ = new AddElementAction(); - deleteElementAction_ = new DeleteElementAction(); - - btnInsertElement_.addActionListener(addElementAction_); - addElementAction_.addPropertyChangeListener - ( - new ButtonActionChangedListener(btnInsertElement_) - ); - - btnDeleteElement_.addActionListener(deleteElementAction_); - deleteElementAction_.addPropertyChangeListener - ( - new ButtonActionChangedListener(btnDeleteElement_) - ); - - - // Listen out for selection events and enable the appropriate actions. - listTable_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - // Enabled if selection is not empty. - deleteElementAction_.setEnabled - ( - !listTable_.getSelectionModel().isSelectionEmpty() - ); - } - } - ); - - // Set cell renderer for name column. - listTable_.getColumn - ( - tableModel_.getNameColumnTitle() - ).setCellRenderer(new DictionaryNameCellRenderer()); - - // Set cell renderer and editor for value column. - listTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new DictionaryEntryCellRenderer()); - listTable_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - // Resize to show the defined rows only. - // Calculate size: table + some extra (= 1 row height) or - // space needed for panel itself (so with empty table) - int height = - ( - listTable_.getRowHeight() * (tableModel_.getRowCount() + 1) - + (int)getMinimumSize().getHeight() - ); // panel size - - height = Math.min(height, DEFAULT_HEIGHT); - - setSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - mainPanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - listTable_ = new javax.swing.JTable(); - listButtonPanel_ = new java.awt.Panel(); - btnInsertElement_ = new javax.swing.JButton(); - btnDeleteElement_ = new javax.swing.JButton(); - btnMoveElementUp_ = new javax.swing.JButton(); - btnMoveElementDown_ = new javax.swing.JButton(); - buttonPanel_ = new javax.swing.JPanel(); - closeButton_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setName("List Editor"); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - listTable_.setModel(tableModel_); - listTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - tableScrollPane_.setViewportView(listTable_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - mainPanel_.add(tableScrollPane_, gridBagConstraints2); - - listButtonPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - listButtonPanel_.setFont(new java.awt.Font("Dialog", 0, 11)); - listButtonPanel_.setBackground(new java.awt.Color(204, 204, 204)); - listButtonPanel_.setForeground(java.awt.Color.black); - btnInsertElement_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnInsertElement_.setText("Insert..."); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(5, 5, 5, 5); - listButtonPanel_.add(btnInsertElement_, gridBagConstraints3); - - btnDeleteElement_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnDeleteElement_.setText("Delete..."); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 1; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(0, 5, 5, 5); - listButtonPanel_.add(btnDeleteElement_, gridBagConstraints3); - - btnMoveElementUp_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnMoveElementUp_.setText("Move Up"); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 2; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(0, 5, 5, 5); - listButtonPanel_.add(btnMoveElementUp_, gridBagConstraints3); - - btnMoveElementDown_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnMoveElementDown_.setText("Move Down"); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 3; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(0, 5, 5, 5); - listButtonPanel_.add(btnMoveElementDown_, gridBagConstraints3); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHEAST; - mainPanel_.add(listButtonPanel_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - buttonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(350, 300)); - setLocation((screenSize.width-350)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void OnClose (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - - // Commit any pending edits. - listTable_.editingStopped(new ChangeEvent(this)); - - // Close the dialog. - setVisible(false); - dispose(); - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable listTable_; - private java.awt.Panel listButtonPanel_; - private javax.swing.JButton btnInsertElement_; - private javax.swing.JButton btnDeleteElement_; - private javax.swing.JButton btnMoveElementUp_; - private javax.swing.JButton btnMoveElementDown_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton closeButton_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - private class ListEntryModel - extends DictionaryEntryTableModel - { - //-------------------------------------------------------------------------- - /** ListEntryModel constructor for list types. - * @param dictionaryEntry Reference to the dictionary entry object. - */ - public ListEntryModel(IDictionaryEntry compoundEntry) - { - super(compoundEntry); - } - - //-------------------------------------------------------------------------- - - public java.lang.Object getValueAt(int rowIndex, int columnIndex) - { - java.lang.Object obj = null; - - try - { - // Check for valid row index. - if (rowIndex>= getRowCount()) - { - throw new Exception("Invalid row index"); - } - - if (columnIndex == NAME_COLUMN_INDEX) - { - // Return the row index as a string. - obj = Integer.toString(rowIndex); - } - else - { - // Return the DictionaryEntry object for this entry. - DictionaryEntry dictEntry = - (DictionaryEntry)dictEntryList_.get(rowIndex); - obj = dictEntry; - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - - //-------------------------------------------------------------------------- - - public void addElement() - { - try - { - // Add new element to the list. - DictionaryEntryCache dictEntry = - ((ListCache)rootEntry_).addListElement(); - - // Add to model. - dictEntryList_.add(dictEntry); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void removeElement(int index) - { - try - { - // Check for valid row index. - if - ( - index>= getRowCount() - ) - { - throw new Exception("Invalid row index"); - } - - // Remove this entry from the model. - DictionaryEntryCache dictEntryCache - = (DictionaryEntryCache)dictEntryList_.get(index); - - ListCache listRoot = (ListCache)rootEntry_; - - listRoot.removeElement(dictEntryCache); - dictEntryList_.remove(index); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - class AddElementAction - extends AbstractAction - { - public AddElementAction() - { - super("AddElement"); - putValue(Action.NAME, "Add Element"); - putValue(Action.SHORT_DESCRIPTION, "Add Element"); - putValue(Action.LONG_DESCRIPTION, "Add Element"); - } - - public void actionPerformed(ActionEvent e) - { - try - { - tableModel_.addElement(); - listTable_.updateUI(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - class DeleteElementAction - extends AbstractAction - { - public DeleteElementAction() - { - super("DeleteElement"); - putValue(Action.NAME, "Delete Element"); - putValue(Action.SHORT_DESCRIPTION, "Delete Element"); - putValue(Action.LONG_DESCRIPTION, "Delete Element"); - } - - public void actionPerformed(ActionEvent e) - { - try - { - // Remove the selected elements. - if (!listTable_.getSelectionModel().isSelectionEmpty()) - { - int minIndex = - listTable_.getSelectionModel().getMinSelectionIndex(); - int maxIndex = - listTable_.getSelectionModel().getMaxSelectionIndex(); - - // Need to remove from the top so that it doesn't get its - // knickers in a twist. - for (int i=maxIndex; i>= minIndex; i--) - { - tableModel_.removeElement(i); - } - listTable_.getSelectionModel().clearSelection(); - deleteElementAction_.setEnabled(false); - } - listTable_.updateUI(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.form deleted file mode 100644 index 2518c2e66d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.form +++ /dev/null @@ -1,99 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.java deleted file mode 100644 index 2a3374a036..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/SelectionEditor.java +++ /dev/null @@ -1,324 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Editors; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellEditor; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryNameCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.SelectionEntryCellRenderer; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryTableModel; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.IDictionaryEntry; - -public class SelectionEditor extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_HEIGHT = 400; - - //-------------------------------------------------------------------------- - - private DictionaryEntryTableModel tableModel_; - private IDictionaryEntry dictEntry_; - - //-------------------------------------------------------------------------- - /** Creates new form SelectionEditor */ - - public SelectionEditor(java.awt.Frame parent, IDictionaryEntry entry) - { - super(parent, "Selection Editor", true); - - dictEntry_ = entry; - - // Initialise the table model. - tableModel_ = new DictionaryEntryTableModel(entry); - - initComponents(); - - // Use 'standard' renderer for name - table_.getColumn - ( - tableModel_.getNameColumnTitle() - ).setCellRenderer(new DictionaryNameCellRenderer()); - - // Use specialized renderer for selection entry - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new SelectionEntryCellRenderer()); - - // Use standard dictionaryEntry editor - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - - // Highlight current selection - int selectedRow = dictEntry_.selection(); - - table_.getSelectionModel().setLeadSelectionIndex(selectedRow); - table_.getSelectionModel().setSelectionInterval - ( - selectedRow, - selectedRow - ); - // Mark selected dictionaryEntry itself - DictionaryEntryCache subEntry = - (DictionaryEntryCache)tableModel_.getValueAt - ( - selectedRow, - DictionaryEntryTableModel.VALUE_COLUMN_INDEX - ); - subEntry.setCurrent(true); - - - // Subscribe to the list selection model event to track changes - // to current selection - table_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - listSelectionChanged(evt); - } - } - ); - - // Resize to show the defined rows only. - // Calculate size: table + panel + extra(=1 row height) - int height = - table_.getRowHeight() * (tableModel_.getRowCount() + 1) - + (int)getMinimumSize().height; // panel size - - height = Math.min(height, DEFAULT_HEIGHT); - - setSize(new java.awt.Dimension(getSize().width, height)); - } - - - //-------------------------------------------------------------------------- - - protected void listSelectionChanged(ListSelectionEvent evt) - { - // Update the entry status label. - if (!evt.getValueIsAdjusting()) - { - int oldRow = dictEntry_.selection(); - int selRow = table_.getSelectionModel().getMinSelectionIndex(); - - if (selRow != oldRow) - { - // Unset old selected entry. - DictionaryEntryCache subEntry = - (DictionaryEntryCache)tableModel_.getValueAt - ( - oldRow, - DictionaryEntryTableModel.VALUE_COLUMN_INDEX - ); - subEntry.setCurrent(false); - - // Set the currently selected subEntry. - subEntry = - (DictionaryEntryCache)tableModel_.getValueAt - ( - selRow, - DictionaryEntryTableModel.VALUE_COLUMN_INDEX - ); - subEntry.setCurrent(true); - - // Mark selected row on this level. - dictEntry_.selection(selRow); - -// if (entry != null) -// { -// TypeDescriptorCache typeDescriptor = -// entry.getTypeDescriptor(); -// System.out.println -// ( -// "even got a description:" -// + typeDescriptor.toString() -// ); -// System.out.println -// ( -// "num sub elements" -// + entry.getDictEntry().subElements().length -// ); -// TypeDescriptorCache typeDescriptor = -// entry.getTypeDescriptor(); -// if -// ( -// typeDescriptor.isCompound() -// && entry.subElements().length == 1) -// } - } - } - } - - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - buttonPanel_ = new javax.swing.JPanel(); - closeButton_ = new javax.swing.JButton(); - mainPanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setName("Shape Editor"); - setModal(true); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - closeButtonActionPerformed_(evt); - } - }); - - buttonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - table_.setModel(tableModel_); - table_.setFont(new java.awt.Font("Dialog", 0, 10)); - tableScrollPane_.setViewportView(table_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - mainPanel_.add(tableScrollPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(350, 300)); - setLocation((screenSize.width-350)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void closeButtonActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_closeButtonActionPerformed_ - // Update the dictionary entry and close the dialog. - - // Commit any pending edits. - table_.editingStopped(new ChangeEvent(this)); - - // Close this dialog. - setVisible(false); - dispose(); - }//GEN-LAST:event_closeButtonActionPerformed_ - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton closeButton_; - private javax.swing.JPanel mainPanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ShapeEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ShapeEditor.form deleted file mode 100644 index 643caf4eea..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/ShapeEditor.form +++ /dev/null @@ -1,173 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.form deleted file mode 100644 index 299ce9e586..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.form +++ /dev/null @@ -1,162 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.java deleted file mode 100644 index f482c2b7d1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/StringListEditor.java +++ /dev/null @@ -1,589 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors; - -import java.util.*; -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import FoamX.App; - -public class StringListEditor - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_HEIGHT = 400; - - //-------------------------------------------------------------------------- - - private ListEntryModel tableModel_; - private AddElementAction addElementAction_; - private DeleteElementAction deleteElementAction_; - private Vector values_; - private Vector labels_; - private boolean wasCancelled_; - - //-------------------------------------------------------------------------- - /** StringListEditor constructor */ - public StringListEditor(java.awt.Frame parent, java.util.Vector values) - { - - super(parent, "List Editor", true); // Modal. - - labels_ = null; - values_ = values; - - // Initialise the table model. - tableModel_ = new ListEntryModel(values_); - - // Initialise. - init(); - } - - //-------------------------------------------------------------------------- - /** StringListEditor constructor */ - public StringListEditor - ( - java.awt.Frame parent, - String title, - java.util.Vector labels, - java.util.Vector values - ) - { - super(parent, title, true); // Modal. - - labels_ = labels; - values_ = values; - - // Initialise the table model. - tableModel_ = new ListEntryModel(labels_, values_); - - // Initialise. - init(); - - // Disable add/remove buttons. - btnInsertElement_.setVisible(false); - btnDeleteElement_.setVisible(false); - } - - //-------------------------------------------------------------------------- - - private void init() - { - initComponents(); - - // Resize to show the defined rows only. - // Calculate size: table + some extra (= 1 row height) or - // space needed for panel itself (so with empty table) - int height = - ( - listTable_.getRowHeight() * (tableModel_.getRowCount() + 1) - + (int)getMinimumSize().getHeight() - ); // panel size - height = Math.min(height, DEFAULT_HEIGHT); - - setSize(new java.awt.Dimension(getWidth(), height)); - - // Initialise actions and hookup to buttons. - addElementAction_ = new AddElementAction(); - deleteElementAction_ = new DeleteElementAction(); - - btnInsertElement_.addActionListener(addElementAction_); - //? addElementAction_.addPropertyChangeListener - //? (new ButtonActionChangedListener(btnInsertElement_)); - - btnDeleteElement_.addActionListener(deleteElementAction_); - //? deleteElementAction_.addPropertyChangeListener - //? (new ButtonActionChangedListener(btnDeleteElement_)); - - // Listen out for selection events and enable the appropriate actions. - listTable_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - // Enabled if selection is not empty. - deleteElementAction_.setEnabled - ( - !listTable_.getSelectionModel().isSelectionEmpty() - ); - } - } - ); - - wasCancelled_ = true; - // Set cell renderer and editor for value column. - //listTable_.getColumn - // ( - // tableModel_.getValueColumnTitle() - // ).setCellRenderer(new DictionaryEntryCellRenderer()); - //listTable_.getColumn - // ( - // tableModel_.getValueColumnTitle() - // ).setCellEditor(new DictionaryEntryCellEditor()); - } - - //-------------------------------------------------------------------------- - - public boolean wasCancelled() - { - return wasCancelled_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - mainPanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - listTable_ = new javax.swing.JTable(); - listButtonPanel_ = new java.awt.Panel(); - btnInsertElement_ = new javax.swing.JButton(); - btnDeleteElement_ = new javax.swing.JButton(); - buttonPanel_ = new javax.swing.JPanel(); - cancelButton_ = new javax.swing.JButton(); - closeButton_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setName("List Editor"); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - listTable_.setModel(tableModel_); - listTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - tableScrollPane_.setViewportView(listTable_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - mainPanel_.add(tableScrollPane_, gridBagConstraints2); - - listButtonPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - listButtonPanel_.setFont(new java.awt.Font("Dialog", 0, 11)); - listButtonPanel_.setBackground(new java.awt.Color(204, 204, 204)); - listButtonPanel_.setForeground(java.awt.Color.black); - btnInsertElement_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnInsertElement_.setText("Insert..."); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(0, 0, 5, 0); - listButtonPanel_.add(btnInsertElement_, gridBagConstraints3); - - btnDeleteElement_.setFont(new java.awt.Font("Dialog", 0, 10)); - btnDeleteElement_.setText("Delete..."); - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 1; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints3.insets = new java.awt.Insets(0, 0, 5, 0); - listButtonPanel_.add(btnDeleteElement_, gridBagConstraints3); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHEAST; - mainPanel_.add(listButtonPanel_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - cancelButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - cancelButton_.setText("Cancel"); - cancelButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnCancel(evt); - } - }); - - buttonPanel_.add(cancelButton_); - - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("OK"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - buttonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(350, 300)); - setLocation((screenSize.width-350)/2,(screenSize.height-300)/2); - }//GEN-END:initComponents - - private void OnCancel(java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnCancel - - // Set cancelled flag. - wasCancelled_ = true; - - // Close dialog. - setVisible(false); - dispose(); - - }//GEN-LAST:event_OnCancel - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void OnClose (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - - // Set cancelled flag. - wasCancelled_ = false; - - // Commit any pending edits. - listTable_.editingStopped(new ChangeEvent(this)); - - // Close dialog. - setVisible(false); - dispose(); - - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - - wasCancelled_ = true; - - setVisible(false); - dispose(); - - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable listTable_; - private java.awt.Panel listButtonPanel_; - private javax.swing.JButton btnInsertElement_; - private javax.swing.JButton btnDeleteElement_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton cancelButton_; - private javax.swing.JButton closeButton_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - private static class ListEntryModel - extends AbstractTableModel - { - //---------------------------------------------------------------------- - - static final int PARAMETERNAME_INDEX = 0; - static final int PARAMETERVALUE_INDEX = 1; - static final String PARAMETERNAME_TEXT = "Parameter"; - static final String PARAMETERVALUE_TEXT = "Value"; - static final String[] s_columnNames = { - PARAMETERNAME_TEXT, PARAMETERVALUE_TEXT }; - - java.util.Vector labelVector_; - java.util.Vector valueVector_; - - //---------------------------------------------------------------------- - /** ListEntryModel constructor for list types. */ - ListEntryModel(java.util.Vector valueVector) - { - labelVector_ = null; - valueVector_ = valueVector; - } - - //---------------------------------------------------------------------- - /** ListEntryModel constructor for list types. */ - ListEntryModel - ( - java.util.Vector labelVector, - java.util.Vector valueVector - ) - { - labelVector_ = labelVector; - valueVector_ = valueVector; - } - - //---------------------------------------------------------------------- - //---- AbstractTableModel methods - //---------------------------------------------------------------------- - - public int getRowCount() - { - return valueVector_.size(); - } - - //---------------------------------------------------------------------- - - public int getColumnCount() - { - return s_columnNames.length; - } - - //---------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return s_columnNames[columnIndex]; - } - - //---------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Everything is of type String. - return String.class; - } - - //---------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - // Check for value column. - return (columnIndex == PARAMETERVALUE_INDEX); - } - - //---------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - String value = ""; - - switch (columnIndex) - { - case PARAMETERNAME_INDEX: - if (labelVector_ != null) - { - value = labelVector_.get(rowIndex).toString(); - } - else - { - // Return row number. - value = Integer.toString(rowIndex); - } - break; - case PARAMETERVALUE_INDEX: - value = valueVector_.get(rowIndex).toString(); - break; - default: - // Bugger and damnation. - break; - } - - return value; - } - - //---------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - switch (columnIndex) - { - case PARAMETERVALUE_INDEX: - String value = (String)aValue; - valueVector_.set(rowIndex, value); - break; - case PARAMETERNAME_INDEX: - default: - // Bugger. - break; - } - } - - //---------------------------------------------------------------------- - //---------------------------------------------------------------------- - //---------------------------------------------------------------------- - - void addElement(String value) - { - try - { - // Add new elememt to the list. - valueVector_.addElement(value); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //---------------------------------------------------------------------- - - void removeElement(int index) - { - try - { - // Check for valid row index. - if (index = minIndex; i--) - { - tableModel_.removeElement(i); - } - listTable_.getSelectionModel().clearSelection(); - deleteElementAction_.setEnabled(false); - } - listTable_.updateUI(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/.nbattrs deleted file mode 100644 index 6af413bd2d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/.nbattrs +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeDescriptorCache.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeDescriptorCache.java deleted file mode 100644 index 7e57daf4e9..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeDescriptorCache.java +++ /dev/null @@ -1,666 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.TypeEditor; - -import java.text.DecimalFormat; -import java.util.Vector; -import java.net.URL; -import javax.swing.Icon; - -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; -import FoamXServer.FoamXType; -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.ITypeDescriptor; -import FoamXServer.ITypeDescriptorHolder; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXAny; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; - -public class TypeDescriptorCache -{ - //-------------------------------------------------------------------------- - - // Reference to the ITypeDescriptor object. - private ITypeDescriptor typeDesc_; - - // Common properties. - private FoamXType type_; // The type of this parameter. Read only. - private boolean compound_; // Compound type flag. Read only. - private String path_; // Path of this parameter relative to root - // dictionary. Read only. - - private String name_; // Foam parameter name. - private String displayName_; // Short display name. - private String description_; // Long descriptive name. - private String comment_; // Dictionary comment. - private String category_; // GUI category. - private String helpURL_; // URL to relevant help file. - private String iconURL_; // URL to a nice icon for this entry. - private boolean optional_; // Flag indicating whether this parameter - // is optional. Defaults to false. - private boolean visible_; // Flag indicating whether this parameter is - // visible within FoamX. Defaults to true. - - // Properties for non-compound types. - private boolean editable_; // Flag indicating whether this parameter - // is editable within FoamX. (Default:true) - private FoamXAny minValue_; // Minimum value for this parameter. - private FoamXAny maxValue_; // Maximum value for this parameter. - - - private DictionaryEntryCache defaultValue_; // Default value for this - // parameter. - - private String lookupDict_; // Name of dictionary to use as a lookup - // table. - private Vector valueList_; // List of permissible values for this - // parameter. - - // Properties for compound types. - private String dictionaryPath_; // Top-level dictionary location - // relative to case root. - private int numElements_; // Number of elements in vector space - // or list. - private String[] elementLabels_; // Labels of list or vector space - // elements (eg, x, y, z). - private Vector subTypes_; // List of sub-types for compound types. - - //-------------------------------------------------------------------------- - /** Construct a TypeDescriptorCache from a ITypeDescriptor reference. */ - public TypeDescriptorCache(ITypeDescriptor typeDesc, boolean addSubTypes) - { - try - { - // Store ITypeDescriptor reference. - typeDesc_ = typeDesc; - - // Get type attributes from ITypeDescriptor object. - type_ = typeDesc_.type(); - compound_ = typeDesc_.isCompoundType(); - path_ = typeDesc_.path(); - - name_ = typeDesc_.name(); - displayName_ = typeDesc_.displayName(); - description_ = typeDesc_.description(); - comment_ = typeDesc_.comment(); - category_ = typeDesc_.category(); - helpURL_ = typeDesc_.helpURL(); - iconURL_ = typeDesc_.iconURL(); - optional_ = typeDesc_.optional(); - visible_ = typeDesc_.visible(); - editable_ = typeDesc_.editable(); - - if (!compound_) - { - minValue_ = new FoamXAny(typeDesc_.minValue()); - maxValue_ = new FoamXAny(typeDesc_.maxValue()); - - IDictionaryEntryHolder dictEntryHolder = - new IDictionaryEntryHolder(); - typeDesc_.getDefaultValue(dictEntryHolder); - - lookupDict_ = typeDesc_.lookupDict(); - - // Construct constrained value list. - FoamXServer.FoamXAny[] valueList = typeDesc_.valueList(); - valueList_ = new Vector(valueList.length); - for (int i = 0; i = subTypes_.size()) - { - throw new FoamXException("Invalid sub-type index."); - } - - // Return the sub-type specified by the index. - subType = (TypeDescriptorCache)subTypes_.get(index); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return subType; - } - - //-------------------------------------------------------------------------- - - public TypeDescriptorCache addSubType(FoamXType type) - { - TypeDescriptorCache subType = null; - - try - { - if (!compound_) - { - throw new FoamXException - ( - "No sub-types on non-compound type descriptors." - ); - } - - // Create a new TypeDescriptor sub object. - ITypeDescriptorHolder typeDescHolder = new ITypeDescriptorHolder(); - typeDesc_.addSubType(type, typeDescHolder); - - // If successful, create a new TypeDescriptorCache wrapper - // object and add to collection. - subType = new TypeDescriptorCache(typeDescHolder.value, false); - subTypes_.addElement(subType); - - //? numElements_ = typeDesc_.numElements(); - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return subType; - } - - //-------------------------------------------------------------------------- - - public boolean removeSubType(TypeDescriptorCache subType) - { - boolean bRet = false; - - try - { - if (!compound_) - { - throw new FoamXException - ( - "No sub-types on non-compound type descriptors." - ); - } - - // Remove the specified sub-type. - typeDesc_.removeSubType(subType.TypeDescriptor()); - - // If successful, remove from sub-type list. - subTypes_.remove(subType); - - //? numElements_ = typeDesc_.numElements(); - - // Return success. - bRet = true; - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - bRet = false; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - bRet = false; - } - - return bRet; - } - - //-------------------------------------------------------------------------- - /** Return an appropriate string representation of this type. */ - public String toString() - { - return FoamXTypeEx.toDisplayString(type_); - } - - //-------------------------------------------------------------------------- - /** Return an appropriate icon for the given typeDescriptor. */ - public static Icon getIcon(ITypeDescriptor typeDescriptor) - { - Icon icon; - - String iconURL = typeDescriptor.iconURL(); - - if (iconURL.length() > 0) - { - URL url = typeDescriptor.getClass().getResource(iconURL); - - // Check that this Url is valid. - if (url == null) - { - App.printMessage("Cannot resolve URL from " + iconURL); - - // Return default icon for this type. - icon = FoamXTypeEx.getIcon(typeDescriptor.type()); - } - else - { - // Return icon specified by the URL. - icon = App.getResources().getIcon(url); - } - } - else - { - // Return default icon for this type. - icon = FoamXTypeEx.getIcon(typeDescriptor.type()); - } - - return icon; - } - - //-------------------------------------------------------------------------- - /** Return an appropriate icon for this type. */ - public Icon getIcon() - { - Icon icon; - - if (iconURL_ != null && iconURL_.length() > 0) - { - URL url = getClass().getResource(iconURL_); - - // Check that this Url is valid. - if (url == null) - { - App.printMessage("Cannot resolve URL from " + iconURL_); - - // Return default icon for this type. - icon = FoamXTypeEx.getIcon(type_); - } - else - { - // Return icon specified by the URL. - icon = App.getResources().getIcon(url); - } - } - else - { - // Return default icon for this type. - icon = FoamXTypeEx.getIcon(type_); - } - - return icon; - } - - //-------------------------------------------------------------------------- - /** - * Update the cached ITypeDescriptor object. - */ - public void updateTypeDescriptor(boolean updateSubTypes) - { - try - { - // Update the TypeDescriptor object - typeDesc_.name(name_); - typeDesc_.displayName(displayName_); - typeDesc_.description(description_); - typeDesc_.comment(comment_); - typeDesc_.category(category_); - typeDesc_.helpURL(helpURL_); - typeDesc_.iconURL(iconURL_); - typeDesc_.optional(optional_); - typeDesc_.visible(visible_); - typeDesc_.editable(editable_); - - if (!compound_) - { - typeDesc_.minValue(minValue_.getAny()); - typeDesc_.maxValue(maxValue_.getAny()); - //***HGW typeDesc_.setDefaultValue(defaultValue_); - typeDesc_.lookupDict(lookupDict_); - - // Update the constrained value list. - FoamXServer.FoamXAny[] valueList = - new FoamXServer.FoamXAny[valueList_.size()]; - for (int i = 0; i 0) - { - addSubTypeActions_[actionIndex].actionPerformed(null); - } - - // Reselect the title item. - addSubTypeCombo_.setSelectedIndex(0); - } - - //-------------------------------------------------------------------------- - - void OnTreeSelectionChanged(TreeSelectionEvent evt) - { - try - { - // Cancel any pending edit. - typeParameterEditor_.cancelCellEditing(); - - // Get the node object for the current selection. - if (evt.isAddedPath()) // Has the new node been added to the selection? - { - TreePath tp = evt.getPath(); - if (tp != null) - { - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - TypeNodeInfo nodeInfo = (TypeNodeInfo)nodeItem.getUserObject(); - - // Update the action enabled/disabled status. - addDictionaryAction_.setEnabled(nodeInfo.isRootNode()); - deleteDictionaryAction_.setEnabled(nodeInfo.isTopLevelType()); - deleteSubTypeAction_.setEnabled(!nodeInfo.isRootNode() && !nodeInfo.isTopLevelType()); - - boolean canAddSubtype = !nodeInfo.isRootNode() && nodeInfo.isCompound(); - - // If this is a list or a fixedList type, then only one sub-type is allowed. - if (canAddSubtype && - (nodeInfo.getTypeDescriptorCache().getType().value() == FoamXType._Type_List || - nodeInfo.getTypeDescriptorCache().getType().value() == FoamXType._Type_FixedList)) - { - canAddSubtype = (nodeInfo.getTypeDescriptorCache().getNumElements() == 0); - } - - // Set the add sub type action status. - Enumeration enum = FoamXTypeEx.EnumerateTypes(); - while (enum.hasMoreElements()) - { - FoamXType type = (FoamXType)enum.nextElement(); - int index = type.value(); // Use type code as index. - addSubTypeActions_[index].setEnabled(canAddSubtype); - } - - // Set the combo box status. - addSubTypeCombo_.setEnabled(canAddSubtype); - - // Commit the changes to the previous type, if applicable. - if (currentType_ != null && !currentType_.isRootNode()) - { - currentType_.updateTypeDescriptor(); - } - - // Take a reference to the new type. - currentType_ = nodeInfo; - - // Update the type parameter list. - updateParameters(); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - void initialiseContextMenu(DefaultMutableTreeNode typeNode, JPopupMenu contextMenu) - { - try - { - TypeNodeInfo nodeInfo = (TypeNodeInfo)typeNode.getUserObject(); - - // Construct an appropriate context menu, - contextMenu.removeAll(); - java.awt.Font font = contextMenu.getFont(); - - if (nodeInfo.isRootNode()) - { - contextMenu.add(addDictionaryAction_).setFont(font); - } - else if (nodeInfo.isCompound()) - { - // Construct sub-menu for adding entries of a specific type. - JMenu subMenu = new JMenu("Add Sub Type"); - contextMenu.add(subMenu); - subMenu.setFont(contextMenu.getFont()); - Enumeration enum = FoamXTypeEx.EnumerateTypes(); - while (enum.hasMoreElements()) - { - FoamXType type = (FoamXType)enum.nextElement(); - int index = type.value(); // Use type code as index. - subMenu.add(addSubTypeActions_[index]).setFont(font); - } - } - - if (nodeInfo.isTopLevelType()) - { - contextMenu.add(deleteDictionaryAction_).setFont(font); - } - else if (!nodeInfo.isRootNode()) - { - contextMenu.add(deleteSubTypeAction_).setFont(font); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - private String getNewDictionaryKey() - { - String dictKey; - int i = dictionaryMap_.size() + 1; - - do - { - dictKey = "Dictionary" + Integer.toString(i++); - } - while (dictionaryMap_.containsKey(dictKey)); - - return dictKey; - } - - //-------------------------------------------------------------------------- - - private void initialiseDictionaries() - { - try - { - // Get list of dictionary keys from the application class and build the tree. - String[] dictKeys = app_.dictionaries(); - for (int i=0; i 0 && !dictionaryMap_.containsKey(dictKey)) - { - // Create a new top level dictionary type descriptor object. - ITypeDescriptorHolder dictTypeDescHolder = new ITypeDescriptorHolder(); - app_.addDictionary(dictKey, dictTypeDescHolder); - - // Add new node to model. - DefaultMutableTreeNode nodeItem = addType(dictTypeDescHolder.value); - - // Add to map. - dictionaryMap_.put(dictKey, nodeItem); - - // If addition successful, select the new node. - TreePath childTP = new TreePath(nodeItem.getPath()); - getTree().expandPath(childTP); - getTree().getSelectionModel().clearSelection(); - getTree().getSelectionModel().setSelectionPath(childTP); - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class DeleteDictionaryAction - extends AbstractAction - { - DeleteDictionaryAction() - { - putValue(Action.SMALL_ICON, App.getResources().getIcon("DelDictionaryImage")); - putValue(Action.NAME, "Delete Dictionary"); - putValue(Action.SHORT_DESCRIPTION, "Delete Dictionary"); - putValue(Action.LONG_DESCRIPTION, "Delete Dictionary"); - } - - public void actionPerformed(ActionEvent e) - { - try - { - // Get currently selected node. - TreePath tp = getTree().getSelectionModel().getSelectionPath(); - if (tp != null) - { - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - TypeNodeInfo nodeInfo = (TypeNodeInfo)nodeItem.getUserObject(); - - // Make sure this node is a top-level dictionary and is in the map. - if (nodeInfo.isTopLevelType() && dictionaryMap_.containsKey(nodeInfo.getName())) - { - // Delete the top level dictionary type descriptor object. - app_.deleteDictionary(nodeInfo.getName()); - - // Remove from map. - dictionaryMap_.remove(nodeInfo.getName()); - - // Remove node from tree. - treeModel_.removeNodeFromParent(nodeItem); - } - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class AddSubTypeAction - extends AbstractAction - { - private FoamXType dictEntryType_; - - AddSubTypeAction(FoamXType dictEntryType) - { - dictEntryType_ = dictEntryType; - - putValue(Action.SMALL_ICON, FoamXTypeEx.getIcon(dictEntryType_)); - putValue(Action.NAME, "Add " + FoamXTypeEx.toDisplayString(dictEntryType_)); - putValue(Action.SHORT_DESCRIPTION, "Add " + FoamXTypeEx.toDisplayString(dictEntryType_)); - putValue(Action.LONG_DESCRIPTION, "Add " + FoamXTypeEx.toDisplayString(dictEntryType_)); - } - - public void actionPerformed(ActionEvent e) - { - try - { - // Get currently selected node. - TreePath tp = getTree().getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - TypeNodeInfo nodeInfo = (TypeNodeInfo)nodeItem.getUserObject(); - - // Make sure this node is a compound dictionary entry. - if (!nodeInfo.isRootNode() && nodeInfo.isCompound()) - { - // Add a new sub-type through the TypeDescriptorCache object, - TypeDescriptorCache parentCache = nodeInfo.getTypeDescriptorCache(); - TypeDescriptorCache entryCache = parentCache.addSubType(dictEntryType_); - - // If successful, create node for this dictionary entry. - if (entryCache != null) - { - TypeNodeInfo subNodeInfo = new TypeNodeInfo(entryCache, false); - DefaultMutableTreeNode subNodeItem = new DefaultMutableTreeNode(subNodeInfo); - - // Add new node to tree. - treeModel_.insertNodeInto(subNodeItem, nodeItem, nodeItem.getChildCount()); - - // If addition successful, select the new node. - TreePath childTP = new TreePath(subNodeItem.getPath()); - getTree().expandPath(childTP); - getTree().getSelectionModel().clearSelection(); - getTree().getSelectionModel().setSelectionPath(childTP); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - private class DeleteSubTypeAction - extends AbstractAction - { - DeleteSubTypeAction() - { - putValue(Action.SMALL_ICON, App.getResources().getIcon("DelDictionaryEntryImage")); - putValue(Action.NAME, "Delete Sub Type"); - putValue(Action.SHORT_DESCRIPTION, "Delete Sub Type"); - putValue(Action.LONG_DESCRIPTION, "Delete Sub Type"); - } - - public void actionPerformed(ActionEvent e) - { - try - { - // Get currently selected node. - TreePath tp = getTree().getSelectionModel().getSelectionPath(); - if (tp != null) - { - // Get node info. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - TypeNodeInfo nodeInfo = (TypeNodeInfo)nodeItem.getUserObject(); - TypeDescriptorCache entryCache = nodeInfo.getTypeDescriptorCache(); - - // Make sure this node is a dictionary entry. - if (!nodeInfo.isRootNode() && !nodeInfo.isTopLevelType()) - { - // Get the parent node info. - DefaultMutableTreeNode parentNodeItem = (DefaultMutableTreeNode)nodeItem.getParent(); - TypeNodeInfo parentNodeInfo = (TypeNodeInfo)parentNodeItem.getUserObject(); - TypeDescriptorCache parentEntryCache = parentNodeInfo.getTypeDescriptorCache(); - - // Remove this sub-type from the parent TypeDescriptorCache. - if (parentEntryCache.removeSubType(entryCache)) - { - // Remove node from tree. - treeModel_.removeNodeFromParent(nodeItem); - - // If deletion successful, select the parent node. - getTree().getSelectionModel().clearSelection(); - getTree().getSelectionModel().setSelectionPath(tp.getParentPath()); - } - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.form deleted file mode 100644 index 8b816aca94..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.form +++ /dev/null @@ -1,138 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.java deleted file mode 100644 index 851c9f7855..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeEditorPanel.java +++ /dev/null @@ -1,230 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.TypeEditor; - -import javax.swing.table.*; -import javax.swing.event.*; -import javax.swing.tree.*; - -import FoamXServer.CaseServer.IApplication; - -import FoamX.App; - -public class TypeEditorPanel - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private TypeEditorModel typeModel_; - - //-------------------------------------------------------------------------- - /** Creates a new TypeEditorPanel object for manipulating the application class dictionaries. - */ - public TypeEditorPanel(IApplication app) - { - try - { - // Initialise the user interface. - initComponents(); - tree_.putClientProperty("JTree.lineStyle", "Angled"); - - // Initialise the type model. - typeModel_ = new TypeEditorModel(app, tree_, table_); - - // Get the mode to initialise the toolbar. - typeModel_.initialiseToolbar(toolBar_); - - // Make sure the tree is displayed properly. - tree_.updateUI(); - table_.updateUI(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - contextMenu_ = new javax.swing.JPopupMenu(); - splitPane_ = new javax.swing.JSplitPane(); - treePanel_ = new javax.swing.JPanel(); - buttonPanel_ = new javax.swing.JPanel(); - toolBar_ = new javax.swing.JToolBar(); - treeScrollPane_ = new javax.swing.JScrollPane(); - tree_ = new javax.swing.JTree(); - tablePanel_ = new javax.swing.JPanel(); - tableScrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setFont(new java.awt.Font("Dialog", 0, 10)); - splitPane_.setDividerLocation(200); - splitPane_.setLastDividerLocation(200); - treePanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - toolBar_.setFloatable(false); - toolBar_.setFont(new java.awt.Font("Dialog", 0, 8)); - buttonPanel_.add(toolBar_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints2.weightx = 1.0; - treePanel_.add(buttonPanel_, gridBagConstraints2); - - treeScrollPane_.setAutoscrolls(true); - tree_.setFont(new java.awt.Font("Dialog", 0, 10)); - tree_.setShowsRootHandles(true); - tree_.setLargeModel(true); - tree_.setAutoscrolls(true); - tree_.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - OnTreeMouseClicked(evt); - } - }); - - treeScrollPane_.setViewportView(tree_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.SOUTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - treePanel_.add(treeScrollPane_, gridBagConstraints2); - - splitPane_.setLeftComponent(treePanel_); - - tablePanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - tableScrollPane_.setAutoscrolls(true); - table_.setFont(new java.awt.Font("Dialog", 0, 10)); - table_.setPreferredScrollableViewportSize(new java.awt.Dimension(0, 0)); - tableScrollPane_.setViewportView(table_); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints3.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints3.weightx = 1.0; - gridBagConstraints3.weighty = 1.0; - tablePanel_.add(tableScrollPane_, gridBagConstraints3); - - splitPane_.setRightComponent(tablePanel_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(splitPane_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnTreeMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnTreeMouseClicked - try - { - // Get the node object for the current selection. - TreePath tp = tree_.getPathForLocation(evt.getX(), evt.getY()); - if (tp != null) - { - // Make sure the node is selected. - tree_.getSelectionModel().clearSelection(); - tree_.getSelectionModel().setSelectionPath(tp); - - // Check for popup menu trigger. - //if (evt.isPopupTrigger()) // Why doesn't this fucking work! - if (evt.getModifiers() == evt.BUTTON3_MASK) // Check explicitly for right mouse click. - { - // Construct an appropriate context menu, - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - typeModel_.initialiseContextMenu(nodeItem, contextMenu_); - - // Show context menu. - contextMenu_.show(tree_, evt.getX(), evt.getY()); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - }//GEN-LAST:event_OnTreeMouseClicked - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPopupMenu contextMenu_; - private javax.swing.JSplitPane splitPane_; - private javax.swing.JPanel treePanel_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JToolBar toolBar_; - private javax.swing.JScrollPane treeScrollPane_; - private javax.swing.JTree tree_; - private javax.swing.JPanel tablePanel_; - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - - public void updateModel() - { - typeModel_.updateModel(); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameter.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameter.java deleted file mode 100644 index 4581a6e582..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameter.java +++ /dev/null @@ -1,527 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.TypeEditor; - -import java.awt.Toolkit; -import javax.swing.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Util.FoamXTypeEx; -import FoamX.Editors.StringListEditor; - -class TypeParameter -{ - //-------------------------------------------------------------------------- - - // Common properties. - public static final int PARAM_TYPE = 0; - public static final int PARAM_PATH = 1; - public static final int PARAM_NAME = 2; - public static final int PARAM_DISPLAYNAME = 3; - public static final int PARAM_DESCRIPTION = 4; - public static final int PARAM_COMMENT = 5; - public static final int PARAM_CATEGORY = 6; - public static final int PARAM_HELPURL = 7; - public static final int PARAM_ICONURL = 8; - public static final int PARAM_OPTIONAL = 9; - public static final int PARAM_VISIBLE = 10; - - // Properties for non-compound types. - public static final int PARAM_EDITABLE = 11; - public static final int PARAM_MINVALUE = 12; - public static final int PARAM_MAXVALUE = 13; - public static final int PARAM_DEFAULTVALUE = 14; - public static final int PARAM_LOOKUPDICT = 15; - public static final int PARAM_VALUELIST = 16; - - // Properties for compound types. - public static final int PARAM_DICTIONARYPATH = 17; - public static final int PARAM_NUMELEMENTS = 18; - public static final int PARAM_ELEMENTLABELS = 19; - - private static final String[] parameterNames_ = - { - "Type", - "Path", - "Foam Name", - "Display Name", - "Description", - "Comment", - "Category", - "Help Url", - "Icon Url", - "Optional", - "Visible", - "Editable", - "Minimum Value", - "Maximum Value", - "Default Value", - "Value Lookup Dictionary", - "Constrained Values", - "Dictionary Path", - "Vector Size", - "Vector Element Labels" - }; - - //-------------------------------------------------------------------------- - - private TypeDescriptorCache typeDescriptor_; - private int parameterID_; - private TableCellEditor customEditor_; - private TableCellEditor entryEditor_; - private boolean editable_; - - //-------------------------------------------------------------------------- - /** TypeParameter constructor. */ - TypeParameter(TypeDescriptorCache typeDescriptor, int parameterID) - { - try - { - typeDescriptor_ = typeDescriptor; - parameterID_ = parameterID; - customEditor_ = null; - entryEditor_ = null; - editable_ = true; - - // See if this parameter needs a custom editor. - if (parameterID_ == PARAM_DEFAULTVALUE) - { - entryEditor_ = typeDescriptor_.getDefaultValue().getEditor(); - } - else if - ( - parameterID_ == PARAM_VALUELIST - || parameterID_ == PARAM_ELEMENTLABELS - ) - { - TypeParameterCustomEditor editor = - new TypeParameterCustomEditor(); - - // Subscribe to the edit button's action event. - editor.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed - ( - java.awt.event.ActionEvent evt - ) - { - showEditDialog(); - } - } - ); - customEditor_ = editor; - } - else if - ( - parameterID_ == PARAM_OPTIONAL - || parameterID_ == PARAM_VISIBLE - || parameterID_ == PARAM_EDITABLE - ) - { - JComboBox combo = new JComboBox(); - combo.addItem("True"); - combo.addItem("False"); - combo.setFont(new java.awt.Font("Dialog", 0, 10)); - customEditor_ = new DefaultCellEditor(combo) - { - // Hook into getCellEditorValue to intercept the - // string value. - public Object getCellEditorValue() - { - String objValue = (String)super.getCellEditorValue(); - updateValue(objValue); - - // Model expects a TypeParameter object. - return TypeParameter.this; - } - }; - } - - // See if this parameter is read only. - if - ( - parameterID_ == PARAM_TYPE || - parameterID_ == PARAM_PATH - ) - { - editable_ = false; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - String getName() - { - return parameterNames_[parameterID_]; - } - - //-------------------------------------------------------------------------- - - String getValueString() - { - String strValue = ""; - - switch (parameterID_) - { - case PARAM_TYPE: - // Read-only. - strValue = - FoamXTypeEx.toDisplayString(typeDescriptor_.getType()); - break; - case PARAM_PATH: - // Read-only. - strValue = typeDescriptor_.getPath(); - break; - case PARAM_NAME: - strValue = typeDescriptor_.getName(); - break; - case PARAM_DISPLAYNAME: - strValue = typeDescriptor_.getDisplayName(); - break; - case PARAM_DESCRIPTION: - strValue = typeDescriptor_.getDescription(); - break; - case PARAM_COMMENT: - strValue = typeDescriptor_.getComment(); - break; - case PARAM_CATEGORY: - strValue = typeDescriptor_.getCategory(); - break; - case PARAM_HELPURL: - strValue = typeDescriptor_.getHelpURL(); - break; - case PARAM_ICONURL: - strValue = typeDescriptor_.getIconURL(); - break; - case PARAM_OPTIONAL: - strValue = typeDescriptor_.isOptional() ? "True" : "False"; - break; - case PARAM_VISIBLE: - strValue = typeDescriptor_.isVisible() ? "True" : "False"; - break; - case PARAM_EDITABLE: - strValue = typeDescriptor_.isEditable() ? "True" : "False"; - break; - case PARAM_MINVALUE: - strValue = typeDescriptor_.getMinValueStr(); - break; - case PARAM_MAXVALUE: - strValue = typeDescriptor_.getMaxValueStr(); - break; - case PARAM_DEFAULTVALUE: - strValue = typeDescriptor_.getDefaultValueStr(); - break; - case PARAM_LOOKUPDICT: - strValue = typeDescriptor_.getLookupDict(); - break; - case PARAM_VALUELIST: - // Return a string containing an indication of the value list. - strValue = listDisplayString(typeDescriptor_.getValueList(), 3); - break; - case PARAM_DICTIONARYPATH: - strValue = typeDescriptor_.getDictionaryPath(); - break; - case PARAM_NUMELEMENTS: - strValue = Integer.toString(typeDescriptor_.getNumElements()); - break; - case PARAM_ELEMENTLABELS: - // Return a string containing an indication of the - // element label list. - strValue = listDisplayString - ( - typeDescriptor_.getElementLabels(), 3 - ); - break; - default: - break; - } - - return strValue; - } - - //-------------------------------------------------------------------------- - - boolean updateValue(String newValue) - { - boolean bRet = true; - - try - { - switch (parameterID_) - { - case PARAM_NAME: - typeDescriptor_.setName(newValue); - break; - - case PARAM_DISPLAYNAME: - typeDescriptor_.setDisplayName(newValue); - break; - - case PARAM_DESCRIPTION: - typeDescriptor_.setDescription(newValue); - break; - - case PARAM_COMMENT: - typeDescriptor_.setComment(newValue); - break; - - case PARAM_CATEGORY: - typeDescriptor_.setCategory(newValue); - break; - - case PARAM_HELPURL: - typeDescriptor_.setHelpURL(newValue); - break; - - case PARAM_ICONURL: - typeDescriptor_.setIconURL(newValue); - break; - - case PARAM_OPTIONAL: - boolean opt = newValue.equalsIgnoreCase("True"); - typeDescriptor_.setOptional(opt); - break; - - case PARAM_VISIBLE: - boolean vis = newValue.equalsIgnoreCase("True"); - typeDescriptor_.setVisible(vis); - break; - - case PARAM_EDITABLE: - boolean edit = newValue.equalsIgnoreCase("True"); - typeDescriptor_.setEditable(edit); - break; - - case PARAM_MINVALUE: - typeDescriptor_.setMinValue(newValue); - break; - - case PARAM_MAXVALUE: - typeDescriptor_.setMaxValue(newValue); - break; - - case PARAM_DEFAULTVALUE: - // This only does something if defaultValue is a primitive - // Otherwise the update is handles by the custom editor - typeDescriptor_.getDefaultValue().updateValue(newValue); - break; - - case PARAM_LOOKUPDICT: - typeDescriptor_.setLookupDict(newValue); - break; - - case PARAM_DICTIONARYPATH: - typeDescriptor_.setDictionaryPath(newValue); - break; - - case PARAM_NUMELEMENTS: - typeDescriptor_.setNumElements(Integer.parseInt(newValue)); - break; - - case PARAM_TYPE: // Read only parameters. - case PARAM_VALUELIST: // Custom edit parameter. - case PARAM_ELEMENTLABELS: // Custom edit parameter. - default: - break; - } - } - catch (IllegalArgumentException ex) - { - // Aaaarrrgghhh! - Toolkit.getDefaultToolkit().beep(); - //App.handleAllExceptions(ex); - bRet = false; - } - - return bRet; - } - - //-------------------------------------------------------------------------- - - public Object getValue() - { - return typeDescriptor_.getDefaultValue(); - } - - TableCellEditor entryEditor() - { - return entryEditor_; - } - - TableCellEditor customEditor() - { - return customEditor_; - } - - //-------------------------------------------------------------------------- - - boolean isEditable() - { - // Type and key parameters not editable. - return editable_; - } - - //-------------------------------------------------------------------------- - - void showEditDialog() - { - try - { - switch (parameterID_) - { - case PARAM_DEFAULTVALUE: - { - - } - break; - - case PARAM_VALUELIST: - { - // Show string list editor. - java.util.Vector values = new java.util.Vector - ( - typeDescriptor_.getValueList().length - ); - for - ( - int i=0; - i < typeDescriptor_.getValueList().length; - i++ - ) - { - values.addElement - ( - typeDescriptor_.getValueList()[i] - ); - } - StringListEditor dlg = new StringListEditor - ( - App.getRootFrame(), - values - ); - dlg.show(); - if (!dlg.wasCancelled()) - { - String[] valArray = new String[values.size()]; - for (int i = 0; i = 2) - { - bAcceptEdit_ = false; - select = true; - } - } - - // Make sure the panel is repainted. Don't know why - // but sometimes the panel is not rendererd properly - // despite the table being in edit mode!! - panel_.repaint(); - - return select; -/* - if (panel_ != null && anEvent instanceof MouseEvent && - ((MouseEvent)anEvent).getID() == MouseEvent.MOUSE_PRESSED) - { - Component dispatchComponent = SwingUtilities.getDeepestComponentAt(panel_, 3, 3); - MouseEvent e = (MouseEvent)anEvent; - MouseEvent e2 = new MouseEvent(dispatchComponent, MouseEvent.MOUSE_RELEASED, - e.getWhen() + 100000, e.getModifiers(), 3, 3, e.getClickCount(), - e.isPopupTrigger()); - dispatchComponent.dispatchEvent(e2); - e2 = new MouseEvent(dispatchComponent, MouseEvent.MOUSE_CLICKED, - e.getWhen() + 100001, e.getModifiers(), 3, 3, 1, - e.isPopupTrigger()); - dispatchComponent.dispatchEvent(e2); - } - return false; -*/ - } - - //-------------------------------------------------------------------------- - - public void addCellEditorListener(CellEditorListener l) - { - listenerList_.add(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCellEditorListener(CellEditorListener l) - { - listenerList_.remove(CellEditorListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditingStopped() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent_); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireEditingCanceled() - { - // Guaranteed to return a non-null array. - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CellEditorListener.class) - { - // Lazily create the event: - if (changeEvent_ == null) - { - changeEvent_ = new ChangeEvent(this); - } - ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent_); - } - } - } - - //-------------------------------------------------------------------------- - - public void addActionListener(ActionListener l) - { - listenerList_.add(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeActionListener(ActionListener l) - { - listenerList_.remove(ActionListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireEditActionEvent() - { - Object[] listeners = listenerList_.getListenerList(); - // Process the listeners last to first, notifying those that are interested in this event. - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == ActionListener.class) - { - // Lazily create the event: - if (actionEvent_ == null) - { - actionEvent_ = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, ""); - } - // Fire the event. - ((ActionListener)listeners[i+1]).actionPerformed(actionEvent_); - } - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterEditor.java deleted file mode 100644 index 4190bc5c77..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterEditor.java +++ /dev/null @@ -1,116 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.TypeEditor; - -import java.awt.Component; -import javax.swing.*; -import javax.swing.table.*; - -class TypeParameterEditor - extends DefaultCellEditor -{ - //-------------------------------------------------------------------------- - - private TypeParameter typeParam_ = null; - private TableCellEditor customEditor_ = null; - - //-------------------------------------------------------------------------- - /** TypeParameterEditor constructor. */ - public TypeParameterEditor() - { - super(new JTextField()); - } - - //-------------------------------------------------------------------------- - /** Implementation of TableCellEditor interface's getTableCellEditorComponent function. */ - - public Component getTableCellEditorComponent - ( - JTable table, - Object value, - boolean isSelected, - int row, - int column - ) - { - typeParam_ = (TypeParameter)value; - - // Delegate to custom editor if required. - if (typeParam_.customEditor() != null) - { - customEditor_ = typeParam_.customEditor(); - return customEditor_.getTableCellEditorComponent(table, value, isSelected, row, column); - } - else if (typeParam_.entryEditor() != null) - { - customEditor_ = typeParam_.entryEditor(); - return customEditor_.getTableCellEditorComponent - ( - table, typeParam_.getValue(), isSelected, row, column - ); - } - - // Otherwise, return the default editor component and edit the value string. - return super.getTableCellEditorComponent - ( - table, typeParam_.getValueString(), isSelected, row, column - ); - } - - //-------------------------------------------------------------------------- - - public Object getCellEditorValue() - { - if (customEditor_ != null) - { - // Delegate to custom editor. - Object objValue = customEditor_.getCellEditorValue(); - } - else - { - // Intercept the "value" object from this editor. - // Of class String for DefaultCellEditor (JTextField) class. - String objValue = (String)super.getCellEditorValue(); - - // Update the TypeParameter object's value. - typeParam_.updateValue(objValue); - } - - // Return the TypeParameter object being edited. - // This is the value that gets sent to the model. - return typeParam_; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterRenderer.java deleted file mode 100644 index ba4b201921..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/TypeParameterRenderer.java +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Editors.TypeEditor; - -import javax.swing.JTable; -import javax.swing.table.*; -import java.awt.Component; - -class TypeParameterRenderer - extends DefaultTableCellRenderer -{ - - //-------------------------------------------------------------------------- - - /** TypeParameterRenderer constructor. */ - public TypeParameterRenderer() - {} - - //-------------------------------------------------------------------------- - - public Component getTableCellRendererComponent - ( - JTable table, - Object value, - boolean isSelected, - boolean hasFocus, - int row, - int column - ) - { - TypeParameter typeParam = (TypeParameter)value; - - // Use the value to render this cell. - String valueText = typeParam.getValueString(); - Component comp = super.getTableCellRendererComponent(table, valueText, isSelected, hasFocus, row, column); - - // If this parameter is read-only, grey it out. - if (!typeParam.isEditable()) - { - comp.setForeground(java.awt.Color.gray); - } else { - comp.setForeground(java.awt.Color.black); - } - - return comp; - } - - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/filesystem.attributes deleted file mode 100644 index bd754e0431..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/TypeEditor/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/VectorSpaceEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/VectorSpaceEditor.form deleted file mode 100644 index 44e0795b4a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/VectorSpaceEditor.form +++ /dev/null @@ -1,113 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/alias b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/alias deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/filesystem.attributes deleted file mode 100644 index d2d9e86ec6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Editors/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/CaseBrowserIOException.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/CaseBrowserIOException.java deleted file mode 100644 index ce4a06e705..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/CaseBrowserIOException.java +++ /dev/null @@ -1,65 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Exceptions; - -import FoamXServer.*; -import FoamXServer.CaseBrowser.ICaseBrowser; - - -public class CaseBrowserIOException - extends Exception -{ - //-------------------------------------------------------------------------- - - ICaseBrowser CaseBrowser_; - FoamXIOError ioErr_; - - //-------------------------------------------------------------------------- - /** - * Constructs a CaseBrowserIOException. - */ - public CaseBrowserIOException(FoamXIOError ioErr, ICaseBrowser caseBrowser) - { - ioErr_ = ioErr; - CaseBrowser_ = caseBrowser; - } - - public ICaseBrowser getCaseBrower() - { - return CaseBrowser_; - } - - public FoamXIOError getIoErr() - { - return ioErr_; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXCancel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXCancel.java deleted file mode 100644 index 9d9a6527c2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXCancel.java +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Exceptions; - -public class FoamXCancel - extends Exception -{ - //-------------------------------------------------------------------------- - /** - * Constructs a FoamXCancel with the - * specified error message. - * @param msg The error message. - */ - public FoamXCancel(String msg) - { - super(msg); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXException.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXException.java deleted file mode 100644 index 686d0deef0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Exceptions/FoamXException.java +++ /dev/null @@ -1,47 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Exceptions; - -public class FoamXException - extends Exception -{ - //-------------------------------------------------------------------------- - /** - * Constructs a FoamXException with the - * specified error message. - * @param msg The error message. - */ - public FoamXException(String msg) - { - super(msg); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/.nbattrs deleted file mode 100644 index 8d159ad428..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/.nbattrs +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/BoundaryTypeSelectorDlg.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/BoundaryTypeSelectorDlg.form deleted file mode 100644 index 1dade382b6..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/BoundaryTypeSelectorDlg.form +++ /dev/null @@ -1,108 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/CaseEditorModule.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/CaseEditorModule.java deleted file mode 100644 index 8d5c01e23c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/CaseEditorModule.java +++ /dev/null @@ -1,2332 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -import java.util.*; -import java.net.*; -import java.io.*; -import java.beans.*; -import javax.swing.*; -import javax.swing.filechooser.*; -import java.awt.event.*; - -import org.omg.CORBA.StringHolder; - -import FoamXServer.*; -import FoamXServer.CaseServer.*; -import FoamXServer.CaseBrowser.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.FoamXTypeEx; -import FoamX.Util.FileEditor; -import FoamX.Util.FileMonitor; -import FoamX.Util.FileListener; -import FoamX.Util.FileEvent; -import FoamX.CaseManagement.IModule; -import FoamX.CaseManagement.IModuleHost; -import FoamX.CaseManagement.CaseChooserDlg; -import FoamX.CaseManagement.CaseBrowserPanel; -import FoamX.Reporting.ReportingWindow; - -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryListener; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryEvent; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEditorPanel; - -import FoamX.WindowManagement.FoamXInternalFrame; -import FoamX.Editors.ApplicationEditor.BoundaryDefinitionModelItem; -import FoamX.Editors.TypeEditor.TypeDescriptorCache; - -public class CaseEditorModule - extends Object - implements - IModule, // Can be loaded as module - PatchStatusListener, // Gets warned of editing of patch types - CompoundEntryListener, // Gets warned of editing of dictionaries - FileListener // Gets warned if file on disk changes -{ - //-------------------------------------------------------------------------- - - protected static final String MODULENAME = "CaseEditorModule"; - protected static final String MODULEDESCRIPTION = - "Generic Case Editor Module."; - - protected PropertyChangeSupport propertySupport_; - protected IModuleHost moduleHost_; - protected int moduleID_; - - // Map of dictionary name to DictionaryWindowHandler objects. - protected java.util.Hashtable dictionaryMap_; - // Map of entry name to DictionaryEntryWindowHandler objects. - protected java.util.Hashtable dictionaryEntryMap_; - // Map of field name to FieldWindowHandler objects. - protected java.util.Hashtable fieldWindowMap_; - // Map of patch name to PatchWindowHandler objects. - protected java.util.Hashtable patchWindowMap_; - // Map of field and patch name to DictionaryWindowHandler objects. - protected java.util.Hashtable patchfieldWindowMap_; - - // Listen for changes to dictionaries and fields - protected FileMonitor monitor_; - - protected int meshNode_; - protected int patchesNode_; - - //-------------------------------------------------------------------------- - // Module actions. - javax.swing.Action[] moduleActions_; - - OpenDictionaryAction openDictionaryAction_; - CloseDictionaryAction closeDictionaryAction_; - SaveDictionaryAction saveDictionaryAction_; - ReadMeshAction readMeshAction_; - ImportMeshAction importMeshAction_; - EditDictionaryEntryAction editDictionaryEntryAction_; - EditPatchAction editPatchAction_; - EditFieldAction editFieldAction_; - EditPatchFieldParametersAction editPatchFieldParametersAction_; - - //-------------------------------------------------------------------------- - /** DictionaryEditorModule constructor. */ - public CaseEditorModule() - { - try - { - propertySupport_ = new PropertyChangeSupport(this); - moduleHost_ = null; - moduleID_ = -1; - dictionaryMap_ = null; - dictionaryEntryMap_ = null; - fieldWindowMap_ = null; - patchfieldWindowMap_ = null; - monitor_ = null; - meshNode_ = -1; - patchesNode_ = -1; - - // Initialise the actions. - openDictionaryAction_ = new OpenDictionaryAction(); - closeDictionaryAction_ = new CloseDictionaryAction(); - saveDictionaryAction_ = new SaveDictionaryAction(); - readMeshAction_ = new ReadMeshAction(); - importMeshAction_ = new ImportMeshAction(); - editDictionaryEntryAction_ = new EditDictionaryEntryAction(); - editPatchAction_ = new EditPatchAction(); - editFieldAction_ = new EditFieldAction(); - editPatchFieldParametersAction_ = - new EditPatchFieldParametersAction(); - - moduleActions_ = new Action[8]; - moduleActions_[0] = openDictionaryAction_; - moduleActions_[1] = closeDictionaryAction_; - moduleActions_[2] = saveDictionaryAction_; - moduleActions_[3] = readMeshAction_; - moduleActions_[4] = importMeshAction_; - moduleActions_[5] = editDictionaryEntryAction_; - moduleActions_[6] = editPatchAction_; - moduleActions_[7] = editFieldAction_; - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Returns the name of this module. */ - public String toString() - { - return MODULENAME; - } - - //-------------------------------------------------------------------------- - //---- IModule Interface - //-------------------------------------------------------------------------- - - public int getModuleID() - { - return moduleID_; - } - - //-------------------------------------------------------------------------- - - public String getModuleName() - { - return MODULENAME; - } - - //-------------------------------------------------------------------------- - - public String getModuleDescription() - { - return MODULEDESCRIPTION; - } - - //-------------------------------------------------------------------------- - - public javax.swing.Action[] getActions() - { - return moduleActions_; - } - - //-------------------------------------------------------------------------- - - // Called by CasePanel to initialise. - public boolean initialiseModule(IModuleHost moduleHost, int moduleID) - throws FoamXIOError, FoamXError, Exception - { - boolean bRet = false; - - try - { - if (moduleID_ != -1) - { - throw new FoamXException("Multiple initialisation error."); - } - - Icon fieldIcon = App.getResources().getIcon("FieldImage"); - Icon meshIcon = App.getResources().getIcon("MeshImage"); - Icon patchesIcon = App.getResources().getIcon("PatchesImage"); - - // Store module Id and the reference to the module host. - moduleHost_ = moduleHost; - moduleID_ = moduleID; - - // Create map objects to hold window handler objects. - dictionaryMap_ = new Hashtable(); - dictionaryEntryMap_ = new Hashtable(); - fieldWindowMap_ = new Hashtable(); - patchWindowMap_ = new Hashtable(); - patchfieldWindowMap_ = new Hashtable(); - - // Get a temporary reference to the case server object. - ICaseServer caseServer = moduleHost_.getCaseServer(); - - //----------------------------------------------------------------- - // Get list of dictionaries from the case's application class - // object. - String[] dictList = caseServer.application().dictionaries(); - - // Add Dictionaries node to tree. - int dictRootNode = moduleHost_.addNode - ( - 0, - "Dictionaries", - FoamXTypeEx.getIcon(FoamXType.Type_Dictionary) - ); - - // Create sub-nodes for all top-level dictionaries. - for (int i = 0; i 0) - { - // Sub dictionary key names are constructed from the - // dictionary names delimited with "/". - String key = dictKey + "/" + subDictName; - - // Attach the Open and Close commands to this node. - moduleHost_.addNodeAction - ( - nodeID, - openDictionaryAction_, - key - ); - moduleHost_.addNodeAction - ( - nodeID, - closeDictionaryAction_, - key - ); - - // Create a window handler for this dictionary and add - // to map. - DictionaryWindowHandler windowHandler = - new DictionaryWindowHandler - ( - subDictName, - dictEntry - ); - dictionaryMap_.put(key, windowHandler); - - // Recursively add this dictionary's children to the - // tree. - AddChildren(nodeID, key, dictEntry); - } - } - else - { - // Dictionary entry key names are constructed from the - // dictionary name and the item name delimited with "::". - String key = dictKey + "::" + entryName; - - // Attach the Edit command to this node. - moduleHost_.addNodeAction - ( - nodeID, - editDictionaryEntryAction_, - key - ); - - IDictionaryEntry ncEntry = - IDictionaryEntryHelper.narrow(entry); - - // Create a window handler for this dictionary entry and - // add to map. - DictionaryEntryWindowHandler windowHandler = - new DictionaryEntryWindowHandler - ( - dictKey, - entryName, - ncEntry - ); - dictionaryEntryMap_.put(key, windowHandler); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - // Create window handlers for a dictionary and its subdictionaries. - private void initialiseDictionaryWindowHandler - ( - String dictPath, - int dictRootNode - ) - { - try - { - // Strip out the directory to get the name. - String dictName = dictPath; - int nIndex = dictPath.lastIndexOf("/"); - if (nIndex != -1) - { - dictName = dictPath.substring(nIndex + 1); - } - - ICaseServer caseServer = moduleHost_.getCaseServer(); - - // Get the DictionaryEntry reference for this dictionary. - IDictionaryEntryHolder holder = new IDictionaryEntryHolder(); - caseServer.getDictionary(dictPath, false, holder); - IDictionaryEntry dictRoot = holder.value; - - // Create a window handler object for this dictionary and add - // to map. - DictionaryWindowHandler windowHandler - = new DictionaryWindowHandler(dictName, dictRoot); - dictionaryMap_.put(dictName, windowHandler); - - // Add node for this dictionary. - int nodeID = moduleHost_.addNode - ( - dictRootNode, - dictName, - TypeDescriptorCache.getIcon(dictRoot.typeDescriptor()) - ); - - // Attach the Open, Close, Save commands to this - // node. - moduleHost_.addNodeAction - ( - nodeID, - openDictionaryAction_, - dictName - ); - moduleHost_.addNodeAction - ( - nodeID, - closeDictionaryAction_, - dictName - ); - moduleHost_.addNodeAction - ( - nodeID, - saveDictionaryAction_, - dictName - ); - - // Recursively add this dictionary's children to the tree. - AddChildren(nodeID, dictName, dictRoot); - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - } - - //-------------------------------------------------------------------------- - - // Create window handlers for all patches of all fields. - private void initialisePatchFieldWindowHandlers() - { - try - { - // Clear all patch field parameter data. - patchfieldWindowMap_.clear(); - - // Get a temporary reference to the case server object. - ICaseServer caseServer = moduleHost_.getCaseServer(); - - // Loop over all fields and check whether parameters are required - // for this patch. - String[] fieldNameList = caseServer.application().fields(); - for (int nField = 0; nField - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/FieldPropertiesWindow.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/FieldPropertiesWindow.java deleted file mode 100644 index 2d51ed3779..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/FieldPropertiesWindow.java +++ /dev/null @@ -1,427 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Modules.CaseEditor; - -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import org.omg.CORBA.StringHolder; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryEvent; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryListener; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellEditor; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCellRenderer; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.CaseServer.IGeometricField; -import FoamXServer.CaseServer.IGeometricFieldHolder; -import FoamXServer.IDictionaryEntryHolder; - -public class FieldPropertiesWindow - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_WIDTH = 400; - - private FieldPropertiesTableModel tableModel_; - private String fieldName_; - - //-------------------------------------------------------------------------- - /** FieldPropertiesWindow constructor. */ - public FieldPropertiesWindow(ICaseServer caseServer, String fieldName) - { - // Initialise the table model. - tableModel_ = new FieldPropertiesTableModel(caseServer, fieldName); - fieldName_ = fieldName; - - // Initialise the table. - initComponents(); - - - // Set cell renderer and editor for value column. - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellRenderer(new DictionaryEntryCellRenderer()); - table_.getColumn - ( - tableModel_.getValueColumnTitle() - ).setCellEditor(new DictionaryEntryCellEditor()); - - // Resize to show the defined rows only. - // Calculate size: table + panel + some extra (= 1 row height) - int height = - table_.getRowHeight() * (tableModel_.getRowCount() + 2) - + (int)getMinimumSize().getHeight(); // panel size - - setPreferredSize(new java.awt.Dimension(DEFAULT_WIDTH, height)); - - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Used to set the title of the host internal frame window. - //return "Field : " + fieldName_; - return fieldName_; - } - - //-------------------------------------------------------------------------- - - public void refresh() - { - // The boundary type may have changed for this field. - // Update the table model. - tableModel_.refresh(); - setSize(new java.awt.Dimension(DEFAULT_WIDTH, 200)); - table_.updateUI(); - } - - //-------------------------------------------------------------------------- - /** Provide access to the table model object. */ - public FieldPropertiesTableModel getTableModel() - { - return tableModel_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - java.awt.GridBagConstraints gridBagConstraints; - - tableScrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - setLayout(new java.awt.GridBagLayout()); - - setFont(new java.awt.Font("Dialog", 0, 10)); - table_.setFont(new java.awt.Font("Dialog", 0, 10)); - table_.setModel(tableModel_); - tableScrollPane_.setViewportView(table_); - - gridBagConstraints = new java.awt.GridBagConstraints(); - gridBagConstraints.gridx = 0; - gridBagConstraints.gridy = 0; - gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints.weightx = 1.0; - gridBagConstraints.weighty = 1.0; - gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); - add(tableScrollPane_, gridBagConstraints); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JScrollPane tableScrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - static class FieldPropertiesTableModel - extends FoamX.Editors.DictionaryEntryEditor.DictionaryEntryTableModel - { - //---------------------------------------------------------------------- - - protected ICaseServer caseServer_; - protected String fieldName_; - - //---------------------------------------------------------------------- - /** - * FieldPropertiesTableModel constructor. Construct the table model from - * the specified field values object in the current case server. - */ - public FieldPropertiesTableModel - ( - ICaseServer caseServer, - String fieldName - ) - { - try - { - caseServer_ = caseServer; - fieldName_ = fieldName; - - // Get field values object for the specified field. - IGeometricFieldHolder holder = new IGeometricFieldHolder(); - caseServer.getFieldValues(fieldName_, holder); - IGeometricField fieldValObject = holder.value; - - IDictionaryEntryHolder dictEntryHolder = - new IDictionaryEntryHolder(); - - //-------------------------------------------------------------- - // Get internal field value dictionary entry object. - fieldValObject.getInternalFieldValue(dictEntryHolder); - DictionaryEntry dictEntry1 = - DictionaryEntryCache.New - ( - dictEntryHolder.value, - "Internal Field Value" - ); - dictEntryList_.add(0, dictEntry1); - dictEntryMap_.put("Internal Field Value", dictEntry1); - -// //-------------------------------------------------------------- -// // Get reference level dictionary entry object. -// fieldValObject.getReferenceLevelValue(dictEntryHolder); -// DictionaryEntry dictEntry2 = -// DictionaryEntryCache.New -// ( -// dictEntryHolder.value, -// "Reference Level" -// ); -// dictEntryList_.add(1, dictEntry2); -// dictEntryMap_.put("Reference Level", dictEntry2); - - //-------------------------------------------------------------- - // Add entries for each patch that requires a value for this - // field. - String[] patchNames = caseServer.patchNames(); - for (int nPatch = 0; nPatch = 0; i -= 2) - { - if (listeners[i] == CompoundEntryListener.class) - { - return - ( - (CompoundEntryListener)listeners[i+1] - ).openSubDictionary(event); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return false; - } - - //---------------------------------------------------------------------- - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorModel.java deleted file mode 100644 index bcb17533ec..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorModel.java +++ /dev/null @@ -1,408 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -import javax.swing.tree.*; -import javax.swing.table.*; -import java.util.*; - -import org.omg.CORBA.StringHolder; - -import FoamX.App; -import FoamX.Editors.ApplicationEditor.BoundaryDefinitionModelItem; -import FoamX.Exceptions.FoamXException; - -import FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor; -import FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.ITypeDescriptorHolder; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; - -public class PatchEditorModel - extends AbstractTableModel -{ - //-------------------------------------------------------------------------- - - public static final int FIELDNAME_INDEX = 0; - public static final int PATCHFIELD_INDEX = 1; - public static final String FIELDNAME_COLUMN = "Field"; - public static final String PATCHFIELD_COLUMN = "Patch Field Type"; - private static final String[] s_columnNames = - { - FIELDNAME_COLUMN, PATCHFIELD_COLUMN - }; - - private String patchName_; - private ICaseServer caseServer_; // Reference to case object. - private CaseEditorModule module_; // Reference to parent module. - private String[] fields_; // List of field names. - private int numFields_; // Number of field in the table. - // Map of field name to patch field type names. - private java.util.Hashtable patchFieldMap_; - - // Tree model used to populate the boundary type selector dialog. - private DefaultTreeModel treeModel_; - // Tree root node. - private DefaultMutableTreeNode rootNode_; - // Map of DefaultMutableTreeNode objects, one for each boundary type. - private java.util.Hashtable boundaryDefMap_; - - // Currently selected boundary type. - private BoundaryDefinitionModelItem currentBoundaryDef_; - - //-------------------------------------------------------------------------- - - public PatchEditorModel(ICaseServer caseServer, String patchName) - { - try - { - // Store patch name and reference to the case server. - caseServer_ = caseServer; - patchName_ = patchName; - fields_ = caseServer_.application().fields(); - numFields_ = fields_.length; - patchFieldMap_ = new Hashtable(); - - // Initialise the boundary types tree strcuture. - initialisePatchPhysicalTypes(); - - // Initialise the patch parameter table. - refreshPatchTable(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public DefaultTreeModel getTreeModel() - { - return treeModel_; - } - - //-------------------------------------------------------------------------- - - BoundaryDefinitionModelItem getBoundaryDefinition() - { - return currentBoundaryDef_; - } - - //-------------------------------------------------------------------------- - - void setBoundaryDefinition(BoundaryDefinitionModelItem boundaryDef) - { - try - { - // Store reference to the selected boundary type. - currentBoundaryDef_ = boundaryDef; - - // Update the boundary type in the case server. - caseServer_.setPatchPhysicalType - ( - patchName_, - currentBoundaryDef_.getName() - ); - - // Update the table. - refreshPatchTable(); - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - private void initialisePatchPhysicalTypes() - { - try - { - // Initialise the tree model. We need to built the map of all boundary definitions - // to make sure that all super types can be resolved before we build the tree. - rootNode_ = new DefaultMutableTreeNode - ( - new BoundaryDefinitionModelItem(), - true - ); - treeModel_ = new DefaultTreeModel(rootNode_); - boundaryDefMap_ = new Hashtable(); - currentBoundaryDef_ = null; - - // Get defined boundary type names from the application class object. - String[] patchPhysicalTypes = - caseServer_.application().patchPhysicalTypes(); - for (int i=0; i = numFields_) - { - throw new Exception("Invalid row index"); - } - - if (columnIndex == FIELDNAME_INDEX) - { - // Return a new string containing the field name. - obj = fields_[rowIndex]; - } - else if (columnIndex == PATCHFIELD_INDEX) - { - obj = (String)patchFieldMap_.get(fields_[rowIndex]); - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (FoamXException fxEx) - { - App.handleException(fxEx); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - - //-------------------------------------------------------------------------- - - public void setValueAt(Object aValue, int rowIndex, int columnIndex) - { - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.form deleted file mode 100644 index 6021a99525..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.form +++ /dev/null @@ -1,103 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.java deleted file mode 100644 index c57243bc87..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEditorWindow.java +++ /dev/null @@ -1,245 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamXServer.CaseServer.ICaseServer; - -public class PatchEditorWindow - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_WIDTH = 400; - - protected EventListenerList listenerList_; - protected PatchEditorModel patchModel_; - protected String patchName_; - - //-------------------------------------------------------------------------- - /** Creates a new PatchEditorWindow object. */ - public PatchEditorWindow(ICaseServer caseServer, String patchName) - { - try - { - patchName_ = patchName; - patchModel_ = new PatchEditorModel(caseServer, patchName); - - // Create listener list. - listenerList_ = new EventListenerList(); - - // Initialise the GUI. - initComponents(); - - // Resize to show the defined rows only. - // Calculate size: table + panel + extra(=1 row height) - int height = - table_.getRowHeight() * (patchModel_.getRowCount() + 2) - + (int)getMinimumSize().getHeight(); // panel size - - table_.setPreferredScrollableViewportSize - ( - new java.awt.Dimension(DEFAULT_WIDTH, height) - ); - - // Initialise the boundary type edit box. - patchPhysicalTypeEdit_.setText - ( - patchModel_.getBoundaryDefinition().getDisplayName() - ); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Used to set the title of the host internal frame window. - return "Patch : " + patchName_; - } - - //-------------------------------------------------------------------------- - - public void addPatchStatusListener(PatchStatusListener l) - { - listenerList_.add(PatchStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removePatchStatusListener(PatchStatusListener l) - { - listenerList_.remove(PatchStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void firePatchPhysicalTypeChanged() - { - String patchPhysicalTypeName = patchModel_.getBoundaryDefinition().getName(); - - // Create event object. - PatchStatusEvent evt = new PatchStatusEvent(this, patchName_, patchPhysicalTypeName); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == PatchStatusListener.class) - { - ((PatchStatusListener)listeners[i + 1]).patchPhysicalTypeChanged(evt); - } - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - comboPanel_ = new javax.swing.JPanel(); - patchPhysicalTypeLabel_ = new javax.swing.JLabel(); - patchPhysicalTypeEdit_ = new javax.swing.JTextField(); - selectPatchPhysicalTypeButton_ = new javax.swing.JButton(); - scrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - setFont(new java.awt.Font("Dialog", 0, 10)); - comboPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - comboPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - patchPhysicalTypeLabel_.setText("Boundary Type"); - patchPhysicalTypeLabel_.setForeground(java.awt.Color.black); - patchPhysicalTypeLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - comboPanel_.add(patchPhysicalTypeLabel_, gridBagConstraints2); - - patchPhysicalTypeEdit_.setEditable(false); - patchPhysicalTypeEdit_.setFont(new java.awt.Font("SansSerif", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.ipady = 5; - gridBagConstraints2.insets = new java.awt.Insets(0, 5, 0, 5); - gridBagConstraints2.weightx = 1.0; - comboPanel_.add(patchPhysicalTypeEdit_, gridBagConstraints2); - - selectPatchPhysicalTypeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - selectPatchPhysicalTypeButton_.setText("..."); - selectPatchPhysicalTypeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnSelectPatchPhysicalType(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 2; - gridBagConstraints2.gridy = 0; - comboPanel_.add(selectPatchPhysicalTypeButton_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - add(comboPanel_, gridBagConstraints1); - - table_.setModel(patchModel_); - table_.setFont(new java.awt.Font("Dialog", 0, 10)); - scrollPane_.setViewportView(table_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(scrollPane_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnSelectPatchPhysicalType (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnSelectPatchPhysicalType - - // Initialise and show the boundary type selector dialog. - PatchPhysicalTypeSelectorDlg dlg = new PatchPhysicalTypeSelectorDlg(null, patchModel_); - dlg.setVisible(true); - - // If the dialog wasn't cancelled, update the boundary type name. - if (!dlg.wasCancelled()) - { - patchPhysicalTypeEdit_.setText(patchModel_.getBoundaryDefinition().getDisplayName()); - table_.updateUI(); - firePatchPhysicalTypeChanged(); - } - }//GEN-LAST:event_OnSelectPatchPhysicalType - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel comboPanel_; - private javax.swing.JLabel patchPhysicalTypeLabel_; - private javax.swing.JTextField patchPhysicalTypeEdit_; - private javax.swing.JButton selectPatchPhysicalTypeButton_; - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEntry.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEntry.java deleted file mode 100644 index dfb72402a6..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchEntry.java +++ /dev/null @@ -1,205 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryEvent; -import FoamX.Editors.DictionaryEntryEditor.CompoundEntryListener; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntry; -import FoamX.Editors.DictionaryEntryEditor.DictionaryEntryCompoundEditor; -import FoamX.Exceptions.FoamXException; - -import FoamXServer.FoamXType; -import FoamXServer.IDictionaryEntry; - -public class PatchEntry - implements DictionaryEntry -{ - //-------------------------------------------------------------------------- - - protected String patchName_; - protected IDictionaryEntry dictEntry_; - protected EventListenerList listenerList_; - protected DictionaryEntryCompoundEditor compEdit_; - - //-------------------------------------------------------------------------- - /** PatchEntry constructor. */ - public PatchEntry(String patchName, IDictionaryEntry dictEntry) - { - try - { - // Store IDictionaryEntry reference and patch name. - dictEntry_ = dictEntry; - patchName_ = patchName; - - // Make sure that the incoming dictionary entry is a dictionary. - FoamXType type = dictEntry_.typeDescriptor().type(); - if (type.value() != FoamXType._Type_Dictionary) - { - throw new FoamXException("Invalid type for PatchEntry object."); - } - - // Initialise event listener list. - listenerList_ = new EventListenerList(); - - // Initialise the editor. - compEdit_ = new DictionaryEntryCompoundEditor(); - - // Subscribe to the edit button's action event so that we can - // invoke the appropriate edit action for the compound types. - compEdit_.addActionListener - ( - new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - fireOpenSubDictionaryEvent(); - } - } - ); - - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - } - //-------------------------------------------------------------------------- - - protected boolean fireOpenSubDictionaryEvent() - { - // Send the patch name to the module. - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - - // Create the event object. - CompoundEntryEvent event = - new CompoundEntryEvent - ( - this, - CompoundEntryEvent.TYPE_PATCH, - patchName_ - ); - - // Fire the event. - for (int i = listeners.length - 2; i>= 0; i -= 2) - { - if (listeners[i] == CompoundEntryListener.class) - { - return - ( - (CompoundEntryListener)listeners[i+1] - ).openSubDictionary(event); - } - } - - return false; - } - - //-------------------------------------------------------------------------- - /** - * Return an appropriate string representation of the current value. - * Used by the default cell renderer to set the text for the label. - */ - public String toString() - { - return getEntryValueString(); - } - - //-------------------------------------------------------------------------- - //---- DictionaryEntry Interface Methods - //-------------------------------------------------------------------------- - - public String getEntryName() - { - return patchName_; - } - - public String getEntryDescription() - { - return patchName_; - } - - public String getEntryValueString() - { - return "Parameters..."; - } - - public boolean isEditable() - { - return dictEntry_.typeDescriptor().editable(); - } - - public boolean isCurrent() - { - return false; - } - - public TableCellRenderer getRenderer() - { - return null; - } - - public TableCellEditor getEditor() - { - return compEdit_; - } - - //-------------------------------------------------------------------------- - /** - * Called by the DictionaryCellEditor's getCellEditorValue - * method to update the value of this item after editing. - */ - public boolean updateValue(Object value) - { - return false; - } - - //-------------------------------------------------------------------------- - - public void addCompoundEntryListener(CompoundEntryListener l) - { - listenerList_.add(CompoundEntryListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCompoundEntryListener(CompoundEntryListener l) - { - listenerList_.remove(CompoundEntryListener.class, l); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchPhysicalTypeSelectorDlg.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchPhysicalTypeSelectorDlg.java deleted file mode 100644 index a7000a5188..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchPhysicalTypeSelectorDlg.java +++ /dev/null @@ -1,265 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -import javax.swing.tree.*; -import java.awt.event.ActionEvent; -import javax.swing.event.TreeSelectionEvent; -import javax.swing.event.TreeSelectionListener; - -import FoamX.App; -import FoamX.Editors.ApplicationEditor.BoundaryDefinitionModelItem; -import FoamX.Util.FoamXTreeRenderer; - -public class PatchPhysicalTypeSelectorDlg - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private PatchEditorModel patchEditorModel_; - private boolean cancelled_; - private BoundaryDefinitionModelItem currentBoundaryDef_; - - //-------------------------------------------------------------------------- - /** PatchPhysicalTypeSelectorDlg constructor. */ - public PatchPhysicalTypeSelectorDlg(java.awt.Frame parent, PatchEditorModel patchEditorModel) - { - super(parent, "Boundary Type Selector", true); // Modal. - - patchEditorModel_ = patchEditorModel; - cancelled_ = false; - currentBoundaryDef_ = patchEditorModel_.getBoundaryDefinition(); - - initComponents(); - - // Set the tree model. - patchPhysicalTypeTree_.setModel(patchEditorModel_.getTreeModel()); - - // Set tree renderer. - patchPhysicalTypeTree_.setCellRenderer(new FoamXTreeRenderer()); - - // Set single selection. - patchPhysicalTypeTree_.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); - - // Listen out for tree selection events. - patchPhysicalTypeTree_.getSelectionModel().addTreeSelectionListener - ( - new TreeSelectionListener() - { - public void valueChanged(TreeSelectionEvent evt) - { - OnSelectionChanged(evt); - } - } - ); - - // Make sure the tree is displayed properly. - patchPhysicalTypeTree_.updateUI(); - } - - //-------------------------------------------------------------------------- - - public boolean wasCancelled() - { - return cancelled_; - } - - //-------------------------------------------------------------------------- - - public void OnSelectionChanged(TreeSelectionEvent evt) - { - try - { - // Get the node object for the current selection. - if (evt.isAddedPath()) // Has the new node been added to the selection? - { - TreePath tp = evt.getPath(); - if (tp != null) - { - // Set the current selection object. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)tp.getLastPathComponent(); - currentBoundaryDef_ = (BoundaryDefinitionModelItem)nodeItem.getUserObject(); - } - } - } - catch (Exception ex) - { - App.printMessage("PatchPhysicalTypeSelectorDlg::OnSelectionChanged : " + ex.getMessage()); - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - buttonPanel_ = new javax.swing.JPanel(); - okButton_ = new javax.swing.JButton(); - cancelButton_ = new javax.swing.JButton(); - treeScrollPane_ = new javax.swing.JScrollPane(); - patchPhysicalTypeTree_ = new javax.swing.JTree(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setTitle("Select Boundary Type"); - setName("PatchPhysicalTypeSelectorDlg"); - setModal(true); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent evt) { - closeDialog(evt); - } - }); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT, 10, 10)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - okButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - okButton_.setText("OK"); - okButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - OnOK(evt); - } - }); - - buttonPanel_.add(okButton_); - - cancelButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - cancelButton_.setText("Cancel"); - cancelButton_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - OnCancel(evt); - } - }); - - buttonPanel_.add(cancelButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - treeScrollPane_.setFont(new java.awt.Font("Dialog", 0, 10)); - patchPhysicalTypeTree_.setFont(new java.awt.Font("Dialog", 0, 10)); - patchPhysicalTypeTree_.setShowsRootHandles(true); - patchPhysicalTypeTree_.setVisibleRowCount(10); - patchPhysicalTypeTree_.setRootVisible(false); - patchPhysicalTypeTree_.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - OnMouseClicked(evt); - } - }); - - treeScrollPane_.setViewportView(patchPhysicalTypeTree_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(treeScrollPane_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(300, 250)); - setLocation((screenSize.width-300)/2,(screenSize.height-250)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - private void OnMouseClicked (java.awt.event.MouseEvent evt) - {//GEN-FIRST:event_OnMouseClicked - // Check for double click event. - if (evt.getClickCount()>= 2) - { - // Set the selected boundary definition in the model. - patchEditorModel_.setBoundaryDefinition(currentBoundaryDef_); - - // Close the dialog. - cancelled_ = false; - setVisible(false); - dispose(); - } - }//GEN-LAST:event_OnMouseClicked - - //-------------------------------------------------------------------------- - - private void OnCancel (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnCancel - cancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_OnCancel - - private void OnOK (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnOK - - // Set the selected boundary definition in the model. - patchEditorModel_.setBoundaryDefinition(currentBoundaryDef_); - - cancelled_ = false; - setVisible(false); - dispose(); - }//GEN-LAST:event_OnOK - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - // Treat as cancel. - cancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton okButton_; - private javax.swing.JButton cancelButton_; - private javax.swing.JScrollPane treeScrollPane_; - private javax.swing.JTree patchPhysicalTypeTree_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusEvent.java deleted file mode 100644 index d5bd0dc8cc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusEvent.java +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -public class PatchStatusEvent - extends java.util.EventObject -{ - protected String patchName_; - protected String patchPhysicalTypeName_; - - /** PatchStatusEvent constructor. */ - public PatchStatusEvent(Object source, String patchName, String patchPhysicalTypeName) - { - super(source); - patchName_ = patchName; - patchPhysicalTypeName_ = patchPhysicalTypeName; - } - - public String getPatchName() - { - return patchName_; - } - public String getPatchPhysicalTypeName() - { - return patchPhysicalTypeName_; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusListener.java deleted file mode 100644 index 43e7114f1b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/PatchStatusListener.java +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.CaseEditor; - -public interface PatchStatusListener - extends java.util.EventListener -{ - public void patchPhysicalTypeChanged(PatchStatusEvent evt); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/filesystem.attributes deleted file mode 100644 index ea62272fb9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/CaseEditor/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/DictionaryTextEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/DictionaryTextEditor.java deleted file mode 100644 index 5786becb42..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/DictionaryTextEditor.java +++ /dev/null @@ -1,131 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Modules.RawDictionaryEditor; - -import java.awt.*; -import java.beans.*; -import javax.swing.*; - -public class DictionaryTextEditor - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private PropertyChangeSupport propertySupport_; - private JScrollPane scrollPane_; - private JTextArea editorPane_; - private String sDictionaryName_; - private boolean bModified_; - - //-------------------------------------------------------------------------- - - /** DictionaryEditor constructor. */ - public DictionaryTextEditor(String sDictionaryName) - { - sDictionaryName_ = sDictionaryName; - propertySupport_ = new PropertyChangeSupport(this); - bModified_ = false; - - // Initialise GUI. - initComponents(); - } - - //-------------------------------------------------------------------------- - - public String toString() - { - // Used to set the title of the parent internal frame window. - return sDictionaryName_; - } - - //-------------------------------------------------------------------------- - - /** - * @param listener - */ - public void addPropertyChangeListener(PropertyChangeListener listener) - { - propertySupport_.addPropertyChangeListener(listener); - } - - //-------------------------------------------------------------------------- - - /** - * @param listener - */ - public void removePropertyChangeListener(PropertyChangeListener listener) - { - propertySupport_.removePropertyChangeListener(listener); - } - - //-------------------------------------------------------------------------- - - private void initComponents() - { - scrollPane_ = new JScrollPane(); - editorPane_ = new JTextArea(); - scrollPane_.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); - scrollPane_.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); - scrollPane_.setViewportView(editorPane_); - editorPane_.setFont(new Font("monospaced", Font.PLAIN, 10)); - - // Set the preferred size of the editor window. - scrollPane_.setPreferredSize(new Dimension(400, 400)); - - setBackground(new java.awt.Color(255, 0, 0)); - setLayout(new GridLayout(1, 1)); - add(scrollPane_); - repaint(); - } - - //-------------------------------------------------------------------------- - - public void setEditorText(String sText) - { - editorPane_.setText(sText); - editorPane_.setCaretPosition(0); - return; - } - - //-------------------------------------------------------------------------- - - public String getEditorText() - { - return editorPane_.getText(); - } - - //-------------------------------------------------------------------------- - - public boolean isModified() - { - return bModified_; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/RawDictionaryEditorModule.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/RawDictionaryEditorModule.java deleted file mode 100644 index 389f5334c3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Modules/RawDictionaryEditor/RawDictionaryEditorModule.java +++ /dev/null @@ -1,561 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Modules.RawDictionaryEditor; - -import java.beans.*; -import java.util.*; -import javax.swing.*; -import java.awt.event.*; - -import FoamXServer.*; -import FoamXServer.CaseServer.*; - -import FoamX.App; -import FoamX.Util.FoamXTypeEx; -import FoamX.CaseManagement.IModule; -import FoamX.CaseManagement.IModuleHost; -import FoamX.WindowManagement.FoamXInternalFrame; - -public class RawDictionaryEditorModule - extends Object - implements IModule -{ - //-------------------------------------------------------------------------- - - private static final String moduleName_ = "RawDictionaryEditor"; - private static final String moduleDescription_ = - "Edits Dictionaries in the raw"; - - private IModuleHost moduleHost_; - private int moduleID_; - private boolean initialised_; - // Map of dictionary descriptor objects. - private java.util.Hashtable dictionaryMap_; - private PropertyChangeSupport propertySupport_; - - //-------------------------------------------------------------------------- - // Module actions. - - public static final String OPENRAWDICTIONARY_ACTION = "OpenRawDictionary"; - public static final String CLOSERAWDICTIONARY_ACTION = "CloseRawDictionary"; - public static final String SAVERAWDICTIONARY_ACTION = "SaveRawDictionary"; - - public static final int OPENRAWDICTIONARY_INDEX = 0; - public static final int CLOSERAWDICTIONARY_INDEX = 1; - public static final int SAVERAWDICTIONARY_INDEX = 2; - private Action[] moduleActions_ = - { - new OpenRawDictionaryAction(), - new CloseRawDictionaryAction(), - new SaveRawDictionaryAction() - }; - - //-------------------------------------------------------------------------- - // Inner class for storing dictionary information. - - public class DictionaryDescriptor - { - private String dictionaryName_; - private String dictionaryPath_; - private DictionaryTextEditor editor_; - private int windowID_; - - public DictionaryDescriptor - ( - String dictionaryName, - String dictionaryPath - ) - { - dictionaryName_ = dictionaryName; - dictionaryPath_ = dictionaryPath; - editor_ = null; - windowID_ = -1; - } - - public String getName() - { - return dictionaryName_; - } - public String getPath() - { - return dictionaryPath_; - } - public DictionaryTextEditor getTextEditor() - { - return editor_; - } - public void setTextEditor(DictionaryTextEditor editor) - { - editor_ = editor; - } - public int getWindowID() - { - return windowID_; - } - public void setWindowID(int windowID) - { - windowID_ = windowID; - } - } - - //-------------------------------------------------------------------------- - /** RawDictionaryEditorModule constructor. */ - - public RawDictionaryEditorModule() - { - moduleHost_ = null; - dictionaryMap_ = null; - moduleID_ = -1; - initialised_ = false; - propertySupport_ = new PropertyChangeSupport(this); - } - - //-------------------------------------------------------------------------- - - /** Returns the name of this module. */ - public String toString() - { - return moduleName_; - } - - //-------------------------------------------------------------------------- - - public void addPropertyChangeListener(PropertyChangeListener listener) - { - propertySupport_.addPropertyChangeListener(listener); - } - - //-------------------------------------------------------------------------- - - public void removePropertyChangeListener(PropertyChangeListener listener) - { - propertySupport_.removePropertyChangeListener(listener); - } - - //-------------------------------------------------------------------------- - //---- IModule Interface - //-------------------------------------------------------------------------- - - public int getModuleID() - { - return moduleID_; - } - - //-------------------------------------------------------------------------- - - public String getModuleName() - { - return moduleName_; - } - - //-------------------------------------------------------------------------- - - public String getModuleDescription() - { - return moduleDescription_; - } - - //-------------------------------------------------------------------------- - - public javax.swing.Action[] getActions() - { - return moduleActions_; - } - - //-------------------------------------------------------------------------- - - public boolean initialiseModule(IModuleHost moduleHost, int moduleID) - { - boolean bRet = false; - - try - { - // Prevent multiple initialisation. - if (!initialised_) - { - // Store module Id and the reference to the module host. - moduleHost_ = moduleHost; - moduleID_ = moduleID; - - // Get a reference to the current case. - ICaseServer currentCase = moduleHost_.getCaseServer(); - - // Get list of dictionaries from the case's application class - // object. - String[] dictList = - currentCase.application().dictionaries(); - - // Create map object to hold descriptor objects. - dictionaryMap_ = new Hashtable(); - - // Add Dictionaries node to tree. - int dictRootNode = - moduleHost_.addNode - ( - 0, - "RawDictionaries", - FoamXTypeEx.getIcon(FoamXType.Type_Dictionary) - ); - - // Create a sub-node for all dictionaries. - for (int i = 0; i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.form deleted file mode 100644 index 8dfbf1ef6b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.form +++ /dev/null @@ -1,92 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.java deleted file mode 100644 index bbf044a2c6..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/DocServerTab.java +++ /dev/null @@ -1,146 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class DocServerTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - - //-------------------------------------------------------------------------- - /** DocServerTab Constructor. */ - public DocServerTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - - initComponents(); - - if (optionsMgr_.containsKey("browser")) - { - browserField_.setText(optionsMgr_.getProperty("browser")); - } - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - if (browserField_.getText().trim().length()> 0) - { - optionsMgr_.put("browser", browserField_.getText()); - } - optionsMgr_ = null; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - browserPanel_ = new javax.swing.JPanel(); - externalBrowser_ = new javax.swing.JCheckBox(); - browserLabel_ = new javax.swing.JLabel(); - browserField_ = new javax.swing.JTextField(); - serverPanel_ = new javax.swing.JPanel(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - browserPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - browserPanel_.setBorder(new javax.swing.border.TitledBorder(null, "Documentation Browser", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10), java.awt.Color.black)); - externalBrowser_.setFont(new java.awt.Font("Dialog", 0, 10)); - externalBrowser_.setText("Use External Browser"); - externalBrowser_.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(4, 4, 2, 4); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - browserPanel_.add(externalBrowser_, gridBagConstraints2); - - browserLabel_.setText("External Browser Executable"); - browserLabel_.setForeground(java.awt.Color.black); - browserLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(2, 4, 4, 4); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - browserPanel_.add(browserLabel_, gridBagConstraints2); - - browserField_.setFont(new java.awt.Font("SansSerif", 0, 10)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(2, 4, 4, 4); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints2.weightx = 1.0; - browserPanel_.add(browserField_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - add(browserPanel_, gridBagConstraints1); - - serverPanel_.setBorder(new javax.swing.border.TitledBorder(null, "Documentation Server", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10), java.awt.Color.black)); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(serverPanel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel browserPanel_; - private javax.swing.JCheckBox externalBrowser_; - private javax.swing.JLabel browserLabel_; - private javax.swing.JTextField browserField_; - private javax.swing.JPanel serverPanel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.form deleted file mode 100644 index 5ae8444bfe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.form +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.java deleted file mode 100644 index 447b1e6922..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/FieldTypesTab.java +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class FieldTypesTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - - //-------------------------------------------------------------------------- - /** Constructor for FieldTypesTab. */ - public FieldTypesTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - initComponents(); - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - - setLayout(new java.awt.BorderLayout()); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.form deleted file mode 100644 index 7974922d09..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.form +++ /dev/null @@ -1,46 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.java deleted file mode 100644 index e3979ec009..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/GeneralOptionsTab.java +++ /dev/null @@ -1,106 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class GeneralOptionsTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - private OptionTableModel tableModel_; - - //-------------------------------------------------------------------------- - /** GeneralOptionsTab constructor. */ - public GeneralOptionsTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - tableModel_ = new OptionTableModel(optionsMgr); - - // Initialise the table model. - //tableModel_.addParameter("Prompt for password at startup"); - - initComponents(); - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - panel_ = new javax.swing.JPanel(); - scrollPane_ = new javax.swing.JScrollPane(); - table_ = new javax.swing.JTable(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - panel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - panel_.setBorder(new javax.swing.border.EtchedBorder()); - table_.setModel(tableModel_); - scrollPane_.setViewportView(table_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - panel_.add(scrollPane_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(10, 10, 10, 10); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - add(panel_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel panel_; - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JTable table_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.form deleted file mode 100644 index 5ae8444bfe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.form +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.java deleted file mode 100644 index 2a978236ad..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/HostsTab.java +++ /dev/null @@ -1,71 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class HostsTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - - //-------------------------------------------------------------------------- - /** Constructor for HostsTab. */ - public HostsTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - initComponents(); - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - - setLayout(new java.awt.BorderLayout()); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} \ No newline at end of file diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionParameter.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionParameter.java deleted file mode 100644 index f3a652e6e4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionParameter.java +++ /dev/null @@ -1,61 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class OptionParameter - extends Object -{ - //-------------------------------------------------------------------------- - - protected String name_; - protected boolean editable_; - - //-------------------------------------------------------------------------- - /** OptionParameter constructor. */ - public OptionParameter(String name) - { - name_ = name; - editable_ = true; - } - - //-------------------------------------------------------------------------- - - public String getName() - { - return name_; - } - - public boolean isEditable() - { - return editable_; - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionTableModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionTableModel.java deleted file mode 100644 index a97295f78e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionTableModel.java +++ /dev/null @@ -1,200 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -import java.util.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; - -import FoamX.App; -import FoamXServer.FoamXError; -import FoamXServer.FoamXIOError; - -public class OptionTableModel - extends AbstractTableModel -{ - //-------------------------------------------------------------------------- - - public static final int NAME_COLUMN_INDEX = 0; - public static final int VALUE_COLUMN_INDEX = 1; - - protected OptionsManager optionsMgr_; // Reference to the global options manager object. - protected java.util.List paramList_; // List of OptionParameter objects. - protected java.util.Hashtable paramMap_; // Map of OptionParameter objects. - protected String[] columnNames_ = { "Option", "Value" }; - - //-------------------------------------------------------------------------- - /** - * DictionaryEntryTableModel constructor for compound types. - * @param compoundEntry Reference to the compound entry object. - */ - public OptionTableModel(OptionsManager optionsMgr) - { - try - { - optionsMgr_ = optionsMgr; - paramList_ = new Vector(10); - paramMap_ = new Hashtable(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void addParameter(String paramName) - { - OptionParameter param = new OptionParameter(paramName); - paramList_.add(param); - paramMap_.put(paramName, param); - } - - //-------------------------------------------------------------------------- - //--- Abstract AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public int getRowCount() - { - return paramList_.size(); - } - - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return columnNames_.length; - } - - //-------------------------------------------------------------------------- - - public Object getValueAt(int rowIndex, int columnIndex) - { - Object obj = null; - - try - { - // Check for valid row index. - if (rowIndex>= paramList_.size()) - { - throw new Exception("Invalid row index"); - } - - // Get OptionParameter object for this row. - OptionParameter param = (OptionParameter)paramList_.get(rowIndex); - - if (columnIndex == NAME_COLUMN_INDEX) - { - // Return the OptionParameter display name. - obj = param.getName(); - } - else - { - // Return the OptionParameter object for this entry. - obj = param; - } - } - catch (FoamXIOError ioErr) - { - App.handleException(ioErr); - } - catch (FoamXError fxErr) - { - App.handleException(fxErr); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return obj; - } - - //-------------------------------------------------------------------------- - //--- Overriden AbststractTableModel Methods - //-------------------------------------------------------------------------- - - public String getColumnName(int columnIndex) - { - return columnNames_[columnIndex]; - } - - //-------------------------------------------------------------------------- - - public Class getColumnClass(int columnIndex) - { - // Value column is of type DictionaryEntry. - if (columnIndex == VALUE_COLUMN_INDEX) - { - return OptionParameter.class; - } - - // Name column is of type String. - return String.class; - } - - //-------------------------------------------------------------------------- - - public boolean isCellEditable(int rowIndex, int columnIndex) - { - boolean bEditable = false; - - try - { - if (columnIndex == VALUE_COLUMN_INDEX && rowIndex - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsDlg.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsDlg.java deleted file mode 100644 index eee75e09cd..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsDlg.java +++ /dev/null @@ -1,193 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -class OptionsDlg - extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - private boolean wasCancelled_; - - private GeneralOptionsTab generalTab_; - private DocServerTab docServerTab_; - private HostsTab hostsTab_; - private FieldTypesTab foamTypesTab_; - private PatchTypesTab patchTypesTab_; - private PatchFieldTypesTab patchFieldTypesTab_; - - //-------------------------------------------------------------------------- - /** Creates new form OptionsDlg */ - OptionsDlg(java.awt.Frame parent, OptionsManager optionsMgr) - { - super(parent, true); // Modal. - - optionsMgr_ = optionsMgr; - wasCancelled_ = false; - - // Create tabs. - generalTab_ = new GeneralOptionsTab(optionsMgr_); - docServerTab_ = new DocServerTab(optionsMgr_); - hostsTab_ = new HostsTab(optionsMgr_); - foamTypesTab_ = new FieldTypesTab(optionsMgr_); - patchTypesTab_ = new PatchTypesTab(optionsMgr_); - patchFieldTypesTab_ = new PatchFieldTypesTab(optionsMgr_); - - // Initialise components and add tabs. - initComponents(); - tabbedPane_.addTab("General", generalTab_); - tabbedPane_.addTab("Doc Server", docServerTab_); - tabbedPane_.addTab("Hosts", hostsTab_); - tabbedPane_.addTab("Field Types", foamTypesTab_); - tabbedPane_.addTab("Patch Types", patchTypesTab_); - tabbedPane_.addTab("Patch Field Types", patchFieldTypesTab_); - } - - //-------------------------------------------------------------------------- - - boolean wasCancelled() - { - return wasCancelled_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - tabbedPane_ = new javax.swing.JTabbedPane(); - buttonPanel_ = new javax.swing.JPanel(); - buttonOK_ = new javax.swing.JButton(); - buttonCancel_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setTitle("FoamX Options..."); - setName("FoamX Options"); - addWindowListener(new java.awt.event.WindowAdapter() { - public void windowClosing(java.awt.event.WindowEvent evt) { - closeDialog(evt); - } - }); - - tabbedPane_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(tabbedPane_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder(javax.swing.border.EtchedBorder.RAISED)); - buttonOK_.setFont(new java.awt.Font("Dialog", 0, 10)); - buttonOK_.setText("OK"); - buttonOK_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - buttonOKActionPerformed_(evt); - } - }); - - buttonPanel_.add(buttonOK_); - - buttonCancel_.setFont(new java.awt.Font("Dialog", 0, 10)); - buttonCancel_.setText("Cancel"); - buttonCancel_.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - buttonCancelActionPerformed_(evt); - } - }); - - buttonPanel_.add(buttonCancel_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.anchor = java.awt.GridBagConstraints.SOUTH; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(400, 350)); - setLocation((screenSize.width-400)/2,(screenSize.height-350)/2); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - -private void buttonCancelActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_buttonCancelActionPerformed_ - wasCancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_buttonCancelActionPerformed_ - - //-------------------------------------------------------------------------- - -private void buttonOKActionPerformed_ (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_buttonOKActionPerformed_ - wasCancelled_ = false; - - docServerTab_.updateModel(); - - setVisible(false); - dispose(); - }//GEN-LAST:event_buttonOKActionPerformed_ - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - wasCancelled_ = true; - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JTabbedPane tabbedPane_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton buttonOK_; - private javax.swing.JButton buttonCancel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsManager.java deleted file mode 100644 index 14ca243d68..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/OptionsManager.java +++ /dev/null @@ -1,194 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -import java.io.*; -import java.util.*; - -import FoamX.App; - -import FoamX.Exceptions.FoamXException; - -public class OptionsManager - extends java.util.Properties -{ - //-------------------------------------------------------------------------- - - private String foamXSystemPath_; - private String foamXSystemConfigPath_; - private String foamXUserConfigPath_; - - //-------------------------------------------------------------------------- - /** OptionsManager constructor. */ - public OptionsManager() - { - try - { - // Get the FoamX config path. - // To override default, use -DFoamX.ConfigPath=path on command line. - // Would really like to just pick up the FOAMX_USER_CONFIG - // environment variable. But, Java thinks that environment - // variables are not portable and does not allow access to them! - // Pile of crap that it is.... - - // See if it has been overridden on the command line. - foamXSystemPath_ = java.lang.System.getProperty - ( - "FoamX.SystemPath", foamXSystemPath_ - ); - - - // Set the default path. - foamXSystemConfigPath_ = - foamXSystemPath_ - + "applications/utilities/preProcessing/FoamX/config"; - - // See if it has been overridden on the command line. - foamXSystemConfigPath_ = java.lang.System.getProperty - ( - "FoamX.SystemConfigPath", foamXSystemConfigPath_ - ); - - - // Get user config path - foamXUserConfigPath_ = java.lang.System.getProperty - ( - "FoamX.UserConfigPath" - ); - if (foamXUserConfigPath_ == null) - { - throw new FoamXException - ( - "No FoamX.UserConfigPath property specified in arguments." - ); - } - - // Initialise the default properties. - Properties defProps = new Properties(); - - // TODO : Load default values from resource file. - //defProps.load(); - defaults = defProps; - - // See if we have a custom properties file and load it if we have. - loadFromFile(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public String foamXSystemPath() - { - return foamXSystemPath_; - } - - //-------------------------------------------------------------------------- - - public String foamXSystemConfigPath() - { - return foamXSystemConfigPath_; - } - - //-------------------------------------------------------------------------- - - public String foamXUserConfigPath() - { - return foamXUserConfigPath_; - } - - //-------------------------------------------------------------------------- - - public void loadFromFile() - { - try - { - // Load the properties object from file. - String propFileName = foamXUserConfigPath_ + "/FoamXClient.cfg"; - File propFile = new File(propFileName); - if (propFile.exists()) - { - load(new FileInputStream(propFileName)); - - // Add the config paths to the properties bundle. - put("FoamX.SystemConfigPath", foamXSystemConfigPath_); - put("FoamX.UserConfigPath", foamXUserConfigPath_); - } - else - { - throw new Exception - ( - "FoamX client properties file not found at '" - + propFileName + "'." - ); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - -// //-------------------------------------------------------------------------- -// -// public void saveToFile() -// { -// try -// { -// // Persist the properties object to file. -// String propFileName = foamXUserConfigPath_ + "/FoamXClient.cfg"; -// store -// ( -// new FileOutputStream(propFileName), -// " FoamX Client Configuration." -// ); -// } -// catch (Exception ex) -// { -// App.handleAllExceptions(ex); -// } -// } -// -// //-------------------------------------------------------------------------- -// -// public void showEditDialog(java.awt.Frame parent) -// { -// OptionsDlg dlg = new OptionsDlg(parent, this); -// dlg.show(); -// if (!dlg.wasCancelled()) -// { -// saveToFile(); -// } -// } -// - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.form deleted file mode 100644 index 5ae8444bfe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.form +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.java deleted file mode 100644 index a3fcab80e8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchFieldTypesTab.java +++ /dev/null @@ -1,74 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class PatchFieldTypesTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - - //-------------------------------------------------------------------------- - /** Constructor for PatchFieldTypesTab. */ - public PatchFieldTypesTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - initComponents(); - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - - setLayout(new java.awt.BorderLayout()); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.form deleted file mode 100644 index 5ae8444bfe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.form +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.java deleted file mode 100644 index 93e0c5ca37..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/PatchTypesTab.java +++ /dev/null @@ -1,73 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -public class PatchTypesTab - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - private OptionsManager optionsMgr_; - - //-------------------------------------------------------------------------- - /** Constructor for PatchTypesTab. */ - public PatchTypesTab(OptionsManager optionsMgr) - { - optionsMgr_ = optionsMgr; - initComponents(); - } - - //-------------------------------------------------------------------------- - - public void updateModel() - { - } - - //-------------------------------------------------------------------------- - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - - setLayout(new java.awt.BorderLayout()); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/filesystem.attributes deleted file mode 100644 index ad1f76da1a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Options/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/ChoiceListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/ChoiceListener.java deleted file mode 100644 index f10cd2d8d8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/ChoiceListener.java +++ /dev/null @@ -1,13 +0,0 @@ -package FoamX.Post; - -import java.awt.event.*; - -public interface ChoiceListener - extends java.util.EventListener -{ - public abstract void actionPerformed(ActionEvent e); -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/.nbattrs deleted file mode 100644 index a5da3b329d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/.nbattrs +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AmbientLightNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AmbientLightNode.java deleted file mode 100644 index 2e2dddacb3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AmbientLightNode.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * LightNode.java - */ -package FoamX.Post.InteractiveNodes; - -import java.awt.*; -import java.awt.Font; - -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.geometry.Text2D; -import com.sun.j3d.utils.picking.PickResult; - - -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.Util.Text; - -public class AmbientLightNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - AmbientLight light_; - boolean isShowing_; - - public AmbientLightNode - ( - final String myName, - final Color3f color, - final BoundingSphere bounds - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - // Create light - light_ = new AmbientLight(color); - light_.setInfluencingBounds(bounds); - - switch_.addChild(light_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: LightNode Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: LightNode unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("LightNode show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("LightNode hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("LightNode remove:" + this.name()); - - hide(); - light_ = null; - switch_ = null; - } -} // end of class LightNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ArrowsNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ArrowsNode.java deleted file mode 100644 index c8e2dae134..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ArrowsNode.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Shapes.Arrows; -import FoamX.Post.Util.Colorizer; - -public class ArrowsNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - Arrows arrows_; - boolean isShowing_; - - public ArrowsNode - ( - final String myName, - final float[] sampleCoords, - final float[] vecValues, - final float sizeScale, - final float[] scalValues, - final Colorizer colorizer, - final float min, - final float max - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - arrows_ = - new Arrows - ( - sampleCoords, - vecValues, - sizeScale, - scalValues, - colorizer, - min, - max - ); - - switch_.addChild(arrows_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public Arrows getArrows() - { - return arrows_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("Picked ArrowsNode"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("UnPicked ArrowsNode"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - arrows_ = null; - switch_ = null; - } - -} // end of class ArrowsNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AxisNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AxisNode.java deleted file mode 100644 index 10f8ca6db1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/AxisNode.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * AxisNode.java - */ -package FoamX.Post.InteractiveNodes; - -import java.awt.*; -import java.awt.Font; - -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.geometry.Text2D; -import com.sun.j3d.utils.picking.PickResult; - - -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.Shapes.AxisLines; -import FoamX.Post.Util.Text; - -public class AxisNode implements InteractiveNode -{ - String myName_; - Color3f color3f_; - Switch switch_; - BranchGroup branchGroup_; - AxisLines axisLines_; - boolean isShowing_; - - public AxisNode(String myName, Color3f color3f) - { - myName_ = myName; - color3f_ = color3f; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - // Axis lines - axisLines_ = new AxisLines(this, color3f_); - switch_.addChild(axisLines_); - - branchGroup_.addChild(switch_); - - // Axis text - //addText(switch_); // 2D text - - Text axisText = new Text(); - switch_.addChild - ( - axisText.createLabel("X", 1.1f, 0f, 0f, color3f_.get()) - ); - switch_.addChild - ( - axisText.createLabel("Y", 0f, 1.1f, 0f, color3f_.get()) - ); - switch_.addChild - ( - axisText.createLabel("Z", 0f, 0f, 1.1f, color3f_.get()) - ); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - // Utility function to create text objects. - private void addText(Group group) - { - Color3f axisColor = new Color3f(1f, 1f, 0); - Shape3D textObject = null; - Transform3D textTranslation = null; - TransformGroup textTranslationGroup = null; - - textObject = new Text2D - ( - "x", - axisColor, - "Serif", - 70, - Font.BOLD - ); - //textObject.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - - textTranslation = new Transform3D(); - textTranslation.setTranslation(new Vector3f(0.5f, 0f, 0f)); - textTranslationGroup = new TransformGroup(textTranslation); - textTranslationGroup.addChild(textObject); - group.addChild(textTranslationGroup); - - textObject = new Text2D - ( - "y", - axisColor, - "Serif", - 70, - Font.BOLD - ); - //textObject.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - - textTranslation = new Transform3D(); - textTranslation.setTranslation(new Vector3f(0f, 0.5f, 0f)); - textTranslationGroup = new TransformGroup(textTranslation); - textTranslationGroup.addChild(textObject); - group.addChild(textTranslationGroup); - - textObject = new Text2D - ( - "z", - axisColor, - "Serif", - 70, - Font.BOLD - ); - //textObject.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - - textTranslation = new Transform3D(); - textTranslation.setTranslation(new Vector3f(0f, 0f, 0.5f)); - textTranslationGroup = new TransformGroup(textTranslation); - textTranslationGroup.addChild(textObject); - group.addChild(textTranslationGroup); - } - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: AxisNode Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: AxisNode unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("AxisNode show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("AxisNode hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("AxisNode remove:" + this.name()); - hide(); - - axisLines_.remove(); - axisLines_ = null; - switch_ = null; - } -} // end of class AxisNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/BackgroundNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/BackgroundNode.java deleted file mode 100644 index 6a492b47f3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/BackgroundNode.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * BackgroundNode.java - */ -package FoamX.Post.InteractiveNodes; - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; -import com.sun.j3d.utils.picking.PickResult; - - -import javax.media.j3d.*; -import javax.vecmath.*; - -public class BackgroundNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - Background bg_; - boolean isShowing_; - - public BackgroundNode - ( - final String myName, - final Color3f color, - final BoundingSphere bounds - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - // Create background - bg_ = new Background(color); - bg_.setApplicationBounds(bounds); - - switch_.addChild(bg_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: BackgroundNode Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: BackGroundNode unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("BackgroundNode show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("BackgroundNode hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("BackgroundNode remove:" + this.name()); - hide(); - bg_ = null; - switch_ = null; - } -} // end of class BackgroundNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBar2DNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBar2DNode.java deleted file mode 100644 index 04779350ef..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBar2DNode.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import java.awt.*; -import java.awt.event.*; - -import FoamX.Post.Util.Colorizer; -import FoamX.Post.Util.Placement; -import FoamX.Post.Shapes2D.ColorBar2D; - -public class ColorBar2DNode - implements InteractiveNode, ComponentListener -{ - String myName_; - Canvas3D canvas_; - Placement placement_; - Dimension dimension_; - Colorizer colorizer_; - float min_, max_; - - Dimension topLeft_; - Switch switch_; - BranchGroup branchGroup_; - BranchGroup switchGroup_; - ColorBar2D colorBar2D_; - boolean isShowing_; - - public ColorBar2DNode - ( - final String myName, - final Canvas3D canvas, - final Placement placement, - final Dimension dimension, - final Colorizer ci, - final float min, - final float max - ) - { - myName_ = myName; - canvas_ = canvas; - placement_ = placement; - dimension_ = dimension; - colorizer_ = ci; - min_ = min; - max_ = max; - - topLeft_ = placement_.getTopLeft(canvas_, dimension_); - -//System.out.println("dimension_:" + dimension_); -//System.out.println("placement_:" + placement_.getSpacing() + " " + placement_.getCorner()); - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Switch.ALLOW_CHILDREN_EXTEND); - switch_.setCapability(Switch.ALLOW_CHILDREN_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - switchGroup_ = new BranchGroup(); - switchGroup_.setCapability(BranchGroup.ALLOW_DETACH); - switchGroup_.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE); - switch_.addChild(switchGroup_); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - colorBar2D_ = - new ColorBar2D - ( - canvas_, topLeft_.width, topLeft_.height, - dimension_.width, dimension_.height, - colorizer_, - min_, max_ - ); - colorBar2D_.repaint(); - colorBar2D_.setVisible(true); - switchGroup_.addChild(colorBar2D_.getRoot()); - - branchGroup_.addChild(switch_); - - canvas_.addComponentListener(this); - } - - //-------------------------------------------------------------------------- - - public BranchGroup getRoot() - { - return branchGroup_; - } - - //-------------------------------------------------------------------------- - - public ColorBar2D getColorBar2D() - { - return colorBar2D_; - } - - //-------------------------------------------------------------------------- - - public void move(Dimension newTopLeft) - { - if (newTopLeft.equals(topLeft_)) - { - return; - } - topLeft_ = newTopLeft; - - - boolean isLive = this.isShowing(); - if (isLive) - { - this.hide(); - } - - //switch_.removeAllChildren(); - colorBar2D_ = null; - switchGroup_.removeAllChildren(); - - colorBar2D_ = - new ColorBar2D - ( - canvas_, topLeft_.width, topLeft_.height, - dimension_.width, dimension_.height, - colorizer_, - min_, max_ - ); - - colorBar2D_.repaint(); - colorBar2D_.setVisible(true); - - switchGroup_.addChild(colorBar2D_.getRoot()); - //switch_.addChild(switchGroup_); - - if (isLive) - { - this.show(); - } - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("Picked ColorBar2DNode"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("UnPicked ColorBar2DNode"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - - hide(); - colorBar2D_ = null; - switch_ = null; - } - - - //-------------------------------------------------------------------------- - //---- ComponentListener Interface - //-------------------------------------------------------------------------- - - public void componentMoved(ComponentEvent e) - { - System.out.println("componentMoved:" + this.name()); - } - - public void componentResized(ComponentEvent e) - { - System.out.println("componentResized:" + canvas_.getWidth() + " " + canvas_.getHeight()); - - if (placement_.getCorner() != Placement.TOPLEFT) - { - Dimension topLeft = placement_.getTopLeft(canvas_, dimension_); - this.move(topLeft); - } - } - - public void componentHidden(ComponentEvent e) - { - System.out.println("componentHidden:" + this.name()); - } - - public void componentShown(ComponentEvent e) - { - System.out.println("componentShown:" + this.name()); - } - -} // end of class ColorBar2DNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBarNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBarNode.java deleted file mode 100644 index 01feb1f038..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColorBarNode.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Util.Colorizer; -import FoamX.Post.Shapes.ColorBar; - -public class ColorBarNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - ColorBar colorBar_; - boolean isShowing_; - - public ColorBarNode - ( - final String myName, - final Colorizer ci, - final float min, - final float max - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - colorBar_ = new ColorBar(this, ci, min, max); - - switch_.addChild(colorBar_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public ColorBar getColorBar() - { - return colorBar_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - colorBar_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - colorBar_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - colorBar_.remove(); - colorBar_ = null; - switch_ = null; - } - -} // end of class ColorBarNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColoredSurfaceByRefNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColoredSurfaceByRefNode.java deleted file mode 100644 index 5f6ab4485a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/ColoredSurfaceByRefNode.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Shapes.ColoredSurfaceByRef; -//import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.Util.Colorizer; - -public class ColoredSurfaceByRefNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - ColoredSurfaceByRef coloredSurfaceByRef_; - boolean isShowing_; - - //- From unstripped file - public ColoredSurfaceByRefNode - ( - final String myName, - final double creaseAngle, - final boolean stripify, - final String pointsFileName, - final String facesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - this - ( - myName, false, false, stripify, creaseAngle, - pointsFileName, null, facesFileName, valuesFileName, - colorizer, min, max - ); - } - - //- From file stripped or not stripped - public ColoredSurfaceByRefNode - ( - final String myName, - final boolean readTriStrip, - final boolean readNormals, - final boolean stripify, - final double creaseAngle, - final String pointsFileName, - final String normalsFileName, - final String facesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - coloredSurfaceByRef_ = - new ColoredSurfaceByRef - ( - this, - readTriStrip, - readNormals, - stripify, - creaseAngle, - pointsFileName, - normalsFileName, - facesFileName, - valuesFileName, - colorizer, - min, - max - ); - - switch_.addChild(coloredSurfaceByRef_); - - branchGroup_.addChild(switch_); - } - - - // From values - public ColoredSurfaceByRefNode - ( - final String myName, - final boolean readTriStrip, - final boolean stripify, - final double creaseAngle, - final float[] points, - final float[] normals, - final int[] triFaces, - final float[] values, - final Colorizer colorizer, - final float min, - final float max - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - coloredSurfaceByRef_ = - new ColoredSurfaceByRef - ( - this, - readTriStrip, - stripify, - creaseAngle, - points, - normals, - triFaces, - null, - values, - colorizer, - min, - max - ); - - switch_.addChild(coloredSurfaceByRef_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public ColoredSurfaceByRef getColoredSurfaceByRef() - { - return coloredSurfaceByRef_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - coloredSurfaceByRef_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - coloredSurfaceByRef_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - coloredSurfaceByRef_.remove(); - coloredSurfaceByRef_ = null; - switch_ = null; - } - -} // end of class ColoredSurfaceByRefNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/DirectionalLightNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/DirectionalLightNode.java deleted file mode 100644 index cb8cc521de..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/DirectionalLightNode.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * LightNode.java - */ -package FoamX.Post.InteractiveNodes; - -import java.awt.*; -import java.awt.Font; - -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.geometry.Text2D; -import com.sun.j3d.utils.picking.PickResult; - - -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.Util.Text; - -public class DirectionalLightNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - DirectionalLight light_; - boolean isShowing_; - - public DirectionalLightNode - ( - final String myName, - final Color3f color, - final Vector3f direction, - final BoundingSphere bounds - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - // Create light - light_ = new DirectionalLight(color, direction); - light_.setInfluencingBounds(bounds); - - switch_.addChild(light_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: LightNode Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: LightNode unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("LightNode show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("LightNode hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("LightNode remove:" + this.name()); - - hide(); - light_ = null; - switch_ = null; - } -} // end of class LightNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/FeatureLinesNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/FeatureLinesNode.java deleted file mode 100644 index ec5b09ab77..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/FeatureLinesNode.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Shapes.FeatureLines; -import FoamX.Post.Mesh.PrimitivePatch; - -public class FeatureLinesNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - FeatureLines featureLines_; - boolean isShowing_; - - public FeatureLinesNode(String myName, PrimitivePatch patch) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - featureLines_ = new FeatureLines(this, patch); - - switch_.addChild(featureLines_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public FeatureLines getFeatureLines() - { - return featureLines_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - featureLines_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - featureLines_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - featureLines_.remove(); - featureLines_ = null; - switch_ = null; - } - -} // end of class FeatureLinesNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNode.java deleted file mode 100644 index 3f01672f84..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNode.java +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Post.InteractiveNodes; - -import javax.media.j3d.*; -import com.sun.j3d.utils.picking.PickResult; - -public interface InteractiveNode -{ - public abstract String name(); - - // Picking - public abstract void picked(PickResult pickResult); - public abstract void unPicked(PickResult pickResult); - - // Enable/disable - public abstract void show(); - public abstract void hide(); - public abstract boolean isShowing(); - public abstract void remove(); -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNodeList.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNodeList.java deleted file mode 100644 index fe64b4be2e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/InteractiveNodeList.java +++ /dev/null @@ -1,266 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Post.InteractiveNodes; - -import javax.swing.table.*; -import javax.swing.event.TableModelListener; -import javax.swing.event.TableModelEvent; - -import java.util.*; - -public class InteractiveNodeList - extends AbstractTableModel - implements TableModelListener -{ - private boolean DEBUG = false; - - final String[] columnNames_ = {"Name", "Show"}; - - Vector shapes_; - - //-------------------------------------------------------------------------- - - public InteractiveNodeList() - { - shapes_ = new Vector(); - } - - - //-------------------------------------------------------------------------- - // Vector-like interface - //-------------------------------------------------------------------------- - - public void addElement(InteractiveNode shape) - { - shapes_.addElement(shape); - - int maxRow = this.getRowCount() - 1; - int nCols = this.getColumnCount(); - for(int i = 0; i < nCols; i++) - { - fireTableCellUpdated(maxRow, i); - } - } - - //-------------------------------------------------------------------------- - - public void removeElement(InteractiveNode shape) - { - int index = shapes_.indexOf(shape); - - this.removeElementAt(index); - } - - //-------------------------------------------------------------------------- - - public void removeElementAt(int index) - { - InteractiveNode shape = (InteractiveNode)shapes_.elementAt(index); - shape.hide(); - shape.remove(); - shapes_.removeElementAt(index); - } - - - //-------------------------------------------------------------------------- - // Shape specifics - //-------------------------------------------------------------------------- - - public InteractiveNode getByName(String name) - { - Enumeration enum = shapes_.elements(); - while (enum.hasMoreElements()) - { - InteractiveNode shape = (InteractiveNode)enum.nextElement(); - if (shape.name().equals(name)) - { - return shape; - } - } - return null; - } - - //-------------------------------------------------------------------------- - - public void show(String name) - { - InteractiveNode shape = this.getByName(name); - if (shape != null) - { - shape.show(); - } - } - - //-------------------------------------------------------------------------- - - public void hide(String name) - { - InteractiveNode shape = this.getByName(name); - if (shape != null) - { - shape.hide(); - } - } - - //-------------------------------------------------------------------------- - - public void showAll() - { - Enumeration enum = shapes_.elements(); - while (enum.hasMoreElements()) - { - InteractiveNode shape = (InteractiveNode)enum.nextElement(); - shape.show(); - } - } - - //-------------------------------------------------------------------------- - - public void hideAll() - { - Enumeration enum = shapes_.elements(); - while (enum.hasMoreElements()) - { - InteractiveNode shape = (InteractiveNode)enum.nextElement(); - shape.hide(); - } - } - - //-------------------------------------------------------------------------- - - public void println() - { - System.out.println("-- Contents --"); - - int i = 0; - Enumeration enum = shapes_.elements(); - while (enum.hasMoreElements()) - { - InteractiveNode shape = (InteractiveNode)enum.nextElement(); - System.out.println(i + " " + shape.name() + " " + shape.isShowing()); - i++; - } - - System.out.println(); - } - - - //-------------------------------------------------------------------------- - // AbstractTableModel interface - //-------------------------------------------------------------------------- - - public int getColumnCount() - { - return columnNames_.length; - } - - public int getRowCount() - { - return shapes_.size(); - } - - public String getColumnName(int col) - { - return columnNames_[col]; - } - - public Object getValueAt(int row, int col) - { - InteractiveNode shape = (InteractiveNode)shapes_.elementAt(row); - - if (col == 0) - { - return shape.name(); - } - else - { - return new Boolean(shape.isShowing()); - } - } - - - public Class getColumnClass(int c) { - return getValueAt(0, c).getClass(); - } - - - public boolean isCellEditable(int row, int col) { - if (col == 0) { - return false; - } else { - return true; - } - } - - - public void setValueAt(Object value, int row, int col) { - if (DEBUG) - { - System.out.println - ( - "Setting value at " + row + "," + col - + " to " + value - + " (an instance of " - + value.getClass() + ")" - ); - } - - InteractiveNode shape = (InteractiveNode)shapes_.elementAt(row); - - if (col != 1) - { - System.out.println("**ERROR: col: " + col); - } - - Boolean bool = (Boolean)value; - if (bool.booleanValue() == true) - { - shape.show(); - } - else - { - shape.hide(); - } - - if (DEBUG) - { - println(); - } - - fireTableCellUpdated(row, col); - } - - - // - // Implementation of the TableModelListener interface - // - - // By default forward all events to all the listeners. - public void tableChanged(TableModelEvent e) { - fireTableChanged(e); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/LoopNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/LoopNode.java deleted file mode 100644 index bff613a854..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/LoopNode.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.Shapes.FeatureLines; -import FoamX.Post.Shapes.Loop; - -public class LoopNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - Loop loop_; - boolean isShowing_; - - public LoopNode - ( - String myName, - PrimitivePatch patch, - FeatureLines featureLines - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - loop_ = new Loop(this, patch, featureLines); - - switch_.addChild(loop_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public Loop getLoop() - { - return loop_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - loop_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - loop_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - loop_.remove(); - loop_ = null; - switch_ = null; - } - -} // end of class Loop diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/MeshLinesNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/MeshLinesNode.java deleted file mode 100644 index ff854dc23f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/MeshLinesNode.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Shapes.MeshLines; -import FoamX.Post.Mesh.PrimitivePatch; - -public class MeshLinesNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - MeshLines meshLines_; - boolean isShowing_; - - public MeshLinesNode(String myName, float[] coords, int[] edgeList) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - meshLines_ = new MeshLines(this, coords, edgeList); - - switch_.addChild(meshLines_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public MeshLines getMeshLines() - { - return meshLines_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - meshLines_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - meshLines_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - meshLines_.remove(); - meshLines_ = null; - switch_ = null; - } - -} // end of class MeshLinesNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchFacesNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchFacesNode.java deleted file mode 100644 index a382f325f3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchFacesNode.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - */ - -package FoamX.Post.InteractiveNodes; - -import com.sun.j3d.utils.picking.PickResult; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; - -import FoamX.Post.Shapes.PatchFaces; -import FoamX.Post.Mesh.PrimitivePatch; - - -public class PatchFacesNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - PatchFaces patchFaces_; - boolean isShowing_; - - - public PatchFacesNode - ( - String myName, - PrimitivePatch patch, - Color3f color, - double creaseAngle - ) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - patchFaces_ = new PatchFaces - ( - this, - patch, - color, - creaseAngle - ); - - switch_.addChild(patchFaces_); - - branchGroup_.addChild(switch_); - } - - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public PatchFaces getPatchFaces() - { - return patchFaces_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - patchFaces_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - patchFaces_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("Node show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("Node hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("Node remove:" + this.name()); - hide(); - patchFaces_.remove(); - patchFaces_ = null; - switch_ = null; - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchPointsNode.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchPointsNode.java deleted file mode 100644 index d97caee33c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/InteractiveNodes/PatchPointsNode.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * - */ - -package FoamX.Post.InteractiveNodes; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.Shapes.PatchPoints; - -public class PatchPointsNode implements InteractiveNode -{ - String myName_; - Switch switch_; - BranchGroup branchGroup_; - PatchPoints patchPoints_; - boolean isShowing_; - - public PatchPointsNode(String myName, PrimitivePatch patch, Color3f color) - { - myName_ = myName; - - isShowing_ = false; - - switch_ = new Switch(); - switch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - switch_.setCapability(Node.ALLOW_BOUNDS_READ); - - branchGroup_ = new BranchGroup(); - branchGroup_.setCapability(Node.ALLOW_BOUNDS_READ); - - patchPoints_ = new PatchPoints(this, patch, color); - - switch_.addChild(patchPoints_); - - branchGroup_.addChild(switch_); - } - - public BranchGroup getRoot() - { - return branchGroup_; - } - - public PatchPoints getPatchPoints() - { - return patchPoints_; - } - - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - - - public String name() - { - return myName_; - } - - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - patchPoints_.picked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - patchPoints_.unPicked(pickResult); - } - - //-------------------------------------------------------------------------- - - // Include in display - public void show() - { - //System.out.println("show:" + this.name()); - switch_.setWhichChild(Switch.CHILD_ALL); - isShowing_ = true; - } - - //-------------------------------------------------------------------------- - - // Exclude from display - public void hide() - { - //System.out.println("hide:" + this.name()); - switch_.setWhichChild(Switch.CHILD_NONE); - isShowing_ = false; - } - - //-------------------------------------------------------------------------- - - // Check status - public boolean isShowing() - { - return isShowing_; - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + this.name()); - hide(); - patchPoints_.remove(); - patchPoints_ = null; - switch_ = null; - } - -} // end of class PatchPointsNode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Mesh/PrimitivePatch.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Mesh/PrimitivePatch.java deleted file mode 100644 index 6ccd5a1afa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Mesh/PrimitivePatch.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - */ - -package FoamX.Post.Mesh; - -import javax.media.j3d.*; -import javax.vecmath.Point3f; - -public class PrimitivePatch -{ - - public static final Point3f[] points = - { - new Point3f(0.0f, 0.0f, 0.0f), - new Point3f(1.0f, 0.0f, 0.0f), - new Point3f(1.0f, 1.0f, 0.0f), - new Point3f(0.5f, 2.0f, 0.0f), - new Point3f(0.0f, 1.0f, 0.0f), - - new Point3f(0.0f, 0.0f, 1.0f), - new Point3f(1.0f, 0.0f, 1.0f), - new Point3f(1.0f, 1.0f, 1.0f), - new Point3f(0.5f, 2.0f, 1.0f), - new Point3f(0.0f, 1.0f, 1.0f), - - new Point3f(0.5f, 0.8f, 0.0f), // 10 - new Point3f(0.5f, 0.8f, 1.0f) // 11 - - }; - - // Array of localFaces(but in 'sufaceMesh' pointLabels), - // one for each patch - static final int[][][] localFacesList = - { - - // Patch 0 - { - { 0, 1, 2,10}, // Face 0 - {10, 2, 3, 4}, // Face 1 - { 0,10, 4}, // Face 2 - - { 5, 6, 7,11}, // Face 3 - {11, 7, 8, 9}, // Face 4 - { 5,11, 9} // Face 5 - }, - // Patch 1 - { - {0, 5, 9, 6}, // Face 0 - {4, 9, 8, 3}, // Face 1 - {3, 8, 7, 2}, // Face 2 - {2, 7, 6, 1}, // Face 3 - {1, 6, 5, 0} // Face 4 - } - }; - - static final int[][] localTriFacesList = - { - - // Patch 0 - { - 0,10, 1, - 1,10, 2, - 2,10, 3, - 3,10, 4, - 4,10, 0, - - 5, 6,11, - 11, 6, 7, - 11, 7, 8, - 11, 8, 9, - 11, 9, 5 - }, - // Patch 1 - { - 0, 5, 9, - 0, 9, 4, - 4, 9, 8, - 4, 8, 3, - 3, 8, 7, - 3, 7, 2, - 2, 7, 6, - 2, 6, 1, - 1, 6, 5, - 1, 5, 0 - } - }; - - // For each triangle give index in localFacesList - static final int[][] triToPolyList = - { - - // Patch 0 - { - 0, - 0, - 1, - 1, - 2, - - 3, - 3, - 4, - 4, - 5 - }, - // Patch 1 - { - 0, - 0, - 1, - 1, - 2, - 2, - 3, - 3, - 4, - 4, - 5, - 5 - } - }; - - static final int[][] featureLinesList = - { - - // Patch 0 - { - 0, 1, 1, 2, 2, 3, 3, 4, 4, 0, - 5, 6, 6, 7, 7, 8, 8, 9, 9, 5, - 3, 10 // Loose "crease" - }, - // Patch 1 - { - 0, 1, 1, 2, 2, 3, 3, 4, 4, 0, - 5, 6, 6, 7, 7, 8, 8, 9, 9, 5, - 0, 5, 4, 9, 3, 8, 2, 7, 1, 6 - } - }; - - - int patchNo_; - - public PrimitivePatch(int patchNo) - { - patchNo_ = patchNo; - } - - - public int getPatchNo() - { - return patchNo_; - } - - //- Points - public int getNumPoints() - { - return points.length; - } - - //- Points - public Point3f[] getPoints() - { - return points; - } - - //- List of faces - public int[][] getLocalFaces() - { - return localFacesList[patchNo_]; - } - - //- List of triangulated faces - public int[] getLocalTriFaces() - { - return localTriFacesList[patchNo_]; - } - - //- List of triToPoly - public int[] getTriToPoly() - { - return triToPolyList[patchNo_]; - } - - //- List of labels. Every two are edge. Unsorted/unconnected. - public int[] getFeatureLines() - { - return featureLinesList[patchNo_]; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/MouseModePanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/MouseModePanel.java deleted file mode 100644 index 34062054aa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/MouseModePanel.java +++ /dev/null @@ -1,178 +0,0 @@ -package FoamX.Post; - -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import java.util.*; - -import FoamX.Post.InteractiveNodes.InteractiveNode; -import FoamX.Post.InteractiveNodes.InteractiveNodeList; -import FoamX.Post.InteractiveNodes.FeatureLinesNode; -import FoamX.Post.Shapes.FeatureLines; - - -public class MouseModePanel extends JPanel -{ - static JFrame frame; - - static String zeroString = "rotate&pick"; - static String oneString = "create loop from patch0"; - static String twoString = "load arguments"; - static String threeString = "print shapes"; - - protected EventListenerList listenerList_; - InteractiveNodeList shapes_; - - - public MouseModePanel(InteractiveNodeList shapes) - { - shapes_ = shapes; - - // Create listener list. - listenerList_ = new EventListenerList(); - - - // Create the radio buttons. - JRadioButton zeroButton = new JRadioButton(zeroString); - zeroButton.setMnemonic(KeyEvent.VK_B); - zeroButton.setActionCommand(zeroString); - zeroButton.setSelected(true); - - JRadioButton oneButton = new JRadioButton(oneString); - oneButton.setMnemonic(KeyEvent.VK_R); - oneButton.setActionCommand(oneString); - - JRadioButton twoButton = new JRadioButton(twoString); - twoButton.setMnemonic(KeyEvent.VK_R); - twoButton.setActionCommand(twoString); - - JRadioButton threeButton = new JRadioButton(threeString); - threeButton.setMnemonic(KeyEvent.VK_R); - threeButton.setActionCommand(threeString); - - // Group the radio buttons. - ButtonGroup group = new ButtonGroup(); - group.add(zeroButton); - group.add(oneButton); - group.add(twoButton); - group.add(threeButton); - - // Register a listener for the radio buttons. - RadioListener zeroListener = new RadioListener(0); - zeroButton.addActionListener(zeroListener); - RadioListener oneListener = new RadioListener(1); - oneButton.addActionListener(oneListener); - RadioListener twoListener = new RadioListener(2); - twoButton.addActionListener(twoListener); - RadioListener threeListener = new RadioListener(3); - threeButton.addActionListener(threeListener); - - - // Put the radio buttons in a column in a panel - JPanel radioPanel = new JPanel(); - radioPanel.setLayout(new GridLayout(0, 1)); - radioPanel.add(zeroButton); - radioPanel.add(oneButton); - radioPanel.add(twoButton); - radioPanel.add(threeButton); - - setLayout(new BorderLayout()); - add(radioPanel, BorderLayout.WEST); - setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); - } - - /** Listens to the radio buttons. */ - class RadioListener implements ActionListener - { - int choice_; - - public RadioListener(int choice) - { - super(); - choice_ = choice; - } - - public void actionPerformed(ActionEvent e) { -// System.out.println(e.getActionCommand()); - -// InteractiveNode shape = shapes_.getByName("featureLines_0"); -// System.out.println("Found shape=" + shape); -// -// if (e.getActionCommand() == oneString) -// { -// FeatureLinesNode node = (FeatureLinesNode)shape; -// FeatureLines fLines = node.getFeatureLines(); -// -// int[] edges = fLines.getSelectedEdges(); -// for(int i = 0; i < edges.length; i++) -// { -// System.out.println("i=" + i + " edges=" + edges[i]); -// } -// -// //shape.hide(); -// } -// else if (e.getActionCommand() == zeroString) -// { -// //shape.show(); -// } - -// fireChoice(new ChoiceEvent(this, choice_)); - fireChoice(e); - } - } - - - //-------------------------------------------------------------------------- - //---- ChoiceListener Methods - //-------------------------------------------------------------------------- - public void addChoiceListener(ChoiceListener l) - { - listenerList_.add(ChoiceListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeChoiceListener(ChoiceListener l) - { - listenerList_.remove(ChoiceListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireChoice(ActionEvent e) - { - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == ChoiceListener.class) - { - ((ChoiceListener)listeners[i+1]).actionPerformed(e); - } - } - } - - - //-------------------------------------------------------------------------- - //---- Main - //-------------------------------------------------------------------------- - public static void main(String s[]) - { - frame = new JFrame("Mouse Action"); - frame.addWindowListener - ( - new WindowAdapter() - { - public void windowClosing(WindowEvent e) {System.exit(0);} - } - ); - - frame.getContentPane().add - ( - new MouseModePanel(new InteractiveNodeList()), - BorderLayout.CENTER - ); - frame.pack(); - frame.setVisible(true); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeEvent.java deleted file mode 100644 index 7cc8f89343..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeEvent.java +++ /dev/null @@ -1,66 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Post.Panels; - - -public class TimeChangeEvent - extends java.util.EventObject -{ - protected int timeIndex_; - protected double time_; - - /** TimeChangeEvent constructor. */ - public TimeChangeEvent - ( - Object source, - int timeIndex, - double time - ) - { - super(source); - timeIndex_ = timeIndex; - time = time; - } - - - public String toString() - { - return "TimeChangeEvent : index:" + timeIndex_ + " time:" + time_; - } - - public int getTimeIndex() - { - return timeIndex_; - } - - public double getTime() - { - return time_; - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeListener.java deleted file mode 100644 index 955a62a17e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimeChangeListener.java +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Post.Panels; - -public interface TimeChangeListener - extends java.util.EventListener -{ - public abstract void timeChanged(TimeChangeEvent evt); -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimePanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimePanel.java deleted file mode 100644 index 4b3653b1da..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Panels/TimePanel.java +++ /dev/null @@ -1,219 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Post.Panels; - -import java.awt.Container; -import java.awt.GridLayout; -import java.awt.Dimension; -import java.awt.event.*; -import java.awt.event.ActionEvent; -import java.awt.Graphics; -import java.awt.GraphicsConfiguration; -import java.io.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; - -import com.sun.j3d.utils.universe.*; -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamXServer.*; -import FoamXServer.CasePostServer.ICasePostServer; - -import FoamX.App; -import FoamX.Post.Panels.*; -import FoamX.Post.PostApp; - -public class TimePanel extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - protected ICasePostServer casePostServer_; - protected PostApp pp_; - protected String caseRoot_; - protected String caseName_; - protected EventListenerList listenerList_; - - - //-------------------------------------------------------------------------- - /** Creates new form TimePanel */ - public TimePanel - ( - ICasePostServer casePostServer, - PostApp pp, - String caseRoot, - String caseName - ) - { - super(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - casePostServer_ = casePostServer; - pp_ = pp; - caseRoot_ = caseRoot; - caseName_ = caseName; - - initComponents(); - - updateButton_ActionPerformed(new ActionEvent(this, 0, "dummy")); - } - - //-------------------------------------------------------------------------- - - private void initComponents() - { - updateButton_ = new javax.swing.JButton("Read Times"); - timeBox_ = new javax.swing.JComboBox(); - - // Globalpanel - this.setLayout(new GridLayout(1, 2)); - this.add(updateButton_); - this.add(timeBox_); - - // Listeners - updateButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - updateButton_ActionPerformed(evt); - } - } - ); - timeBox_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - timeBox_ActionPerformed(evt); - } - } - ); - -// java.awt.Dimension screenSize = -// java.awt.Toolkit.getDefaultToolkit().getScreenSize(); -// //setSize(new java.awt.Dimension(300, 200)); -// setLocation((screenSize.width-480)/2,(screenSize.height-200)/2); - }//GEN-END:initComponents - - - private void updateButton_ActionPerformed(ActionEvent evt) - { - String[] timeSteps = casePostServer_.availableTimeSteps(); - timeBox_.removeAllItems(); - for(int i = 0; i < timeSteps.length; i++) - { - timeBox_.addItem(timeSteps[i]); - } - //timeBox_ActionPerformed(new ActionEvent(this, 0, "dummy")); - } - - private void timeBox_ActionPerformed(ActionEvent evt) - { - try - { - if (timeBox_.getSelectedItem() != null) - { - String timeName = (String)timeBox_.getSelectedItem(); - - int timeIndex = timeBox_.getSelectedIndex(); - - casePostServer_.setTime(timeName, timeIndex); - - fireTimeChanged(timeIndex, Double.parseDouble(timeName)); - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - //-------------------------------------------------------------------------- - //---- TimeChangeListener Methods - //-------------------------------------------------------------------------- - - public void addTimeChangeListener(TimeChangeListener l) - { - listenerList_.add(TimeChangeListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeTimeChangeListener(TimeChangeListener l) - { - listenerList_.remove(TimeChangeListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireTimeChanged(int timeIndex, double timeValue) - { - // Create event object. - TimeChangeEvent evt = new TimeChangeEvent(this, timeIndex, timeValue); - - // Process the listeners last to first, notifying those that - // are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == TimeChangeListener.class) - { - ((TimeChangeListener)listeners[i+1]).timeChanged(evt); - } - } - } - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JButton updateButton_; - private javax.swing.JComboBox timeBox_; - - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PatchSelector-WORKING.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PatchSelector-WORKING.java deleted file mode 100644 index 53e21c24f7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PatchSelector-WORKING.java +++ /dev/null @@ -1,1088 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Post; - -import java.awt.Container; -import java.awt.GridLayout; -import java.awt.Dimension; -import java.awt.event.*; -import java.awt.event.ActionEvent; -import java.awt.Graphics; -import java.awt.GraphicsConfiguration; -import java.io.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; - -import com.sun.j3d.utils.universe.*; -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamXServer.*; -import FoamXServer.CasePostServer.ICasePostServer; - -import FoamX.App; -import FoamX.CaseManagement.CaseStatusListener; -import FoamX.CaseManagement.CaseStatusEvent; - -import FoamX.Post.InteractiveNodes.InteractiveNodeList; -import FoamX.Post.InteractiveNodes.ColoredSurfaceByRefNode; -import FoamX.Post.InteractiveNodes.MeshLinesNode; -import FoamX.Post.InteractiveNodes.ColorBar2DNode; -import FoamX.Post.InteractiveNodes.ArrowsNode; -import FoamX.Post.Shapes.ColoredSurfaceByRef; -import FoamX.Post.Util.Colorizer; -import FoamX.Post.Util.ArrayStats; -import FoamX.Post.Util.PrintManager; -import FoamX.Post.Util.Placement; -import FoamX.Post.Panels.*; - -public class PostWindow extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - public static final boolean KILL_SERVER = true; - - protected java.awt.Frame parent_; - protected ICasePostServer casePostServer_; - protected PostApp pp_; - protected String caseRoot_; - protected String caseName_; - protected EventListenerList listenerList_; - protected int patchNo_; - protected int cutNo_; - protected Transform3D look_; - - - //-------------------------------------------------------------------------- - /** Creates new form PostWindow */ - public PostWindow - ( - java.awt.Frame parent, - ICasePostServer casePostServer, - PostApp pp, - String caseRoot, - String caseName - ) - { - super(parent, "Post Processor", false); // Non modal. - - // Create listener list. - listenerList_ = new EventListenerList(); - - parent_ = parent; - casePostServer_ = casePostServer; - pp_ = pp; - caseRoot_ = caseRoot; - caseName_ = caseName; - - patchNo_ = 0; - cutNo_ = 0; - - look_ = new Transform3D(); - - initComponents(); - - updateButton_ActionPerformed(new ActionEvent(this, 0, "dummy")); - - show(); - } - - //-------------------------------------------------------------------------- - /** Close the case and release the case post server object. - */ - public void closeCase(boolean killServer) - { - try - { - // Close down the case server and unlock the case. - if (killServer && (casePostServer_ != null)) - { - System.out.println("Killing casePostServer"); - casePostServer_.close(); - casePostServer_ = null; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - private void initComponents() - { - mainPanel_ = new javax.swing.JPanel(); - - globalPanel_ = new javax.swing.JPanel(); - updateButton_ = new javax.swing.JButton("Read Times"); - timeBox_ = new javax.swing.JComboBox(); - fieldTypeBox_ = new javax.swing.JComboBox(); - fieldNameBox_ = new javax.swing.JComboBox(); - minField_ = new JTextField("0"); - maxField_ = new JTextField("1"); - vecSizeField_ = new JTextField("1"); - - patchPanel_ = new javax.swing.JPanel(); - patchBox_ = new javax.swing.JComboBox(); - createPatchButton_ = new javax.swing.JButton("Create Patch"); - - cutPanel_ = new javax.swing.JPanel(); - xField_ = new JTextField("0"); - yField_ = new JTextField("0"); - zField_ = new JTextField("0"); - xNField_ = new JTextField("0"); - yNField_ = new JTextField("0"); - zNField_ = new JTextField("1"); - createCutButton_ = new javax.swing.JButton("Create Cut"); - createMeshCutButton_ = new javax.swing.JButton("Create Mesh Cut"); - - viewPanel_ = new javax.swing.JPanel(); - xEyeField_ = new JTextField("1"); - yEyeField_ = new JTextField("0"); - zEyeField_ = new JTextField("0"); - xCenterField_ = new JTextField("0"); - yCenterField_ = new JTextField("0"); - zCenterField_ = new JTextField("0"); - xUpField_ = new JTextField("0"); - yUpField_ = new JTextField("0"); - zUpField_ = new JTextField("1"); - setViewButton_ = new javax.swing.JButton("Set View"); - - xResField_ = new JTextField("2000"); - yResField_ = new JTextField("2000"); - printFileName_ = new JFileChooser(new File(".")); - printFileName_.setSelectedFile(new File("FoamX.jpg")); - printButton_ = new javax.swing.JButton("Print"); - - closeButton_ = new javax.swing.JButton("Close"); - - // Mainpanel - mainPanel_.setLayout(new GridLayout(4, 1)); - mainPanel_.add(globalPanel_); - mainPanel_.add(patchPanel_); - mainPanel_.add(cutPanel_); - mainPanel_.add(viewPanel_); - //mainPanel_.add(closeButton_); - - // Globalpanel - globalPanel_.setLayout(new GridLayout(7, 2)); - - globalPanel_.add(new JLabel("Read Times")); - globalPanel_.add(updateButton_); - - globalPanel_.add(new JLabel("Time")); - globalPanel_.add(timeBox_); - - globalPanel_.add(new JLabel("Type")); - fieldTypeBox_.addItem("volScalarField"); - fieldTypeBox_.addItem("volVectorField"); - globalPanel_.add(fieldTypeBox_); - - globalPanel_.add(new JLabel("Name")); - globalPanel_.add(fieldNameBox_); - - globalPanel_.add(new JLabel("Min")); - globalPanel_.add(minField_); - - globalPanel_.add(new JLabel("Max")); - globalPanel_.add(maxField_); - - globalPanel_.add(new JLabel("VecSize")); - globalPanel_.add(vecSizeField_); - - - // Patchpanel - patchPanel_.setLayout(new GridLayout(2, 2)); - patchPanel_.add(new JLabel("Patch")); - patchPanel_.add(patchBox_); - - patchPanel_.add(new JLabel("Create Patch")); - patchPanel_.add(createPatchButton_); - - // Cutpanel - cutPanel_.setLayout(new GridLayout(3, 4)); - cutPanel_.add(new JLabel("Point")); - cutPanel_.add(xField_); - cutPanel_.add(yField_); - cutPanel_.add(zField_); - - cutPanel_.add(new JLabel("Normal")); - cutPanel_.add(xNField_); - cutPanel_.add(yNField_); - cutPanel_.add(zNField_); - - cutPanel_.add(new JLabel("Create Cut")); - cutPanel_.add(createCutButton_); - cutPanel_.add(new JLabel("Create Mesh Cut")); - cutPanel_.add(createMeshCutButton_); - - // Viewpanel - viewPanel_.setLayout(new GridLayout(5,4)); - - viewPanel_.add(new JLabel("Eye")); - viewPanel_.add(xEyeField_); - viewPanel_.add(yEyeField_); - viewPanel_.add(zEyeField_); - - viewPanel_.add(new JLabel("Center")); - viewPanel_.add(xCenterField_); - viewPanel_.add(yCenterField_); - viewPanel_.add(zCenterField_); - - viewPanel_.add(new JLabel("Up")); - viewPanel_.add(xUpField_); - viewPanel_.add(yUpField_); - viewPanel_.add(zUpField_); - - viewPanel_.add(new JLabel("")); - viewPanel_.add(new JLabel("")); - viewPanel_.add(setViewButton_); - viewPanel_.add(new JLabel("")); - - viewPanel_.add(xResField_); - viewPanel_.add(yResField_); - viewPanel_.add(printButton_); - viewPanel_.add(closeButton_); - - Container c = getContentPane(); - c.add(mainPanel_); - - // Listeners - updateButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - updateButton_ActionPerformed(evt); - } - } - ); - timeBox_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - timeBox_ActionPerformed(evt); - } - } - ); - fieldTypeBox_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - fieldTypeBox_ActionPerformed(evt); - } - } - ); - createPatchButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createPatchButton_ActionPerformed(evt); - } - } - ); - createCutButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createCutButton_ActionPerformed(evt); - } - } - ); - createMeshCutButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createMeshCutButton_ActionPerformed(evt); - } - } - ); - setViewButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - setViewButton_ActionPerformed(evt); - } - } - ); - printButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - printButton_ActionPerformed(evt); - } - } - ); - - // Window closing - setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); - addWindowListener - ( - new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeButton_ActionPerformed(new ActionEvent(this, 0, "dummy")); - } - } - ); - closeButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - closeButton_ActionPerformed(evt); - } - } - ); - - - - pack(); - java.awt.Dimension screenSize = - java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - //setSize(new java.awt.Dimension(300, 200)); - setLocation((screenSize.width-480)/2,(screenSize.height-200)/2); - }//GEN-END:initComponents - - - private void closeButton_ActionPerformed(ActionEvent evt) - { - fireClosePostCase - ( - caseRoot_, - caseName_ - ); - } - - private void updateButton_ActionPerformed(ActionEvent evt) - { - String[] timeSteps = casePostServer_.availableTimeSteps(); - timeBox_.removeAllItems(); - for(int i = 0; i < timeSteps.length; i++) - { - timeBox_.addItem(timeSteps[i]); - } - timeBox_ActionPerformed(new ActionEvent(this, 0, "dummy")); - } - - private void setFieldNames(String fieldType) - { - try - { - if (fieldType == null) - { - return; - } - - String[] fieldNames = - casePostServer_.getFieldNames(fieldType); - - fieldNameBox_.removeAllItems(); - for(int i = 0; i < fieldNames.length; i++) - { - fieldNameBox_.addItem(fieldNames[i]); - } - } - catch (FoamXError fxErr) - { - System.out.println("fxErr"); - } - catch (FoamXIOError ioErr) - { - System.out.println("ioErr"); - } - } - - private void timeBox_ActionPerformed(ActionEvent evt) - { - try - { - if (timeBox_.getSelectedItem() != null) - { - float timeValue = - Float.valueOf((String)timeBox_.getSelectedItem()).floatValue(); - int timeIndex = timeBox_.getSelectedIndex(); - - casePostServer_.setTime(timeValue, timeIndex); - - String[] patchNames = casePostServer_.getPatchNames(); - - patchBox_.removeAllItems(); - for(int i = 0; i < patchNames.length; i++) - { - patchBox_.addItem(patchNames[i]); - } - - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - setFieldNames(fieldType); - } - } - catch (FoamXError fxErr) - { - System.out.println("fxErr"); - } - catch (FoamXIOError ioErr) - { - System.out.println("ioErr"); - } - } - - private void fieldTypeBox_ActionPerformed(ActionEvent evt) - { - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - setFieldNames(fieldType); - } - - private void createPatchButton_ActionPerformed(ActionEvent evt) - { - try - { - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - String fieldName = (String)fieldNameBox_.getSelectedItem(); - String patchName = (String)patchBox_.getSelectedItem(); - - if - ( - (fieldName == null) - || (patchName == null) - || (fieldType == null) - || !fieldType.equals("volScalarField") - ) - { - return; - } - - floatListHolder pointsContainer = new floatListHolder(); - longListHolder facesContainer = new longListHolder(); - floatListHolder valuesContainer = new floatListHolder(); - - // Read patch geometry + data - casePostServer_.getTriPatch - ( - fieldName, - patchName, - pointsContainer, - facesContainer, - valuesContainer - ); - - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size patcht."); - return; - } - - float minValue = - Float.valueOf((String)minField_.getText()).floatValue(); - float maxValue = - Float.valueOf((String)maxField_.getText()).floatValue(); - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(values); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - String name = - "patch_" + patchName + "_" + fieldName - + Integer.toString(patchNo_++); - - // Create geometry object from patch data - ColoredSurfaceByRefNode ss0 = new ColoredSurfaceByRefNode - ( - name, - false, - false, - Math.PI / 4.5, - points, - null, - faces, - values, - pp_.getColorizer(), - minValue, - maxValue - ); - ColoredSurfaceByRef ss = ss0.getColoredSurfaceByRef(); - ss.setAppearance - ( - PostApp.createMaterialAppearance() - ); - ss0.show(); - pp_.getScene().addChild(ss0.getRoot()); - pp_.getShapes().addElement(ss0); - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - catch (FoamXError fxErr) - { - System.out.println("fxErr"); - } - catch (FoamXIOError ioErr) - { - System.out.println("ioErr"); - } - } - - private void createCutButton_ActionPerformed(ActionEvent evt) - { - try - { - float x = Float.valueOf(xField_.getText()).floatValue(); - float y = Float.valueOf(yField_.getText()).floatValue(); - float z = Float.valueOf(zField_.getText()).floatValue(); - - float xN = Float.valueOf(xNField_.getText()).floatValue(); - float yN = Float.valueOf(yNField_.getText()).floatValue(); - float zN = Float.valueOf(zNField_.getText()).floatValue(); - - float vecSize = Float.valueOf(vecSizeField_.getText()).floatValue(); - - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - String fieldName = (String)fieldNameBox_.getSelectedItem(); - - if ((fieldName == null) || (fieldType == null)) - { - return; - } - if ((Math.abs(xN)+Math.abs(yN)+Math.abs(zN)) == 0.0) - { - return; - } - - // Read patch geometry + data - float[] basePoint = {x, y, z}; - float[] normal = {xN, yN, zN}; - - if (fieldType.equals("volScalarField")) - { - cutScalar(fieldName, basePoint, normal); - } - else if (fieldType.equals("volVectorField")) - { - cutVector(fieldName, basePoint, normal, vecSize); - } - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - } - - - - private void cutScalar - ( - String fieldName, - float[] basePoint, - float[] normal - ) - { - try - { - floatListHolder pointsContainer = new floatListHolder(); - longListHolder facesContainer = new longListHolder(); - floatListHolder valuesContainer = new floatListHolder(); - - casePostServer_.cutPlane - ( - fieldName, - basePoint, - normal, - pointsContainer, - facesContainer, - valuesContainer - ); - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size cut."); - return; - } - String name = - "cut_" + fieldName + "_" + (String)timeBox_.getSelectedItem() - + "_" + Integer.toString(cutNo_++); - - float minValue = - Float.valueOf((String)minField_.getText()).floatValue(); - float maxValue = - Float.valueOf((String)maxField_.getText()).floatValue(); - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(values); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - // Create geometry object from patch data - ColoredSurfaceByRefNode ss0 = new ColoredSurfaceByRefNode - ( - name, - false, - false, - Math.PI / 4.5, - points, - null, - faces, - values, - pp_.getColorizer(), - minValue, - maxValue - ); - ColoredSurfaceByRef ss = ss0.getColoredSurfaceByRef(); - ss.setAppearance - ( - PostApp.createMaterialAppearance() - ); - ss0.show(); - pp_.getScene().addChild(ss0.getRoot()); - pp_.getShapes().addElement(ss0); - - // Add colorBar - ColorBar2DNode colorBar = new ColorBar2DNode - ( - "ColorBar_0", - pp_.getUniverse().getCanvas(), - new Placement(new Dimension(10, 10), Placement.TOPLEFT), - new Dimension(20, 128), - pp_.getColorizer(), - minValue, - maxValue - ); - colorBar.show(); - TransformGroup viewTrans = - pp_.getUniverse().getViewingPlatform() - .getViewPlatformTransform(); - viewTrans.addChild(colorBar.getRoot()); - pp_.getShapes().addElement(colorBar); - - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - catch(FoamXError fxErr) - { - System.out.println("fxErr:" + fxErr); - } - catch(FoamXIOError ioErr) - { - System.out.println("ioErr:" + ioErr); - } - } - - - - private void cutVector - ( - String fieldName, - float[] basePoint, - float[] normal, - float vecSize - ) - { - try - { - floatListHolder pointsContainer = new floatListHolder(); - longListHolder facesContainer = new longListHolder(); - floatListHolder valuesContainer = new floatListHolder(); - - casePostServer_.cutPlaneVec - ( - fieldName, - basePoint, - normal, - pointsContainer, - facesContainer, - valuesContainer - ); - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size cut."); - return; - } - - // Convert into vectors on face centers. - int nVecs = values.length / 3; - float[] sampleCoords = new float[values.length]; - - int vertI = 0; - for(int i = 0; i < nVecs; i++) - { - int a = faces[vertI]; - int b = faces[vertI+1]; - int c = faces[vertI+2]; - - // Average vertex coords - float x = points[3*a] + points[3*b] + points[3*c]; - x /= 3.0f; - - float y = points[3*a+1] + points[3*b+1] + points[3*c+1]; - y /= 3.0f; - - float z = points[3*a+2] + points[3*b+2] + points[3*c+2]; - z /= 3.0f; - - sampleCoords[vertI] = x; - sampleCoords[vertI+1] = y; - sampleCoords[vertI+2] = z; - - vertI += 3; - } - -// System.out.println("SampleCoords:"); -// for(int i = 0; i < sampleCoords.length; i+=3) -// { -// System.out.println -// ( -// "i:" + i + " " + sampleCoords[i] + " " + sampleCoords[i+1] -// + " " + sampleCoords[i+2] -// ); -// } - - - String name = - "cut_" + fieldName + "_" + (String)timeBox_.getSelectedItem() - + "_" + Integer.toString(cutNo_++); - - // Create geometry object from patch data - ArrowsNode arr0 = new ArrowsNode - ( - name, - sampleCoords, - values, - vecSize, - null - ); - arr0.show(); - pp_.getScene().addChild(arr0.getRoot()); - pp_.getShapes().addElement(arr0); - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - catch(FoamXError fxErr) - { - System.out.println("fxErr:" + fxErr); - } - catch(FoamXIOError ioErr) - { - System.out.println("ioErr:" + ioErr); - } - } - - - - - private void createMeshCutButton_ActionPerformed(ActionEvent evt) - { - try - { - float x = - Float.valueOf(xField_.getText()).floatValue(); - float y = - Float.valueOf(yField_.getText()).floatValue(); - float z = - Float.valueOf(zField_.getText()).floatValue(); - - float xN = - Float.valueOf(xNField_.getText()).floatValue(); - float yN = - Float.valueOf(yNField_.getText()).floatValue(); - float zN = - Float.valueOf(zNField_.getText()).floatValue(); - - if ((Math.abs(xN)+Math.abs(yN)+Math.abs(zN)) == 0.0) - { - return; - } - - floatListHolder pointsContainer = new floatListHolder(); - longListHolder edgesContainer = new longListHolder(); - - // Read patch geometry + data - float[] basePoint = {x, y, z}; - float[] normal = {xN, yN, zN}; - - casePostServer_.cutMesh - ( - basePoint, - normal, - pointsContainer, - edgesContainer - ); - - float[] points = pointsContainer.value; - int[] edges = edgesContainer.value; - - if (edges.length > 0) - { - String name = - "meshCut_" + Integer.toString(cutNo_++); - - // Create geometry object - MeshLinesNode ml0 = new MeshLinesNode - ( - name, - points, - edges - ); - ml0.show(); - pp_.getScene().addChild(ml0.getRoot()); - pp_.getShapes().addElement(ml0); - } - else - { - System.out.println("Zero size cut."); - } - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - catch(FoamXError fxErr) - { - System.out.println("fxErr:" + fxErr); - } - catch(FoamXIOError ioErr) - { - System.out.println("ioErr:" + ioErr); - } - } - - private void setViewButton_ActionPerformed(ActionEvent evt) - { - try - { - float xEye = - Float.valueOf(xEyeField_.getText()).floatValue(); - float yEye = - Float.valueOf(yEyeField_.getText()).floatValue(); - float zEye = - Float.valueOf(zEyeField_.getText()).floatValue(); - - float xCenter = - Float.valueOf(xCenterField_.getText()).floatValue(); - float yCenter = - Float.valueOf(yCenterField_.getText()).floatValue(); - float zCenter = - Float.valueOf(zCenterField_.getText()).floatValue(); - - float xUp = - Float.valueOf(xUpField_.getText()).floatValue(); - float yUp = - Float.valueOf(yUpField_.getText()).floatValue(); - float zUp = - Float.valueOf(zUpField_.getText()).floatValue(); - - Point3d eye = new Point3d(xEye, yEye, zEye); - Point3d center = new Point3d(xCenter, yCenter, zCenter); - Vector3d up = new Vector3d(xUp, yUp, zUp); - - look_.lookAt(eye, center, up); - look_.invert(); - - ViewingPlatform viewingPlatform = - pp_.getUniverse().getViewingPlatform(); - TransformGroup viewTrans = - viewingPlatform.getViewPlatformTransform(); - viewTrans.setTransform(look_); - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - } - - private void printButton_ActionPerformed(ActionEvent evt) - { - try - { - int xRes = - Integer.parseInt(xResField_.getText()); - int yRes = - Integer.parseInt(yResField_.getText()); - - System.out.println("xRes:" + xRes + " yRes:" + yRes); - - // Choose file to print to - if - ( - printFileName_.showOpenDialog(this) - != JFileChooser.APPROVE_OPTION - ) - { - return; - } - String fileName = printFileName_.getSelectedFile().getName(); - System.out.println("Printing to " + fileName); - - PrintManager printManager = pp_.getPrintManager(); - printManager.print(new Dimension(xRes, yRes), fileName); - } - catch(NumberFormatException nex) - { - System.out.println("NumberFormatException"); - } - - } - - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JComboBox timeBox_; - private javax.swing.JComboBox fieldTypeBox_; - private javax.swing.JComboBox fieldNameBox_; - private javax.swing.JTextField minField_; - private javax.swing.JTextField maxField_; - private javax.swing.JTextField vecSizeField_; - private javax.swing.JComboBox patchBox_; - private javax.swing.JButton updateButton_; - private javax.swing.JButton createPatchButton_; - private javax.swing.JButton createMeshCutButton_; - - private javax.swing.JPanel globalPanel_; - private javax.swing.JPanel patchPanel_; - private javax.swing.JPanel cutPanel_; - private javax.swing.JTextField xField_; - private javax.swing.JTextField yField_; - private javax.swing.JTextField zField_; - private javax.swing.JTextField xNField_; - private javax.swing.JTextField yNField_; - private javax.swing.JTextField zNField_; - private javax.swing.JButton createCutButton_; - private javax.swing.JButton closeButton_; - - private javax.swing.JPanel viewPanel_; - private javax.swing.JTextField xEyeField_; - private javax.swing.JTextField yEyeField_; - private javax.swing.JTextField zEyeField_; - private javax.swing.JTextField xCenterField_; - private javax.swing.JTextField yCenterField_; - private javax.swing.JTextField zCenterField_; - private javax.swing.JTextField xUpField_; - private javax.swing.JTextField yUpField_; - private javax.swing.JTextField zUpField_; - private javax.swing.JButton setViewButton_; - - private javax.swing.JTextField xResField_; - private javax.swing.JTextField yResField_; - private javax.swing.JButton printButton_; - private javax.swing.JFileChooser printFileName_; - - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - //---- CaseStatusListener Methods - //-------------------------------------------------------------------------- - - public void addCaseStatusListener(CaseStatusListener l) - { - listenerList_.add(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCaseStatusListener(CaseStatusListener l) - { - listenerList_.remove(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireClosePostCase(String caseRoot, String caseName) - { - System.out.println("PostWindow: firing closing event for " + caseName); - - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that - // are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).casePostClosed(evt); - } - } - } - - -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostApp.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostApp.java deleted file mode 100644 index e02928f063..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostApp.java +++ /dev/null @@ -1,775 +0,0 @@ -/* - * PostApp.java - * - */ -package FoamX.Post; - -import java.applet.Applet; -import java.awt.BorderLayout; -//import java.awt.Color.*; -import java.awt.*; -import java.awt.event.*; -import java.awt.image.*; -import java.awt.Graphics; -import java.awt.GraphicsConfiguration; -import javax.swing.*; -import java.util.*; - -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.behaviors.vp.*; -import com.sun.j3d.utils.behaviors.mouse.*; -import com.sun.j3d.utils.behaviors.keyboard.*; -import com.sun.j3d.utils.picking.PickTool; -import com.sun.j3d.utils.universe.*; -import com.sun.j3d.utils.geometry.*; -import com.sun.j3d.utils.behaviors.keyboard.KeyNavigatorBehavior; -import com.sun.j3d.utils.behaviors.mouse.*; - -import javax.media.j3d.*; -import javax.vecmath.*; -import javax.vecmath.Color3f; - -import FoamXServer.CasePostServer.ICasePostServer; - -import FoamX.Post.InteractiveNodes.*; -import FoamX.Post.Util.Colorizer; -import FoamX.Post.Util.KeyBehavior; -import FoamX.Post.Util.OrbitPickBehavior; -import FoamX.Post.Util.myOrbitBehavior; -import FoamX.Post.Util.myMouseScale; -//import FoamX.Post.Util.myMouseZoom; -//import FoamX.Post.Util.myViewOrbitBehavior; -import FoamX.Post.Util.PickDragBehavior; -//import FoamX.Post.Util.PrintManager; -import FoamX.Post.Util.Placement; -import FoamX.Post.Table.NodeTable; -import FoamX.Post.Util.OffScreenCanvas3D; - -public class PostApp extends Applet implements MouseBehaviorCallback -{ - private static final int OFF_SCREEN_SCALE_X = 10; - private static final int OFF_SCREEN_SCALE_Y = 10; - - ICasePostServer casePostServer_; - String caseRoot_; - String caseName_; - - NodeTable nodeTable_; - PostWindow postWindow_; - - OrbitPickBehavior pickBeh_; - KeyBehavior key_; - //myOrbitBehavior orbit_; - OrbitBehavior orbit_; - myMouseScale ms_; - - InteractiveNodeList shapes_; - BranchGroup scene_; - SimpleUniverse u_ = null; - Colorizer colorizer_; -// PrintManager printManager_; - Switch printSwitch_; - - Color bgColor_; - Color3f bgColor3f_; - Color fgColor_; - Color3f fgColor3f_; - - private OffScreenCanvas3D offScreenCanvas3D_; - - public BranchGroup createSceneGraph(SimpleUniverse u) - { - - // Create the root of the branch graph - BranchGroup objRoot = new BranchGroup(); - - // Switch for printer canvas rendering - printSwitch_ = new Switch(); - printSwitch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - printSwitch_.setCapability(Switch.ALLOW_CHILDREN_EXTEND); - printSwitch_.setCapability(Switch.ALLOW_CHILDREN_WRITE); - printSwitch_.setWhichChild(Switch.CHILD_NONE); - //printSwitch_.setCapability(Shape3D.ALLOW_BOUNDS_READ); - objRoot.addChild(printSwitch_); - - -// // Create a Transformgroup to scale all objects so they -// // appear in the scene. -// TransformGroup objScale = new TransformGroup(); -// Transform3D t3d = new Transform3D(); -// t3d.setScale(0.3); -// objScale.setTransform(t3d); -// objRoot.addChild(objScale); - - -// // Create the TransformGroup node and initialize it to the -// // identity. Enable the TRANSFORM_WRITE capability so that -// // our behavior code can modify it at run time. Add it to -// // the root of the subgraph. -// TransformGroup objTrans = new TransformGroup(); -// objTrans.setCapability(TransformGroup.ENABLE_PICK_REPORTING); -// objRoot.addChild(objTrans); - - // Axis - AxisNode axis = new AxisNode("axis", new Color3f(1.0f, 1.0f, 0.0f)); - objRoot.addChild(axis.getRoot()); - shapes_.addElement(axis); - shapes_.show("axis"); - -// // Add colorBar -// ColorBar2DNode colorBar = new ColorBar2DNode -// ( -// "ColorBar_0", -// getUniverse().getCanvas(), -// new Placement(new Dimension(10, 10), Placement.TOPLEFT), -// new Dimension(50, 128), -// getColorizer(), -// -1e-5f, -// 2e-5f -// ); -// colorBar.show(); -// TransformGroup viewTrans = -// getUniverse().getViewingPlatform() -// .getViewPlatformTransform(); -// viewTrans.addChild(colorBar.getRoot()); - -// // Patch0 featurelines -// PrimitivePatch p0 = new PrimitivePatch(0); -// FeatureLinesNode fl0 = new FeatureLinesNode("featureLines_0", p0); -// -// objRoot.addChild(fl0.getRoot()); -// shapes_.addElement(fl0); -// -// -// // Patch1 featurelines -// PrimitivePatch p1 = new PrimitivePatch(1); -// FeatureLinesNode fl1 = new FeatureLinesNode("featureLines_1", p1); -// -// objRoot.addChild(fl1.getRoot()); -// shapes_.addElement(fl1); -// -// -// // Patch0 faces -// PatchFacesNode pf0 = new PatchFacesNode -// ( -// "patchFaces_0", -// p0, -// new Color3f(0.8f, 0.4f, 0.0f), -// 0 // Math.PI / 4.5 -// ); -// PatchFaces pFaces = pf0.getPatchFaces(); -// pFaces.setAppearance(createMaterialAppearance()); -// -// objRoot.addChild(pf0.getRoot()); -// shapes_.addElement(pf0); -// -// -// // Patch1 faces -// PatchFacesNode pf1 = new PatchFacesNode -// ( -// "patchFaces_1", -// p1, -// new Color3f(0.5f, 0.3f, 0.2f), -// 0 //Math.PI / 4.5 -// ); -// pFaces = pf1.getPatchFaces(); -// pFaces.setAppearance(createMaterialAppearance()); -// -// objRoot.addChild(pf1.getRoot()); -// shapes_.addElement(pf1); -// -// -// // Patch0 points -// PatchPointsNode pp0 = new PatchPointsNode -// ( -// "patchPoints_0", -// p0, -// new Color3f(0.8f, 0.4f, 0.0f) -// ); -// objRoot.addChild(pp0.getRoot()); -// shapes_.addElement(pp0); - - - - BoundingSphere bounds = - new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0); - - // Set up the background - BackgroundNode whiteBGNode = - new BackgroundNode - ( - "whiteBG", - new Color3f(1.0f, 1.0f, 1.0f), - bounds - ); - objRoot.addChild(whiteBGNode.getRoot()); - shapes_.addElement(whiteBGNode); -// Background bg = new Background(new Color3f(1.0f, 1.0f, 1.0f)); -// bg.setApplicationBounds(bounds); -// objRoot.addChild(bg); - - // Set up the ambient light - AmbientLightNode ambientLightNode = - new AmbientLightNode - ( - "ambient_0", - new Color3f(1.0f, 1.0f, 1.0f), - bounds - ); - objRoot.addChild(ambientLightNode.getRoot()); - ambientLightNode.show(); - shapes_.addElement(ambientLightNode); - - // Set up the ambient lights - DirectionalLightNode light0 = - new DirectionalLightNode - ( - "dirLight_0", - new Color3f(1.0f, 1.0f, 1.0f), - new Vector3f(1.0f, 1.0f, 1.0f), - bounds - ); - objRoot.addChild(light0.getRoot()); - //light0.show(); - shapes_.addElement(light0); - - DirectionalLightNode light1 = - new DirectionalLightNode - ( - "dirLight_1", - new Color3f(1.0f, 1.0f, 1.0f), - new Vector3f(-1.0f, -1.0f, -1.0f), - bounds - ); - objRoot.addChild(light1.getRoot()); - //light1.show(); - shapes_.addElement(light1); - - - // Have Java 3D perform optimizations on this scene graph. -// objRoot.compile(); - - objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND); - objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE); - objRoot.setCapability(BranchGroup.ALLOW_BOUNDS_READ); - - return objRoot; - } - - - //-------------------------------------------------------------------------- - - public PostApp - ( - ICasePostServer casePostServer, - String caseRoot, - String caseName - ) - { - casePostServer_ = casePostServer; - caseRoot_ = caseRoot; - caseName_ = caseName; - - postWindow_ = new PostWindow - ( - null, - casePostServer_, - this, - caseRoot_, - caseName_ - ); - MainFrame mf = new MainFrame(this, 300, 600); - } - - //-------------------------------------------------------------------------- - - public void init() { - shapes_ = new InteractiveNodeList(); - - colorizer_ = new Colorizer(this); - - bgColor_ = Color.black; - bgColor3f_ = new Color3f(0.0f, 0.0f, 0.0f); - fgColor_ = Color.white; - fgColor3f_ = new Color3f(1.0f, 1.0f, 1.0f); - - nodeTable_ = new NodeTable(shapes_); - nodeTable_.pack(); - nodeTable_.setVisible(true); - - postWindow_.setVisible(true); - - setLayout(new BorderLayout()); - GraphicsConfiguration config = - SimpleUniverse.getPreferredConfiguration(); - - Canvas3D c = new Canvas3D(config); - add("Center", c); - - u_ = new SimpleUniverse(c); - - // Create a simple scene and attach it to the virtual universe - scene_ = createSceneGraph(u_); - -// // PrintManager singleton -// printManager_ = new PrintManager(this, printSwitch_); - - - ViewingPlatform viewingPlatform = u_.getViewingPlatform(); - - // add mouse behaviors to the ViewingPlatform - View view = u_.getViewer().getView(); - - //view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION); - //view.setProjectionPolicy(View.PARALLEL_PROJECTION); - - - // This will move the ViewPlatform back a bit so the - // objects in the scene can be viewed. - viewingPlatform.setNominalViewingTransform(); - - BoundingSphere bounds = (BoundingSphere)scene_.getBounds(); - System.out.println("bounds=" + bounds); - -// // Now create the simple picking behavior -// pickBeh_ = new OrbitPickBehavior(c, scene_, bounds); -// pickBeh_.setEnable(true); - - //scene_.compile(); - - // Attach orbiting behaviour to mouse - orbit_ = new OrbitBehavior - ( - c, -// myOrbitBehavior.DISABLE_ZOOM -// OrbitBehavior.REVERSE_TRANSLATE -// | OrbitBehavior.REVERSE_ZOOM -// | OrbitBehavior.PROPORTIONAL_ZOOM - OrbitBehavior.PROPORTIONAL_ZOOM - ); - orbit_.setSchedulingBounds(bounds); - orbit_.setRotationCenter(new Point3d(0.0, 0.0, 0.0)); - viewingPlatform.setViewPlatformBehavior(orbit_); - - - TransformGroup viewTrans = - viewingPlatform.getViewPlatformTransform(); - - // Add keyboard navigation - key_ = new KeyBehavior(this, viewTrans); - key_.setSchedulingBounds(bounds); - key_.setEnable(true); - scene_.addChild(key_); - -// // Mouse scaling -// ms_ = new myMouseScale(this, viewTrans); -// ms_.setSchedulingBounds(bounds); -// ms_.setEnable(true); -// scene_.addChild(ms_); - -// Point3d eye = new Point3d(10.0, 0.0, 0.0); -// Point3d center = new Point3d(0.0, 0.0, 0.0); -// Vector3d up = new Vector3d(0.0, 0.0, 1.0); - Transform3D look = new Transform3D(); - -// look.ortho -// ( -// -0.0, // left -// 1.0, // right -// -0.0, // bottom -// 1.0, // top -// 0.1, // near -// 1.1 // far -// ); -// look.lookAt(eye, center, up); -// look.invert(); - - look.set(20.0f, new Vector3f(0.0f, 0.0f, 10.0f)); -// look.set(10.0f); - - //view.setFieldOfView(0.1); - //System.out.println("View field:" + view.getFieldOfView()); - - viewTrans.setTransform(look); - - setBounds(bounds); - - u_.addBranchGraph(scene_); - - - // Printing, Offscreen rendering. - - // Create the off-screen Canvas3D object - offScreenCanvas3D_ = new OffScreenCanvas3D(config, true); - // Set the off-screen size based on a scale factor times the - // on-screen size - Screen3D sOn = c.getScreen3D(); - Screen3D sOff = offScreenCanvas3D_.getScreen3D(); - Dimension dim = sOn.getSize(); - dim.width *= OFF_SCREEN_SCALE_X; - dim.height *= OFF_SCREEN_SCALE_Y; - sOff.setSize(dim); - sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth() * - OFF_SCREEN_SCALE_X); - sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight() * - OFF_SCREEN_SCALE_Y); - // attach the offscreen canvas to the view - u_.getViewer().getView().addCanvas3D(offScreenCanvas3D_); - } - - //-------------------------------------------------------------------------- - - public void destroy() { - postWindow_.closeCase(PostWindow.KILL_SERVER); - postWindow_.setVisible(false); - - - u_.removeAllLocales(); - - casePostServer_ = null; - - nodeTable_.setVisible(false); - nodeTable_ = null; - - postWindow_.setVisible(false); - postWindow_ = null; - - pickBeh_ = null; - shapes_ = null; - scene_ = null; - u_ = null; - colorizer_ = null; - } - - //-------------------------------------------------------------------------- - - public InteractiveNodeList getShapes() - { - return shapes_; - } - - //-------------------------------------------------------------------------- - - public BranchGroup getScene() - { - return scene_; - } - - //-------------------------------------------------------------------------- - - public SimpleUniverse getUniverse() - { - return u_; - } - - //-------------------------------------------------------------------------- - - public Colorizer getColorizer() - { - return colorizer_; - } - - //-------------------------------------------------------------------------- - -// public PrintManager getPrintManager() -// { -// return printManager_; -// } - - //-------------------------------------------------------------------------- - - public OffScreenCanvas3D getOffScreenCanvas3D() - { - return offScreenCanvas3D_; - } - - //-------------------------------------------------------------------------- - - public Color getBackgroundColor() - { - return bgColor_; - } - -// //-------------------------------------------------------------------------- -// -// public void setBackgroundColor(col) -// { -// bgColor_ = col; -// } - - //-------------------------------------------------------------------------- - - public Color3f getBackgroundColor3f() - { - return bgColor3f_; - } - - //-------------------------------------------------------------------------- -// -// public void setBackgroundColor3f(col3f) -// { -// bgColor3f_ = col3f; -// } - //-------------------------------------------------------------------------- - - public Color getForegroundColor() - { - return fgColor_; - } - -// //-------------------------------------------------------------------------- -// -// public void setForegroundColor(col) -// { -// fgColor_ = col; -// } - - //-------------------------------------------------------------------------- - - public Color3f getForegroundColor3f() - { - return fgColor3f_; - } - - //-------------------------------------------------------------------------- -// -// public void setForegroundColor3f(col3f) -// { -// fgColor3f_ = col3f; -// } - - //-------------------------------------------------------------------------- - - public PostWindow getPostWindow() - { - return postWindow_; - } - - //-------------------------------------------------------------------------- - - public NodeTable getNodeTable() - { - return nodeTable_; - } - - //-------------------------------------------------------------------------- - - static public Appearance createMaterialAppearance(){ - - Appearance materialAppear = new Appearance(); - materialAppear.setCapability - ( - Appearance.ALLOW_RENDERING_ATTRIBUTES_READ - ); - - PolygonAttributes polyAttrib = new PolygonAttributes(); - polyAttrib.setCullFace(PolygonAttributes.CULL_NONE); - polyAttrib.setBackFaceNormalFlip(true); // bidirectional lighting - materialAppear.setPolygonAttributes(polyAttrib); - - Material material = new Material(); - material.setDiffuseColor(new Color3f(1.0f, 0.0f, 0.0f)); - materialAppear.setMaterial(material); - - //TransparencyAttributes transp = new TransparencyAttributes(); - //transp.setTransparencyMode(TransparencyAttributes.FASTEST); - //transp.setTransparency(0.5f); - //materialAppear.setTransparencyAttributes(transp); - - return materialAppear; - } - - //-------------------------------------------------------------------------- - - static public Appearance createWireFrameAppearance(){ - - Appearance materialAppear = new Appearance(); - PolygonAttributes polyAttrib = new PolygonAttributes(); - polyAttrib.setPolygonMode(PolygonAttributes.POLYGON_LINE); - materialAppear.setPolygonAttributes(polyAttrib); - ColoringAttributes redColoring = new ColoringAttributes(); - redColoring.setColor(1.0f, 0.0f, 0.0f); - materialAppear.setColoringAttributes(redColoring); - - return materialAppear; - } - - //-------------------------------------------------------------------------- - - static public Appearance createDotAppearance(){ - - Appearance materialAppear = new Appearance(); - PolygonAttributes polyAttrib = new PolygonAttributes(); - polyAttrib.setPolygonMode(PolygonAttributes.POLYGON_POINT); - materialAppear.setPolygonAttributes(polyAttrib); - ColoringAttributes redColoring = new ColoringAttributes(); - redColoring.setColor(1.0f, 0.0f, 0.0f); - materialAppear.setColoringAttributes(redColoring); - - return materialAppear; - } - - //-------------------------------------------------------------------------- - - static public Transform3D viewAll(View view, BoundingSphere bounds) - { - Transform3D viewTrans = new Transform3D(); - - Point3d center = new Point3d(); - bounds.getCenter(center); - double radius = bounds.getRadius(); - - double eyeDist = 1.2 * radius / Math.tan(view.getFieldOfView() / 2.0); - - Vector3d up = new Vector3d(0, 1, 0); - Point3d eyePos = new Point3d(center); - eyePos.z += eyeDist; - - - System.out.println("eyePos : " + eyePos); - System.out.println("center : " + center); - System.out.println("up : " + up); - - viewTrans.lookAt(eyePos, center, up); - viewTrans.invert(); - - if ( view.getBackClipDistance() < eyeDist ) - { - view.setBackClipDistance(eyeDist); - view.setFrontClipDistance(eyeDist / 3000); - } - - return viewTrans; - } - - //-------------------------------------------------------------------------- - - static int getJava3DVersion(View view) - { - try - { - view.setTransparencySortingPolicy - ( - View.TRANSPARENCY_SORT_GEOMETRY //Not in java3d-1.2 - ); - //AppearanceHelper.setJava3DVersion(AppearanceHelper.JAVA3D_1_3); - - System.out.println("You are running Java3D version 1.3x"); - return 3; - } - catch(NoSuchMethodError e ) - { - System.out.println("You are running Java3D version 1.2x"); - } - return 2; - } - - - //-------------------------------------------------------------------------- - - static void printConfig(Canvas3D canvas) - { - System.out.println("\n Info about Canvas3D / Hardware \n"); - Map props = canvas.queryProperties(); - Iterator it = props.entrySet().iterator(); - while(it.hasNext()) - { - Map.Entry entry = (Map.Entry) it.next(); - System.out.println(entry.getKey() + " = " + entry.getValue()); - } - System.out.println("The End Info\n"); - } - - //-------------------------------------------------------------------------- - - // Updates bounds on all behaviors. - public void setBounds(BoundingSphere bounds) - { - System.out.println("setBounds : bounds=" + bounds); - - //pickBeh_.setBounds(bounds); - key_.setSchedulingBounds(bounds); - orbit_.setSchedulingBounds(bounds); -// ms_.setSchedulingBounds(bounds); - - // Get data from bounds - Point3d center = new Point3d(); - bounds.getCenter(center); - double radius = bounds.getRadius(); - - double front = 0; - double back = 0; - - View view = u_.getViewer().getView(); - - if (view.getProjectionPolicy() == View.PARALLEL_PROJECTION) - { - front = center.z - 2*radius; - back = center.z + 2*radius; - - System.out.println("Updating clipplanes : front:" + front + " back:" + back); - view.setFrontClipDistance(front); - view.setBackClipDistance(back); - } - else - { - double eyeDist = 1.2 * radius / Math.tan(view.getFieldOfView() / 2.0); - System.out.println("eyeDist:" + eyeDist); - //?? - -// // Get inverse of current view transform -// Transform3D viewTransform = new Transform3D(); -// TransformGroup viewTransGroup = -// u_.getViewingPlatform().getViewPlatformTransform(); -// viewTransGroup.getTransform(viewTransform); -// -// Transform3D inverseViewTransform = new Transform3D(); -// inverseViewTransform.invert(viewTransform); -// -// // Invert center -// Point3d result = new Point3d(); -// inverseViewTransform.transform(center, result); -// -// // Distance from screen to center. -// double z = -result.z; -// -// front = z - radius; -// back = z + radius; -// -// System.out.println("z:" + z + " front:" + front + " back:" + back); - - } - - front = view.getFrontClipDistance(); - back = view.getBackClipDistance(); - System.out.println("Front clip:" + front + " Back clip:" + back); - } - - //-------------------------------------------------------------------------- - //---- InteractiveNode Interface - //-------------------------------------------------------------------------- - public void transformChanged(int type, Transform3D zoomTransform) - { -// Vector3d translation = new Vector3d(); -// zoomTransform.get(translation); -// -// double zTrans = translation.z; -// System.out.println("zTrans:" + zTrans); -// -// double halfFov = Math.atan(zTrans); -// System.out.println("Fov :" + 2*halfFov); -// -// View view = u_.getViewer().getView(); -// view.setFieldOfView(2 * halfFov); -// -// setBounds((BoundingSphere)scene_.getBounds()); -// -// System.out.println(); - - System.out.println("zoomTransform:" + zoomTransform); - } - -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostWindow.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostWindow.java deleted file mode 100644 index 60820ccbe2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/PostWindow.java +++ /dev/null @@ -1,1424 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Post; - -import java.awt.Container; -import java.awt.GridLayout; -import java.awt.Dimension; -import java.awt.event.*; -import java.awt.event.ActionEvent; -import java.awt.Graphics; -import java.awt.GraphicsConfiguration; -import java.awt.Point; -import java.awt.image.BufferedImage; -import java.io.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; - -import com.sun.j3d.utils.behaviors.vp.*; -import com.sun.j3d.utils.behaviors.mouse.*; -import com.sun.j3d.utils.behaviors.mouse.*; - -import com.sun.j3d.utils.universe.*; -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamXServer.*; -import FoamXServer.CasePostServer.ICasePostServer; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; -import FoamX.CaseManagement.CaseStatusListener; -import FoamX.CaseManagement.CaseStatusEvent; - -import FoamX.Post.InteractiveNodes.InteractiveNodeList; -import FoamX.Post.InteractiveNodes.ColoredSurfaceByRefNode; -import FoamX.Post.InteractiveNodes.MeshLinesNode; -import FoamX.Post.InteractiveNodes.ColorBar2DNode; -import FoamX.Post.InteractiveNodes.ArrowsNode; -import FoamX.Post.Shapes.ColoredSurfaceByRef; -import FoamX.Post.Util.Colorizer; -import FoamX.Post.Util.ArrayStats; -import FoamX.Post.Util.ArrayUtils; -//import FoamX.Post.Util.PrintManager; -import FoamX.Post.Util.Placement; -import FoamX.Post.Util.ImageDisplayer; -import FoamX.Post.Util.ImagePrinter; -import FoamX.Post.Util.myOrbitBehavior; -import FoamX.Post.Util.OffScreenCanvas3D; - -import FoamX.Post.Panels.*; - -public class PostWindow extends javax.swing.JDialog - implements TimeChangeListener -{ - //-------------------------------------------------------------------------- - - public static final boolean KILL_SERVER = true; - - protected java.awt.Frame parent_; - protected ICasePostServer casePostServer_; - protected PostApp pp_; - protected String caseRoot_; - protected String caseName_; - protected EventListenerList listenerList_; - protected int patchNo_; - protected int cutNo_; - protected Transform3D look_; - - - //-------------------------------------------------------------------------- - /** Creates new form PostWindow */ - public PostWindow - ( - java.awt.Frame parent, - ICasePostServer casePostServer, - PostApp pp, - String caseRoot, - String caseName - ) - { - super(parent, "Post Processor", false); // Non modal. - - // Create listener list. - listenerList_ = new EventListenerList(); - - parent_ = parent; - casePostServer_ = casePostServer; - pp_ = pp; - caseRoot_ = caseRoot; - caseName_ = caseName; - - patchNo_ = 0; - cutNo_ = 0; - - look_ = new Transform3D(); - - initComponents(); - - timePanel_.addTimeChangeListener(this); - - timeChanged(new TimeChangeEvent(this, 0, 0)); - - show(); - } - - //-------------------------------------------------------------------------- - /** Close the case and release the case post server object. - */ - public void closeCase(boolean killServer) - { - try - { - // Close down the case server and unlock the case. - if (killServer && (casePostServer_ != null)) - { - System.out.println("Killing casePostServer"); - casePostServer_.close(); - casePostServer_ = null; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - //---- TimeChangeListener Implementation - //-------------------------------------------------------------------------- - - public void timeChanged(TimeChangeEvent evt) - { - //System.out.println("Received timechange event"); - try - { - String[] patchNames = casePostServer_.getPatchNames(); - - patchBox_.removeAllItems(); - for(int i = 0; i < patchNames.length; i++) - { - patchBox_.addItem(patchNames[i]); - } - - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - setFieldNames(fieldType); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - //-------------------------------------------------------------------------- - private void initComponents() - { - mainPanel_ = new javax.swing.JPanel(); - - timePanel_ = new TimePanel(casePostServer_, pp_, caseRoot_, caseName_); - - globalPanel_ = new javax.swing.JPanel(); - fieldTypeBox_ = new javax.swing.JComboBox(); - fieldNameBox_ = new javax.swing.JComboBox(); - minField_ = new JTextField("0"); - maxField_ = new JTextField("1"); - vecSizeField_ = new JTextField("1"); - - patchPanel_ = new javax.swing.JPanel(); - patchBox_ = new javax.swing.JComboBox(); - createPatchButton_ = new javax.swing.JButton("Create Patch"); - - cutPanel_ = new javax.swing.JPanel(); - xField_ = new JTextField("0"); - yField_ = new JTextField("0"); - zField_ = new JTextField("0"); - xNField_ = new JTextField("0"); - yNField_ = new JTextField("0"); - zNField_ = new JTextField("1"); - createCutButton_ = new javax.swing.JButton("Create Cut"); - createMeshCutButton_ = new javax.swing.JButton("Create Mesh Cut"); - - viewPanel_ = new javax.swing.JPanel(); - xEyeField_ = new JTextField("1"); - yEyeField_ = new JTextField("0"); - zEyeField_ = new JTextField("0"); - xCenterField_ = new JTextField("0"); - yCenterField_ = new JTextField("0"); - zCenterField_ = new JTextField("0"); - xUpField_ = new JTextField("0"); - yUpField_ = new JTextField("0"); - zUpField_ = new JTextField("1"); - setViewButton_ = new javax.swing.JButton("Set View"); - - xResField_ = new JTextField("0"); - yResField_ = new JTextField("0"); - printFileName_ = new JFileChooser("./"); - printFileName_.setSelectedFile(new File("FoamX.jpg")); - printFileName_.setApproveButtonMnemonic(JFileChooser.SAVE_DIALOG); - printButton_ = new javax.swing.JButton("Print"); - - closeButton_ = new javax.swing.JButton("Close"); - - // Mainpanel - mainPanel_.setLayout(new GridLayout(5, 1)); - mainPanel_.add(timePanel_); - mainPanel_.add(globalPanel_); - mainPanel_.add(patchPanel_); - mainPanel_.add(cutPanel_); - mainPanel_.add(viewPanel_); - //mainPanel_.add(closeButton_); - - // Globalpanel - globalPanel_.setLayout(new GridLayout(5, 2)); - - globalPanel_.add(new JLabel("Type")); - fieldTypeBox_.addItem("volScalarField"); - fieldTypeBox_.addItem("volVectorField"); - globalPanel_.add(fieldTypeBox_); - - globalPanel_.add(new JLabel("Name")); - globalPanel_.add(fieldNameBox_); - - globalPanel_.add(new JLabel("Min")); - globalPanel_.add(minField_); - - globalPanel_.add(new JLabel("Max")); - globalPanel_.add(maxField_); - - globalPanel_.add(new JLabel("VecSize")); - globalPanel_.add(vecSizeField_); - - - // Patchpanel - patchPanel_.setLayout(new GridLayout(2, 2)); - patchPanel_.add(new JLabel("Patch")); - patchPanel_.add(patchBox_); - - patchPanel_.add(new JLabel("Create Patch")); - patchPanel_.add(createPatchButton_); - - // Cutpanel - cutPanel_.setLayout(new GridLayout(3, 4)); - cutPanel_.add(new JLabel("Point")); - cutPanel_.add(xField_); - cutPanel_.add(yField_); - cutPanel_.add(zField_); - - cutPanel_.add(new JLabel("Normal")); - cutPanel_.add(xNField_); - cutPanel_.add(yNField_); - cutPanel_.add(zNField_); - - cutPanel_.add(new JLabel("Create Cut")); - cutPanel_.add(createCutButton_); - cutPanel_.add(new JLabel("Create Mesh Cut")); - cutPanel_.add(createMeshCutButton_); - - // Viewpanel - viewPanel_.setLayout(new GridLayout(5,4)); - - viewPanel_.add(new JLabel("Eye")); - viewPanel_.add(xEyeField_); - viewPanel_.add(yEyeField_); - viewPanel_.add(zEyeField_); - - viewPanel_.add(new JLabel("Center")); - viewPanel_.add(xCenterField_); - viewPanel_.add(yCenterField_); - viewPanel_.add(zCenterField_); - - viewPanel_.add(new JLabel("Up")); - viewPanel_.add(xUpField_); - viewPanel_.add(yUpField_); - viewPanel_.add(zUpField_); - - viewPanel_.add(setViewButton_); - viewPanel_.add(new JLabel("")); - - viewPanel_.add(xResField_); - viewPanel_.add(yResField_); - viewPanel_.add(printButton_); - viewPanel_.add(closeButton_); - - Container c = getContentPane(); - c.add(mainPanel_); - - // Listeners - fieldTypeBox_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - fieldTypeBox_ActionPerformed(evt); - } - } - ); - createPatchButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createPatchButton_ActionPerformed(evt); - } - } - ); - createCutButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createCutButton_ActionPerformed(evt); - } - } - ); - createMeshCutButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - createMeshCutButton_ActionPerformed(evt); - } - } - ); - setViewButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - setViewButton_ActionPerformed(evt); - } - } - ); - printButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - printButton_ActionPerformed(evt); - } - } - ); - - // Window closing - setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); - addWindowListener - ( - new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeButton_ActionPerformed(new ActionEvent(this, 0, "dummy")); - } - } - ); - closeButton_.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - closeButton_ActionPerformed(evt); - } - } - ); - - - - pack(); - java.awt.Dimension screenSize = - java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - //setSize(new java.awt.Dimension(300, 200)); - setLocation((screenSize.width-480)/2,(screenSize.height-200)/2); - }//GEN-END:initComponents - - - //-------------------------------------------------------------------------- - - private void closeButton_ActionPerformed(ActionEvent evt) - { - fireClosePostCase - ( - caseRoot_, - caseName_ - ); - } - - //-------------------------------------------------------------------------- - - private void setFieldNames(String fieldType) - { - try - { - if (fieldType == null) - { - return; - } - - String[] fieldNames = - casePostServer_.getFieldNames(fieldType); - - fieldNameBox_.removeAllItems(); - for(int i = 0; i < fieldNames.length; i++) - { - fieldNameBox_.addItem(fieldNames[i]); - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - //-------------------------------------------------------------------------- - - private void fieldTypeBox_ActionPerformed(ActionEvent evt) - { - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - setFieldNames(fieldType); - } - - - //-------------------------------------------------------------------------- - - private void createPatchButton_ActionPerformed(ActionEvent evt) - { - try - { - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - String fieldName = (String)fieldNameBox_.getSelectedItem(); - String patchName = (String)patchBox_.getSelectedItem(); - - float vecSize = Float.valueOf(vecSizeField_.getText()).floatValue(); - - float userMin = - Float.valueOf((String)minField_.getText()).floatValue(); - float userMax = - Float.valueOf((String)maxField_.getText()).floatValue(); - - if - ( - (fieldName == null) - || (patchName == null) - || (fieldType == null) - ) - { - return; - } - - if (fieldType.equals("volScalarField")) - { - patchSampleScalar(fieldName, patchName, userMin, userMax); - } - else if (fieldType.equals("volVectorField")) - { - patchSampleVector - ( - fieldName, - patchName, - userMin, - userMax, - vecSize - ); - } - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "min and max field should be numbers" - ) - ); - } - } - - - //-------------------------------------------------------------------------- - - private void patchSampleScalar - ( - String fieldName, - String patchName, - float userMin, - float userMax - ) - { - try - { - FloatListHolder pointsContainer = new FloatListHolder(); - LongListHolder facesContainer = new LongListHolder(); - FloatListHolder valuesContainer = new FloatListHolder(); - - // Read patch geometry + data - casePostServer_.getTriPatch - ( - fieldName, - patchName, - pointsContainer, - facesContainer, - valuesContainer - ); - - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size patch."); - return; - } - - float minValue = userMin; - float maxValue = userMax; - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(values); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - System.out.println("Min:" + minValue + " Max:" + maxValue); - - String name = - "patch_" + patchName + "_" + fieldName - + Integer.toString(patchNo_++); - - // Create geometry object from patch data - ColoredSurfaceByRefNode ss0 = new ColoredSurfaceByRefNode - ( - name, - false, - false, - Math.PI / 4.5, - points, - null, - faces, - values, - pp_.getColorizer(), - minValue, - maxValue - ); - ColoredSurfaceByRef ss = ss0.getColoredSurfaceByRef(); - ss.setAppearance - ( - PostApp.createMaterialAppearance() - ); - ss0.show(); - pp_.getScene().addChild(ss0.getRoot()); - pp_.setBounds((BoundingSphere)pp_.getScene().getBounds()); - pp_.getShapes().addElement(ss0); - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "min and max field should be numbers" - ) - ); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - //-------------------------------------------------------------------------- - - private void patchSampleVector - ( - String fieldName, - String patchName, - float userMin, - float userMax, - float vecSize - ) - { - try - { - FloatListHolder pointsContainer = new FloatListHolder(); - LongListHolder facesContainer = new LongListHolder(); - FloatListHolder valuesContainer = new FloatListHolder(); - - // Read patch geometry + data - casePostServer_.getTriPatchVec - ( - fieldName, - patchName, - pointsContainer, - facesContainer, - valuesContainer - ); - - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - -System.out.println -( - "Received points:" + points.length + " faces:" + faces.length - + " values:" + values.length -); - - if (faces.length == 0) - { - System.out.println("Zero size patch."); - return; - } - - // Convert into vectors on face centers. - int nTris = faces.length / 3; - float[] centreCoords = new float[3*nTris]; - float[] centreValues = new float[3*nTris]; - float[] colorValues = new float[nTris]; - - int vertI = 0; - for(int i = 0; i < nTris; i++) - { - int a = faces[vertI]; - int b = faces[vertI+1]; - int c = faces[vertI+2]; - - // Average vertex coords - float x = points[3*a] + points[3*b] + points[3*c]; - x /= 3.0f; - - float y = points[3*a+1] + points[3*b+1] + points[3*c+1]; - y /= 3.0f; - - float z = points[3*a+2] + points[3*b+2] + points[3*c+2]; - z /= 3.0f; - - centreCoords[vertI] = x; - centreCoords[vertI+1] = y; - centreCoords[vertI+2] = z; - - - // Average vertex values - float xVal = values[3*a] + values[3*b] + values[3*c]; - xVal /= 3.0f; - - float yVal = values[3*a+1] + values[3*b+1] + values[3*c+1]; - yVal /= 3.0f; - - float zVal = values[3*a+2] + values[3*b+2] + values[3*c+2]; - zVal /= 3.0f; - - centreValues[vertI] = xVal; - centreValues[vertI+1] = yVal; - centreValues[vertI+2] = zVal; - - colorValues[i] = - (float)Math.sqrt(xVal*xVal + yVal*yVal + zVal*zVal); - - - vertI += 3; - } - - float minValue = userMin; - float maxValue = userMax; - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(colorValues); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - System.out.println("Min:" + minValue + " Max:" + maxValue); - - String name = - "patch_" + patchName + "_" + fieldName - + Integer.toString(patchNo_++); - - // Create geometry object from patch data - ArrowsNode arr0 = new ArrowsNode - ( - name, - centreCoords, - centreValues, - vecSize, - colorValues, - pp_.getColorizer(), - minValue, - maxValue - ); - arr0.show(); - pp_.getScene().addChild(arr0.getRoot()); - pp_.setBounds((BoundingSphere)pp_.getScene().getBounds()); - pp_.getShapes().addElement(arr0); - - // Add colorBar - ColorBar2DNode colorBar = new ColorBar2DNode - ( - "ColorBar_0", - pp_.getUniverse().getCanvas(), - new Placement(new Dimension(10, 10), Placement.TOPLEFT), - new Dimension(40, 128), - pp_.getColorizer(), - minValue, - maxValue - ); - colorBar.show(); - TransformGroup viewTrans = - pp_.getUniverse().getViewingPlatform() - .getViewPlatformTransform(); - viewTrans.addChild(colorBar.getRoot()); - pp_.getShapes().addElement(colorBar); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - - //-------------------------------------------------------------------------- - - private void createCutButton_ActionPerformed(ActionEvent evt) - { - try - { - float x = Float.valueOf(xField_.getText()).floatValue(); - float y = Float.valueOf(yField_.getText()).floatValue(); - float z = Float.valueOf(zField_.getText()).floatValue(); - - float xN = Float.valueOf(xNField_.getText()).floatValue(); - float yN = Float.valueOf(yNField_.getText()).floatValue(); - float zN = Float.valueOf(zNField_.getText()).floatValue(); - - float vecSize = Float.valueOf(vecSizeField_.getText()).floatValue(); - - String fieldType = (String)fieldTypeBox_.getSelectedItem(); - String fieldName = (String)fieldNameBox_.getSelectedItem(); - - float userMin = - Float.valueOf((String)minField_.getText()).floatValue(); - float userMax = - Float.valueOf((String)maxField_.getText()).floatValue(); - - if ((fieldName == null) || (fieldType == null)) - { - return; - } - if ((Math.abs(xN)+Math.abs(yN)+Math.abs(zN)) == 0.0) - { - return; - } - - // Read patch geometry + data - float[] basePoint = {x, y, z}; - float[] normal = {xN, yN, zN}; - - - if (fieldType.equals("volScalarField")) - { - cutScalar(fieldName, basePoint, normal, userMin, userMax); - } - else if (fieldType.equals("volVectorField")) - { - cutVector - ( - fieldName, - basePoint, - normal, - userMin, - userMax, - vecSize - ); - } - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "cut specification should only contain vectors" - ) - ); - } - } - - - //-------------------------------------------------------------------------- - - private void cutScalar - ( - String fieldName, - float[] basePoint, - float[] normal, - float userMin, - float userMax - ) - { - try - { - FloatListHolder pointsContainer = new FloatListHolder(); - LongListHolder facesContainer = new LongListHolder(); - FloatListHolder valuesContainer = new FloatListHolder(); - - casePostServer_.cutPlane - ( - fieldName, - basePoint, - normal, - pointsContainer, - facesContainer, - valuesContainer - ); - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size cut."); - return; - } - String name = "cut_" + fieldName + "_" + Integer.toString(cutNo_++); - - float minValue = userMin; - Float.valueOf((String)minField_.getText()).floatValue(); - float maxValue = userMax; - Float.valueOf((String)maxField_.getText()).floatValue(); - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(values); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - System.out.println("Min:" + minValue + " Max:" + maxValue); - - // Create geometry object from patch data - ColoredSurfaceByRefNode ss0 = new ColoredSurfaceByRefNode - ( - name, - false, - false, - Math.PI / 4.5, - points, - null, - faces, - values, - pp_.getColorizer(), - minValue, - maxValue - ); - ColoredSurfaceByRef ss = ss0.getColoredSurfaceByRef(); - ss.setAppearance - ( - PostApp.createMaterialAppearance() - ); - ss0.show(); - pp_.getScene().addChild(ss0.getRoot()); - pp_.setBounds((BoundingSphere)pp_.getScene().getBounds()); - pp_.getShapes().addElement(ss0); - - // Add colorBar - ColorBar2DNode colorBar = new ColorBar2DNode - ( - "ColorBar_0", - pp_.getUniverse().getCanvas(), - new Placement(new Dimension(10, 10), Placement.TOPLEFT), - new Dimension(40, 128), - pp_.getColorizer(), - minValue, - maxValue - ); - colorBar.show(); - TransformGroup viewTrans = - pp_.getUniverse().getViewingPlatform() - .getViewPlatformTransform(); - viewTrans.addChild(colorBar.getRoot()); - pp_.getShapes().addElement(colorBar); - - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "min and max should be numbers" - ) - ); - } - catch(FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch(FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - - //-------------------------------------------------------------------------- - - private void cutVector - ( - String fieldName, - float[] basePoint, - float[] normal, - float userMin, - float userMax, - float vecSize - ) - { - try - { - FloatListHolder pointsContainer = new FloatListHolder(); - LongListHolder facesContainer = new LongListHolder(); - FloatListHolder valuesContainer = new FloatListHolder(); - - casePostServer_.cutPlaneVec - ( - fieldName, - basePoint, - normal, - pointsContainer, - facesContainer, - valuesContainer - ); - float[] points = pointsContainer.value; - int[] faces = facesContainer.value; - float[] values = valuesContainer.value; - - if (faces.length == 0) - { - System.out.println("Zero size cut."); - return; - } - - // Convert into vectors on face centers. - int nTris = faces.length / 3; - float[] centreCoords = new float[3*nTris]; - float[] centreValues = new float[3*nTris]; - float[] colorValues = new float[nTris]; - - int vertI = 0; - for(int i = 0; i < nTris; i++) - { - int a = faces[vertI]; - int b = faces[vertI+1]; - int c = faces[vertI+2]; - - - // Average vertex coords - float x = points[3*a] + points[3*b] + points[3*c]; - x /= 3.0f; - - float y = points[3*a+1] + points[3*b+1] + points[3*c+1]; - y /= 3.0f; - - float z = points[3*a+2] + points[3*b+2] + points[3*c+2]; - z /= 3.0f; - - centreCoords[vertI] = x; - centreCoords[vertI+1] = y; - centreCoords[vertI+2] = z; - - - // Average vertex values - float xVal = values[3*a] + values[3*b] + values[3*c]; - xVal /= 3.0f; - - float yVal = values[3*a+1] + values[3*b+1] + values[3*c+1]; - yVal /= 3.0f; - - float zVal = values[3*a+2] + values[3*b+2] + values[3*c+2]; - zVal /= 3.0f; - - centreValues[vertI] = xVal; - centreValues[vertI+1] = yVal; - centreValues[vertI+2] = zVal; - - colorValues[i] = - (float)Math.sqrt(xVal*xVal + yVal*yVal + zVal*zVal); - - - vertI += 3; - } - - - float minValue = userMin; - float maxValue = userMax; - - if ((minValue == 0.0f) && (maxValue == 0.0f)) - { - // Autocolor - ArrayStats stats = new ArrayStats(colorValues); - minValue = stats.getMin(); - maxValue = stats.getMax(); - } - - System.out.println("Min:" + minValue + " Max:" + maxValue); - - String name = - "cut_" + fieldName + "_" + Integer.toString(cutNo_++); - - // Create geometry object from patch data - ArrowsNode arr0 = new ArrowsNode - ( - name, - centreCoords, - centreValues, - vecSize, - colorValues, - pp_.getColorizer(), - minValue, - maxValue - ); - arr0.show(); - pp_.getScene().addChild(arr0.getRoot()); - pp_.setBounds((BoundingSphere)pp_.getScene().getBounds()); - pp_.getShapes().addElement(arr0); - - // Add colorBar - ColorBar2DNode colorBar = new ColorBar2DNode - ( - "ColorBar_0", - pp_.getUniverse().getCanvas(), - new Placement(new Dimension(10, 10), Placement.TOPLEFT), - new Dimension(40, 128), - pp_.getColorizer(), - minValue, - maxValue - ); - colorBar.show(); - TransformGroup viewTrans = - pp_.getUniverse().getViewingPlatform() - .getViewPlatformTransform(); - viewTrans.addChild(colorBar.getRoot()); - pp_.getShapes().addElement(colorBar); - } - catch(FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch(FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - - //-------------------------------------------------------------------------- - - private void createMeshCutButton_ActionPerformed(ActionEvent evt) - { - try - { - float x = - Float.valueOf(xField_.getText()).floatValue(); - float y = - Float.valueOf(yField_.getText()).floatValue(); - float z = - Float.valueOf(zField_.getText()).floatValue(); - - float xN = - Float.valueOf(xNField_.getText()).floatValue(); - float yN = - Float.valueOf(yNField_.getText()).floatValue(); - float zN = - Float.valueOf(zNField_.getText()).floatValue(); - - if ((Math.abs(xN)+Math.abs(yN)+Math.abs(zN)) == 0.0) - { - return; - } - - FloatListHolder pointsContainer = new FloatListHolder(); - LongListHolder edgesContainer = new LongListHolder(); - - // Read patch geometry + data - float[] basePoint = {x, y, z}; - float[] normal = {xN, yN, zN}; - - casePostServer_.getCutMesh - ( - basePoint, - normal, - pointsContainer, - edgesContainer - ); - - float[] points = pointsContainer.value; - int[] edges = edgesContainer.value; - - if (edges.length > 0) - { - String name = - "meshCut_" + Integer.toString(cutNo_++); - - // Create geometry object - MeshLinesNode ml0 = new MeshLinesNode - ( - name, - points, - edges - ); - ml0.show(); - pp_.getScene().addChild(ml0.getRoot()); - pp_.setBounds((BoundingSphere)pp_.getScene().getBounds()); - pp_.getShapes().addElement(ml0); - } - else - { - System.out.println("Zero size cut."); - } - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "cut specification should only contain vectors" - ) - ); - } - catch(FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - } - - //-------------------------------------------------------------------------- - - private void setViewButton_ActionPerformed(ActionEvent evt) - { - try - { - float xEye = - Float.valueOf(xEyeField_.getText()).floatValue(); - float yEye = - Float.valueOf(yEyeField_.getText()).floatValue(); - float zEye = - Float.valueOf(zEyeField_.getText()).floatValue(); - - float xCenter = - Float.valueOf(xCenterField_.getText()).floatValue(); - float yCenter = - Float.valueOf(yCenterField_.getText()).floatValue(); - float zCenter = - Float.valueOf(zCenterField_.getText()).floatValue(); - - float xUp = - Float.valueOf(xUpField_.getText()).floatValue(); - float yUp = - Float.valueOf(yUpField_.getText()).floatValue(); - float zUp = - Float.valueOf(zUpField_.getText()).floatValue(); - - Point3d eye = new Point3d(xEye, yEye, zEye); - Point3d center = new Point3d(xCenter, yCenter, zCenter); - Vector3d up = new Vector3d(xUp, yUp, zUp); - - // Set rotation/translation - look_.lookAt(eye, center, up); - look_.invert(); - -// // Set scale explicitly -// Vector3d tmpVec = new Vector3d(eye); -// tmpVec.sub(center); -// System.out.println("Setting scale:" + tmpVec.length()); -// look_.set(tmpVec.length()); - - ViewingPlatform viewingPlatform = - pp_.getUniverse().getViewingPlatform(); - TransformGroup viewTrans = - viewingPlatform.getViewPlatformTransform(); - viewTrans.setTransform(look_); - - // Reset center of rotation - OrbitBehavior orbit = - (OrbitBehavior) viewingPlatform.getViewPlatformBehavior(); - - orbit.setRotationCenter(center); - - // Hack to cause update of orbitbehavior - orbit.setViewingPlatform(viewingPlatform); - } - catch(NumberFormatException nex) - { - throw new IllegalArgumentException - ( - "view specification should only contain numbers" - ); - } - } - - //-------------------------------------------------------------------------- - - private void printButton_ActionPerformed(ActionEvent evt) - { - try - { - int xRes = - Integer.parseInt(xResField_.getText()); - int yRes = - Integer.parseInt(yResField_.getText()); - - Canvas3D canvas3D = pp_.getUniverse().getCanvas(); - OffScreenCanvas3D offScreenCanvas3D = pp_.getOffScreenCanvas3D(); - - Point loc = canvas3D.getLocationOnScreen(); - offScreenCanvas3D.setOffScreenLocation(loc); - Dimension dim = canvas3D.getSize(); - - System.out.println - ( - "Dim:" + dim + " xRes:" + xRes + " yRes:" + yRes - ); - - if ((xRes < 0) || (yRes < 0)) - { - throw new NumberFormatException(); - } - if (xRes == 0) - { - if (yRes == 0) - { - // Leave dim intact. Same offscreen res as onscreen - } - else - { - // yRes specified. Scale x to keep aspect ratio intact. - dim.width *= (yRes / dim.height); - dim.height = yRes; - } - } - else - { - if (yRes == 0) - { - // xRes specified. Scale y to keep aspect ratio intact. - dim.height *= (xRes / dim.width); - dim.width = xRes; - } - else - { - // both specified. Use pixel aspect ratio to fit picture. - double scale = xRes / dim.width; - double specScale = yRes / dim.height; - - Screen3D sOff = offScreenCanvas3D.getScreen3D(); - sOff.setPhysicalScreenHeight - ( - (specScale/scale)*sOff.getPhysicalScreenHeight() - ); - - dim.width = xRes; - dim.height = yRes; - } - } - - System.out.println("dim=" + dim); - - BufferedImage bImage = - offScreenCanvas3D.doRender(dim.width, dim.height); - -// if (target == snapshotItem) { - new ImageDisplayer(bImage); -// } -// else { // (target == printItem) -// new ImagePrinter(bImage).print(); -// } - } - catch(NumberFormatException nex) - { - App.handleAllExceptions - ( - new IllegalArgumentException - ( - "print resolution specification incorrect" - ) - ); - } - - } - - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JComboBox fieldTypeBox_; - private javax.swing.JComboBox fieldNameBox_; - private javax.swing.JTextField minField_; - private javax.swing.JTextField maxField_; - private javax.swing.JTextField vecSizeField_; - private javax.swing.JComboBox patchBox_; - private javax.swing.JButton createPatchButton_; - private javax.swing.JButton createMeshCutButton_; - - private javax.swing.JPanel globalPanel_; - private javax.swing.JPanel patchPanel_; - private javax.swing.JPanel cutPanel_; - private javax.swing.JTextField xField_; - private javax.swing.JTextField yField_; - private javax.swing.JTextField zField_; - private javax.swing.JTextField xNField_; - private javax.swing.JTextField yNField_; - private javax.swing.JTextField zNField_; - private javax.swing.JButton createCutButton_; - private javax.swing.JButton closeButton_; - - private javax.swing.JPanel viewPanel_; - private javax.swing.JTextField xEyeField_; - private javax.swing.JTextField yEyeField_; - private javax.swing.JTextField zEyeField_; - private javax.swing.JTextField xCenterField_; - private javax.swing.JTextField yCenterField_; - private javax.swing.JTextField zCenterField_; - private javax.swing.JTextField xUpField_; - private javax.swing.JTextField yUpField_; - private javax.swing.JTextField zUpField_; - private javax.swing.JButton setViewButton_; - - private javax.swing.JTextField xResField_; - private javax.swing.JTextField yResField_; - private javax.swing.JButton printButton_; - private javax.swing.JFileChooser printFileName_; - - private TimePanel timePanel_; - - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //---- CaseStatusListener Methods - //-------------------------------------------------------------------------- - - public void addCaseStatusListener(CaseStatusListener l) - { - listenerList_.add(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeCaseStatusListener(CaseStatusListener l) - { - listenerList_.remove(CaseStatusListener.class, l); - } - - //-------------------------------------------------------------------------- - - protected void fireClosePostCase(String caseRoot, String caseName) - { - System.out.println("PostWindow: firing closing event for " + caseName); - - // Create event object. - CaseStatusEvent evt = new CaseStatusEvent(this, caseRoot, caseName); - - // Process the listeners last to first, notifying those that - // are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == CaseStatusListener.class) - { - ((CaseStatusListener)listeners[i+1]).casePostClosed(evt); - } - } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/.nbattrs deleted file mode 100644 index 17e793077d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/.nbattrs +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Arrows.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Arrows.java deleted file mode 100644 index 368cd5c5f1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Arrows.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Arrows.java - */ - - -package FoamX.Post.Shapes; - -import java.awt.*; - -import com.sun.j3d.utils.picking.PickResult; - -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.Util.Colorizer; - -public class Arrows extends Shape3D implements PickableShape -{ - public Arrows - ( - final float[] sampleCoords, - final float[] vecValues, - final float sizeScale, - final float[] scalValues, - final Colorizer colorizer, - final float min, - final float max - ) - { - this.setGeometry - ( - createGeometry - ( - sampleCoords, - vecValues, - sizeScale, - scalValues, - colorizer, - min, - max - ) - ); - - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - //-------------------------------------------------------------------------- - - /** creates set of arrows, one per samplePoint. - * Arrow built of single line - */ - static public Geometry createGeometry - ( - final float[] sampleCoords, - final float[] vecValues, - final float sizeScale, - final float[] scalValues, - final Colorizer colorizer, - final float min, - final float max - ) - { - // create line for X axis - LineArray arrowLines = new LineArray - ( - 2*sampleCoords.length, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - int vertI = 0; - int floatI = 0; - - float[] start = new float[3]; - float[] end = new float[3]; - - int nVecs = sampleCoords.length / 3; - for(int i = 0; i < nVecs; i++) - { - // Get coords and (vector) value - start[0] = sampleCoords[floatI]; - float u = vecValues[floatI++]; - - start[1] = sampleCoords[floatI]; - float v = vecValues[floatI++]; - - start[2] = sampleCoords[floatI]; - float w = vecValues[floatI++]; - - // Get color from scalar value - - // Head of arrow - end[0] = start[0] + sizeScale*u; - end[1] = start[1] + sizeScale*v; - end[2] = start[2] + sizeScale*w; - - //System.out.println - //( - //"i:" + i + " Start:" + start[0] + " " + start[1] + " " + start[2] + - //" End:" + end[0] + " " + end[1] + " " + end[2] - //); - - arrowLines.setCoordinate(vertI++, start); - arrowLines.setCoordinate(vertI++, end); - } - - System.out.println("Converting values to colours ..."); - float[] colors = new float[3*scalValues.length]; - colorizer.color(min, max, scalValues, colors); - - float[] arrowColors = new float[2*colors.length]; - int compI = 0; - int destI = 0; - for(int i = 0; i < nVecs; i++) - { - float r = colors[compI++]; - float g = colors[compI++]; - float b = colors[compI++]; - - // start-vertex color - arrowColors[destI] = r; - arrowColors[destI+1] = g; - arrowColors[destI+2] = b; - - // end-vertex color - arrowColors[destI+3] = r; - arrowColors[destI+4] = g; - arrowColors[destI+5] = b; - - destI += 6; - } - arrowLines.setColors(0, arrowColors); - - return arrowLines; - - } // end of createGeometry() - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: Arrows Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: Arrows unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove arrows:"); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - //-------------------------------------------------------------------------- - - - -} // end of class Arrows diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Axis-NoText.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Axis-NoText.java deleted file mode 100644 index 2affe6033c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Axis-NoText.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Axis.java 1.0 98/11/25 - * - * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ - -/* - * Getting Started with the Java 3D API - * written in Java 3D - * - * This program demonstrates: - * 1. writing a visual object class - * In this program, Axis class defines a visual object - * This particular class extends Shape3D - * See the text for a discussion. - * 2. Using LineArray to draw 3D lines. - */ - -//package geometry; - - -import javax.media.j3d.*; -import javax.vecmath.*; - - public class Axis extends Shape3D{ - - //////////////////////////////////////////// - // - // create axis visual object - // - public Axis() { - - this.setGeometry(createGeometry()); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - private Geometry createGeometry(){ - // create line for X axis - IndexedLineArray axisLines = new IndexedLineArray - ( - 18, - GeometryArray.COORDINATES, - 30 - ); - - axisLines.setCoordinate( 0, new Point3f(-1.0f, 0.0f, 0.0f)); - axisLines.setCoordinate( 1, new Point3f( 1.0f, 0.0f, 0.0f)); - axisLines.setCoordinate( 2, new Point3f( 0.9f, 0.1f, 0.1f)); - axisLines.setCoordinate( 3, new Point3f( 0.9f,-0.1f, 0.1f)); - axisLines.setCoordinate( 4, new Point3f( 0.9f, 0.1f,-0.1f)); - axisLines.setCoordinate( 5, new Point3f( 0.9f,-0.1f,-0.1f)); - axisLines.setCoordinate( 6, new Point3f( 0.0f,-1.0f, 0.0f)); - axisLines.setCoordinate( 7, new Point3f( 0.0f, 1.0f, 0.0f)); - axisLines.setCoordinate( 8, new Point3f( 0.1f, 0.9f, 0.1f)); - axisLines.setCoordinate( 9, new Point3f(-0.1f, 0.9f, 0.1f)); - axisLines.setCoordinate(10, new Point3f( 0.1f, 0.9f,-0.1f)); - axisLines.setCoordinate(11, new Point3f(-0.1f, 0.9f,-0.1f)); - axisLines.setCoordinate(12, new Point3f( 0.0f, 0.0f,-1.0f)); - axisLines.setCoordinate(13, new Point3f( 0.0f, 0.0f, 1.0f)); - axisLines.setCoordinate(14, new Point3f( 0.1f, 0.1f, 0.9f)); - axisLines.setCoordinate(15, new Point3f(-0.1f, 0.1f, 0.9f)); - axisLines.setCoordinate(16, new Point3f( 0.1f,-0.1f, 0.9f)); - axisLines.setCoordinate(17, new Point3f(-0.1f,-0.1f, 0.9f)); - - axisLines.setCoordinateIndex( 0, 0); - axisLines.setCoordinateIndex( 1, 1); - axisLines.setCoordinateIndex( 2, 2); - axisLines.setCoordinateIndex( 3, 1); - axisLines.setCoordinateIndex( 4, 3); - axisLines.setCoordinateIndex( 5, 1); - axisLines.setCoordinateIndex( 6, 4); - axisLines.setCoordinateIndex( 7, 1); - axisLines.setCoordinateIndex( 8, 5); - axisLines.setCoordinateIndex( 9, 1); - axisLines.setCoordinateIndex(10, 6); - axisLines.setCoordinateIndex(11, 7); - axisLines.setCoordinateIndex(12, 8); - axisLines.setCoordinateIndex(13, 7); - axisLines.setCoordinateIndex(14, 9); - axisLines.setCoordinateIndex(15, 7); - axisLines.setCoordinateIndex(16,10); - axisLines.setCoordinateIndex(17, 7); - axisLines.setCoordinateIndex(18,11); - axisLines.setCoordinateIndex(19, 7); - axisLines.setCoordinateIndex(20,12); - axisLines.setCoordinateIndex(21,13); - axisLines.setCoordinateIndex(22,14); - axisLines.setCoordinateIndex(23,13); - axisLines.setCoordinateIndex(24,15); - axisLines.setCoordinateIndex(25,13); - axisLines.setCoordinateIndex(26,16); - axisLines.setCoordinateIndex(27,13); - axisLines.setCoordinateIndex(28,17); - axisLines.setCoordinateIndex(29,13); - - - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - - return axisLines; - - } // end of Axis createGeometry() - - - } // end of class Axis diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/AxisLines.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/AxisLines.java deleted file mode 100644 index e8d2f98c1e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/AxisLines.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * AxisLines.java - */ - - -package FoamX.Post.Shapes; - -import java.awt.*; -//import java.awt.Font; - -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.geometry.Text2D; -import com.sun.j3d.utils.picking.PickResult; - -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.InteractiveNodes.AxisNode; - -public class AxisLines extends Shape3D implements PickableShape -{ - public AxisLines(AxisNode axisNode, Color3f color) - { - this.setGeometry(createGeometry(color)); - - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - //-------------------------------------------------------------------------- - - - private Geometry createGeometry(Color3f color) - { - // create line for X axis - IndexedLineArray axisLines = new IndexedLineArray - ( - 18, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 30 - ); - - axisLines.setCoordinate( 0, new Point3f( 0.0f, 0.0f, 0.0f)); - axisLines.setCoordinate( 1, new Point3f( 1.0f, 0.0f, 0.0f)); - axisLines.setCoordinate( 2, new Point3f( 0.9f, 0.1f, 0.1f)); - axisLines.setCoordinate( 3, new Point3f( 0.9f,-0.1f, 0.1f)); - axisLines.setCoordinate( 4, new Point3f( 0.9f, 0.1f,-0.1f)); - axisLines.setCoordinate( 5, new Point3f( 0.9f,-0.1f,-0.1f)); - axisLines.setCoordinate( 6, new Point3f( 0.0f, 0.0f, 0.0f)); - axisLines.setCoordinate( 7, new Point3f( 0.0f, 1.0f, 0.0f)); - axisLines.setCoordinate( 8, new Point3f( 0.1f, 0.9f, 0.1f)); - axisLines.setCoordinate( 9, new Point3f(-0.1f, 0.9f, 0.1f)); - axisLines.setCoordinate(10, new Point3f( 0.1f, 0.9f,-0.1f)); - axisLines.setCoordinate(11, new Point3f(-0.1f, 0.9f,-0.1f)); - axisLines.setCoordinate(12, new Point3f( 0.0f, 0.0f, 0.0f)); - axisLines.setCoordinate(13, new Point3f( 0.0f, 0.0f, 1.0f)); - axisLines.setCoordinate(14, new Point3f( 0.1f, 0.1f, 0.9f)); - axisLines.setCoordinate(15, new Point3f(-0.1f, 0.1f, 0.9f)); - axisLines.setCoordinate(16, new Point3f( 0.1f,-0.1f, 0.9f)); - axisLines.setCoordinate(17, new Point3f(-0.1f,-0.1f, 0.9f)); - - axisLines.setCoordinateIndex( 0, 0); - axisLines.setCoordinateIndex( 1, 1); - axisLines.setCoordinateIndex( 2, 2); - axisLines.setCoordinateIndex( 3, 1); - axisLines.setCoordinateIndex( 4, 3); - axisLines.setCoordinateIndex( 5, 1); - axisLines.setCoordinateIndex( 6, 4); - axisLines.setCoordinateIndex( 7, 1); - axisLines.setCoordinateIndex( 8, 5); - axisLines.setCoordinateIndex( 9, 1); - axisLines.setCoordinateIndex(10, 6); - axisLines.setCoordinateIndex(11, 7); - axisLines.setCoordinateIndex(12, 8); - axisLines.setCoordinateIndex(13, 7); - axisLines.setCoordinateIndex(14, 9); - axisLines.setCoordinateIndex(15, 7); - axisLines.setCoordinateIndex(16,10); - axisLines.setCoordinateIndex(17, 7); - axisLines.setCoordinateIndex(18,11); - axisLines.setCoordinateIndex(19, 7); - axisLines.setCoordinateIndex(20,12); - axisLines.setCoordinateIndex(21,13); - axisLines.setCoordinateIndex(22,14); - axisLines.setCoordinateIndex(23,13); - axisLines.setCoordinateIndex(24,15); - axisLines.setCoordinateIndex(25,13); - axisLines.setCoordinateIndex(26,16); - axisLines.setCoordinateIndex(27,13); - axisLines.setCoordinateIndex(28,17); - axisLines.setCoordinateIndex(29,13); - - axisLines.setColor(0, color); - for(int i = 0; i < 30; i++) - { - axisLines.setColorIndex(i, 0); - } - - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - - return axisLines; - - } // end of createGeometry() - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("ERROR: AxisLines Picked:"); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("ERROR: AxisLines unPicked:"); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - System.out.println("remove axis:"); - - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - //-------------------------------------------------------------------------- - - - -} // end of class AxisLines diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColorBar.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColorBar.java deleted file mode 100644 index 05911dbebf..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColorBar.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -//import com.sun.j3d.utils.geometry.GeometryInfo; -//import com.sun.j3d.utils.geometry.NormalGenerator; -//import com.sun.j3d.utils.geometry.Stripifier; -//import com.sun.j3d.utils.geometry.Triangulator; -//import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -//import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; -import javax.vecmath.Vector3f; - -import FoamX.Post.InteractiveNodes.ColorBarNode; -import FoamX.Post.Util.Colorizer; - -public class ColorBar extends Shape3D implements PickableShape -{ - // Create coloured triangles. - public ColorBar - ( - final ColorBarNode node, - final Colorizer ci, - final float min, - final float max - ) - { - this.setGeometry(ci.colorBar(min, max)); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on ColorBar "); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on ColorBar "); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - System.out.println("remove of ColorBar"); - - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurface.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurface.java deleted file mode 100644 index 869c4ebcf5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurface.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; - -import org.j3d.util.interpolator.ColorInterpolator; - -import FoamX.Post.InteractiveNodes.ColoredSurfaceNode; -import FoamX.Post.Util.BinaryFoamFile; - -public class ColoredSurface extends Shape3D implements PickableShape -{ - double creaseAngle_; - - public ColoredSurface - ( - ColoredSurfaceNode node, - double creaseAngle, - String pointsFileName, - String facesFileName, - String valuesFileName, - float min, - float max - ) - { - // Store reference to input data - creaseAngle_ = creaseAngle; - - System.out.println("Loading files ..."); - Point3f[] coords = BinaryFoamFile.readPoint3fArray(pointsFileName); - int[] triFaces = BinaryFoamFile.readIntArray(facesFileName); - float[] values = BinaryFoamFile.readFloatArray(valuesFileName); - - - // Auto colour - min = values[0]; - max = values[0]; - for(int i = 0; i < values.length; i++) - { - min = Math.min(min, values[i]); - max = Math.max(max, values[i]); - } - System.out.println("min=" + min + " max=" + max); - -// for(int i = 0; i < coords.length; i++) -// { -// System.out.println("i=" + i + " Coord=" + coords[i]); -// } -// for(int i = 0; i < triFaces.length; i++) -// { -// System.out.println("i=" + i + " TriFaces=" + triFaces[i]); -// } -// for(int i = 0; i < values.length; i++) -// { -// System.out.println("i=" + i + " Values=" + values[i]); -// } - - - System.out.println("Colouring ..."); - Color3f[] colors = new Color3f[values.length]; - valuesToVertexColors(values, colors, min, max); - - int[] colorIndices = new int[triFaces.length]; - - - System.out.println("Setting color indices ..."); - if (values.length == coords.length) - { - //- Vertex wise data - for(int i = 0; i < triFaces.length; i++) - { - colorIndices[i] = triFaces[i]; - } - } - else if (3*values.length == triFaces.length) - { - //- Face wise data - int vertI = 0; - for(int faceI = 0; faceI < triFaces.length/3; faceI++) - { - colorIndices[vertI++] = faceI; - colorIndices[vertI++] = faceI; - colorIndices[vertI++] = faceI; - } - } - else - { - System.out.println("**Illegal length of values" + values.length); - } - - - GeometryInfo geometryInfo = - new GeometryInfo(GeometryInfo.TRIANGLE_ARRAY); - System.out.println("Setting coordinates ..."); - geometryInfo.setCoordinates(coords); - geometryInfo.setCoordinateIndices(triFaces); - - System.out.println("Setting colours ..."); - geometryInfo.setColors(colors); - geometryInfo.setColorIndices(colorIndices); - - //- Generate normals - System.out.println("Setting normals ..."); - NormalGenerator ng = new NormalGenerator(creaseAngle_); - ng.generateNormals(geometryInfo); - - //- Make shape and set various - System.out.println("Making geometryArray..."); - IndexedGeometryArray array = geometryInfo.getIndexedGeometryArray(); - - this.setGeometry(array); - //PickTool.setCapabilities(this, PickTool.INTERSECT_FULL); - //this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - //this.setCapability(Shape3D.ALLOW_APPEARANCE_READ); - //array.setCapability(IndexedGeometryArray.ALLOW_COLOR_INDEX_WRITE); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - System.out.println("Done making shape..."); - } - - // Convert values into colors - static void valuesToVertexColors - ( - float[] values, Color3f[] colors, float min, float max - ) - { - if (values.length != colors.length) - { - System.out.println - ( - "Lengths different:" + values.length + " " + colors.length - ); - } - if (values.length == 0) - { - return; - } - - ColorInterpolator ci = new ColorInterpolator(3); - ci.addRGBKeyFrame(min , 0.0f, 0.0f, 1.0f, 1.0f); - float temp = (float)(0.5*min+0.5*max); - ci.addRGBKeyFrame(temp, 0.0f, 1.0f, 0.0f, 1.0f); - ci.addRGBKeyFrame(max , 1.0f, 0.0f, 0.0f, 1.0f); - - for(int i = 0; i < values.length; i++) - { - float[] rgbColor = ci.floatRGBValue(values[i]); - colors[i] = new Color3f(rgbColor[0], rgbColor[1], rgbColor[2]); - } - - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on ColoredSurface "); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on ColoredSurface "); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - System.out.println("remove of ColoredSurface"); - - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRef.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRef.java deleted file mode 100644 index 8e49f49e6a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRef.java +++ /dev/null @@ -1,712 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; -import javax.vecmath.Vector3f; - -import org.j3d.util.interpolator.ColorInterpolator; - -import FoamX.Post.InteractiveNodes.ColoredSurfaceByRefNode; -import FoamX.Post.Util.BinaryFoamFile; -import FoamX.Post.Util.Colorizer; - -public class ColoredSurfaceByRef extends Shape3D implements PickableShape -{ - // reads triangle list. - public ColoredSurfaceByRef - ( - final ColoredSurfaceByRefNode node, - final double creaseAngle, - final boolean stripify, - final String pointsFileName, - final String facesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - this - ( - node, - false, - false, - stripify, - creaseAngle, - pointsFileName, - null, - facesFileName, - valuesFileName, - colorizer, - min, - max - ); - } - - - // reads triangle strip. - public ColoredSurfaceByRef - ( - final ColoredSurfaceByRefNode node, - final boolean readTriStrip, - final boolean readNormals, - final boolean stripify, - final double creaseAngle, - final String pointsFileName, - final String normalsFileName, - final String trianglesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - int[][] triStrips = null; - int[] triFaces = null; - float[] normals = null; - - //System.out.println("Loading files ..."); - float[] coords = BinaryFoamFile.readFloatPointArray(pointsFileName); - - if (readNormals) - { - normals = BinaryFoamFile.readFloatPointArray(normalsFileName); - } - - if (readTriStrip) - { - triStrips = BinaryFoamFile.readIntIntArray(trianglesFileName); - } - else - { - triFaces = BinaryFoamFile.readIntArray(trianglesFileName); - } - - float[] values = BinaryFoamFile.readFloatArray(valuesFileName); - - Geometry array = createGeometry - ( - node, - readTriStrip, - stripify, - creaseAngle, - coords, - normals, - triFaces, - triStrips, - values, - colorizer, - min, - max - ); - this.setGeometry(array); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Creates coloured geometry from values - public ColoredSurfaceByRef - ( - final ColoredSurfaceByRefNode node, - final boolean stripInput, - final boolean stripify, - final double creaseAngle, - final float[] points, - final float[] normals, - final int[] triFaces, - final int[][] triStrips, - final float[] values, - final Colorizer colorizer, - final float min, - final float max - ) - { - Geometry array = createGeometry - ( - node, - stripInput, - stripify, - creaseAngle, - points, - normals, - triFaces, - triStrips, - values, - colorizer, - min, - max - ); - this.setGeometry(array); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Creates coloured geometry from values - private Geometry createGeometry - ( - final ColoredSurfaceByRefNode node, - final boolean stripInput, - final boolean stripify, - final double creaseAngle, - final float[] coords, - final float[] normals, - final int[] triFaces, - final int[][] triStrips, - final float[] values, - final Colorizer colorizer, - float min, - float max - ) - { - - if ((min == 0.0f) && (max == 0.0f)) - { - // Auto colour - if (values.length > 0) - { - min = values[0]; - max = values[0]; - for(int i = 0; i < values.length; i++) - { - min = Math.min(min, values[i]); - max = Math.max(max, values[i]); - } - } - } - //System.out.println("min=" + min + " max=" + max); - - - float[] localNormals = normals; - if (normals == null) - { - //System.out.println("Calculating vertex normals"); - localNormals = new float[coords.length]; - if (stripInput) - { - calcStripNormals(triStrips, coords, localNormals); - } - else - { - calcNormals(triFaces, coords, localNormals); - } - } - - - //System.out.println("Converting values to colours ..."); - float[] colors = new float[3*values.length]; - colorizer.color(min, max, values, colors); - - float[] triCoords; - float[] triNormals; - float[] triColors; - - GeometryArray array; - - if (stripInput) - { - int[] triLengths = new int[triStrips.length]; - int totalNvertices = stripLength(triStrips, triLengths); - - triCoords = new float[3*totalNvertices]; - triNormals = new float[3*totalNvertices]; - triColors = new float[3*totalNvertices]; - - //System.out.println("Unindexing ..."); - - - if (colors.length != coords.length) - { - System.out.println("***Cannot unindex face based data"); - } - - unindexStrip - ( - triStrips, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - //System.out.println("Creating TriangleStripArray ..."); - - array = new TriangleStripArray - ( - totalNvertices, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE, - triLengths - ); - } - else - { - if (stripify) - { - // Use geometryInfo to triangulate - - //System.out.println("Stripifying ..."); - - GeometryInfo geometryInfo = - new GeometryInfo(GeometryInfo.TRIANGLE_ARRAY); - geometryInfo.setCoordinateIndices(triFaces); - geometryInfo.setCoordinates(coords); - Stripifier st = new Stripifier(); - st.stripify(geometryInfo); - - int[] triLengths = geometryInfo.getStripCounts(); - int[] triIndices = geometryInfo.getCoordinateIndices(); - - int totalNvertices = 0; - for(int i = 0; i < triLengths.length; i++) - { - totalNvertices += triLengths[i]; - } - - triCoords = new float[3*totalNvertices]; - triNormals = new float[3*totalNvertices]; - triColors = new float[3*totalNvertices]; - - //System.out.println("Unindexing ..."); - - unindex - ( - triIndices, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - //System.out.println("Creating TriangleStripArray ..."); - - array = new TriangleStripArray - ( - totalNvertices, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE, - triLengths - ); - } - else - { - triCoords = new float[3*triFaces.length]; - triNormals = new float[3*triFaces.length]; - triColors = new float[3*triFaces.length]; - - //System.out.println("Unindexing ..."); - - unindex - ( - triFaces, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - array = new TriangleArray - ( - triFaces.length, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE - ); - } - } - array.setCoordRefFloat(triCoords); - array.setColorRefFloat(triColors); - array.setNormalRefFloat(triNormals); - - //System.out.println("Done making shape..."); - return array; - } - - //-------------------------------------------------------------------------- - - // Calculate normals - static void calcStripNormals - ( - final int[][] triStrips, - final float[] coords, - float[] normals - ) - { - for(int i = 0; i < normals.length; i++) - { - normals[i] = 0; - } - - //System.out.println("Calculating face normals"); - Vector3f firstNormal = null; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int[] strip = triStrips[stripI]; - - int v0offset = 3*strip[0]; - int v1offset = 3*strip[1]; - - float sign = 1; - - - for(int vertI = 2; vertI < strip.length; vertI++) - { - int v2offset = 3*strip[vertI]; - - // Get edge from vertex1 to vertex0 - float edge1x = coords[v1offset] - coords[v0offset]; - float edge1y = coords[v1offset + 1] - coords[v0offset + 1]; - float edge1z = coords[v1offset + 2] - coords[v0offset + 2]; - - // Get edge from vertex2 to vertex0 - float edge2x = coords[v2offset] - coords[v0offset]; - float edge2y = coords[v2offset + 1] - coords[v0offset + 1]; - float edge2z = coords[v2offset + 2] - coords[v0offset + 2]; - - Vector3f normal = new Vector3f(); - normal.cross - ( - new Vector3f(edge1x, edge1y, edge1z), - new Vector3f(edge2x, edge2y, edge2z) - ); - - normal.normalize(); - - if (vertI == 2) - { - // First triangle of current strip - if (stripI == 0) - { - // If first strip store normal - firstNormal = normal; - } - else - { - // If not first strip compare and flip - // so orientation is equal - if (firstNormal.dot(normal) < 0) - { - sign = -1.0f; - } - } - } - - normal.x *= sign; - normal.y *= sign; - normal.z *= sign; - - normals[v0offset] += normal.x; - normals[v0offset+1] += normal.y; - normals[v0offset+2] += normal.z; - - normals[v1offset] += normal.x; - normals[v1offset+1] += normal.y; - normals[v1offset+2] += normal.z; - - normals[v2offset] += normal.x; - normals[v2offset+1] += normal.y; - normals[v2offset+2] += normal.z; - - // Go to next triangle - v0offset = v1offset; - v1offset = v2offset; - sign = -sign; - } - } - - //System.out.println("Normalizing normals"); - // Normalize normals - for(int i = 0; i < normals.length; i += 3) - { - float x = normals[i]; - float y = normals[i+1]; - float z = normals[i+2]; - - float mag = (float)Math.sqrt(x*x + y*y + z*z); - normals[i] /= mag; - normals[i+1] /= mag; - normals[i+2] /= mag; - } - } - - - //-------------------------------------------------------------------------- - - // Calculate normals - static void calcNormals - ( - final int[] triFaces, - final float[] coords, - float[] normals - ) - { - for(int i = 0; i < normals.length; i++) - { - normals[i] = 0; - } - - //System.out.println("Calculating face normals"); - int triIndex = 0; - for(int faceI = 0; faceI < triFaces.length; faceI += 3) - { - int v0offset = 3*triFaces[faceI]; - int v1offset = 3*triFaces[faceI + 1]; - int v2offset = 3*triFaces[faceI + 2]; - - float edge1x = coords[v1offset] - coords[v0offset]; - float edge1y = coords[v1offset + 1] - coords[v0offset + 1]; - float edge1z = coords[v1offset + 2] - coords[v0offset + 2]; - - float edge2x = coords[v2offset] - coords[v0offset]; - float edge2y = coords[v2offset + 1] - coords[v0offset + 1]; - float edge2z = coords[v2offset + 2] - coords[v0offset + 2]; - - Vector3f normal = new Vector3f(); - normal.cross - ( - new Vector3f(edge1x, edge1y, edge1z), - new Vector3f(edge2x, edge2y, edge2z) - ); - - normal.normalize(); - - normals[v0offset] += normal.x; - normals[v0offset+1] += normal.y; - normals[v0offset+2] += normal.z; - - normals[v1offset] += normal.x; - normals[v1offset+1] += normal.y; - normals[v1offset+2] += normal.z; - - normals[v2offset] += normal.x; - normals[v2offset+1] += normal.y; - normals[v2offset+2] += normal.z; - } - - //System.out.println("Normalizing normals"); - // Normalize normals - for(int i = 0; i < normals.length; i += 3) - { - float x = normals[i]; - float y = normals[i+1]; - float z = normals[i+2]; - - float mag = (float)Math.sqrt(x*x + y*y + z*z); - normals[i] /= mag; - normals[i+1] /= mag; - normals[i+2] /= mag; - } - } - - //-------------------------------------------------------------------------- - - // Determine number of vertices in strips - static int stripLength(final int[][] triStrips, int[] triLengths) - { - int totalNvertices = 0; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int len = triStrips[stripI].length; - triLengths[stripI] = len; - totalNvertices += len; - } - return totalNvertices; - } - - //-------------------------------------------------------------------------- - - - // Unindex - static void unindexStrip - ( - final int[][] triStrips, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int coordI = 0; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int[] strip = triStrips[stripI]; - int len = strip.length; - for(int vertI = 0; vertI < len; vertI++) - { - triCoords[coordI] = coords[3*strip[vertI]]; - triNormals[coordI] = normals[3*strip[vertI]]; - triColors[coordI] = colors[3*strip[vertI]]; - coordI++; - - triCoords[coordI] = coords[3*strip[vertI]+1]; - triNormals[coordI] = normals[3*strip[vertI]+1]; - triColors[coordI] = colors[3*strip[vertI]+1]; - coordI++; - - triCoords[coordI] = coords[3*strip[vertI]+2]; - triNormals[coordI] = normals[3*strip[vertI]+2]; - triColors[coordI] = colors[3*strip[vertI]+2]; - coordI++; - } - } - } - - //-------------------------------------------------------------------------- - - // Unindex strip in Java3D format - static void unindexJava3DStrip - ( - final int[] triLengths, - final int[] triIndices, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int coordI = 0; - for(int vertI = 0; vertI < triIndices.length; vertI++) - { - int indexx = 3*triIndices[vertI]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - triCoords[coordI] = coords[indexx]; - triNormals[coordI] = normals[indexx]; - triColors[coordI] = colors[indexx]; - coordI++; - - triCoords[coordI] = coords[indexy]; - triNormals[coordI] = normals[indexy]; - triColors[coordI] = colors[indexy]; - coordI++; - - triCoords[coordI] = coords[indexz]; - triNormals[coordI] = normals[indexz]; - triColors[coordI] = colors[indexz]; - coordI++; - } - } - - //-------------------------------------------------------------------------- - - // Unindex - static void unindex - ( - final int[] triFaces, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int vertI = 0; - - System.out.println - ( - "unindex: colors:" + colors.length + " triFaces:" + triFaces.length - ); - - if (colors.length == triFaces.length) - { - // Element wise colors - for(int i = 0; i < triFaces.length; i++) - { - int indexx = 3*triFaces[i]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - int faceI = i / 3; - - triCoords[vertI] = coords[indexx]; // X - triNormals[vertI] = normals[indexx]; // X - triColors[vertI] = colors[3*faceI]; // R - vertI++; - - triCoords[vertI] = coords[indexy]; // Y - triNormals[vertI] = normals[indexy]; // Y - triColors[vertI] = colors[3*faceI+1]; // G - vertI++; - - triCoords[vertI] = coords[indexz]; // Z - triNormals[vertI] = normals[indexz]; // Z - triColors[vertI] = colors[3*faceI+2]; // B - vertI++; - } - } - else - { - // Vertex wise colors - for(int i = 0; i < triFaces.length; i++) - { - int indexx = 3*triFaces[i]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - triCoords[vertI] = coords[indexx]; // X - triNormals[vertI] = normals[indexx]; // X - triColors[vertI] = colors[indexx]; // R - vertI++; - - triCoords[vertI] = coords[indexy]; // Y - triNormals[vertI] = normals[indexy]; // Y - triColors[vertI] = colors[indexy]; // G - vertI++; - - triCoords[vertI] = coords[indexz]; // Z - triNormals[vertI] = normals[indexz]; // Z - triColors[vertI] = colors[indexz]; // B - vertI++; - } - } - } - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on ColoredSurfaceByRef "); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on ColoredSurfaceByRef "); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove of ColoredSurfaceByRef"); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRefNoStrip.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRefNoStrip.java deleted file mode 100644 index b2afdd2780..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceByRefNoStrip.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; -import javax.vecmath.Vector3f; - -import org.j3d.util.interpolator.ColorInterpolator; - -import FoamX.Post.Util.OrbitPickBehavior; -import FoamX.Post.InteractiveNodes.ColoredSurfaceByRefNode; -import FoamX.Post.Util.BinaryFoamFile; - -public class ColoredSurfaceByRef extends Shape3D implements PickableShape -{ - double creaseAngle_; - - public ColoredSurfaceByRef - ( - ColoredSurfaceByRefNode node, - double creaseAngle, - String pointsFileName, - String facesFileName, - String valuesFileName, - float min, - float max - ) - { - // Store reference to input data - creaseAngle_ = creaseAngle; - - System.out.println("Loading files ..."); - float[] coords = BinaryFoamFile.readFloatPointArray(pointsFileName); - int[] triFaces = BinaryFoamFile.readIntArray(facesFileName); - float[] values = BinaryFoamFile.readFloatArray(valuesFileName); - - - // Auto colour - min = values[0]; - max = values[0]; - for(int i = 0; i < values.length; i++) - { - min = Math.min(min, values[i]); - max = Math.max(max, values[i]); - } - System.out.println("min=" + min + " max=" + max); - -// for(int i = 0; i < coords.length; i++) -// { -// System.out.println("i=" + i + " Coord=" + coords[i]); -// } -// for(int i = 0; i < triFaces.length; i++) -// { -// System.out.println("i=" + i + " TriFaces=" + triFaces[i]); -// } -// for(int i = 0; i < values.length; i++) -// { -// System.out.println("i=" + i + " Values=" + values[i]); -// } - - System.out.println("Calculating smooth normals"); - // Storage for vertex normals - float[] normals = new float[coords.length]; - for(int i = 0; i < normals.length; i++) - { - normals[i] = 0; - } - - System.out.println("Calculating face normals"); - int triIndex = 0; - for(int faceI = 0; faceI < triFaces.length; faceI += 3) - { - int v0offset = 3*triFaces[faceI]; - int v1offset = 3*triFaces[faceI + 1]; - int v2offset = 3*triFaces[faceI + 2]; - - float edge1x = coords[v1offset] - coords[v0offset]; - float edge1y = coords[v1offset + 1] - coords[v0offset + 1]; - float edge1z = coords[v1offset + 2] - coords[v0offset + 2]; - - float edge2x = coords[v2offset] - coords[v0offset]; - float edge2y = coords[v2offset + 1] - coords[v0offset + 1]; - float edge2z = coords[v2offset + 2] - coords[v0offset + 2]; - - Vector3f normal = new Vector3f(); - normal.cross - ( - new Vector3f(edge1x, edge1y, edge1z), - new Vector3f(edge2x, edge2y, edge2z) - ); - - normal.normalize(); - - normals[v0offset] += normal.x; - normals[v0offset+1] += normal.y; - normals[v0offset+2] += normal.z; - - normals[v1offset] += normal.x; - normals[v1offset+1] += normal.y; - normals[v1offset+2] += normal.z; - - normals[v2offset] += normal.x; - normals[v2offset+1] += normal.y; - normals[v2offset+2] += normal.z; - } - - System.out.println("Normalizing normals"); - // Normalize normals - for(int i = 0; i < normals.length; i += 3) - { - float x = normals[i]; - float y = normals[i+1]; - float z = normals[i+2]; - - float mag = (float)Math.sqrt(x*x + y*y + z*z); - normals[i] /= mag; - normals[i+1] /= mag; - normals[i+2] /= mag; - } - - - System.out.println("Converting values to colours ..."); - float[] colors = new float[3*values.length]; - valuesToVertexColors(values, colors, min, max); - - System.out.println("Unindexing geometry ..."); - float[] triCoords = new float[3*triFaces.length]; - int vertI = 0; - for(int i = 0; i < triFaces.length; i++) - { - triCoords[vertI++] = coords[3*triFaces[i]]; // X - triCoords[vertI++] = coords[3*triFaces[i] + 1]; // Y - triCoords[vertI++] = coords[3*triFaces[i] + 2]; // Z - } - - System.out.println("Unindexing normals ..."); - float[] triNormals = new float[3*triFaces.length]; - vertI = 0; - for(int i = 0; i < triFaces.length; i++) - { - triNormals[vertI++] = normals[3*triFaces[i]]; // X - triNormals[vertI++] = normals[3*triFaces[i] + 1]; // Y - triNormals[vertI++] = normals[3*triFaces[i] + 2]; // Z - } - - System.out.println("Unindexing colours ..."); - float[] triColors = new float[3*triFaces.length]; - vertI = 0; - for(int i = 0; i < triFaces.length; i++) - { - triColors[vertI++] = colors[3*triFaces[i]]; // R - triColors[vertI++] = colors[3*triFaces[i] + 1]; // G - triColors[vertI++] = colors[3*triFaces[i] + 2]; // B - } - - TriangleArray array = new TriangleArray - ( - triFaces.length, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE - ); - array.setCoordRefFloat(triCoords); - array.setColorRefFloat(triColors); - array.setNormalRefFloat(triNormals); - -// TriangleArray array = new TriangleArray -// ( -// triFaces.length, -// TriangleArray.COORDINATES -// | TriangleArray.COLOR_3 -// ); -// array.setCoordinates(0, triCoords); -// array.setColors(0, triColors); - - this.setGeometry(array); - //PickTool.setCapabilities(this, PickTool.INTERSECT_FULL); - //this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - //this.setCapability(Shape3D.ALLOW_APPEARANCE_READ); - //array.setCapability(IndexedGeometryArray.ALLOW_COLOR_INDEX_WRITE); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - System.out.println("Done making shape..."); - } - - // Convert values into colors - static void valuesToVertexColors - ( - float[] values, float[] colors, float min, float max - ) - { - if (colors.length != 3*values.length) - { - System.out.println - ( - "Lengths different:" + values.length + " " + colors.length - ); - } - if (values.length == 0) - { - return; - } - - ColorInterpolator ci = new ColorInterpolator(3); - ci.addRGBKeyFrame(min, 0.0f, 0.0f, 1.0f, 1.0f); - float mid = (float)(0.5*min+0.5*max); - ci.addRGBKeyFrame(mid, 0.0f, 1.0f, 0.0f, 1.0f); - ci.addRGBKeyFrame(max, 1.0f, 0.0f, 0.0f, 1.0f); - - int colorComponent = 0; - for(int i = 0; i < values.length; i++) - { - float[] rgbColor = ci.floatRGBValue(values[i]); - // Copy RGB - colors[colorComponent++] = rgbColor[0]; - colors[colorComponent++] = rgbColor[1]; - colors[colorComponent++] = rgbColor[2]; - } - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on ColoredSurfaceByRef "); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on ColoredSurfaceByRef "); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - System.out.println("remove of ColoredSurfaceByRef"); - - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceVec.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceVec.java deleted file mode 100644 index b0108a7091..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/ColoredSurfaceVec.java +++ /dev/null @@ -1,714 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; -import javax.vecmath.Vector3f; - -import org.j3d.util.interpolator.ColorInterpolator; - -import FoamX.Post.InteractiveNodes.ColoredSurfaceVecNode; -import FoamX.Post.Util.BinaryFoamFile; -import FoamX.Post.Util.Colorizer; - -public class ColoredSurfaceVec extends Shape3D implements PickableShape -{ - // reads triangle list. - public ColoredSurfaceVec - ( - final ColoredSurfaceVecNode node, - final double creaseAngle, - final boolean stripify, - final String pointsFileName, - final String facesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - this - ( - node, - false, - false, - stripify, - creaseAngle, - pointsFileName, - null, - facesFileName, - valuesFileName, - colorizer, - min, - max - ); - } - - - // reads triangle strip. - public ColoredSurfaceVec - ( - final ColoredSurfaceVecNode node, - final boolean readTriStrip, - final boolean readNormals, - final boolean stripify, - final double creaseAngle, - final String pointsFileName, - final String normalsFileName, - final String trianglesFileName, - final String valuesFileName, - final Colorizer colorizer, - final float min, - final float max - ) - { - int[][] triStrips = null; - int[] triFaces = null; - float[] normals = null; - - System.out.println("Loading files ..."); - float[] coords = BinaryFoamFile.readFloatPointArray(pointsFileName); - - if (readNormals) - { - normals = BinaryFoamFile.readFloatPointArray(normalsFileName); - } - - if (readTriStrip) - { - triStrips = BinaryFoamFile.readIntIntArray(trianglesFileName); - } - else - { - triFaces = BinaryFoamFile.readIntArray(trianglesFileName); - } - - float[] values = BinaryFoamFile.readFloatArray(valuesFileName); - - Geometry array = createGeometry - ( - node, - readTriStrip, - stripify, - creaseAngle, - coords, - normals, - triFaces, - triStrips, - values, - colorizer, - min, - max - ); - this.setGeometry(array); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Creates coloured geometry from values - public ColoredSurfaceVec - ( - final ColoredSurfaceVecNode node, - final boolean stripInput, - final boolean stripify, - final double creaseAngle, - final float[] points, - final float[] normals, - final int[] triFaces, - final int[][] triStrips, - final float[] values, - final Colorizer colorizer, - final float min, - final float max - ) - { - Geometry array = createGeometry - ( - node, - stripInput, - stripify, - creaseAngle, - points, - normals, - triFaces, - triStrips, - values, - colorizer, - min, - max - ); - this.setGeometry(array); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Creates coloured geometry from values - private Geometry createGeometry - ( - final ColoredSurfaceVecNode node, - final boolean stripInput, - final boolean stripify, - final double creaseAngle, - final float[] coords, - final float[] normals, - final int[] triFaces, - final int[][] triStrips, - final float[] values, - final Colorizer colorizer, - float min, - float max - ) - { - - if ((min == 0.0f) && (max == 0.0f)) - { - // Auto colour - if (values.length > 0) - { - min = values[0]; - max = values[0]; - for(int i = 0; i < values.length; i++) - { - min = Math.min(min, values[i]); - max = Math.max(max, values[i]); - } - } - } - System.out.println("min=" + min + " max=" + max); - - - float[] localNormals = normals; - if (normals == null) - { - System.out.println("Calculating vertex normals"); - localNormals = new float[coords.length]; - if (stripInput) - { - calcStripNormals(triStrips, coords, localNormals); - } - else - { - calcNormals(triFaces, coords, localNormals); - } - } - - - System.out.println("Converting values to colours ..."); - float[] colors = new float[3*values.length]; - colorizer.color(min, max, values, colors); - - float[] triCoords; - float[] triNormals; - float[] triColors; - - GeometryArray array; - - if (stripInput) - { - int[] triLengths = new int[triStrips.length]; - int totalNvertices = stripLength(triStrips, triLengths); - - triCoords = new float[3*totalNvertices]; - triNormals = new float[3*totalNvertices]; - triColors = new float[3*totalNvertices]; - - System.out.println("Unindexing ..."); - - - if (colors.length != coords.length) - { - System.out.println("***Cannot unindex face based data"); - } - - unindexStrip - ( - triStrips, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - System.out.println("Creating TriangleStripArray ..."); - - array = new TriangleStripArray - ( - totalNvertices, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE, - triLengths - ); - } - else - { - if (stripify) - { - // Use geometryInfo to triangulate - - System.out.println("Stripifying ..."); - - GeometryInfo geometryInfo = - new GeometryInfo(GeometryInfo.TRIANGLE_ARRAY); - geometryInfo.setCoordinateIndices(triFaces); - geometryInfo.setCoordinates(coords); - Stripifier st = new Stripifier(); - st.stripify(geometryInfo); - - int[] triLengths = geometryInfo.getStripCounts(); - int[] triIndices = geometryInfo.getCoordinateIndices(); - - int totalNvertices = 0; - for(int i = 0; i < triLengths.length; i++) - { - totalNvertices += triLengths[i]; - } - - triCoords = new float[3*totalNvertices]; - triNormals = new float[3*totalNvertices]; - triColors = new float[3*totalNvertices]; - - System.out.println("Unindexing ..."); - - unindex - ( - triIndices, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - System.out.println("Creating TriangleStripArray ..."); - - array = new TriangleStripArray - ( - totalNvertices, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE, - triLengths - ); - } - else - { - triCoords = new float[3*triFaces.length]; - triNormals = new float[3*triFaces.length]; - triColors = new float[3*triFaces.length]; - - System.out.println("Unindexing ..."); - - unindex - ( - triFaces, coords, localNormals, colors, - triCoords, triNormals, triColors - ); - - array = new TriangleArray - ( - triFaces.length, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - | TriangleArray.NORMALS - | TriangleArray.BY_REFERENCE - ); - } - } - array.setCoordRefFloat(triCoords); - array.setColorRefFloat(triColors); - array.setNormalRefFloat(triNormals); - - System.out.println("Done making shape..."); - return array; - } - - //-------------------------------------------------------------------------- - - // Calculate normals - static void calcStripNormals - ( - final int[][] triStrips, - final float[] coords, - float[] normals - ) - { - for(int i = 0; i < normals.length; i++) - { - normals[i] = 0; - } - - System.out.println("Calculating face normals"); - Vector3f firstNormal = null; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int[] strip = triStrips[stripI]; - - int v0offset = 3*strip[0]; - int v1offset = 3*strip[1]; - - float sign = 1; - - - for(int vertI = 2; vertI < strip.length; vertI++) - { - int v2offset = 3*strip[vertI]; - - // Get edge from vertex1 to vertex0 - float edge1x = coords[v1offset] - coords[v0offset]; - float edge1y = coords[v1offset + 1] - coords[v0offset + 1]; - float edge1z = coords[v1offset + 2] - coords[v0offset + 2]; - - // Get edge from vertex2 to vertex0 - float edge2x = coords[v2offset] - coords[v0offset]; - float edge2y = coords[v2offset + 1] - coords[v0offset + 1]; - float edge2z = coords[v2offset + 2] - coords[v0offset + 2]; - - Vector3f normal = new Vector3f(); - normal.cross - ( - new Vector3f(edge1x, edge1y, edge1z), - new Vector3f(edge2x, edge2y, edge2z) - ); - - normal.normalize(); - - if (vertI == 2) - { - // First triangle of current strip - if (stripI == 0) - { - // If first strip store normal - firstNormal = normal; - } - else - { - // If not first strip compare and flip - // so orientation is equal - if (firstNormal.dot(normal) < 0) - { - sign = -1.0f; - } - } - } - - normal.x *= sign; - normal.y *= sign; - normal.z *= sign; - - normals[v0offset] += normal.x; - normals[v0offset+1] += normal.y; - normals[v0offset+2] += normal.z; - - normals[v1offset] += normal.x; - normals[v1offset+1] += normal.y; - normals[v1offset+2] += normal.z; - - normals[v2offset] += normal.x; - normals[v2offset+1] += normal.y; - normals[v2offset+2] += normal.z; - - // Go to next triangle - v0offset = v1offset; - v1offset = v2offset; - sign = -sign; - } - } - - System.out.println("Normalizing normals"); - // Normalize normals - for(int i = 0; i < normals.length; i += 3) - { - float x = normals[i]; - float y = normals[i+1]; - float z = normals[i+2]; - - float mag = (float)Math.sqrt(x*x + y*y + z*z); - normals[i] /= mag; - normals[i+1] /= mag; - normals[i+2] /= mag; - } - } - - - //-------------------------------------------------------------------------- - - // Calculate normals - static void calcNormals - ( - final int[] triFaces, - final float[] coords, - float[] normals - ) - { - for(int i = 0; i < normals.length; i++) - { - normals[i] = 0; - } - - System.out.println("Calculating face normals"); - int triIndex = 0; - for(int faceI = 0; faceI < triFaces.length; faceI += 3) - { - int v0offset = 3*triFaces[faceI]; - int v1offset = 3*triFaces[faceI + 1]; - int v2offset = 3*triFaces[faceI + 2]; - - float edge1x = coords[v1offset] - coords[v0offset]; - float edge1y = coords[v1offset + 1] - coords[v0offset + 1]; - float edge1z = coords[v1offset + 2] - coords[v0offset + 2]; - - float edge2x = coords[v2offset] - coords[v0offset]; - float edge2y = coords[v2offset + 1] - coords[v0offset + 1]; - float edge2z = coords[v2offset + 2] - coords[v0offset + 2]; - - Vector3f normal = new Vector3f(); - normal.cross - ( - new Vector3f(edge1x, edge1y, edge1z), - new Vector3f(edge2x, edge2y, edge2z) - ); - - normal.normalize(); - - normals[v0offset] += normal.x; - normals[v0offset+1] += normal.y; - normals[v0offset+2] += normal.z; - - normals[v1offset] += normal.x; - normals[v1offset+1] += normal.y; - normals[v1offset+2] += normal.z; - - normals[v2offset] += normal.x; - normals[v2offset+1] += normal.y; - normals[v2offset+2] += normal.z; - } - - System.out.println("Normalizing normals"); - // Normalize normals - for(int i = 0; i < normals.length; i += 3) - { - float x = normals[i]; - float y = normals[i+1]; - float z = normals[i+2]; - - float mag = (float)Math.sqrt(x*x + y*y + z*z); - normals[i] /= mag; - normals[i+1] /= mag; - normals[i+2] /= mag; - } - } - - //-------------------------------------------------------------------------- - - // Determine number of vertices in strips - static int stripLength(final int[][] triStrips, int[] triLengths) - { - int totalNvertices = 0; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int len = triStrips[stripI].length; - triLengths[stripI] = len; - totalNvertices += len; - } - return totalNvertices; - } - - //-------------------------------------------------------------------------- - - - // Unindex - static void unindexStrip - ( - final int[][] triStrips, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int coordI = 0; - for(int stripI = 0; stripI < triStrips.length; stripI++) - { - int[] strip = triStrips[stripI]; - int len = strip.length; - for(int vertI = 0; vertI < len; vertI++) - { - triCoords[coordI] = coords[3*strip[vertI]]; - triNormals[coordI] = normals[3*strip[vertI]]; - triColors[coordI] = colors[3*strip[vertI]]; - coordI++; - - triCoords[coordI] = coords[3*strip[vertI]+1]; - triNormals[coordI] = normals[3*strip[vertI]+1]; - triColors[coordI] = colors[3*strip[vertI]+1]; - coordI++; - - triCoords[coordI] = coords[3*strip[vertI]+2]; - triNormals[coordI] = normals[3*strip[vertI]+2]; - triColors[coordI] = colors[3*strip[vertI]+2]; - coordI++; - } - } - } - - //-------------------------------------------------------------------------- - - // Unindex strip in Java3D format - static void unindexJava3DStrip - ( - final int[] triLengths, - final int[] triIndices, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int coordI = 0; - for(int vertI = 0; vertI < triIndices.length; vertI++) - { - int indexx = 3*triIndices[vertI]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - triCoords[coordI] = coords[indexx]; - triNormals[coordI] = normals[indexx]; - triColors[coordI] = colors[indexx]; - coordI++; - - triCoords[coordI] = coords[indexy]; - triNormals[coordI] = normals[indexy]; - triColors[coordI] = colors[indexy]; - coordI++; - - triCoords[coordI] = coords[indexz]; - triNormals[coordI] = normals[indexz]; - triColors[coordI] = colors[indexz]; - coordI++; - } - } - - //-------------------------------------------------------------------------- - - // Unindex - static void unindex - ( - final int[] triFaces, - final float[] coords, - final float[] normals, - final float[] colors, - - float[] triCoords, - float[] triNormals, - float[] triColors - ) - { - int vertI = 0; - -System.out.println -( - "unindex: colors:" + colors.length + " triFaces:" + triFaces.length -); - - if (colors.length == triFaces.length) - { - // Element wise colors - for(int i = 0; i < triFaces.length; i++) - { - int indexx = 3*triFaces[i]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - int faceI = i / 3; - - triCoords[vertI] = coords[indexx]; // X - triNormals[vertI] = normals[indexx]; // X - triColors[vertI] = colors[3*faceI]; // R - vertI++; - - triCoords[vertI] = coords[indexy]; // Y - triNormals[vertI] = normals[indexy]; // Y - triColors[vertI] = colors[3*faceI+1]; // G - vertI++; - - triCoords[vertI] = coords[indexz]; // Z - triNormals[vertI] = normals[indexz]; // Z - triColors[vertI] = colors[3*faceI+2]; // B - vertI++; - } - } - else - { - // Vertex wise colors - for(int i = 0; i < triFaces.length; i++) - { - int indexx = 3*triFaces[i]; - int indexy = indexx + 1; - int indexz = indexx + 2; - - triCoords[vertI] = coords[indexx]; // X - triNormals[vertI] = normals[indexx]; // X - triColors[vertI] = colors[indexx]; // R - vertI++; - - triCoords[vertI] = coords[indexy]; // Y - triNormals[vertI] = normals[indexy]; // Y - triColors[vertI] = colors[indexy]; // G - vertI++; - - triCoords[vertI] = coords[indexz]; // Z - triNormals[vertI] = normals[indexz]; // Z - triColors[vertI] = colors[indexz]; // B - vertI++; - } - } - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on ColoredSurfaceVec "); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on ColoredSurfaceVec "); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - System.out.println("remove of ColoredSurfaceVec"); - - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-Indexed.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-Indexed.java deleted file mode 100644 index cf3a695ed0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-Indexed.java +++ /dev/null @@ -1,409 +0,0 @@ -/* - */ - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -public class FeatureLines extends Shape3D implements InteractiveNode -{ - - static final Point3d[] coords = - { - new Point3d(0, 0, 0), - new Point3d(1, 0, 0), - new Point3d(1, 1, 0), - new Point3d(0.5, 2, 0), - new Point3d(0, 1, 0), - - new Point3d(0, 0, 1), - new Point3d(1, 0, 1), - new Point3d(1, 1, 1), - new Point3d(0.5, 2, 1), - new Point3d(0, 1, 1) - }; - - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - static final Color3f[] colors = - { - new Color3f(1.0f, 1.0f, 0.0f), - new Color3f(1.0f, 0.0f, 1.0f) - }; - - - int patch_; - - int[] vertexLabels_; - Color3f[] vertexColors_; - - - public FeatureLines(int patch, float angle) - { - patch_ = patch; - - IndexedLineArray axisLines = null; - - // Just hardcoded for now. - - if (patch_ == 0) - { - vertexLabels_ = new int[10]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 4; - vertexLabels_[8] = 4; - vertexLabels_[9] = 0; - - axisLines = new IndexedLineArray - ( - 5, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 10 - ); - axisLines.setCoordinate( 0, coords[0]); - axisLines.setCoordinate( 1, coords[1]); - axisLines.setCoordinate( 2, coords[2]); - axisLines.setCoordinate( 3, coords[3]); - axisLines.setCoordinate( 4, coords[4]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else if (patch_ == 1) - { - vertexLabels_ = new int[10]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 4; - vertexLabels_[8] = 4; - vertexLabels_[9] = 0; - - axisLines = new IndexedLineArray - ( - 5, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 10 - ); - axisLines.setCoordinate( 0, coords[5]); - axisLines.setCoordinate( 1, coords[6]); - axisLines.setCoordinate( 2, coords[7]); - axisLines.setCoordinate( 3, coords[8]); - axisLines.setCoordinate( 4, coords[9]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else if (patch_ == 2) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - axisLines = new IndexedLineArray - ( - 4, - GeometryArray.COLOR_3 | GeometryArray.COORDINATES, - 8 - ); - axisLines.setCoordinate( 0, coords[0]); - axisLines.setCoordinate( 1, coords[5]); - axisLines.setCoordinate( 2, coords[9]); - axisLines.setCoordinate( 3, coords[4]); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - } - else if (patch_ == 3) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - axisLines = new IndexedLineArray - ( - 4, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 8 - ); - axisLines.setCoordinate( 0, coords[4]); - axisLines.setCoordinate( 1, coords[9]); - axisLines.setCoordinate( 2, coords[8]); - axisLines.setCoordinate( 3, coords[3]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else if (patch_ == 4) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - axisLines = new IndexedLineArray - ( - 4, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 8 - ); - axisLines.setCoordinate( 0, coords[3]); - axisLines.setCoordinate( 1, coords[8]); - axisLines.setCoordinate( 2, coords[7]); - axisLines.setCoordinate( 3, coords[2]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else if (patch_ == 5) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - axisLines = new IndexedLineArray - ( - 4, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 8 - ); - axisLines.setCoordinate( 0, coords[2]); - axisLines.setCoordinate( 1, coords[7]); - axisLines.setCoordinate( 2, coords[6]); - axisLines.setCoordinate( 3, coords[1]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else if (patch_ == 6) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - axisLines = new IndexedLineArray - ( - 4, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - 8 - ); - axisLines.setCoordinate( 0, coords[1]); - axisLines.setCoordinate( 1, coords[6]); - axisLines.setCoordinate( 2, coords[5]); - axisLines.setCoordinate( 3, coords[0]); - - axisLines.setCoordinateIndices( 0, vertexLabels_); - - axisLines.setColors(0, colors); - axisLines.setColorIndex( 0, UNPICKEDCOLOR); - axisLines.setColorIndex( 1, UNPICKEDCOLOR); - axisLines.setColorIndex( 2, UNPICKEDCOLOR); - axisLines.setColorIndex( 3, UNPICKEDCOLOR); - axisLines.setColorIndex( 4, UNPICKEDCOLOR); - } - else - { - System.out.println("**\n** Unknown patch " + patch_ + "**\n**"); - vertexLabels_ = null; - vertexColors_ = null; - } - - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - axisLines.setCapability(IndexedLineArray.ALLOW_COLOR_WRITE); - axisLines.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_WRITE); - - this.setGeometry(axisLines); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPatch " + patch_); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - System.out.println("-- consisting of vertices "); - - for(int j = 0; j < lines.getVertexCount(); j++) - { - Point3f coord = new Point3f(); - lines.getCoordinate(j, coord); - System.out.print(coord + " "); - } - System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(vertexLabel + "(" + indices[j] + ") "); - - lines.setColorIndex(indices[j], PICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nPatch " + patch_); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - System.out.println("-- consisting of vertices "); - - for(int j = 0; j < lines.getVertexCount(); j++) - { - Point3f coord = new Point3f(); - lines.getCoordinate(j, coord); - System.out.print(coord + " "); - } - System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(vertexLabel + "(" + indices[j] + ") "); - - lines.setColorIndex(indices[j], UNPICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - - void printLoop() - { - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - for(int j = 0; j < lines.getVertexCount(); j++) - { - System.out.println("--- color : " + lines.getColorIndex(j)); - } - } - - - // Utility function to create color array - static Color3f[] fillColors(int length, Color3f color) - { - Color3f[] colors = new Color3f[length]; - - for(int i = 0; i < length; i++) - { - colors[i] = color; - } - return colors; - } - -} // end of class FeatureLines diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-UnIndexed.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-UnIndexed.java deleted file mode 100644 index 52140738bf..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines-UnIndexed.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - */ - -//import java.awt.*; -//import java.awt.Font; - -//import com.sun.j3d.utils.applet.MainFrame; -//import com.sun.j3d.utils.geometry.Text2D; - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -public class FeatureLines extends Shape3D implements InteractiveNode -{ - - static final Point3d[] coords = - { - new Point3d(0, 0, 0), - new Point3d(1, 0, 0), - new Point3d(1, 1, 0), - new Point3d(0.5, 2, 0), - new Point3d(0, 1, 0), - - new Point3d(0, 0, 1), - new Point3d(1, 0, 1), - new Point3d(1, 1, 1), - new Point3d(0.5, 2, 1), - new Point3d(0, 1, 1) - }; - - static final Color3f UNPICKEDCOLOR = new Color3f(1.0f, 1.0f, 0.0f); - static final Color3f PICKEDCOLOR = new Color3f(1.0f, 0.0f, 1.0f); - - - int patch_; - - int[] vertexLabels_; - Color3f[] vertexColors_; - - - public FeatureLines(int patch, float angle) - { - patch_ = patch; - - LineArray axisLines = null; - - // Just hardcoded for now. - - if (patch_ == 0) - { - vertexLabels_ = new int[10]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 4; - vertexLabels_[8] = 4; - vertexLabels_[9] = 0; - - vertexColors_ = - fillColors - ( - 10, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 10, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[0]); - axisLines.setCoordinate(1, coords[1]); - axisLines.setCoordinate(2, coords[1]); - axisLines.setCoordinate(3, coords[2]); - axisLines.setCoordinate(4, coords[2]); - axisLines.setCoordinate(5, coords[3]); - axisLines.setCoordinate(6, coords[3]); - axisLines.setCoordinate(7, coords[4]); - axisLines.setCoordinate(8, coords[4]); - axisLines.setCoordinate(9, coords[0]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 1) - { - vertexLabels_ = new int[10]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 4; - vertexLabels_[8] = 4; - vertexLabels_[9] = 0; - - vertexColors_ = - fillColors - ( - 10, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 10, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[5]); - axisLines.setCoordinate(1, coords[6]); - axisLines.setCoordinate(2, coords[6]); - axisLines.setCoordinate(3, coords[7]); - axisLines.setCoordinate(4, coords[7]); - axisLines.setCoordinate(5, coords[8]); - axisLines.setCoordinate(6, coords[8]); - axisLines.setCoordinate(7, coords[9]); - axisLines.setCoordinate(8, coords[9]); - axisLines.setCoordinate(9, coords[5]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 2) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - vertexColors_ = - fillColors - ( - 8, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 8, - GeometryArray.COLOR_3 | GeometryArray.COORDINATES - ); - - axisLines.setCoordinate(0, coords[0]); - axisLines.setCoordinate(1, coords[5]); - axisLines.setCoordinate(2, coords[5]); - axisLines.setCoordinate(3, coords[9]); - axisLines.setCoordinate(4, coords[9]); - axisLines.setCoordinate(5, coords[4]); - axisLines.setCoordinate(6, coords[4]); - axisLines.setCoordinate(7, coords[0]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 3) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - vertexColors_ = - fillColors - ( - 8, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 8, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[4]); - axisLines.setCoordinate(1, coords[9]); - axisLines.setCoordinate(2, coords[9]); - axisLines.setCoordinate(3, coords[8]); - axisLines.setCoordinate(4, coords[8]); - axisLines.setCoordinate(5, coords[3]); - axisLines.setCoordinate(6, coords[3]); - axisLines.setCoordinate(7, coords[4]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 4) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - vertexColors_ = - fillColors - ( - 8, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 8, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[3]); - axisLines.setCoordinate(1, coords[8]); - axisLines.setCoordinate(2, coords[8]); - axisLines.setCoordinate(3, coords[7]); - axisLines.setCoordinate(4, coords[7]); - axisLines.setCoordinate(5, coords[2]); - axisLines.setCoordinate(6, coords[2]); - axisLines.setCoordinate(7, coords[3]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 5) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - vertexColors_ = - fillColors - ( - 8, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 8, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[2]); - axisLines.setCoordinate(1, coords[7]); - axisLines.setCoordinate(2, coords[7]); - axisLines.setCoordinate(3, coords[6]); - axisLines.setCoordinate(4, coords[6]); - axisLines.setCoordinate(5, coords[1]); - axisLines.setCoordinate(6, coords[1]); - axisLines.setCoordinate(7, coords[2]); - - axisLines.setColors(0, vertexColors_); - } - else if (patch_ == 6) - { - vertexLabels_ = new int[8]; - vertexLabels_[0] = 0; - vertexLabels_[1] = 1; - vertexLabels_[2] = 1; - vertexLabels_[3] = 2; - vertexLabels_[4] = 2; - vertexLabels_[5] = 3; - vertexLabels_[6] = 3; - vertexLabels_[7] = 0; - - vertexColors_ = - fillColors - ( - 8, - UNPICKEDCOLOR - ); - - axisLines = new LineArray - ( - 8, - GeometryArray.COORDINATES | GeometryArray.COLOR_3 - ); - - axisLines.setCoordinate(0, coords[1]); - axisLines.setCoordinate(1, coords[6]); - axisLines.setCoordinate(2, coords[6]); - axisLines.setCoordinate(3, coords[5]); - axisLines.setCoordinate(4, coords[5]); - axisLines.setCoordinate(5, coords[0]); - axisLines.setCoordinate(6, coords[0]); - axisLines.setCoordinate(7, coords[1]); - - axisLines.setColors(0, vertexColors_); - } - else - { - System.out.println("**\n** Unknown patch " + patch_ + "**\n**"); - vertexLabels_ = null; - vertexColors_ = null; - } - - axisLines.setCapability(LineArray.ALLOW_COORDINATE_READ); - axisLines.setCapability(LineArray.ALLOW_FORMAT_READ); - axisLines.setCapability(LineArray.ALLOW_COUNT_READ); - axisLines.setCapability(LineArray.ALLOW_COLOR_READ); - axisLines.setCapability(LineArray.ALLOW_COLOR_WRITE); - - this.setGeometry(axisLines); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPatch " + patch_); - - LineArray lines = (LineArray)this.getGeometry(); - - System.out.println("-- consisting of vertices "); - - for(int j = 0; j < lines.getVertexCount(); j++) - { - Point3f coord = new Point3f(); - lines.getCoordinate(j, coord); - System.out.print(coord + " "); - } - System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(vertexLabel + "(" + indices[j] + ") "); - - lines.setColor(indices[j], PICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nPatch " + patch_); - - LineArray lines = (LineArray)this.getGeometry(); - - System.out.println("-- consisting of vertices "); - - for(int j = 0; j < lines.getVertexCount(); j++) - { - Point3f coord = new Point3f(); - lines.getCoordinate(j, coord); - System.out.print(coord + " "); - } - System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(vertexLabel + "(" + indices[j] + ") "); - - lines.setColor(indices[j], UNPICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - // Utility function to create color array - static Color3f[] fillColors(int length, Color3f color) - { - Color3f[] colors = new Color3f[length]; - - for(int i = 0; i < length; i++) - { - colors[i] = color; - } - return colors; - } - -} // end of class FeatureLines diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines.java deleted file mode 100644 index 553ebc7e25..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/FeatureLines.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - */ - -package FoamX.Post.Shapes; - - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.InteractiveNodes.FeatureLinesNode; -import FoamX.Post.Mesh.PrimitivePatch; - -public class FeatureLines extends Shape3D implements PickableShape -{ - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - static final Color3f[] colors = - { - new Color3f(1.0f, 1.0f, 0.0f), - new Color3f(1.0f, 0.0f, 1.0f) - }; - - - PrimitivePatch patch_; - - //-------------------------------------------------------------------------- - - public FeatureLines(FeatureLinesNode featureLinesNode, PrimitivePatch patch) - { - // Store reference to original patch - patch_ = patch; - - int[] edgeList = patch_.getFeatureLines(); - Point3f[] coords = patch_.getPoints(); - - IndexedLineArray lines = new IndexedLineArray - ( - coords.length, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - edgeList.length - ); - - lines.setCoordinates(0, coords); - lines.setCoordinateIndices(0, edgeList); - - lines.setColors(0, colors); - for(int i = 0; i < coords.length; i++) - { - lines.setColorIndex(i, UNPICKEDCOLOR); - } - - //- Make it pickable - lines.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - lines.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - lines.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - lines.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_WRITE); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_WRITE); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_READ); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_READ); - - this.setGeometry(lines); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - //-------------------------------------------------------------------------- - - public PrimitivePatch getPatch() - { - return patch_; - } - - //-------------------------------------------------------------------------- - - public int numSelectedEdges() - { - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - int[] colorIndices = new int[lines.getIndexCount()]; - lines.getColorIndices(0, colorIndices); - - // - // Collect edges with both vertices same color - // - - int i = 0; - int nEdges = 0; - while (i < colorIndices.length) - { - if - ( - (colorIndices[i] == PICKEDCOLOR) - && (colorIndices[i+1] == PICKEDCOLOR) - ) - { - nEdges++; - } - - i += 2; - } - - return nEdges; - } - - - //-------------------------------------------------------------------------- - - public int[] getSelectedEdges() - { - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - int[] edgeList = patch_.getFeatureLines(); - - int[] loopEdges = new int[lines.getIndexCount()]; - - int[] colorIndices = new int[lines.getIndexCount()]; - lines.getColorIndices(0, colorIndices); - -// System.out.println("***Colors"); -// for (int j = 0; j < colorIndices.length; j++) -// { -// System.out.print(colorIndices[j] + " "); -// } -// System.out.println(); - - - // - // Collect edges with both vertices same color - // - - int i = 0; - int nIndices = 0; - while (i < edgeList.length) - { - int start = edgeList[i]; - int end = edgeList[i+1]; - - System.out.println("start:" + start + " end:" + end); - System.out.println("color1:" + lines.getColorIndex(i)); - System.out.println("color2:" + lines.getColorIndex(i+1)); - - if - ( - (colorIndices[i] == PICKEDCOLOR) - && (colorIndices[i+1] == PICKEDCOLOR) - ) - { - loopEdges[nIndices++] = start; - loopEdges[nIndices++] = end; - } - - i += 2; - } - - - System.out.println("Found " + nIndices/2 + " selected edges."); - - - // Compact - - int[] newEdges = new int[nIndices]; - for (int j = 0; j < nIndices; j++) - { - newEdges[j] = loopEdges[j]; - } - - return newEdges; - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on patch " + patch_.getPatchNo()); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - -// System.out.println("-- consisting of vertices "); -// for(int j = 0; j < lines.getVertexCount(); j++) -// { -// Point3f coord = new Point3f(); -// lines.getCoordinate(j, coord); -// System.out.print(coord + " "); -// } -// System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - //int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], PICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on patch " + patch_.getPatchNo()); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - -// System.out.println("-- consisting of vertices "); -// for(int j = 0; j < lines.getVertexCount(); j++) -// { -// Point3f coord = new Point3f(); -// lines.getCoordinate(j, coord); -// System.out.print(coord + " "); -// } -// System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - //int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], UNPICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + patch_.getPatchNo()); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - -} // end of class FeatureLines diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Loop.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Loop.java deleted file mode 100644 index ccf06337dc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/Loop.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - */ - -package FoamX.Post.Shapes; - - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.InteractiveNodes.LoopNode; -import FoamX.Post.Mesh.PrimitivePatch; - -public class Loop extends Shape3D implements PickableShape -{ - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - static final Color3f[] colors = - { - new Color3f(0.0f, 1.0f, 0.0f), - new Color3f(1.0f, 0.0f, 1.0f) - }; - - FeatureLines featureLines_; - PrimitivePatch patch_; - - //-------------------------------------------------------------------------- - - public Loop - ( - LoopNode loopNode, - PrimitivePatch patch, - FeatureLines featureLines - ) - { - // Store reference to original data - featureLines_ = featureLines; - patch_ = patch; - - int[] lines = featureLines_.getSelectedEdges(); - Point3f[] coords = patch_.getPoints(); - - // - // Make lineArray from selected edges - // - -for(int i =0; i < coords.length; i++) -{ - System.out.println("Loop:coord:" + coords[i]); -} -for(int i =0; i < lines.length; i++) -{ - System.out.println("Loop:lines:" + lines[i]); -} - - - IndexedLineArray loopEdges = new IndexedLineArray - ( - coords.length, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - lines.length - ); - - loopEdges.setCoordinates(0, coords); - loopEdges.setCoordinateIndices(0, lines); - - loopEdges.setColors(0, colors); - for(int i = 0; i < lines.length; i++) - { - System.out.println("i=" + i); - loopEdges.setColorIndex(i, UNPICKEDCOLOR); - } - - //- Make it pickable - loopEdges.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - loopEdges.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - loopEdges.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - loopEdges.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - loopEdges.setCapability(IndexedLineArray.ALLOW_COLOR_WRITE); - loopEdges.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_WRITE); - loopEdges.setCapability(IndexedLineArray.ALLOW_COLOR_READ); - loopEdges.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_READ); - - this.setGeometry(loopEdges); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on Loop " + patch_.getPatchNo()); - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - //int vertexLabel = vertexLabels_[indices[j]]; - //Point3f coord = new Point3f(); - //lines.getCoordinate(j, coord); - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], PICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUNPicked on Loop " + patch_.getPatchNo()); - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], UNPICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + patch_.getPatchNo()); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - -} // end of class Loop diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MeshLines.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MeshLines.java deleted file mode 100644 index 7b3e377e15..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MeshLines.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - */ - -package FoamX.Post.Shapes; - - -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; - -import FoamX.Post.InteractiveNodes.MeshLinesNode; - -public class MeshLines extends Shape3D implements PickableShape -{ - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - static final Color3f[] colors = - { - new Color3f(1.0f, 1.0f, 0.0f), - new Color3f(1.0f, 0.0f, 1.0f) - }; - - private MeshLinesNode meshLinesNode_; - - //-------------------------------------------------------------------------- - - public MeshLines - ( - MeshLinesNode meshLinesNode, float[] coords, int[] edgeList - ) - { - // Store reference to original patch - meshLinesNode_ = meshLinesNode; - - IndexedLineArray lines = new IndexedLineArray - ( - coords.length / 3, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - //GeometryArray.COORDINATES, - edgeList.length - ); - - lines.setCoordinates(0, coords); - lines.setCoordinateIndices(0, edgeList); - - lines.setColors(0, colors); - for(int i = 0; i < edgeList.length; i++) - { - lines.setColorIndex(i, UNPICKEDCOLOR); - } - - //- Make it pickable - lines.setCapability(IndexedLineArray.ALLOW_COORDINATE_READ); - lines.setCapability(IndexedLineArray.ALLOW_COORDINATE_WRITE); - lines.setCapability(IndexedLineArray.ALLOW_FORMAT_READ); - lines.setCapability(IndexedLineArray.ALLOW_COUNT_READ); - lines.setCapability(IndexedLineArray.ALLOW_COORDINATE_INDEX_READ); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_WRITE); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_WRITE); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_READ); - lines.setCapability(IndexedLineArray.ALLOW_COLOR_INDEX_READ); - - this.setGeometry(lines); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\nPicked"); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - -// System.out.println("-- consisting of vertices "); -// for(int j = 0; j < lines.getVertexCount(); j++) -// { -// Point3f coord = new Point3f(); -// lines.getCoordinate(j, coord); -// System.out.print(coord + " "); -// } -// System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], PICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\nUnpicked"); - - IndexedLineArray lines = (IndexedLineArray)this.getGeometry(); - -// System.out.println("-- consisting of vertices "); -// for(int j = 0; j < lines.getVertexCount(); j++) -// { -// Point3f coord = new Point3f(); -// lines.getCoordinate(j, coord); -// System.out.print(coord + " "); -// } -// System.out.println(); - - - for(int i = 0; i < pickResult.numIntersections(); i++) - { - PickIntersection pi = pickResult.getIntersection(i); - int[] indices = pi.getPrimitiveVertexIndices(); - - System.out.print("-- line consisting of local points "); - for(int j = 0; j < indices.length; j++) - { - System.out.print(indices[j] + " "); - - lines.setColorIndex(indices[j], UNPICKEDCOLOR); - } - System.out.println(); - } - System.out.println(); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove"); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - -} // end of class MeshLines diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MyFirstShape.java-Indexed b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MyFirstShape.java-Indexed deleted file mode 100644 index b84895fc3c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/MyFirstShape.java-Indexed +++ /dev/null @@ -1,216 +0,0 @@ -/* - */ - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point2f; -import javax.vecmath.Point3f; -import javax.vecmath.Point3d; -import javax.vecmath.Vector3f; - -public class MyFirstShape extends Shape3D -{ - public MyFirstShape() - { - Point3d[] coords = new Point3d[10]; - coords[0] = new Point3d(0, 0, 0); - coords[1] = new Point3d(1, 0, 0); - coords[2] = new Point3d(1, 1, 0); - coords[3] = new Point3d(0.5, 2, 0); - coords[4] = new Point3d(0, 1, 0); - - coords[5] = new Point3d(0, 0, 1); - coords[6] = new Point3d(1, 0, 1); - coords[7] = new Point3d(1, 1, 1); - coords[8] = new Point3d(0.5, 2, 1); - coords[9] = new Point3d(0, 1, 1); - - // Colours - Color3f[] colors = new Color3f[6]; - - colors[0] = new Color3f(1.0f, 0.0f, 0.0f); //(red) - colors[1] = new Color3f(0.0f, 1.0f, 0.0f); //(green) - colors[2] = new Color3f(0.0f, 0.0f, 1.0f); //(blue) - colors[3] = new Color3f(1.0f, 1.0f, 0.0f); //(yellow) - colors[4] = new Color3f(1.0f, 0.0f, 1.0f); //(magenta) - colors[5] = new Color3f(0.0f, 1.0f, 1.0f); //(cyan) - - // Normals - Vector3f[] normals = new Vector3f[7]; - - normals[0] = new Vector3f( 0.0f, 0.0f, -1.0f); //(red) - normals[1] = new Vector3f( 0.0f, 0.0f, 1.0f); //(green) - normals[2] = new Vector3f(-1.0f, 0.0f, 0.0f); //(blue) - normals[3] = new Vector3f(-1.0f, 1.0f, 0.0f); //(yellow) - normals[4] = new Vector3f( 1.0f, 1.0f, 0.0f); //(magenta) - normals[5] = new Vector3f( 1.0f, 0.0f, 0.0f); //(cyan) - normals[6] = new Vector3f( 0.0f, -1.0f, 0.0f); //(cyan) - - // Toplogical storage - int[] stripCounts = new int[7]; - int[] contourCounts = new int[7]; - int[] coordinateIndices = new int[48]; - int[] faceIndices = new int[48]; - - // All singly connected contours - for(int i = 0; i < contourCounts.length; i++) - { - contourCounts[i] = 1; - } - - int verti = 0; - - // face0 - back - for(int i = verti; i < verti + 9; i++) - { - faceIndices[i] = 0; - } - coordinateIndices[verti++] = 0; - coordinateIndices[verti++] = 4; - coordinateIndices[verti++] = 1; - - coordinateIndices[verti++] = 1; - coordinateIndices[verti++] = 4; - coordinateIndices[verti++] = 2; - - coordinateIndices[verti++] = 2; - coordinateIndices[verti++] = 4; - coordinateIndices[verti++] = 3; - - - // face1 - front - for(int i = verti; i < verti + 9; i++) - { - faceIndices[i] = 1; - } - coordinateIndices[verti++] = 5; - coordinateIndices[verti++] = 6; - coordinateIndices[verti++] = 9; - - coordinateIndices[verti++] = 9; - coordinateIndices[verti++] = 6; - coordinateIndices[verti++] = 7; - - coordinateIndices[verti++] = 7; - coordinateIndices[verti++] = 8; - coordinateIndices[verti++] = 9; - - // face2 - for(int i = verti; i < verti + 6; i++) - { - faceIndices[i] = 2; - } - coordinateIndices[verti++] = 0; - coordinateIndices[verti++] = 5; - coordinateIndices[verti++] = 9; - coordinateIndices[verti++] = 9; - coordinateIndices[verti++] = 4; - coordinateIndices[verti++] = 0; - - // face3 - for(int i = verti; i < verti + 6; i++) - { - faceIndices[i] = 3; - } - coordinateIndices[verti++] = 4; - coordinateIndices[verti++] = 9; - coordinateIndices[verti++] = 8; - coordinateIndices[verti++] = 8; - coordinateIndices[verti++] = 3; - coordinateIndices[verti++] = 4; - - // face4 - for(int i = verti; i < verti + 6; i++) - { - faceIndices[i] = 4; - } - coordinateIndices[verti++] = 2; - coordinateIndices[verti++] = 3; - coordinateIndices[verti++] = 8; - coordinateIndices[verti++] = 8; - coordinateIndices[verti++] = 7; - coordinateIndices[verti++] = 3; - - // face5 - for(int i = verti; i < verti + 6; i++) - { - faceIndices[i] = 5; - } - coordinateIndices[verti++] = 1; - coordinateIndices[verti++] = 2; - coordinateIndices[verti++] = 7; - coordinateIndices[verti++] = 7; - coordinateIndices[verti++] = 6; - coordinateIndices[verti++] = 1; - - // face6 - for(int i = verti; i < verti + 6; i++) - { - faceIndices[i] = 6; - } - coordinateIndices[verti++] = 0; - coordinateIndices[verti++] = 1; - coordinateIndices[verti++] = 6; - coordinateIndices[verti++] = 6; - coordinateIndices[verti++] = 5; - coordinateIndices[verti++] = 0; - - if (verti != coordinateIndices.length) - { - System.out.println("*** coordinateIndices not filled correctly"); - } - - - IndexedTriangleArray ita = new IndexedTriangleArray - ( - coords.length, - IndexedTriangleArray.COORDINATES | IndexedTriangleArray.COLOR_3, - coordinateIndices.length - ); - - ita.setCoordinateIndices(0, coordinateIndices); - ita.setCoordinates(0, coords); - ita.setColorIndices(0, faceIndices); - ita.setColors(0, colors); - ita.setNormalIndices(0, faceIndices); - ita.setNormals(0, normals); - - ita.setCapability(GeometryArray.ALLOW_COORDINATE_READ); - ita.setCapability(IndexedGeometryArray.ALLOW_COORDINATE_INDEX_READ); - ita.setCapability(GeometryArray.ALLOW_FORMAT_READ); - ita.setCapability(GeometryArray.ALLOW_COUNT_READ); - - this.setGeometry(ita); - this.setCapability(Shape3D.ALLOW_GEOMETRY_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - - -// System.out.println("format :" + this.getVertexFormat()); -// System.out.println("indices coord:" + this.getInitialCoordIndex()); -// System.out.println("indices vert :" + this.getInitialVertexIndex()); -// int[] userData = new int[array.getVertexCount()]; -// for(int i = 0; i < userData.length; i++) -// { -// userData[i] = i; -// } -// this.setUserData(userData); - -// -// Point3d[] vertices = new Point3d[array.getVertexCount()]; -// for (int i = 0; i < vertices.length; i++) -// { -// vertices[i] = new Point3d(); -// } -// array.getCoordinates(0, vertices); -// -// for(int i = 0; i " + vertices[i]); -// } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchFaces.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchFaces.java deleted file mode 100644 index 02908f5816..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchFaces.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; - -import javax.vecmath.Point3f; - -import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.InteractiveNodes.PatchFacesNode; -import FoamX.Post.Util.OrbitPickBehavior; - -public class PatchFaces extends Shape3D implements PickableShape -{ - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - - PrimitivePatch patch_; - Color3f color_; - double creaseAngle_; - - public PatchFaces - ( - PatchFacesNode PatchFacesNode, - PrimitivePatch patch, - Color3f color, - double creaseAngle - ) - { - // Store reference to input data - patch_ = patch; - color_ = color; - creaseAngle_ = creaseAngle; - - - Point3f[] coords = patch_.getPoints(); - int[] triFaces = patch_.getLocalTriFaces(); - - GeometryInfo geometryInfo = - new GeometryInfo(GeometryInfo.TRIANGLE_ARRAY); - geometryInfo.setCoordinateIndices(triFaces); - geometryInfo.setCoordinates(coords); - - - Color3f[] colors = new Color3f[2]; - colors[UNPICKEDCOLOR] = color_; - colors[PICKEDCOLOR] = new Color3f(0.5f, 1.0f, 0.2f); - geometryInfo.setColors(colors); - - //- Start off with all triangles unpickedcolor - int[] colorIndices = new int[triFaces.length]; - for(int i = 0; i < triFaces.length; i++) - { - colorIndices[i] = UNPICKEDCOLOR; - } - geometryInfo.setColorIndices(colorIndices); - - - //- Generate normals - NormalGenerator ng = new NormalGenerator(creaseAngle_); - ng.generateNormals(geometryInfo); - - //- Make shape and set various - IndexedGeometryArray array = geometryInfo.getIndexedGeometryArray(); - - this.setGeometry(array); - PickTool.setCapabilities(this, PickTool.INTERSECT_FULL); - //this.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); - this.setCapability(Shape3D.ALLOW_APPEARANCE_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - array.setCapability(IndexedGeometryArray.ALLOW_COLOR_INDEX_WRITE); - } - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on patch " + patch_.getPatchNo()); - - IndexedGeometryArray array = (IndexedGeometryArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - int[] indices = pi.getPrimitiveVertexIndices(); - - int triIndex = indices[0] / 3; // 3 labels per triangle - int faceIndex = patch_.getTriToPoly()[triIndex]; - - System.out.print - ( - "-- triangle " + triIndex + " on face " + faceIndex - + " consisting of local points " - ); - - for(int j = 0; j < indices.length; j++) - { - System.out.print(indices[j] + " "); - } - System.out.println(); - - // Color all triangles of face - //Hack: loop over all triangles instead just of triangles for face - int[] triFaces = patch_.getLocalTriFaces(); - for(int i = 0; i < triFaces.length; i++) - { - triIndex = i / 3; - if (patch_.getTriToPoly()[triIndex] == faceIndex) - { - array.setColorIndex(i, PICKEDCOLOR); - } - } - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on patch " + patch_.getPatchNo()); - - IndexedGeometryArray array = (IndexedGeometryArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - int[] indices = pi.getPrimitiveVertexIndices(); - - int triIndex = indices[0] / 3; // 3 labels per triangle - int faceIndex = patch_.getTriToPoly()[triIndex]; - - System.out.print - ( - "-- triangle " + triIndex + " on face " + faceIndex - + " consisting of local points " - ); - - for(int j = 0; j < indices.length; j++) - { - System.out.print(indices[j] + " "); - } - System.out.println(); - - // Color all triangles of face - //Hack: loop over all triangles instead just of triangles for face - int[] triFaces = patch_.getLocalTriFaces(); - for(int i = 0; i < triFaces.length; i++) - { - triIndex = i / 3; - if (patch_.getTriToPoly()[triIndex] == faceIndex) - { - array.setColorIndex(i, UNPICKEDCOLOR); - } - } - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + patch_.getPatchNo()); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchPoints.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchPoints.java deleted file mode 100644 index 0f49877bc3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchPoints.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; - -import javax.vecmath.Point3f; - -import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.InteractiveNodes.PatchPointsNode; -import FoamX.Post.Util.OrbitPickBehavior; - -public class PatchPoints extends Shape3D implements PickableShape -{ - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - - PrimitivePatch patch_; - Color3f color_; - - public PatchPoints - ( - PatchPointsNode PatchPointsNode, - PrimitivePatch patch, - Color3f color - ) - { - // Store reference to input data - patch_ = patch; - color_ = color; - - // Color table - Color3f[] colors = new Color3f[2]; - colors[UNPICKEDCOLOR] = color_; - colors[PICKEDCOLOR] = new Color3f(0.5f, 1.0f, 0.2f); - - - Point3f[] coords = patch_.getPoints(); - int[] coordIndices = new int[coords.length]; - for(int i = 0; i < coordIndices.length; i++) - { - coordIndices[i] = i; - } - - IndexedPointArray array = new IndexedPointArray - ( - coords.length, - GeometryArray.COORDINATES | GeometryArray.COLOR_3, - coords.length - ); - - array.setCoordinates(0, coords); - array.setCoordinateIndices(0, coordIndices); - - int[] colorIndices = new int[coords.length]; - for(int i = 0; i < colorIndices.length; i++) - { - colorIndices[i] = UNPICKEDCOLOR; - } - array.setColors(0, colors); - array.setColorIndices(0, colorIndices); - - - this.setGeometry(array); - PickTool.setCapabilities(this, PickTool.INTERSECT_FULL); - - this.setCapability(Shape3D.ALLOW_APPEARANCE_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - array.setCapability(IndexedGeometryArray.ALLOW_COLOR_INDEX_WRITE); - } - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on patch " + patch_.getPatchNo()); - - IndexedPointArray array = (IndexedPointArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - System.out.println("pi=" + pi); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on patch " + patch_.getPatchNo()); - - IndexedPointArray array = (IndexedPointArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - System.out.println("pi=" + pi); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + patch_.getPatchNo()); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchSpheres.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchSpheres.java deleted file mode 100644 index 4fdfc6640a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PatchSpheres.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - */ -package FoamX.Post.Shapes; - -import com.sun.j3d.utils.geometry.GeometryInfo; -import com.sun.j3d.utils.geometry.NormalGenerator; -import com.sun.j3d.utils.geometry.Stripifier; -import com.sun.j3d.utils.geometry.Triangulator; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickTool; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; - -import javax.vecmath.Point3f; - -import FoamX.Post.Mesh.PrimitivePatch; -import FoamX.Post.InteractiveNodes.PatchSpheresNode; -import FoamX.Post.Util.OrbitPickBehavior; - -public class PatchSpheres extends Shape3D implements PickableShape -{ - static int[] tetStrips = - { - 4 - }; - static Point3f tetCoords = - { - new Point3f(0.0f, 0.0f, 0.0f), - new Point3f(0.0f, 0.0f, 0.0f), - new Point3f(0.0f, 0.0f, 0.0f), - new Point3f(0.0f, 0.0f, 0.0f) - }; - static float[] components = new float[3]; - static float[] tetComponents = new float[3]; - - static final int UNPICKEDCOLOR = 0; - static final int PICKEDCOLOR = 1; - - - PrimitivePatch patch_; - Color3f color_; - - public PatchSpheres - ( - PatchSpheresNode PatchSpheresNode, - PrimitivePatch patch, - Color3f color - ) - { - // Store reference to input data - patch_ = patch; - color_ = color; - - // Color table - Color3f[] colors = new Color3f[2]; - colors[UNPICKEDCOLOR] = color_; - colors[PICKEDCOLOR] = new Color3f(0.5f, 1.0f, 0.2f); - - - Point3f[] coords = patch_.getPoints(); - - for(int i = 0; i < coords.length; i++) - { - Geometry sphere = makeSphere(coords[i]); - this.insertGeometry(sphere, i); - } - PickTool.setCapabilities(this, PickTool.INTERSECT_FULL); - - this.setCapability(Shape3D.ALLOW_APPEARANCE_READ); - this.setCapability(Shape3D.ALLOW_BOUNDS_READ); - } - - //-------------------------------------------------------------------------- - - Geometry makeSphere(Point3f coord, float dist) - { - // Actually make tet - array = new TriangeStripArray - ( - 4, - TriangeStripArray.COORDINATES, - tetStrips - ); - - coord.get(components); - - tetCoords[0].get(tetComponents); - tetComponents[0] = components[0]; - tetComponents[1] = components[1] - dist; - tetComponents[2] = components[2] - dist; - tetCoords[0].set(tetComponents); - - tetCoords[1].get(tetComponents); - tetComponents[0] = components[0] - dist; - tetComponents[1] = components[1] - dist; - tetComponents[2] = components[2] + dist; - tetCoords[1].set(tetComponents); - - tetCoords[2].get(tetComponents); - tetComponents[0] = components[0] + dist; - tetComponents[1] = components[1] - dist; - tetComponents[2] = components[2] + dist; - tetCoords[2].set(tetComponents); - - tetCoords[3].get(tetComponents); - tetComponents[0] = components[0] - dist; - tetComponents[1] = components[1] + dist; - tetComponents[2] = components[2] - dist; - tetCoords[3].set(tetComponents); - - - } - - - //-------------------------------------------------------------------------- - //---- PickableShape Interface - //-------------------------------------------------------------------------- - - // Callback for if picked. - public void picked(PickResult pickResult) - { - System.out.println("\n\nPicked on patch " + patch_.getPatchNo()); - - IndexedPointArray array = (IndexedPointArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - System.out.println("pi=" + pi); - } - - //-------------------------------------------------------------------------- - - // Callback for if unpicked. - public void unPicked(PickResult pickResult) - { - System.out.println("\n\nUnpicked on patch " + patch_.getPatchNo()); - - IndexedPointArray array = (IndexedPointArray)this.getGeometry(); - - int nearest = OrbitPickBehavior.getNearestIndex(pickResult); - PickIntersection pi = pickResult.getIntersection(nearest); - - System.out.println("pi=" + pi); - } - - //-------------------------------------------------------------------------- - - // Completely remove - public void remove() - { - //System.out.println("remove:" + patch_.getPatchNo()); - if (this.numGeometries() != 0) - { - this.removeGeometry(0); - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PickableShape.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PickableShape.java deleted file mode 100644 index bdbbefc1a8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes/PickableShape.java +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Post.Shapes; - -import javax.media.j3d.*; -import com.sun.j3d.utils.picking.PickResult; - -public interface PickableShape -{ - // Picking - public abstract void picked(PickResult pickResult); - public abstract void unPicked(PickResult pickResult); -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes2D/ColorBar2D.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes2D/ColorBar2D.java deleted file mode 100644 index 84e3577edd..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Shapes2D/ColorBar2D.java +++ /dev/null @@ -1,51 +0,0 @@ -package FoamX.Post.Shapes2D; - -//import com.xith.java3d.overlay.*; -import org.j3d.geom.overlay.*; - -import javax.media.j3d.*; -import javax.vecmath.*; -import java.awt.*; -import java.awt.image.*; -import java.util.*; - -import FoamX.Post.Util.Colorizer; - -public class ColorBar2D extends OverlayBase -{ - int width_; - int height_; - Colorizer colorizer_; - float min_; - float max_; - - public ColorBar2D - ( - final Canvas3D c, - final int x, final int y, - final int width, final int height, - final Colorizer colorizer, - final float min, final float max - ) - { - super(c, new java.awt.Rectangle(x, y, width, height)); - //this.setBackgroundMode(BACKGROUND_COPY); // Copy background - width_ = width; - height_ = height; - colorizer_ = colorizer; - min_ = min; - max_ = max; - } - - /** - * This is where the actualy drawing of the window takes place. Override - * this to alter the contents of what is show in the window. - */ - - public void paint(Graphics2D g) - { - colorizer_.paint(g, width_, height_, min_, max_); - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Table/NodeTable.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Table/NodeTable.java deleted file mode 100644 index 74227e8f1f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Table/NodeTable.java +++ /dev/null @@ -1,170 +0,0 @@ -package FoamX.Post.Table; - - -import javax.swing.*; -import javax.swing.table.AbstractTableModel; -import java.awt.*; -import java.awt.event.*; - -import FoamX.Post.InteractiveNodes.InteractiveNodeList; -import FoamX.Post.InteractiveNodes.InteractiveNode; - -import javax.swing.event.TableModelListener; -import javax.swing.event.TableModelEvent; - -public class NodeTable extends JFrame implements TableModelListener -{ - private boolean DEBUG = true; - - InteractiveNodeList shapes_; - JTable table_; - - //-------------------------------------------------------------------------- - - - public NodeTable(InteractiveNodeList shapes) - { - super("NodeTable"); - - shapes_ = shapes; - - table_ = new JTable(shapes_); - - //AbstractTableModel model = shapes_.getModel(); - shapes_.addTableModelListener(this); - - table_.setPreferredScrollableViewportSize(new Dimension(200, 150)); - - //Create the scroll pane and add the table to it. - JScrollPane scrollPane = new JScrollPane(table_); - - JPanel mainPanel = new JPanel(); - mainPanel.setLayout(new GridLayout(2, 1)); - mainPanel.add(scrollPane); - - JPanel buttonPanel = new JPanel(); - JButton removeButton = new JButton("Remove"); - JButton editButton = new JButton("Edit"); - - buttonPanel.setLayout(new GridLayout(1, 2)); - buttonPanel.add(removeButton); - buttonPanel.add(editButton); - mainPanel.add(buttonPanel); - - //Add the main panel to this window. - getContentPane().add(mainPanel, BorderLayout.CENTER); - - removeButton.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - removeButton_ActionPerformed(evt); - } - } - ); - editButton.addActionListener - ( - new ActionListener() - { - public void actionPerformed(ActionEvent evt) - { - editButton_ActionPerformed(evt); - } - } - ); - - addWindowListener - ( - new WindowAdapter() - { - public void windowClosing(WindowEvent e) - { - //System.exit(0); - } - } - ); - } - - //-------------------------------------------------------------------------- - - /** remove button handler */ - private void removeButton_ActionPerformed(ActionEvent evt) - { - InteractiveNodeList model = (InteractiveNodeList)table_.getModel(); - int startRow = table_.getSelectionModel().getMinSelectionIndex(); - int endRow = table_.getSelectionModel().getMaxSelectionIndex(); - if (startRow < 0) - { - return; - } - for (int row = startRow; row <= endRow; row++) - { - model.removeElementAt(row); - } - - table_.getSelectionModel().clearSelection(); - initTableSize(table_, model); - table_.repaint(); - } - - //-------------------------------------------------------------------------- - - /** edit button handler */ - private void editButton_ActionPerformed(ActionEvent evt) - { - InteractiveNodeList model = (InteractiveNodeList)table_.getModel(); - int startRow = table_.getSelectionModel().getMinSelectionIndex(); - int endRow = table_.getSelectionModel().getMaxSelectionIndex(); - if (startRow < 0) - { - return; - } - for (int row = startRow; row <= endRow; row++) - { - System.out.println("Edit of row " + row); - } - } - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - - /** Size table itself */ - static private void initTableSize(JTable table, InteractiveNodeList model) - { - int height = table.getRowHeight() * model.getRowCount(); - - table.setPreferredSize - ( - new java.awt.Dimension(table.getWidth(), height) - ); - table.revalidate(); - } - - //-------------------------------------------------------------------------- - - public void tableChanged(TableModelEvent e) { - //int row = e.getFirstRow(); - //int column = e.getColumn(); - - initTableSize(table_, shapes_); - table_.repaint(); - } - - - //-------------------------------------------------------------------------- - -// public static void main(String[] args) { -// NodeTable frame = new TableDemo(); -// frame.pack(); -// frame.setVisible(true); -// } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayStats.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayStats.java deleted file mode 100644 index 633d8c90f5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayStats.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * ArrayStats.java - */ - - -package FoamX.Post.Util; - -import javax.media.j3d.*; -import javax.vecmath.*; - - -public class ArrayStats -{ - float min_; - float max_; - float avg_; - - public ArrayStats(float[] values) - { - if (values.length == 0) - { - System.out.println("**ERROR: ArrayStats: length == 0"); - return; - } - min_ = values[0]; - max_ = values[0]; - float sum = 0.0f; - for(int i = 1; i < values.length; i++) - { - float val = values[i]; - min_ = Math.min(min_, val); - max_ = Math.max(max_, val); - sum += val; - } - avg_ = sum / values.length; - } - - public float getMin() - { - return min_; - } - - public float getMax() - { - return max_; - } - - public float getAvg() - { - return avg_; - } - -} // end of class ArrayStats diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayUtils.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayUtils.java deleted file mode 100644 index 92bd6518f2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ArrayUtils.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * ArrayUtils.java - */ - - -package FoamX.Post.Util; - -import java.util.*; -import javax.media.j3d.*; -import javax.vecmath.*; - - -public class ArrayUtils -{ - public static float[] mag(float[] a) - { - int nVecs = a.length / 3; - - float[] result = new float[nVecs]; - - int coordI = 0; - for(int i = 0; i < nVecs; i++) - { - float x = a[coordI++]; - float y = a[coordI++]; - float z = a[coordI++]; - - result[i] = (float)Math.sqrt(x*x + y*y + z*z); - } - return result; - } - - public static float[] add(float[] a, float b) - { - float[] result = new float[a.length]; - - for(int i = 0; i < a.length; i++) - { - result[i] = a[i] + b; - } - return result; - } - - public static float[] add(float[] a, float[] b) - { - float[] result = new float[a.length]; - - for(int i = 0; i < a.length; i++) - { - result[i] = a[i] + b[i]; - } - return result; - } - - public static float[] sub(float[] a, float b) - { - float[] result = new float[a.length]; - - for(int i = 0; i < a.length; i++) - { - result[i] = a[i] - b; - } - return result; - } - - public static float[] sub(float[] a, float[] b) - { - float[] result = new float[a.length]; - - for(int i = 0; i < a.length; i++) - { - result[i] = a[i] - b[i]; - } - return result; - } - - public static float[] div(float[] a, float b) - { - float[] result = new float[a.length]; - - for(int i = 0; i < a.length; i++) - { - result[i] = a[i] / b; - } - return result; - } - - public static float[] div(float[] a, float[] b) - { - if (a.length != 3*b.length) - { - System.out.println("Error: div: length not ok:" + a.length + " " + b.length); - return null; - } - - int nVecs = a.length / 3; - - float[] result = new float[nVecs]; - - int coordI = 0; - for(int i = 0; i < nVecs; i++) - { - result[coordI] = a[coordI] / b[i]; - coordI++; - result[coordI] = a[coordI] / b[i]; - coordI++; - result[coordI] = a[coordI] / b[i]; - coordI++; - } - - return result; - } - - // debug print - public static void print(int[] array) - { - for(int i = 0; i < array.length; i++) - { - System.out.println(i + ":" + array[i]); - } - } - - // debug print - public static void print(int[][] array) - { - for(int i = 0; i < array.length; i++) - { - System.out.print(i + ":"); - for(int j = 0; j < array[i].length; j++) - { - System.out.print - ( - " " + array[i][j] - ); - } - System.out.println(); - } - } - - // debug print - public static void print(float[] array) - { - for(int i = 0; i < array.length; i++) - { - System.out.println(i + ":" + array[i]); - } - } - - // debug print - public static void print(Object[] array) - { - for(int i = 0; i < array.length; i++) - { - System.out.println(i + ":" + array[i]); - } - } -} // end of class ArrayUtils diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/BinaryFoamFile.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/BinaryFoamFile.java deleted file mode 100644 index 606c289244..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/BinaryFoamFile.java +++ /dev/null @@ -1,301 +0,0 @@ -package FoamX.Post.Util; - -//import java.net.URL; -//import java.net.URLConnection; -import java.awt.Component; -import java.io.*; -import java.util.*; - -import javax.media.j3d.*; -//import javax.vecmath.Color3f; - -import javax.vecmath.Point3f; - -import org.j3d.loaders.stl.*; - -public class BinaryFoamFile -{ - - public BinaryFoamFile() - { - } - - public static void readAll(String fName) - { - System.out.println("fName=" + fName); - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - while(true) - { - int a = LittleEndianConverter.read4ByteBlock(bufferedStream); - //byte a = dataStream.readByte(); - - System.out.println("a=" + a); - } - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - } - - - // read integer array - public static int[] readIntArray(String fName) - { - System.out.println("fName=" + fName); - - int[] values = null; - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - int nElems = - LittleEndianConverter.read4ByteBlock(bufferedStream); - System.out.println("nInt=" + nElems); - - values = new int[nElems]; - - for(int i = 0; i < nElems; i++) - { - values[i] = - LittleEndianConverter.read4ByteBlock(bufferedStream); - } - stream.close(); - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - return values; - } - - // read array of integer arrays - public static int[][] readIntIntArray(String fName) - { - System.out.println("fName=" + fName); - - int[][] values = null; - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - int nArrays = - LittleEndianConverter.read4ByteBlock(bufferedStream); - System.out.println("nArrays=" + nArrays); - - values = new int[nArrays][]; - - for(int arrayI = 0; arrayI < nArrays; arrayI++) - { - int nElems = - LittleEndianConverter.read4ByteBlock(bufferedStream); - //System.out.println("nInt=" + nElems); - - values[arrayI] = new int[nElems]; - - for(int i = 0; i < nElems; i++) - { - values[arrayI][i] = - LittleEndianConverter.read4ByteBlock(bufferedStream); - } - } - stream.close(); - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - return values; - } - - - // read float array - public static float[] readFloatArray(String fName) - { - System.out.println("fName=" + fName); - - float[] values = null; - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - int nElems = - LittleEndianConverter.read4ByteBlock(bufferedStream); - System.out.println("nFloat=" + nElems); - - values = new float[nElems]; - byte[] readBuffer = new byte[nElems*4]; - int[] dataBuffer = new int[nElems]; - - LittleEndianConverter.read - ( - readBuffer, dataBuffer, 0, nElems, bufferedStream - ); - - for(int i = 0; i < nElems; i++) - { - values[i] = Float.intBitsToFloat(dataBuffer[i]); - } - stream.close(); - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - return values; - } - - - // read point3f array - public static Point3f[] readPoint3fArray(String fName) - { - System.out.println("fName=" + fName); - - Point3f[] values = null; - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - int nElems = - LittleEndianConverter.read4ByteBlock(bufferedStream); - System.out.println("nPoint3f=" + nElems); - - values = new Point3f[nElems]; - - int nFloats = 3*nElems; - byte[] readBuffer = new byte[nFloats*4]; - int[] dataBuffer = new int[nFloats]; - - LittleEndianConverter.read - ( - readBuffer, dataBuffer, 0, nFloats, bufferedStream - ); - - int floati = 0; - for(int i = 0; i < nElems; i++) - { - float x = Float.intBitsToFloat(dataBuffer[floati++]); - float y = Float.intBitsToFloat(dataBuffer[floati++]); - float z = Float.intBitsToFloat(dataBuffer[floati++]); - - values[i] = new Point3f(x, y, z); - } - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - return values; - } - - // read point array as floats - public static float[] readFloatPointArray(String fName) - { - System.out.println("fName=" + fName); - - float[] values = null; - try - { - FileInputStream stream = - new FileInputStream(fName); - BufferedInputStream bufferedStream = - new BufferedInputStream(stream); - DataInputStream dataStream = - new DataInputStream(bufferedStream); - - int nElems = - LittleEndianConverter.read4ByteBlock(bufferedStream); - System.out.println("nFloatPoint=" + nElems); - - - int nFloats = 3*nElems; - values = new float[3*nElems]; - byte[] readBuffer = new byte[nFloats*4]; - int[] dataBuffer = new int[nFloats]; - - LittleEndianConverter.read - ( - readBuffer, dataBuffer, 0, nFloats, bufferedStream - ); - - for(int i = 0; i < nFloats; i++) - { - values[i] = Float.intBitsToFloat(dataBuffer[i]); - } - } - catch(FileNotFoundException ex) - { - System.out.println("file " + fName + " not found."); - } - catch( IOException e ) - { - System.out.println("IOException caught"); - } - return values; - } - - public static void main(String[] args) - { - System.out.println("args[0] = " + args[0]); - -// float[] vals = foamFile.readFloatArray(); -// for(int i = 0; i < vals.length; i++) -// { -// System.out.println("i=" + i + " val=" + vals[i]); -// } - Point3f[] vals = BinaryFoamFile.readPoint3fArray(args[0]); - for(int i = 0; i < vals.length; i++) - { - System.out.println("i=" + i + " val=" + vals[i]); - } - } -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Colorizer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Colorizer.java deleted file mode 100644 index c4efe997f7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Colorizer.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - */ -package FoamX.Post.Util; - -//import com.sun.j3d.utils.geometry.GeometryInfo; -//import com.sun.j3d.utils.geometry.NormalGenerator; -//import com.sun.j3d.utils.geometry.Stripifier; -//import com.sun.j3d.utils.geometry.Triangulator; -//import com.sun.j3d.utils.picking.PickIntersection; -//import com.sun.j3d.utils.picking.PickResult; -//import com.sun.j3d.utils.picking.PickTool; -import java.io.*; -import java.awt.*; -import java.awt.event.*; -import java.awt.geom.*; -import java.awt.Graphics2D; - -import org.j3d.util.interpolator.ColorInterpolator; - -import javax.media.j3d.*; -import javax.vecmath.Color3f; -import javax.vecmath.Point3f; - -import FoamX.Post.PostApp; - -public class Colorizer -{ - PostApp pp_; - float min_; - float max_; - Color3f minColor_; - Color3f maxColor_; - Color3f[] colorMap_; - - ColorInterpolator colorInterpolator_; - float[] keys_; - float[] colors_; - - Font smallFont_; - - - // n points according to eye curve - public Colorizer(PostApp pp, int nKeys) - { - pp_ = pp; - keys_ = new float[nKeys]; - colors_ = new float[3*nKeys]; - smallFont_ = new Font("Courier", 0, 8); - - // Eye curve - float curve = 1.4f; - float bias = 1.0f; - float rfact = 0.5f * bias; - - float scale = 1.0f / (nKeys-1); - int colorI = 0; - for(int keyI = 0; keyI < nKeys; keyI++) - { - // compute s in [0,1] - float s = (float) keyI * scale; - float t = curve * (s - rfact); // t in [curve*-0.5,curve*0.5) - - keys_[keyI] = s; - colors_[colorI++] = (float) (0.5 + 0.5 * Math.atan( 7.0*t ) / 1.57); - colors_[colorI++] = (float) (0.5 + 0.5 * (2 * Math.exp(-7*t*t) - 1)); - colors_[colorI++] = (float) (0.5 + 0.5 * Math.atan( -7.0*t ) / 1.57); - } - - setColorInterpolator(); - } - - //-------------------------------------------------------------------------- - - // simplest one: - public Colorizer(PostApp pp) - { - pp_ = pp; - - keys_ = new float[4]; - colors_ = new float[3*4]; - - // min = blue (001) - keys_[0] = 0.0f; - colors_[0] = 0.0f; - colors_[1] = 0.0f; - colors_[2] = 1.0f; - - // green (010) - keys_[1] = 0.5f; - colors_[3] = 0.0f; - colors_[4] = 1.0f; - colors_[5] = 0.0f; - - // yellow (110) - keys_[2] = 0.75f; - colors_[6] = 1.0f; - colors_[7] = 1.0f; - colors_[8] = 0.0f; - - // max = red (100) - keys_[3] = 1.0f; - colors_[9] = 1.0f; - colors_[10] = 0.0f; - colors_[11] = 0.0f; - - setColorInterpolator(); - } - - //-------------------------------------------------------------------------- - - - // Reads in key/rbg pairs from file. - // Note: key values should be [0..1] - public Colorizer(PostApp pp, File file) - { - pp_ = pp; - System.out.println("Colorizer read"); - } - - //-------------------------------------------------------------------------- - - public void write(PostApp pp, File file) - { - pp_ = pp; - System.out.println("Colorizer write"); - } - - //-------------------------------------------------------------------------- - - private void setColorInterpolator() - { - //System.out.println("Constructing colorizer:"); - - // Fill ColorInterPolator - colorInterpolator_ = - new ColorInterpolator - ( - keys_.length, - ColorInterpolator.RGB_SPACE - ); - - int colorI = 0; - for(int keyI = 0; keyI < keys_.length; keyI++) - { - float R = colors_[colorI++]; - float G = colors_[colorI++]; - float B = colors_[colorI++]; - //System.out.println - //( - // " key: " + keys_[keyI] + " RGB: " - // + R + " " + G + " " + B - //); - colorInterpolator_.addRGBKeyFrame - ( - keys_[keyI], - R, - G, - B, - 1.0f - ); - } - } - - //-------------------------------------------------------------------------- - - // Convert values into colors - public void color - ( - final float min, - final float max, - final float[] values, - float[] colors - ) - { - if (3*values.length != colors.length) - { - System.out.println("ERROR: colors array not big enough"); - System.out.println(" values:" + values.length); - System.out.println(" colors:" + colors.length); - return; - } - - int colorI = 0; - - float scale = 1.0f / (max - min); - for(int i = 0; i < values.length; i++) - { - // Scale to [0,1] - float scaledValue = (values[i] - min) * scale; - float[] rgbColor = colorInterpolator_.floatRGBValue(scaledValue); - - // Copy RGB - colors[colorI++] = rgbColor[0]; - colors[colorI++] = rgbColor[1]; - colors[colorI++] = rgbColor[2]; - } - } - - //-------------------------------------------------------------------------- - - // Make 2D colorbar of dimensions 1x1 - // No text for now. - public TriangleArray colorBar(final float min, final float max) - { - if (keys_.length == 0) - { - return null; - } - - int nTri = 2*(keys_.length - 1); - int nVert = 3*nTri; - - Point3f[] coords = new Point3f[nVert]; - float[] vertColors = new float[3*nVert]; - - // Lower coordinates - Point3f lowerLeft = new Point3f(0.0f, 0.0f, 0.0f); - Point3f lowerRight = new Point3f(1.0f, 0.0f, 0.0f); - - int vertI = 0; - int colorI = 0; - for(int keyI = 0; keyI < keys_.length - 1; keyI++) - { - // Upper coordinates - Point3f upperLeft = - new Point3f(lowerLeft.x, keys_[keyI+1], lowerLeft.z); - Point3f upperRight = - new Point3f(lowerRight.x, keys_[keyI+1], lowerRight.z); - - // Triangle 1 - - // copy coordinates + RGB - coords[vertI++] = lowerLeft; - vertColors[colorI++] = colors_[3*keyI]; - vertColors[colorI++] = colors_[3*keyI+1]; - vertColors[colorI++] = colors_[3*keyI+2]; - - coords[vertI++] = lowerRight; - vertColors[colorI++] = colors_[3*keyI]; - vertColors[colorI++] = colors_[3*keyI+1]; - vertColors[colorI++] = colors_[3*keyI+2]; - - coords[vertI++] = upperRight; - vertColors[colorI++] = colors_[3*(keyI+1)]; - vertColors[colorI++] = colors_[3*(keyI+1)+1]; - vertColors[colorI++] = colors_[3*(keyI+1)+2]; - - // Triangle 2 - coords[vertI++] = upperRight; - vertColors[colorI++] = colors_[3*(keyI+1)]; - vertColors[colorI++] = colors_[3*(keyI+1)+1]; - vertColors[colorI++] = colors_[3*(keyI+1)+2]; - - coords[vertI++] = upperLeft; - vertColors[colorI++] = colors_[3*(keyI+1)]; - vertColors[colorI++] = colors_[3*(keyI+1)+1]; - vertColors[colorI++] = colors_[3*(keyI+1)+2]; - - coords[vertI++] = lowerLeft; - vertColors[colorI++] = colors_[3*keyI]; - vertColors[colorI++] = colors_[3*keyI+1]; - vertColors[colorI++] = colors_[3*keyI+2]; - - // Move one up - lowerLeft = upperLeft; - lowerRight = upperRight; - } - - TriangleArray array = new TriangleArray - ( - 3*nTri, - TriangleArray.COORDINATES - | TriangleArray.COLOR_3 - ); - array.setCoordinates(0, coords); - array.setColors(0, vertColors); - - return array; - } - - //-------------------------------------------------------------------------- - - public void paint - ( - Graphics2D g, - final int width, - final int height, - final float min, - final float max - ) - { - // Make table of values from min to max. - float[] values = new float[height]; - float val = min; - float valInc = (max - min) / height; - for(int y = 0; y < height; y++) - { - values[y] = val; - val += valInc; - } - - // Convert into colors - float[] colors = new float[3*height]; - color(min, max, values, colors); - - // Paint into Graphics2D. Note pixel coords start at 0,0 top left - - g.setRenderingHint - ( - RenderingHints.KEY_TEXT_ANTIALIASING, - RenderingHints.VALUE_TEXT_ANTIALIAS_OFF - ); - g.setRenderingHint - ( - RenderingHints.KEY_ANTIALIASING, - RenderingHints.VALUE_ANTIALIAS_OFF - ); - g.setRenderingHint - ( - RenderingHints.KEY_FRACTIONALMETRICS, - RenderingHints.VALUE_FRACTIONALMETRICS_OFF - ); - g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f)); - - // Draw coloured lines starting at right half - - int barX = width / 2; - int colorI = 0; - for(int pixelY = height -1 ; pixelY >= 0; pixelY--) - { - Color drawColor = - new Color - ( - colors[colorI++], colors[colorI++], colors[colorI++] - ); - - g.setPaint(drawColor); - g.drawLine(barX, pixelY, width, pixelY); - } - - // Draw ticks and put numbers - int tickX = barX - 5; - - - FontMetrics fm = g.getFontMetrics(); - int textHeight = fm.getHeight(); - - //String text = "abc"; - //int textWidth = fm.stringWidth(text); - //Rectangle2D dims = - // fm.getStringBounds(text.toCharArray(), 0, 2, g); - - if (g.getFont() != smallFont_) - { - g.setFont(smallFont_); - } - g.setPaint(pp_.getForegroundColor()); - - // min - g.drawLine(tickX, height - 1, barX, height - 1); - Float floatY = new Float(min); - int screenY = height - 1 - fm.getLeading(); - g.drawString(floatY.toString(), 0, screenY); - - // max - g.drawLine(tickX, 0, barX, 0); - floatY = new Float(max); - screenY = textHeight; - g.drawString(floatY.toString(), 1, screenY); - -// int nTicks = 5; -// float range = nTicks*(max - min); -// for(int i = 0; i < nTicks; ) -// -// g.setPaint(pp_.getForeground()); -// for(int keyI = 0; keyI < keys_.length; keyI++) -// { -// Float floatY = -// new Float(height * (1.0f - (keys_[keyI] - min) / (max - min))); -// int y = floatY.intValue(); -// g.drawLine(0, y, width, y); -// g.drawString(floatY.toString(), 0, y); -// } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImageDisplayer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImageDisplayer.java deleted file mode 100644 index 061fa5c054..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImageDisplayer.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * @(#)ImageDisplayer.java 1.3 01/01/11 07:38:16 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ -package FoamX.Post.Util; - -import javax.swing.*; -import java.awt.BorderLayout; -import java.awt.Container; -import java.awt.Color; -import java.awt.Dimension; -import java.awt.Graphics; -import java.awt.image.BufferedImage; -import java.awt.event.*; - -public class ImageDisplayer extends JFrame implements ActionListener { - BufferedImage bImage; - - private class ImagePanel extends JPanel { - public void paint(Graphics g) { - g.setColor(Color.black); - g.fillRect(0, 0, getSize().width, getSize().height); - g.drawImage(bImage, 0, 0, this); - } - - private ImagePanel() { - setPreferredSize(new Dimension(bImage.getWidth(), - bImage.getHeight())); - } - } - - private JMenuItem printItem; - private JMenuItem closeItem; - - public void actionPerformed (ActionEvent event) { - Object target = event.getSource(); - - if (target == printItem) { - new ImagePrinter(bImage).print(); - } - else if (target == closeItem) { - this.removeAll(); - this.setVisible(false); - bImage = null; - } - } - - private JMenuBar createMenuBar() { - JMenuBar menuBar = new JMenuBar(); - JMenu fileMenu = new JMenu("File"); - printItem = new JMenuItem("Print..."); - printItem.addActionListener(this); - closeItem = new JMenuItem("Close"); - closeItem.addActionListener(this); - fileMenu.add(printItem); - fileMenu.add(new JSeparator()); - fileMenu.add(closeItem); - menuBar.add(fileMenu); - return menuBar; - } - - public ImageDisplayer(BufferedImage bImage) { - this.bImage = bImage; - this.setTitle("Off-screen Canvas3D Snapshot"); - - // Create and initialize menu bar - this.setJMenuBar(createMenuBar()); - - // Create scroll pane, and embedded image panel - ImagePanel imagePanel = new ImagePanel(); - JScrollPane scrollPane = new JScrollPane(imagePanel); - - int width = Math.min(700, bImage.getWidth()); - int height = Math.min(700, bImage.getHeight()); - -// scrollPane.getViewport().setPreferredSize(new Dimension(700, 700)); - scrollPane.getViewport().setPreferredSize(new Dimension(width, height)); - - // Add scroll pane to the frame and make it visible - this.getContentPane().add(scrollPane); - this.pack(); - this.setVisible(true); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImagePrinter.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImagePrinter.java deleted file mode 100644 index de0a41538a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/ImagePrinter.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * @(#)ImagePrinter.java 1.3 01/01/11 07:38:16 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ -package FoamX.Post.Util; - -import java.awt.print.*; -import java.awt.Graphics; -import java.awt.Graphics2D; -import java.awt.Image; -import java.awt.image.BufferedImage; -import java.awt.image.ImageObserver; -import java.awt.geom.AffineTransform; - -public class ImagePrinter implements Printable, ImageObserver { - BufferedImage bImage; - - public int print(Graphics g, PageFormat pf, int pi) - throws PrinterException { - - - if (pi >= 1) { - return Printable.NO_SUCH_PAGE; - } - - Graphics2D g2d = (Graphics2D)g; - //g2d.translate(pf.getImageableX(), pf.getImageableY()); - AffineTransform t2d = new AffineTransform(); - t2d.translate(pf.getImageableX(), pf.getImageableY()); - double xscale = pf.getImageableWidth() / (double)bImage.getWidth(); - double yscale = pf.getImageableHeight() / (double)bImage.getHeight(); - double scale = Math.min(xscale, yscale); - t2d.scale(scale, scale); - try { - g2d.drawImage(bImage,t2d, this); - } - catch (Exception ex) { - ex.printStackTrace(); - return Printable.NO_SUCH_PAGE; - } - return Printable.PAGE_EXISTS; - } - - void print() { - PrinterJob printJob = PrinterJob.getPrinterJob(); - PageFormat pageFormat = printJob.defaultPage(); - pageFormat.setOrientation(PageFormat.LANDSCAPE); - pageFormat = printJob.validatePage(pageFormat); - printJob.setPrintable(this, pageFormat); - if (printJob.printDialog()) { - try { - printJob.print(); - } - catch (PrinterException ex) { - ex.printStackTrace(); - } - } - } - - public boolean imageUpdate(Image img, - int infoflags, - int x, - int y, - int width, - int height) { - return false; - } - - ImagePrinter(BufferedImage bImage) { - this.bImage = bImage; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/KeyBehavior.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/KeyBehavior.java deleted file mode 100644 index 10464d602d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/KeyBehavior.java +++ /dev/null @@ -1,353 +0,0 @@ -package FoamX.Post.Util; - -import java.awt.AWTEvent; -import java.awt.event.*; -import java.util.Enumeration; - -import javax.media.j3d.*; -import javax.vecmath.*; - -import com.sun.j3d.utils.universe.*; - -import FoamX.Post.PostApp; - -/** - * KeyBehavior is a generic behavior class to take key presses and move a - * TransformGroup through a Java3D scene. The actions resulting from the key strokes - * are modified by using the Ctrl, Alt and Shift keys. - * - * (version 1.0) reconstructed class to make more generic. - * - * MODIFIED: - * @version 1.0, 25 September 1998 aajc - * @author Andrew AJ Cain, Swinburne University, Australia - * - * - * edited from code by: - * Gary S. Moss - * U. S. Army Research Laboratory - * - * CLASS NAME: - * KeyBehavior - * - * PUBLIC FEATURES: - * // Data - * - * // Constructors - * - * // Methods: - * - * COLLABORATORS: - * - */ -public class KeyBehavior extends Behavior -{ - protected static final double FAST_SPEED = 2.0; - protected static final double NORMAL_SPEED = 1.0; - protected static final double SLOW_SPEED = 0.5; - - private TransformGroup transformGroup; - private Transform3D transform3D; - private WakeupCondition keyCriterion; - private PostApp pp_; - - private final static double TWO_PI = (2.0 * Math.PI); - private double rotateXAmount = Math.PI / 16.0; - private double rotateYAmount = Math.PI / 16.0; - private double rotateZAmount = Math.PI / 16.0; - - private double moveRate = 0.3; - private double speed = NORMAL_SPEED; - - private int forwardKey = KeyEvent.VK_UP; - private int backKey = KeyEvent.VK_DOWN; - private int leftKey = KeyEvent.VK_LEFT; - private int rightKey = KeyEvent.VK_RIGHT; - private int resetKey = KeyEvent.VK_F; - - public KeyBehavior(PostApp pp, TransformGroup tg ) - { - transformGroup = tg; - transform3D = new Transform3D(); - pp_ = pp; - } - - public void initialize() - { - WakeupCriterion[] keyEvents = new WakeupCriterion[2]; - - keyEvents[0] = new WakeupOnAWTEvent( KeyEvent.KEY_PRESSED ); - keyEvents[1] = new WakeupOnAWTEvent( KeyEvent.KEY_RELEASED ); - - keyCriterion = new WakeupOr( keyEvents ); - wakeupOn( keyCriterion ); - } - - - - - - public void processStimulus( Enumeration criteria ) - { - WakeupCriterion wakeup; - AWTEvent[] event; - - while( criteria.hasMoreElements() ) - { - wakeup = (WakeupCriterion) criteria.nextElement(); - - if( !(wakeup instanceof WakeupOnAWTEvent) ) - continue; - - event = ((WakeupOnAWTEvent)wakeup).getAWTEvent(); - - for( int i = 0; i < event.length; i++ ) - { - if( event[i].getID() == KeyEvent.KEY_PRESSED ) - { - processKeyEvent((KeyEvent)event[i]); - } - } - } - wakeupOn( keyCriterion ); - } - - protected void processKeyEvent(KeyEvent event) - { - int keycode = event.getKeyCode(); - - if(event.isShiftDown()) speed = FAST_SPEED; - else speed = NORMAL_SPEED; - - if( event.isAltDown() ) - altMove(keycode); - else if( event.isControlDown()) - controlMove(keycode); - else - standardMove(keycode); - } - - - - - - //moves forward backward or rotates left right - private void standardMove(int keycode) - { - if(keycode == forwardKey) - moveForward(); - else if(keycode == backKey) - moveBackward(); - else if(keycode == leftKey) - rotLeft(); - else if(keycode == rightKey) - rotRight(); - else if(keycode == resetKey) - resetView(); - } - - //moves left right, rotate up down - protected void altMove(int keycode) - { - if(keycode == forwardKey) - rotUp(); - else if(keycode == backKey) - rotDown(); - else if(keycode == leftKey) - moveLeft(); - else if(keycode == rightKey) - moveRight(); - } - - //move up down, rot left right - protected void controlMove(int keycode) - { - if(keycode == forwardKey) - moveUp(); - else if(keycode == backKey) - moveDown(); - else if(keycode == leftKey) - rollLeft(); - else if(keycode == rightKey) - rollRight(); - } - - private void resetView() - { - System.out.println("ResetView"); - View view = pp_.getUniverse().getViewer().getView(); - BoundingSphere bounds = (BoundingSphere)pp_.getScene().getBounds(); - PostApp.viewAll(view, bounds); - } - - private void moveForward() - { - doMove(new Vector3d(0.0,0.0, -getMovementRate())); - } - - private void moveBackward() - { - doMove(new Vector3d(0.0,0.0, getMovementRate())); - } - - private void moveLeft() - { - doMove(new Vector3d( -getMovementRate() ,0.0,0.0)); - } - - private void moveRight() - { - doMove(new Vector3d(getMovementRate(),0.0,0.0)); - } - - private void moveUp() - { - doMove(new Vector3d(0.0, getMovementRate() ,0.0)); - } - - private void moveDown() - { - doMove(new Vector3d(0.0, -getMovementRate() ,0.0)); - } - - protected void rotRight() - { - doRotateY(getRotateRightAmount()); - } - - protected void rotUp() - { - doRotateX(getRotateUpAmount()); - } - - protected void rotLeft() - { - doRotateY(getRotateLeftAmount()); - } - - protected void rotDown() - { - doRotateX(getRotateDownAmount()); - } - - protected void rollLeft() - { - doRotateZ(getRollLeftAmount()); - } - - protected void rollRight() - { - doRotateZ(getRollRightAmount()); - } - - protected void doRotateY(double radians) - { - transformGroup.getTransform(transform3D); - Transform3D toMove = new Transform3D(); - toMove.rotY(radians); - transform3D.mul(toMove); - transformGroup.setTransform(transform3D); - } - - protected void doRotateX(double radians) - { - transformGroup.getTransform(transform3D); - Transform3D toMove = new Transform3D(); - toMove.rotX(radians); - transform3D.mul(toMove); - transformGroup.setTransform(transform3D); - } - - protected void doRotateZ(double radians) - { - transformGroup.getTransform(transform3D); - Transform3D toMove = new Transform3D(); - toMove.rotZ(radians); - transform3D.mul(toMove); - transformGroup.setTransform(transform3D); - } - - protected void doMove(Vector3d theMove) - { - transformGroup.getTransform(transform3D); - Transform3D toMove = new Transform3D(); - toMove.setTranslation(theMove); - transform3D.mul(toMove); - transformGroup.setTransform(transform3D); - } - - protected double getMovementRate() - { - return moveRate * speed; - } - - protected double getRollLeftAmount() - { - return rotateZAmount * speed; - } - - protected double getRollRightAmount() - { - return -rotateZAmount * speed; - } - - protected double getRotateUpAmount() - { - return rotateYAmount * speed; - } - - protected double getRotateDownAmount() - { - return -rotateYAmount * speed; - } - - protected double getRotateLeftAmount() - { - return rotateYAmount * speed; - } - - protected double getRotateRightAmount() - { - return -rotateYAmount * speed; - } - - public void setRotateXAmount(double radians) - { - rotateXAmount = radians; - } - - public void setRotateYAmount(double radians) - { - rotateYAmount = radians; - } - - public void setRotateZAmount(double radians) - { - rotateZAmount = radians; - } - - public void setMovementRate(double meters) - { - moveRate = meters; // Travel rate in meters/frame - } - - public void setForwardKey(int key) - { - forwardKey = key; - } - - public void setBackKey(int key) - { - backKey = key; - } - - public void setLeftKey(int key) - { - leftKey = key; - } - - public void setRightKey(int key) - { - rightKey = key; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OffScreenCanvas3D.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OffScreenCanvas3D.java deleted file mode 100644 index df8709dc86..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OffScreenCanvas3D.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * @(#)OffScreenCanvas3D.java 1.2 01/01/11 07:38:17 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ -package FoamX.Post.Util; - -import java.awt.GraphicsConfiguration; -import java.awt.image.BufferedImage; -import javax.media.j3d.*; -import javax.vecmath.*; - - -public class OffScreenCanvas3D extends Canvas3D { - public OffScreenCanvas3D(GraphicsConfiguration graphicsConfiguration, - boolean offScreen) { - - super(graphicsConfiguration, offScreen); - } - - public BufferedImage doRender(int width, int height) { - - BufferedImage bImage = - new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); - - ImageComponent2D buffer = - new ImageComponent2D(ImageComponent.FORMAT_RGBA, bImage); - - setOffScreenBuffer(buffer); - renderOffScreenBuffer(); - waitForOffScreenRendering(); - bImage = getOffScreenBuffer().getImage(); - - return bImage; - } - - public void postSwap() { - // No-op since we always wait for off-screen rendering to complete - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OrbitPickBehavior.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OrbitPickBehavior.java deleted file mode 100644 index 421495eeef..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/OrbitPickBehavior.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - */ -package FoamX.Post.Util; - -import javax.media.j3d.*; -import com.sun.j3d.utils.picking.PickTool; -import com.sun.j3d.utils.picking.PickResult; -import com.sun.j3d.utils.picking.PickIntersection; -import com.sun.j3d.utils.picking.behaviors.PickMouseBehavior; -import java.util.*; -import java.awt.*; -import java.awt.Event; -import java.awt.AWTEvent; -import java.awt.event.MouseEvent; -import javax.vecmath.*; - -import FoamX.Post.InteractiveNodes.InteractiveNode; -import FoamX.Post.Shapes.PickableShape; - -public class OrbitPickBehavior extends PickMouseBehavior -{ - protected static final int ILLEGALACTION = 0; - protected static final int PICKACTION = 1; - protected static final int UNPICKACTION = 2; - protected static final boolean debug = false; - - protected int action = ILLEGALACTION; - - public OrbitPickBehavior - ( - Canvas3D canvas, - BranchGroup root, - Bounds bounds - ) - { - super(canvas, root, bounds); - this.setSchedulingBounds(bounds); - root.addChild(this); - pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO); - //pickCanvas.setMode(PickTool.BOUNDS); - pickCanvas.setTolerance(2.0f); - } - - // Register with event handler - public void initialize() { - - conditions = new WakeupCriterion[2]; - conditions[0] = new WakeupOnAWTEvent(Event.MOUSE_MOVE); - conditions[1] = new WakeupOnAWTEvent(Event.MOUSE_DOWN); - wakeupCondition = new WakeupOr(conditions); - - wakeupOn(wakeupCondition); - } - - - // Called at wakeup. Discard all but last event. - public void processStimulus (Enumeration criteria) - { - WakeupCriterion wakeup; - AWTEvent[] evt = null; - int xpos = 0, ypos = 0; - - while(criteria.hasMoreElements()) - { - wakeup = (WakeupCriterion)criteria.nextElement(); - if (wakeup instanceof WakeupOnAWTEvent) - { - evt = ((WakeupOnAWTEvent)wakeup).getAWTEvent(); - } - } - - if (evt[0] instanceof MouseEvent) - { - mevent = (MouseEvent) evt[0]; - - if - ( - ( - mevent.getID()==MouseEvent.MOUSE_PRESSED | - mevent.getID()==MouseEvent.MOUSE_CLICKED - ) - && mevent.isShiftDown() - ) - { - xpos = mevent.getPoint().x; - ypos = mevent.getPoint().y; - - int modifiers = mevent.getModifiers(); - - action = ILLEGALACTION; - if ((modifiers & mevent.BUTTON1_MASK) != 0) - { - action = PICKACTION; - updateScene(xpos, ypos); - } - if ((modifiers & mevent.BUTTON2_MASK) != 0) - { - // ? - } - if ((modifiers & mevent.BUTTON3_MASK) != 0) - { - action = UNPICKACTION; - updateScene(xpos, ypos); - } - } - } - wakeupOn (wakeupCondition); - } - - - // Do something based on (un)picking action. - public void updateScene(int xpos, int ypos) - { - try - { - - PickResult pickResult = null; - Shape3D shape = null; - - pickCanvas.setShapeLocation(xpos, ypos); - - pickResult = pickCanvas.pickClosest(); - if (pickResult != null) - { - //System.out.println("pickResult:" + pickResult); - - shape = (Shape3D)pickResult.getNode(PickResult.SHAPE3D); - if (shape instanceof PickableShape) - { - PickableShape pickableShape = (PickableShape)shape; - - if (action == PICKACTION) - { - pickableShape.picked(pickResult); - } - else if (action == UNPICKACTION) - { - pickableShape.unPicked(pickResult); - } - } - //else - //{ - // System.out.println("**\n**Picking object which is not InteractiveNode"); - //} - - //shape = (Shape3D) pickResult.getNode(PickResult.SHAPE3D); - //System.out.println("pickedShape=" + shape); - - //Enumeration iter = shape.getAllGeometries(); - //while (iter.hasMoreElements()) - //{ - // Object subShape = (Object)iter.nextElement(); - // System.out.println("subShape=" + subShape); - // printShape(subShape); - //} - } - } - catch(CapabilityNotSetException ex) - { - System.out.println(ex); - } - } - - - - // Utility function get nearest of multiple intersections - public static int getNearestIndex(PickResult pickResult) - { - int nInters = pickResult.numIntersections(); - if (nInters == 1) - { - return 0; - } - else if (nInters > 1) - { - double minDist=1E30; - int minIndex=-1; - for(int i = 0; i < nInters; i++) - { - PickIntersection pi = pickResult.getIntersection(i); - double dist = pi.getDistance(); - if (dist < minDist) - { - minDist = pi.getDistance(); - minIndex = pi.getGeometryArrayIndex(); - } - } - - if (debug) - { - System.out.println("minDist : " + minDist); - System.out.println("minIndex : " + minIndex); - } - return minIndex; - } - else - { - System.out.println("**\n** Illegal umber of intersections:" + nInters); - return -1; - } - } - - - - // Utility function to print shape info. - static void printShape(Object subShape) - { - if (subShape.getClass() == javax.media.j3d.Text3D.class) - { - Text3D subText = (Text3D)subShape; - System.out.println("Text3D:" + subText.getString()); - } - else if (subShape.getClass() == javax.media.j3d.TriangleStripArray.class) - { - TriangleStripArray strip = (TriangleStripArray)subShape; - - int nVert = strip.getVertexCount(); - System.out.println("triangleStripArray of length" + nVert); - Point3d[] vertices = new Point3d[nVert]; - for (int i = 0; i < vertices.length; i++) - { - vertices[i] = new Point3d(); - } - strip.getCoordinates(0, vertices); - for(int i = 0; i < vertices.length; i++) - { - System.out.println("vertex " + vertices[i]); - } - } - else if (subShape.getClass() == javax.media.j3d.IndexedTriangleArray.class) - { - IndexedTriangleArray strip = (IndexedTriangleArray)subShape; - - int nVert = strip.getVertexCount(); - System.out.println("IndexedTriangleArray of length" + nVert); - Point3d[] vertices = new Point3d[nVert]; - for (int i = 0; i < vertices.length; i++) - { - vertices[i] = new Point3d(); - } - strip.getCoordinates(0, vertices); - for(int i = 0; i < vertices.length; i++) - { - System.out.println("vertex " + vertices[i]); - } - } - else if (subShape.getClass() == javax.media.j3d.TriangleArray.class) - { - TriangleArray strip = (TriangleArray)subShape; - - int nVert = strip.getVertexCount(); - System.out.println("triangleArray of length" + nVert); - Point3d[] vertices = new Point3d[nVert]; - for (int i = 0; i < vertices.length; i++) - { - vertices[i] = new Point3d(); - } - strip.getCoordinates(0, vertices); - - for(int i = 0; i < vertices.length; i++) - { - System.out.println("vertex " + vertices[i]); - } - } - else - { - System.out.println("unknown shape" + subShape); - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PickDragBehavior.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PickDragBehavior.java deleted file mode 100644 index 9edae9781f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PickDragBehavior.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * @(#)PickDragBehavior.java 1.8 01/01/11 07:32:11 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ - -package FoamX.Post.Util; - -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import javax.media.j3d.*; -import javax.vecmath.*; -import com.sun.j3d.utils.geometry.Sphere; - -/** - * Class: PickDragBehavior - * - * Description: Used to respond to mouse pick and drag events - * in the 3D window. - * - * Version: 1.0 - * - */ -public class PickDragBehavior extends Behavior -{ - WakeupCriterion[] mouseEvents; - WakeupOr mouseCriterion; - int x, y; - int x_last, y_last; - double x_angle, y_angle; - double x_factor, y_factor; - Transform3D modelTrans; - Transform3D transformX; - Transform3D transformY; - Vector3d transVector; - TransformGroup transformGroup; - - public PickDragBehavior(TransformGroup transformGroup) - { - - this.transformGroup = transformGroup; - - modelTrans = new Transform3D(); - transformX = new Transform3D(); - transformY = new Transform3D(); - transVector = new Vector3d(); - } - - public void initialize() - { - x = 0; - y = 0; - x_last = 0; - y_last = 0; - x_angle = 0; - y_angle = 0; - x_factor = .02; - y_factor = .02; - - mouseEvents = new WakeupCriterion[2]; - mouseEvents[0] = new WakeupOnAWTEvent(MouseEvent.MOUSE_DRAGGED); - mouseEvents[1] = new WakeupOnAWTEvent(MouseEvent.MOUSE_PRESSED); - mouseCriterion = new WakeupOr(mouseEvents); - wakeupOn (mouseCriterion); - } - - public void processStimulus (Enumeration criteria) - { - WakeupCriterion wakeup; - AWTEvent[] event; - int id; - int dx, dy; - - while (criteria.hasMoreElements()) - { - wakeup = (WakeupCriterion) criteria.nextElement(); - if (wakeup instanceof WakeupOnAWTEvent) - { - event = ((WakeupOnAWTEvent)wakeup).getAWTEvent(); - for (int i=0; i BOTTOMRIGHT)) - { - System.out.println("ERROR: Placement incorrect corner:" + corner); - return; - } - corner_ = corner; - } - - //-------------------------------------------------------------------------- - - public Dimension getSpacing() - { - return spacing_; - } - - //-------------------------------------------------------------------------- - - public int getCorner() - { - return corner_; - } - - //-------------------------------------------------------------------------- - - // Calculates topleft of item inside component. - public Dimension getTopLeft(Component window, Dimension item) - { - int windowWidth = window.getWidth(); - int windowHeight = window.getHeight(); - - int itemWidth = item.width; - int itemHeight = item.height; - - if (corner_ == TOPLEFT) - { - return spacing_; - } - else if (corner_ == TOPRIGHT) - { - return new Dimension - ( - windowWidth - spacing_.width - itemWidth, - spacing_.height - ); - } - else if (corner_ == BOTTOMLEFT) - { - return new Dimension - ( - spacing_.width, - windowHeight - spacing_.height - itemHeight - ); - } - else - { - // Bottomright - return new Dimension - ( - windowWidth - spacing_.width - itemWidth, - windowHeight - spacing_.height - itemHeight - ); - } - } - - //-------------------------------------------------------------------------- - -} // end of class Placement diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PrintManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PrintManager.java deleted file mode 100644 index b9836dd04e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/PrintManager.java +++ /dev/null @@ -1,251 +0,0 @@ -package FoamX.Post.Util; - -import java.io.*; -import com.sun.image.codec.jpeg.*; -import sun.awt.image.codec.*; -import com.sun.j3d.utils.universe.*; -import java.awt.*; -import java.awt.image.BufferedImage; -import java.awt.event.*; -import javax.media.j3d.*; -import javax.vecmath.*; - -import FoamX.Post.Util.OffScreenCanvas3D; -import FoamX.Post.PostApp; -import FoamX.App; - -public class PrintManager -{ - PostApp postApp_; - SimpleUniverse universe_; - Switch printSwitch_; - Dimension currentDim_; - OffScreenCanvas3D offScreenCanvas_; - BranchGroup switchGroup_; - - // Switch to control rendering - public PrintManager(PostApp postApp, Switch printSwitch) - { - postApp_ = postApp; - universe_ = postApp_.getUniverse(); - printSwitch_ = printSwitch; - currentDim_ = null; - offScreenCanvas_ = null; - switchGroup_ = null; - - // Make sure we can modify switch and its children - printSwitch_.setCapability(Switch.ALLOW_SWITCH_WRITE); - printSwitch_.setCapability(Switch.ALLOW_CHILDREN_EXTEND); - printSwitch_.setCapability(Switch.ALLOW_CHILDREN_WRITE); - //printSwitch_.setWhichChild(Switch.CHILD_NONE); - printSwitch_.setWhichChild(Switch.CHILD_ALL); - } - - - public void print(Dimension wantedDim, String fileName) - { - Dimension windowDim = postApp_.getSize(); - if (wantedDim.width == 0) - { - if (wantedDim.height == 0) - { - wantedDim = windowDim; - System.out.println("Using screen size : " + wantedDim); - } - else - { - Float wantedWidth = - new Float - ( - wantedDim.height - * (float)windowDim.width - / windowDim.height - ); - wantedDim = - new Dimension(wantedWidth.intValue(), wantedDim.height); - System.out.println("Using specified height : " + wantedDim); - } - } - else - { - if (wantedDim.height == 0) - { - Float wantedHeight = - new Float - ( - wantedDim.width - * (float)windowDim.height - / windowDim.width - ); - wantedDim = - new Dimension(wantedDim.width, wantedHeight.intValue()); - System.out.println("Using specified width : " + wantedDim); - } - else - { - System.out.println - ( - "Using specified width and height : " + wantedDim - ); - } - } - - - // Check if different resolution - if - ( - (currentDim_ != null) - && !currentDim_.equals(wantedDim) - ) - { - // Disconnect current since wrong resolution - System.out.println("Different resolution:" + currentDim_); - printSwitch_.removeChild(switchGroup_); - switchGroup_ = null; - - // signal below to create new dim - currentDim_ = null; - } - - // Create new print raster - if (currentDim_ == null) - { - currentDim_ = wantedDim; - - System.out.println("Creating raster:" + currentDim_); - - BufferedImage bImage = - new BufferedImage - ( - currentDim_.width, - currentDim_.height, - BufferedImage.TYPE_INT_ARGB - ); - - ImageComponent2D buffer = - new ImageComponent2D - ( - ImageComponent.FORMAT_RGBA, - bImage - ); - buffer.setCapability(ImageComponent2D.ALLOW_IMAGE_READ); - - Raster drawRaster = - new Raster - ( - new Point3f(1.0f, 1.0f, 1.0f), - Raster.RASTER_COLOR, - 0, 0, - currentDim_.width, currentDim_.height, - buffer, - null - ); - - drawRaster.setCapability(Raster.ALLOW_IMAGE_WRITE); - - // Make shape out of it - Shape3D shape = new Shape3D(drawRaster); - - // Hang under bg under switch - switchGroup_ = new BranchGroup(); - switchGroup_.setCapability(BranchGroup.ALLOW_DETACH); - switchGroup_.addChild(shape); - - printSwitch_.addChild(switchGroup_); - - GraphicsConfiguration config = - SimpleUniverse.getPreferredConfiguration(); - offScreenCanvas_ = new OffScreenCanvas3D(config, currentDim_, true); - - // set the offscreen to match the onscreen - Screen3D sOff = offScreenCanvas_.getScreen3D(); - - sOff.setSize(currentDim_); - - Screen3D sOn = universe_.getCanvas().getScreen3D(); - double pixelWidth = sOn.getPhysicalScreenWidth(); - double pixelHeight = sOn.getPhysicalScreenHeight(); - - pixelHeight = pixelWidth * currentDim_.height / currentDim_.width; -// pixelHeight = pixelWidth; - - System.out.println - ( - "Setting physscreen to " + pixelWidth + " " + pixelHeight - ); - - sOff.setPhysicalScreenWidth(pixelWidth); - sOff.setPhysicalScreenHeight(pixelHeight); -// if (sOff.getPhysicalScreenWidth() < 1E-8) -// { -// System.out.println -// ( -// "Warning: physicalScreenWidth not set; using 0.5" -// ); -// sOff.setPhysicalScreenWidth(0.5); -// } -// if (sOff.getPhysicalScreenHeight() < 1E-8) -// { -// System.out.println -// ( -// "Warning: physicalScreenHeight not set; using 1.0" -// ); -// sOff.setPhysicalScreenHeight(1.0); -// } -// sOff.setSize(currentDim_); - } - - - // - // Now valid raster and hung under switch in scene. All set to start - // printing. - - offScreenCanvas_.setFileName(fileName); - // Set switch on - printSwitch_.setWhichChild(Switch.CHILD_ALL); - // Add to screen view so it gets rendered with correct view. - universe_.getViewer().getView().addCanvas3D(offScreenCanvas_); - // Print - offScreenCanvas_.print(); - - int sleep = App.getOptions().getProperty("FoamX.Sleep", "1000"); - - try - { - while (offScreenCanvas_.isPrinting()) - { - System.out.println("Waiting a bit more"); - Thread.currentThread().sleep(sleep); - } - System.out.println("Finished printing"); - } - catch (InterruptedException ie) - { - System.out.println("Interrupted exception"); - } - - // Disable switch - printSwitch_.setWhichChild(Switch.CHILD_NONE); - - try - { - Thread.currentThread().sleep(sleep); - } - catch (InterruptedException ie) - { - System.out.println("Interrupted exception"); - } - - // Remove canvas from view - universe_.getViewer().getView().removeCanvas3D(offScreenCanvas_); - - try - { - Thread.currentThread().sleep(sleep); - } - catch (InterruptedException ie) - { - System.out.println("Interrupted exception"); - } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Text.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Text.java deleted file mode 100644 index ad6607dd47..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/Text.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Text.java - */ - - -package FoamX.Post.Util; - -import java.awt.*; -import java.awt.Color.*; -import java.awt.Font; -import java.awt.Graphics; -import java.awt.image.*; - -import javax.media.j3d.*; -import javax.vecmath.*; - - -public class Text -{ - Font smallFont_ = new java.awt.Font("Courier", 0, 8); - - - // creates a simple Raster text label (similar to Text2D) - public Shape3D createLabel - ( - String szText, float x, float y, float z, Color color - ) - { - BufferedImage bufferedImage = - new BufferedImage(25, 14, BufferedImage.TYPE_INT_RGB); - Graphics g = bufferedImage.getGraphics(); -// g.setComposite -// ( -// AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f) -// ); - g.setColor(color); - g.setFont(smallFont_); - g.drawString(szText, 2, 12); - - ImageComponent2D imageComponent2D = - new ImageComponent2D(ImageComponent2D.FORMAT_RGB, bufferedImage); - - // create the Raster for the image - javax.media.j3d.Raster renderRaster = - new javax.media.j3d.Raster - ( - new Point3f(x, y, z), - javax.media.j3d.Raster.RASTER_COLOR, - 0, 0, - bufferedImage.getWidth(), - bufferedImage.getHeight(), - imageComponent2D, - null - ); - - return new Shape3D(renderRaster); - } - - -} // end of class Text diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseScale.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseScale.java deleted file mode 100644 index 1589c51591..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseScale.java +++ /dev/null @@ -1,191 +0,0 @@ -package FoamX.Post.Util; - -//import com.sun.j3d.utils.behaviors.vp.*; -import com.sun.j3d.utils.behaviors.mouse.*; - -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import javax.media.j3d.*; -import javax.vecmath.*; - - -/** - * myMouseScale is a Java3D behavior object that lets users control the - * Z axis translation of an object via a mouse drag motion with the second - * mouse button. See MouseRotate for similar usage info. - */ - -public class myMouseScale extends MouseZoom -{ - private MouseBehaviorCallback callback = null; - - public myMouseScale(TransformGroup transformGroup) { - super(transformGroup); - } - - /** - * Creates a default mouse zoom behavior. - **/ - public myMouseScale(){ - super(0); - } - - /** - * Creates a zoom behavior. - * Note that this behavior still needs a transform - * group to work on (use setTransformGroup(tg)) and - * the transform group must add this behavior. - * @param flags - */ - public myMouseScale(int flags) { - super(flags); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behavior is added to the - * specified Component. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * @param c The Component to add the MouseListener - * and MouseMotionListener to. - * @since Java 3D 1.2.1 - */ - public myMouseScale(Component c) { - super(c, 0); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behaviors is added to - * the specified Component and works on the given TransformGroup. - * @param c The Component to add the MouseListener and - * MouseMotionListener to. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * @param transformGroup The TransformGroup to operate on. - * @since Java 3D 1.2.1 - */ - public myMouseScale(Component c, TransformGroup transformGroup) { - super(c, transformGroup); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behavior is added to the - * specified Component. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * Note that this behavior still needs a transform - * group to work on (use setTransformGroup(tg)) and the transform - * group must add this behavior. - * @param flags interesting flags (wakeup conditions). - * @since Java 3D 1.2.1 - */ - public myMouseScale(Component c, int flags) { - super(c, flags); - } - - public void processStimulus (Enumeration criteria) { - WakeupCriterion wakeup; - AWTEvent[] events; - MouseEvent evt; -// int id; -// int dx, dy; - - System.out.println("processStimulus"); - - while (criteria.hasMoreElements()) { - wakeup = (WakeupCriterion) criteria.nextElement(); - if (wakeup instanceof WakeupOnAWTEvent) { - events = ((WakeupOnAWTEvent)wakeup).getAWTEvent(); - if (events.length > 0) { - evt = (MouseEvent) events[events.length-1]; - doProcess(evt); - } - } - - else if (wakeup instanceof WakeupOnBehaviorPost) { - while (true) { - synchronized (mouseq) { - if (mouseq.isEmpty()) break; - evt = (MouseEvent)mouseq.remove(0); - // consolodate MOUSE_DRAG events - while((evt.getID() == MouseEvent.MOUSE_DRAGGED) && - !mouseq.isEmpty() && - (((MouseEvent)mouseq.get(0)).getID() == - MouseEvent.MOUSE_DRAGGED)) { - evt = (MouseEvent)mouseq.remove(0); - } - } - doProcess(evt); - } - } - - } - wakeupOn (mouseCriterion); - } - - void doProcess(MouseEvent evt) { - int id; - int dx, dy; - - //processMouseEvent(evt); - - if (((buttonPress)&&((flags & MANUAL_WAKEUP) == 0)) || - ((wakeUp)&&((flags & MANUAL_WAKEUP) != 0))){ - id = evt.getID(); - if ((id == MouseEvent.MOUSE_DRAGGED) && - evt.isAltDown() && !evt.isMetaDown()){ - - x = evt.getX(); - y = evt.getY(); - - dx = x - x_last; - dy = y - y_last; - - if (!reset){ - transformGroup.getTransform(currXform); - - double scale = currXform.getScale(); - - scale += 0.01*dy; - -System.out.println("setting scale " + scale); - - currXform.setScale(scale); - - transformGroup.setTransform(currXform); - - transformChanged( currXform ); - - if (callback!=null) - callback.transformChanged( MouseBehaviorCallback.ZOOM, - currXform ); - - } - else { - reset = false; - } - - x_last = x; - y_last = y; - } - else if (id == MouseEvent.MOUSE_PRESSED) { - x_last = evt.getX(); - y_last = evt.getY(); - } - } - } - - - /** - * The transformChanged method in the callback class will - * be called every time the transform is updated - */ - public void setupCallback( MouseBehaviorCallback callback ) { - this.callback = callback; - } -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseZoom.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseZoom.java deleted file mode 100644 index 85ea6239c9..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myMouseZoom.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * @(#)myMouseZoom.java 1.31 01/01/11 07:22:24 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ - -package FoamX.Post.Util; - -import com.sun.j3d.utils.behaviors.mouse.*; - -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import javax.media.j3d.*; -import javax.vecmath.*; - - -/** - * myMouseZoom is a Java3D behavior object that lets users control the - * Z axis translation of an object via a mouse drag motion with the second - * mouse button. See MouseRotate for similar usage info. - */ - -public class myMouseZoom extends MouseBehavior { - - double z_factor = .04; - Vector3d translation = new Vector3d(); - - private MouseBehaviorCallback callback = null; - - /** - * Creates a zoom behavior given the transform group. - * @param transformGroup The transformGroup to operate on. - */ - public myMouseZoom(TransformGroup transformGroup) { - super(transformGroup); - } - - /** - * Creates a default mouse zoom behavior. - **/ - public myMouseZoom(){ - super(0); - } - - /** - * Creates a zoom behavior. - * Note that this behavior still needs a transform - * group to work on (use setTransformGroup(tg)) and - * the transform group must add this behavior. - * @param flags - */ - public myMouseZoom(int flags) { - super(flags); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behavior is added to the - * specified Component. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * @param c The Component to add the MouseListener - * and MouseMotionListener to. - * @since Java 3D 1.2.1 - */ - public myMouseZoom(Component c) { - super(c, 0); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behaviors is added to - * the specified Component and works on the given TransformGroup. - * @param c The Component to add the MouseListener and - * MouseMotionListener to. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * @param transformGroup The TransformGroup to operate on. - * @since Java 3D 1.2.1 - */ - public myMouseZoom(Component c, TransformGroup transformGroup) { - super(c, transformGroup); - } - - /** - * Creates a zoom behavior that uses AWT listeners and behavior - * posts rather than WakeupOnAWTEvent. The behavior is added to the - * specified Component. A null component can be passed to specify - * the behavior should use listeners. Components can then be added - * to the behavior with the addListener(Component c) method. - * Note that this behavior still needs a transform - * group to work on (use setTransformGroup(tg)) and the transform - * group must add this behavior. - * @param flags interesting flags (wakeup conditions). - * @since Java 3D 1.2.1 - */ - public myMouseZoom(Component c, int flags) { - super(c, flags); - } - - public void initialize() { - super.initialize(); - if ((flags & INVERT_INPUT) == INVERT_INPUT) { - z_factor *= -1; - invert = true; - } - } - - /** - * Return the y-axis movement multipler. - **/ - public double getFactor() { - return z_factor; - } - - /** - * Set the y-axis movement multipler with factor. - **/ - public void setFactor( double factor) { - z_factor = factor; - } - - - public void processStimulus (Enumeration criteria) { - WakeupCriterion wakeup; - AWTEvent[] events; - MouseEvent evt; -// int id; -// int dx, dy; - - System.out.println("processStimulus"); - - while (criteria.hasMoreElements()) { - wakeup = (WakeupCriterion) criteria.nextElement(); - if (wakeup instanceof WakeupOnAWTEvent) { - events = ((WakeupOnAWTEvent)wakeup).getAWTEvent(); - if (events.length > 0) { - evt = (MouseEvent) events[events.length-1]; - doProcess(evt); - } - } - - else if (wakeup instanceof WakeupOnBehaviorPost) { - while (true) { - synchronized (mouseq) { - if (mouseq.isEmpty()) break; - evt = (MouseEvent)mouseq.remove(0); - // consolodate MOUSE_DRAG events - while((evt.getID() == MouseEvent.MOUSE_DRAGGED) && - !mouseq.isEmpty() && - (((MouseEvent)mouseq.get(0)).getID() == - MouseEvent.MOUSE_DRAGGED)) { - evt = (MouseEvent)mouseq.remove(0); - } - } - doProcess(evt); - } - } - - } - wakeupOn (mouseCriterion); - } - - void doProcess(MouseEvent evt) { - int id; - int dx, dy; - - processMouseEvent(evt); - - System.out.println("doProcess"); - - if (((buttonPress)&&((flags & MANUAL_WAKEUP) == 0)) || - ((wakeUp)&&((flags & MANUAL_WAKEUP) != 0))){ - id = evt.getID(); - if ((id == MouseEvent.MOUSE_DRAGGED) && - evt.isAltDown() && !evt.isMetaDown()){ - - x = evt.getX(); - y = evt.getY(); - - dx = x - x_last; - dy = y - y_last; - - if (!reset){ - transformGroup.getTransform(currXform); - - translation.z = dy*z_factor; - - transformX.set(translation); - - if (invert) { - currXform.mul(currXform, transformX); - } else { - currXform.mul(transformX, currXform); - } - - transformGroup.setTransform(currXform); - - transformChanged( currXform ); - - if (callback!=null) - callback.transformChanged( MouseBehaviorCallback.ZOOM, - currXform ); - - } - else { - reset = false; - } - - x_last = x; - y_last = y; - } - else if (id == MouseEvent.MOUSE_PRESSED) { - x_last = evt.getX(); - y_last = evt.getY(); - } - } - } - - - /** - * Users can overload this method which is called every time - * the Behavior updates the transform - * - * Default implementation does nothing - */ - public void transformChanged( Transform3D transform ) { - } - - /** - * The transformChanged method in the callback class will - * be called every time the transform is updated - */ - public void setupCallback( MouseBehaviorCallback callback ) { - this.callback = callback; - } -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myOrbitBehavior.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myOrbitBehavior.java deleted file mode 100644 index 0dcecd68df..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Post/Util/myOrbitBehavior.java +++ /dev/null @@ -1,787 +0,0 @@ -/* - * @(#)myOrbitBehavior.java 1.9 01/02/28 16:26:56 - * - * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. - * - * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, - * modify and redistribute this software in source and binary code form, - * provided that i) this copyright notice and license appear on all copies of - * the software; and ii) Licensee does not utilize the software in a manner - * which is disparaging to Sun. - * - * This software is provided "AS IS," without a warranty of any kind. ALL - * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY - * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR - * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE - * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING - * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS - * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, - * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER - * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF - * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGES. - * - * This software is not designed or intended for use in on-line control of - * aircraft, air traffic, aircraft navigation or aircraft communications; or in - * the design, construction, operation or maintenance of any nuclear - * facility. Licensee represents and warrants that it will not use or - * redistribute the Software for such purposes. - */ - -package FoamX.Post.Util; - -import com.sun.j3d.utils.behaviors.vp.*; - -import java.awt.event.ComponentEvent; -import java.awt.event.MouseEvent; -import java.awt.event.KeyEvent; -import java.awt.AWTEvent; -import java.awt.Component; -import java.awt.Cursor; -import javax.swing.SwingUtilities; - -import javax.media.j3d.WakeupOnAWTEvent; -import javax.media.j3d.WakeupOnElapsedFrames; -import javax.media.j3d.TransformGroup; -import javax.media.j3d.Transform3D; -import javax.media.j3d.View; -import javax.media.j3d.Canvas3D; - -import javax.vecmath.Vector3d; -import javax.vecmath.Point3d; -import javax.vecmath.Matrix3d; - -import com.sun.j3d.utils.universe.ViewingPlatform; - -import com.sun.j3d.internal.J3dUtilsI18N; - -/** - * Moves the View around a point of interest when the mouse is dragged with - * a mouse button pressed. Includes rotation, zoom, and translation - * actions. - *

- * This behavior must be added to the ViewingPlatform - * using the ViewingPlatform.addViewPlatformBehavior() method. - *

- * The rotate action rotates the ViewPlatform around the point of interest - * when the mouse is moved with the main mouse button pressed. The - * rotation is in the direction of the mouse movement, with a default - * rotation of 0.01 radians for each pixel of mouse movement. - *

- * The zoom action moves the ViewPlatform closer to or further from the - * point of interest when the mouse is moved with the middle mouse button - * pressed (or Alt-main mouse button on systems without a middle mouse button). - * The default zoom action is to translate the ViewPlatform 0.01 units for each - * pixel of mouse movement. Moving the mouse up moves the ViewPlatform closer, - * moving the mouse down moves the ViewPlatform further away. - *

- * By default, the zoom action allows the ViewPlatform to move through - * the center of rotation to orbit at a negative radius. - * The STOP_ZOOM constructor flag will stop the ViewPlatform at - * a minimum radius from the center. The default minimum radius is 0.0 - * and can be set using the setMinRadius method. - *

- * The PROPORTIONAL_ZOOM constructor flag changes the zoom action - * to move the ViewPlatform proportional to its distance from the center - * of rotation. For this mode, the default action is to move the ViewPlatform - * by 1% of its distance from the center of rotation for each pixel of - * mouse movement. - *

- * The translate action translates the ViewPlatform when the mouse is moved - * with the right mouse button pressed (Shift-main mouse button on systems - * without a right mouse button). The translation is in the direction of the - * mouse movement, with a default translation of 0.01 units for each pixel - * of mouse movement. - *

- * The sensitivity of the actions can be scaled using the - * setActionFactor() methods which scale - * the default movement by the factor. The rotate and translate actions - * have separate factors for x and y. - *

- * The actions can be reversed using the REVERSE_ACTION - * constructor flags. The default action moves the ViewPlatform around the - * objects in the scene. The REVERSE_ACTION flags can - * make the objects in the scene appear to be moving in the direction - * of the mouse movement. - *

- * The actions can be disabled by either using the - * DISABLE_ACTION constructor flags or the - * setActionEnable methods. - *

- * The default center of rotation is (0, 0, 0) and can be set using the - * setRotationCenter() method. - * - * @since Java 3D 1.2.1 - */ -public class myOrbitBehavior extends ViewPlatformAWTBehavior { - - private Transform3D velocityTransform; - private Transform3D longditudeTransform; - private Transform3D rollTransform; - private Transform3D latitudeTransform; - private Transform3D rotateTransform = new Transform3D(); - - // needed for integrateTransforms but don't want to new every time - private Transform3D temp1 = new Transform3D(); - private Transform3D temp2 = new Transform3D(); - private Transform3D translation = new Transform3D(); - private Vector3d transVector = new Vector3d(); - private Vector3d distanceVector = new Vector3d(); - private Vector3d centerVector = new Vector3d(); - private Vector3d invertCenterVector = new Vector3d(); - - private double longditude = 0.0; - private double latitude = 0.0; - private double rollAngle = 0.0; - private double distanceFromCenter = 20.0; - - private final double MAX_MOUSE_ANGLE = Math.toRadians( 3 ); - private final double ZOOM_FACTOR = 1.0; - private Point3d rotationCenter = new Point3d(); - private Vector3d centerToView = new Vector3d(); - private Matrix3d rotMatrix = new Matrix3d(); - private Vector3d oldPos = new Vector3d(); - private Vector3d currentPos = new Vector3d(); - - private int mouseX = 0; - private int mouseY = 0; - - private Canvas3D canvas; - - private double rotXMul; - private double rotYMul; - private double transXMul; - private double transYMul; - private double zoomMul; - - private double rotXFactor = 1.0; - private double rotYFactor = 1.0; - private double transXFactor = 1.0; - private double transYFactor = 1.0; - private double zoomFactor = 1.0; - - private double xtrans = 0.0; - private double ytrans = 0.0; - - private boolean zoomEnabled = true; - private boolean rotateEnabled = true; - private boolean translateEnabled = true; - private boolean reverseRotate = false; - private boolean reverseTrans = false; - private boolean reverseZoom = false; - private boolean stopZoom = false; - private boolean proportionalZoom = false; - private double minRadius = 0.0; - private int leftButton = ROTATE; - private int rightButton = TRANSLATE; - private int middleButton = ZOOM; - - /** - * Constructor flag to reverse the rotate behavior - */ - public static final int REVERSE_ROTATE = 0x010; - - /** - * Constructor flag to reverse the translate behavior - */ - public static final int REVERSE_TRANSLATE = 0x020; - - /** - * Constructor flag to reverse the zoom behavior - */ - public static final int REVERSE_ZOOM = 0x040; - - /** - * Constructor flag to reverse all the behaviors - */ - public static final int REVERSE_ALL = (REVERSE_ROTATE | REVERSE_TRANSLATE | - REVERSE_ZOOM); - - /** - * Constructor flag that indicates zoom should stop when it reaches - * the minimum orbit radius set by setMinRadius(). The minimus - * radius default is 0.0. - */ - public static final int STOP_ZOOM = 0x100; - - /** - * Constructor flag to disable rotate - */ - public static final int DISABLE_ROTATE = 0x200; - - /** - * Constructor flag to disable translate - */ - public static final int DISABLE_TRANSLATE = 0x400; - - /** - * Constructor flag to disable zoom - */ - public static final int DISABLE_ZOOM = 0x800; - - /** - * Constructor flag to use proportional zoom, which determines - * how much you zoom based on view's distance from the center of - * rotation. The percentage of distance that the viewer zooms - * is determined by the zoom factor. - */ - public static final int PROPORTIONAL_ZOOM = 0x1000; - - /** - * Used to set the fuction for a mouse button to Rotate - */ - private static final int ROTATE = 0; - - /** - * Used to set the function for a mouse button to Translate - */ - private static final int TRANSLATE = 1; - - /** - * Used to set the function for a mouse button to Zoom - */ - private static final int ZOOM = 2; - - private static final double NOMINAL_ZOOM_FACTOR = .01; - private static final double NOMINAL_PZOOM_FACTOR = 1.0; - private static final double NOMINAL_ROT_FACTOR = .01; - private static final double NOMINAL_TRANS_FACTOR = .01; - - /** - * Creates a new myOrbitBehavior - * - * @param c The Canvas3D to add the behavior to - */ - public myOrbitBehavior(Canvas3D c) { - this(c, 0 ); - } - - /** - * Creates a new myOrbitBehavior - * - * @param c The Canvas3D to add the behavior to - * @param flags The option flags - */ - public myOrbitBehavior(Canvas3D c, int flags) { - super(c, MOUSE_LISTENER | MOUSE_MOTION_LISTENER | flags ); - canvas = c; - - if ((flags & DISABLE_ROTATE) != 0) rotateEnabled = false; - if ((flags & DISABLE_ZOOM) != 0) zoomEnabled = false; - if ((flags & DISABLE_TRANSLATE) != 0) translateEnabled = false; - if ((flags & REVERSE_TRANSLATE) != 0) reverseTrans = true; - if ((flags & REVERSE_ROTATE) != 0) reverseRotate = true; - if ((flags & REVERSE_ZOOM) != 0) reverseZoom = true; - if ((flags & STOP_ZOOM) != 0) stopZoom = true; - if ((flags & PROPORTIONAL_ZOOM) !=0) { - proportionalZoom = true; - } - - rotXMul = NOMINAL_ROT_FACTOR * rotXFactor; - rotYMul = NOMINAL_ROT_FACTOR * rotYFactor; - transXMul = NOMINAL_TRANS_FACTOR * transXFactor; - transYMul = NOMINAL_TRANS_FACTOR * transYFactor; - if (proportionalZoom) { - zoomMul = NOMINAL_PZOOM_FACTOR * zoomFactor; - } - else { - zoomMul = NOMINAL_ZOOM_FACTOR * zoomFactor; - } - - rollTransform = new Transform3D(); - latitudeTransform = new Transform3D(); - longditudeTransform = new Transform3D(); - targetTransform = new Transform3D(); - velocityTransform = new Transform3D(); - } - - protected synchronized void processAWTEvents( final java.awt.AWTEvent[] events ) { - motion = false; - for(int i=0; i - minRadius) { - distanceFromCenter -= (zoomMul*ychange* - distanceFromCenter/100.0); - } - else { - distanceFromCenter = minRadius; - } - } - else { - if ((distanceFromCenter + - (zoomMul*ychange*distanceFromCenter/100.0)) - > minRadius) { - distanceFromCenter += (zoomMul*ychange* - distanceFromCenter/100.0); - } - else { - distanceFromCenter = minRadius; - } - } - } - else { - if (stopZoom) { - if (reverseZoom) { - if ((distanceFromCenter - ychange*zoomMul) > minRadius) { - distanceFromCenter -= ychange*zoomMul; - } - else { - distanceFromCenter = minRadius; - } - } - else { - if ((distanceFromCenter + ychange*zoomMul) > minRadius) { - distanceFromCenter += ychange * zoomMul; - } - else { - distanceFromCenter = minRadius; - } - } - } - else { - if (reverseZoom) { - distanceFromCenter -= ychange*zoomMul; - } - else { - distanceFromCenter += ychange*zoomMul; - } - } - } - } - mouseX = evt.getX(); - mouseY = evt.getY(); - motion = true; - } else if (evt.getID()==MouseEvent.MOUSE_RELEASED ) { - } - - } - - /** - * Sets the ViewingPlatform for this behavior. This method is - * called by the ViewingPlatform. - * If a sub-calls overrides this method, it must call - * super.setViewingPlatform(vp). - * NOTE: Applications should not call this method. - */ - public void setViewingPlatform(ViewingPlatform vp) { - super.setViewingPlatform( vp ); - if (vp!=null) { - resetViewPosition(); - integrateTransforms(); - } - } - - /** - * Reset the orientation and distance of this behavior to the current - * values in the ViewPlatform Transform Group - */ - private void resetViewPosition() { - targetTG.getTransform( targetTransform ); - - targetTransform.get( rotMatrix, transVector ); - centerToView.sub( transVector, rotationCenter ); - distanceFromCenter = centerToView.length(); - - System.out.println - ( - "resetViewPosition : distanceFromCenter:" - + distanceFromCenter - ); - - targetTransform.get( rotMatrix ); - rotateTransform.set( rotMatrix ); - } - - protected synchronized void integrateTransforms() { - targetTransform.get( oldPos ); - - targetTG.getTransform( targetTransform ); - - targetTransform.get( currentPos ); - - // Check if the transform has been changed by another - // behavior - if ( !currentPos.equals(oldPos)) - resetViewPosition(); - - longditudeTransform.rotY( longditude ); - latitudeTransform.rotX( latitude ); - - rotateTransform.mul(rotateTransform, latitudeTransform); - rotateTransform.mul(rotateTransform, longditudeTransform); -// rotateTransform.mul(longditudeTransform, rotateTransform); - -// distanceVector.z = distanceFromCenter; -// temp1.set(distanceVector); - - temp1.set(distanceFromCenter); - temp1.mul(rotateTransform, temp1); - - // want to look at rotationCenter - transVector.x = rotationCenter.x + xtrans; - transVector.y = rotationCenter.y + ytrans; - transVector.z = rotationCenter.z; - translation.set(transVector); - targetTransform.mul(temp1, translation); - - // handle rotationCenter - temp1.set(centerVector); - temp1.mul(targetTransform); - - invertCenterVector.x = -centerVector.x; - invertCenterVector.y = -centerVector.y; - invertCenterVector.z = -centerVector.z; - - temp2.set(invertCenterVector); - targetTransform.mul(temp1, temp2); - - // renormalize for security - double scale = targetTransform.getScale(); - targetTransform.normalizeCP(); - targetTransform.set(scale); - - targetTG.setTransform(targetTransform); - - // reset yaw and pitch angles - longditude = 0.0; - latitude = 0.0; - } - - /** - * Sets the center around which the View rotates. - * The default is (0,0,0). - * @param center The Point3d to set the center of rotation to - */ - public synchronized void setRotationCenter(Point3d center) { - rotationCenter.x = center.x; - rotationCenter.y = center.y; - rotationCenter.z = center.z; - centerVector.set(rotationCenter); - } - - /** - * Places the value of the center around which the View rotates - * into the Point3d. - * @param center The Point3d - */ - public void getRotationCenter(Point3d center) { - center.x = rotationCenter.x; - center.y = rotationCenter.y; - center.z = rotationCenter.z; - } - - // TODO - // Need to add key factors for Rotate, Translate and Zoom - // Method calls should just update MAX_KEY_ANGLE, KEY_TRANSLATE and - // KEY_ZOOM - // - // Methods also need to correctly set sign of variables depending on - // the Reverse settings. - - /** - * Sets the rotation x and y factors. The factors are used to determine - * how many radians to rotate the view for each pixel of mouse movement. - * The view is rotated factor * 0.01 radians for each pixel of mouse - * movement. The default factor is 1.0. - * @param xfactor The x movement multiplier - * @param yfactor The y movement multiplier - **/ - public synchronized void setRotFactors(double xfactor, double yfactor) { - rotXFactor = xfactor; - rotYFactor = yfactor; - rotXMul = NOMINAL_ROT_FACTOR * xfactor; - rotYMul = NOMINAL_ROT_FACTOR * yfactor; - } - - /** - * Sets the rotation x factor. The factors are used to determine - * how many radians to rotate the view for each pixel of mouse movement. - * The view is rotated factor * 0.01 radians for each pixel of mouse - * movement. The default factor is 1.0. - * @param xfactor The x movement multiplier - **/ - public synchronized void setRotXFactor(double xfactor) { - rotXFactor = xfactor; - rotXMul = NOMINAL_ROT_FACTOR * xfactor; - } - - /** - * Sets the rotation y factor. The factors are used to determine - * how many radians to rotate the view for each pixel of mouse movement. - * The view is rotated factor * 0.01 radians for each pixel of mouse - * movement. The default factor is 1.0. - * @param yfactor The y movement multiplier - **/ - public synchronized void setRotYFactor(double yfactor) { - rotYFactor = yfactor; - rotYMul = NOMINAL_ROT_FACTOR * yfactor; - } - - /** - * Sets the translation x and y factors. The factors are used to determine - * how many units to translate the view for each pixel of mouse movement. - * The view is translated factor * 0.01 units for each pixel of mouse - * movement. The default factor is 1.0. - * @param xfactor The x movement multiplier - * @param yfactor The y movement multiplier - **/ - public synchronized void setTransFactors(double xfactor, - double yfactor) { - transXFactor = xfactor; - transYFactor = yfactor; - transXMul = NOMINAL_TRANS_FACTOR * xfactor; - transYMul = NOMINAL_TRANS_FACTOR * yfactor; - } - - /** - * Sets the translation x factor. The factors are used to determine - * how many units to translate the view for each pixel of mouse movement. - * The view is translated factor * 0.01 units for each pixel of mouse - * movement. The default factor is 1.0. - * @param xfactor The x movement multiplier - **/ - public synchronized void setTransXFactor(double xfactor) { - transXFactor = xfactor; - transXMul = NOMINAL_TRANS_FACTOR * xfactor; - } - - /** - * Sets the translation y factor. The factors are used to determine - * how many units to translate the view for each pixel of mouse movement. - * The view is translated factor * 0.01 units for each pixel of mouse - * movement. The default factor is 1.0. - * @param yfactor The y movement multiplier - **/ - public synchronized void setTransYFactor(double yfactor) { - transYFactor = yfactor; - transYMul = NOMINAL_TRANS_FACTOR * yfactor; - } - - /** - * Sets the zoom factor. The factor is used to determine how many - * units to zoom the view for each pixel of mouse movement. - * The view is zoomed factor * 0.01 units for each pixel of mouse - * movement. For proportional zoom, the view is zoomed factor * 1% - * of the distance from the center of rotation for each pixel of - * mouse movement. The default factor is 1.0. - * @param zfactor The movement multiplier - */ - public synchronized void setZoomFactor(double zfactor) { - zoomFactor = zfactor; - if (proportionalZoom) { - zoomMul = NOMINAL_PZOOM_FACTOR * zfactor; - } - else { - zoomMul = NOMINAL_ZOOM_FACTOR * zfactor; - } - } - - /** - * Returns the x rotation movement multiplier - * @return The movement multiplier for x rotation - */ - public double getRotXFactor() { - return rotXFactor; - } - - /** - * Returns the y rotation movement multiplier - * @return The movement multiplier for y rotation - */ - public double getRotYFactor() { - return rotYFactor; - } - - /** - * Returns the x translation movement multiplier - * @return The movement multiplier for x translation - */ - public double getTransXFactor() { - return transXFactor; - } - - /** - * Returns the y translation movement multiplier - * @return The movement multiplier for y translation - */ - public double getTransYFactor() { - return transYFactor; - } - - /** - * Returns the zoom movement multiplier - * @return The movement multiplier for zoom - */ - public double getZoomFactor() { - return zoomFactor; - } - - /** - * Enables or disables rotation. The default is true. - * @param enabled true or false to enable or disable rotate - */ - public synchronized void setRotateEnable(boolean enabled) { - rotateEnabled = enabled; - } - - /** - * Enables or disables zoom. The default is true. - * @param enabled true or false to enable or disable zoom - */ - public synchronized void setZoomEnable(boolean enabled) { - zoomEnabled = enabled; - } - - /** - * Enables or disables translate. The default is true. - * @param enabled true or false to enable or disable translate - */ - public synchronized void setTranslateEnable(boolean enabled) { - translateEnabled = enabled; - } - - /** - * Retrieves the state of rotate enabled - * @return the rotate enable state - */ - public boolean getRotateEnable() { - return rotateEnabled; - } - - /** - * Retrieves the state of zoom enabled - * @return the zoom enable state - */ - public boolean getZoomEnable() { - return zoomEnabled; - } - - /** - * Retrieves the state of translate enabled - * @return the translate enable state - */ - public boolean getTranslateEnable() { - return translateEnabled; - } - - boolean rotate(MouseEvent evt) { - if (rotateEnabled) { - if ((leftButton == ROTATE) && - (!evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((middleButton == ROTATE) && - (evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((rightButton == ROTATE) && - (!evt.isAltDown() && evt.isMetaDown())) { - return true; - } - } - return false; - } - - boolean zoom(MouseEvent evt) { - if (zoomEnabled) { - if ((leftButton == ZOOM) && - (!evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((middleButton == ZOOM) && - (evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((rightButton == ZOOM) && - (!evt.isAltDown() && evt.isMetaDown())) { - return true; - } - } - return false; - } - - boolean translate(MouseEvent evt) { - if (translateEnabled) { - if ((leftButton == TRANSLATE) && - (!evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((middleButton == TRANSLATE) && - (evt.isAltDown() && !evt.isMetaDown())) { - return true; - } - if ((rightButton == TRANSLATE) && - (!evt.isAltDown() && evt.isMetaDown())) { - return true; - } - } - return false; - } - - /** - * Sets the minimum radius for the myOrbitBehavior. The zoom will - * stop at this distance from the center of rotation. The default - * is 0.0. The minimum will have no affect if the STOP_ZOOM constructor - * flag is not set. - * @param r the minimum radius - * @exception IllegalArgumentException if the radius is less than 0.0 - */ - public synchronized void setMinRadius(double r) { - if (r < 0.0) { - throw new IllegalArgumentException(J3dUtilsI18N.getString("myOrbitBehavior1")); - } - minRadius = r; - } - - /** - * Returns the minimum orbit radius. The zoom will stop at this distance - * from the center of rotation if the STOP_ZOOM constructor flag is set. - * @return the minimum radius - */ - public double getMinRadius() { - return minRadius; - } - - -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/.nbattrs deleted file mode 100644 index ae8004cc03..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/.nbattrs +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.form deleted file mode 100644 index f749f80936..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.form +++ /dev/null @@ -1,591 +0,0 @@ - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.java deleted file mode 100644 index 527d0b176b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessEditor.java +++ /dev/null @@ -1,1556 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ProcessManagement; - - -import java.awt.Point; -import java.awt.event.ActionEvent; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; -import java.util.Vector; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; -import javax.swing.event.ListSelectionListener; -import javax.swing.event.ListSelectionEvent; - -import org.omg.CORBA.StringHolder; - -import FoamX.App; -import FoamX.Editors.StringListEditor; -import FoamX.Util.TableSorter; - -import FoamXServer.*; -import FoamXServer.CaseBrowser.ICaseBrowser; - -public class ProcessEditor extends javax.swing.JDialog -{ - //-------------------------------------------------------------------------- - - protected java.awt.Frame parent_; - protected ICaseBrowser caseBrowser_; - protected RunningProcessModel runningModel_; - protected FinishedProcessModel finishedModel_; - protected String licenceDir_; - - protected TableSorter runningSorter_; - protected TableSorter finishedSorter_; - - //-------------------------------------------------------------------------- - /** Creates new Process Editor */ - public ProcessEditor(java.awt.Frame parent, ICaseBrowser caseBrowser) - { - super(parent, "Process Editor", false); // non Modal. - - try - { - parent_ = parent; - - // Initialise the process Manager - caseBrowser_ = caseBrowser; - - // Initialise the table models and associated sorters - runningModel_ = new RunningProcessModel(caseBrowser_); - finishedModel_ = new FinishedProcessModel(caseBrowser_); - runningSorter_ = new TableSorter(runningModel_); - finishedSorter_ = new TableSorter(finishedModel_); - - initComponents(); - - - // Make sorters lister to tableheader clicks - runningSorter_.addMouseListenerToHeaderInTable(runningTable_); - finishedSorter_.addMouseListenerToHeaderInTable(finishedTable_); - - // Set licence dir - StringHolder holder = new StringHolder(); - caseBrowser.getEnv("FOAM_JOB_DIR", holder); - licenceDir_ = holder.value; - - // Start off with disabled job-wise buttons - runInfoButton_.setEnabled(false); - endButton_.setEnabled(false); - endNowButton_.setEnabled(false); - killButton_.setEnabled(false); - suspButton_.setEnabled(false); - contButton_.setEnabled(false); - finInfoButton_.setEnabled(false); - removeButton_.setEnabled(false); - - // Set status of representation checkboxes - myRunsBox_.setSelected(true); - myRunsBox_ActionPerformed - ( - new java.awt.event.ActionEvent - ( - this, - java.awt.event.ActionEvent.ACTION_PERFORMED, - "" - ) - ); - compactBox_.setSelected(false); - - // Initialise models - caseBrowser_.refreshJobsLists(); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - - // Title - setLicLabel(); - - // Set initial size of individual columns. - initColumnSizes(runningTable_, runningModel_); - initTableSize(runningTable_, runningModel_); - initColumnSizes(finishedTable_, finishedModel_); - initTableSize(finishedTable_, finishedModel_); - - tabbedPanel_.setSelectedComponent(finPanel_); - - repaint(); - - // tabbedPanel_.setSelectedComponent(runPanel_); - // repaint(); - - // runningTable_.getColumn - // ( - // runningModel_.getColumnName(ProcessModel.STAT_INDEX) - // ).setCellRenderer(new StatusCellRenderer()); - // finishedTable_.getColumn - // ( - // finishedModel_.getColumnName(ProcessModel.STAT_INDEX) - // ).setCellRenderer(new StatusCellRenderer()); - - - // Listen out for selection events and enable the appropriate - // buttons. - - runningTable_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - enableRunButtons(); - } - } - ); - - finishedTable_.getSelectionModel().addListSelectionListener - ( - new ListSelectionListener() - { - public void valueChanged(ListSelectionEvent evt) - { - enableFinButtons(); - } - } - ); - } - catch(FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch(FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - } - - //-------------------------------------------------------------------------- - /** Confirmation dialog helper */ - private boolean askConfirm(String mesg) - { - return - JOptionPane.showConfirmDialog - ( - this, - mesg, - "Confirmation Dialog", - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE - ) == - JOptionPane.OK_OPTION; - } - - //-------------------------------------------------------------------------- - /** Set licLabel textField to show number of licenses */ - private void setLicLabel() - { - licenceLabel_.setText - ( - "jobControl : " + licenceDir_ - + " (" + runningModel_.getNJobs() + " jobs" - + ", " + runningModel_.getNCountedProcs() + " floatlicensed jobs)" - ); - } - - - //-------------------------------------------------------------------------- - /** Size columns. Uses longValues() method from table */ - - static private void initColumnSizes(JTable table, ProcessModel model) - { - TableColumn column = null; - java.awt.Component comp = null; - int headerWidth = 0; - int cellWidth = 0; - Object[] longValues = model.getLongValues(); - - for (int i = 0; i < model.getColumnCount(); i++) - { - column = table.getColumnModel().getColumn(i); - - // comp = column.getDefaultRenderer(); - // headerWidth = comp.getPreferredSize().width; - comp = - table.getDefaultRenderer(model.getColumnClass(i)). - getTableCellRendererComponent - ( - table, longValues[i], - false, false, 0, i - ); - cellWidth = comp.getPreferredSize().width; - - // column.setPreferredWidth(Math.max(headerWidth, cellWidth)); - column.setPreferredWidth(cellWidth); - } - } - - //-------------------------------------------------------------------------- - /** Size table itself */ - - static private void initTableSize(JTable table, ProcessModel model) - { - int height = table.getRowHeight() * model.getRowCount(); - - table.setPreferredSize - ( - new java.awt.Dimension(table.getWidth(), height) - ); - table.revalidate(); - } - - //-------------------------------------------------------------------------- - /** selectionhandler for runningTable */ - private void enableRunButtons() - { - boolean validSelection = - !runningTable_.getSelectionModel().isSelectionEmpty(); - - runInfoButton_.setEnabled(validSelection); - endNowButton_.setEnabled(validSelection); - endButton_.setEnabled(validSelection); - killButton_.setEnabled(validSelection); - suspButton_.setEnabled(validSelection); - contButton_.setEnabled(validSelection); - } - - //-------------------------------------------------------------------------- - /** selectionhandler for finishedTable */ - private void enableFinButtons() - { - boolean validSelection = - !finishedTable_.getSelectionModel().isSelectionEmpty(); - finInfoButton_.setEnabled(validSelection); - removeButton_.setEnabled(validSelection); - } - -// //-------------------------------------------------------------------------- -// /** Clicked on entry. Detect double clicks. */ -// private void onJobClicked(MouseEvent e) -// { -// if (e.getClickCount() == 2) -// { -// JTable table = (JTable)e.getComponent(); -// Point origin = e.getPoint(); -// int row = table.rowAtPoint(origin); -// if (row != -1) -// { -// TableSorter sortedModel = (TableSorter)table.getModel(); -// ProcessModel model = (ProcessModel)sortedModel.getModel(); -// -// displayJobInfo(model, row); -// } -// } -// } - - - //-------------------------------------------------------------------------- - /** Clicked on entry. Detect double clicks. */ - private void displayJobInfo(ProcessModel model, int row) - { - int size = model.getColumnCount(); - Vector labels = new Vector(size); - Vector values = new Vector(size); - for (int i = 0; i < size; i++) - { - labels.addElement(model.getColumnName(i)); - values.addElement(model.getValueAt(row, i)); - } - - StringListEditor dlg = - new StringListEditor - ( - parent_, - "Job Info", - labels, values - ); - - dlg.setVisible(true); - } - - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - headerPanel_ = new javax.swing.JPanel(); - licenceLabel_ = new javax.swing.JLabel(); - tabbedPanel_ = new javax.swing.JTabbedPane(); - runPanel_ = new javax.swing.JPanel(); - runAllPanel_ = new java.awt.Panel(); - readButton_ = new javax.swing.JButton(); - statusButton_ = new javax.swing.JButton(); - purgeButton_ = new javax.swing.JButton(); - runPidPanel_ = new java.awt.Panel(); - runInfoButton_ = new javax.swing.JButton(); - endNowButton_ = new javax.swing.JButton(); - endButton_ = new javax.swing.JButton(); - killButton_ = new javax.swing.JButton(); - suspButton_ = new javax.swing.JButton(); - contButton_ = new javax.swing.JButton(); - runTableScrollPane_ = new javax.swing.JScrollPane(); - runningTable_ = new javax.swing.JTable(); - finPanel_ = new javax.swing.JPanel(); - finAllPanel_ = new java.awt.Panel(); - purgeOldButton_ = new javax.swing.JButton(); - finPidPanel_ = new java.awt.Panel(); - finInfoButton_ = new javax.swing.JButton(); - removeButton_ = new javax.swing.JButton(); - finTableScrollPane_ = new javax.swing.JScrollPane(); - finishedTable_ = new javax.swing.JTable(); - closeButtonPanel_ = new javax.swing.JPanel(); - myRunsBox_ = new javax.swing.JCheckBox(); - compactBox_ = new javax.swing.JCheckBox(); - closeButton_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setTitle("Process Editor"); - setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); - setName("Process Editor"); - setFont(new java.awt.Font("Dialog", 0, 10)); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - headerPanel_.setPreferredSize(new java.awt.Dimension(172, 23)); - headerPanel_.setFont(new java.awt.Font("Dialog", 1, 12)); - licenceLabel_.setText("/aa/bb/cc/foam/licences"); - licenceLabel_.setForeground(java.awt.Color.black); - licenceLabel_.setFont(new java.awt.Font("Dialog", 0, 12)); - licenceLabel_.setOpaque(true); - headerPanel_.add(licenceLabel_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.gridwidth = 2; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - getContentPane().add(headerPanel_, gridBagConstraints1); - - tabbedPanel_.setPreferredSize(new java.awt.Dimension(735, 286)); - runPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - runPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - runPanel_.setToolTipText("Running Jobs"); - runPanel_.setPreferredSize(new java.awt.Dimension(730, 161)); - runPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - runAllPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints3; - - runAllPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - runAllPanel_.setName("All Processes"); - runAllPanel_.setBackground(new java.awt.Color(204, 204, 204)); - runAllPanel_.setForeground(java.awt.Color.black); - readButton_.setToolTipText("Reread licence directory"); - readButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - readButton_.setText("read"); - readButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnRead(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 0; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - runAllPanel_.add(readButton_, gridBagConstraints3); - - statusButton_.setToolTipText("Contact machines to update status"); - statusButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - statusButton_.setText("status"); - statusButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnStatus(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 1; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - runAllPanel_.add(statusButton_, gridBagConstraints3); - - purgeButton_.setToolTipText("Remove non-running jobs"); - purgeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - purgeButton_.setText("purge"); - purgeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnPurge(evt); - } - }); - - gridBagConstraints3 = new java.awt.GridBagConstraints(); - gridBagConstraints3.gridx = 2; - gridBagConstraints3.gridy = 0; - gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; - runAllPanel_.add(purgeButton_, gridBagConstraints3); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - runPanel_.add(runAllPanel_, gridBagConstraints2); - - runPidPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints4; - - runPidPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - runPidPanel_.setName("Single Process"); - runPidPanel_.setBackground(new java.awt.Color(204, 204, 204)); - runPidPanel_.setForeground(java.awt.Color.black); - runInfoButton_.setToolTipText("Display job info"); - runInfoButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - runInfoButton_.setText("Info"); - runInfoButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - onRunInfo(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 0; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(runInfoButton_, gridBagConstraints4); - - endNowButton_.setToolTipText("Stop job at end of current time step (needs runTimeModifiable)"); - endNowButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - endNowButton_.setText("endNow"); - endNowButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - onEndNow(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 1; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(endNowButton_, gridBagConstraints4); - - endButton_.setToolTipText("Stop job at next dump time step (needs runTimeModifiable)"); - endButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - endButton_.setText("end"); - endButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnEnd(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 2; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(endButton_, gridBagConstraints4); - - killButton_.setToolTipText("Kill running job"); - killButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - killButton_.setText("kill"); - killButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnKill(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 3; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(killButton_, gridBagConstraints4); - - suspButton_.setToolTipText("Suspend running job"); - suspButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - suspButton_.setText("susp"); - suspButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnSusp(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 4; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(suspButton_, gridBagConstraints4); - - contButton_.setToolTipText("Continue suspended job"); - contButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - contButton_.setText("cont"); - contButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnCont(evt); - } - }); - - gridBagConstraints4 = new java.awt.GridBagConstraints(); - gridBagConstraints4.gridx = 5; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL; - runPidPanel_.add(contButton_, gridBagConstraints4); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST; - runPanel_.add(runPidPanel_, gridBagConstraints2); - - runTableScrollPane_.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); - runTableScrollPane_.setPreferredSize(new java.awt.Dimension(700, 200)); - runTableScrollPane_.setMinimumSize(new java.awt.Dimension(700, 200)); - runTableScrollPane_.setFont(new java.awt.Font("Dialog", 0, 10)); - runTableScrollPane_.setAutoscrolls(true); - runningTable_.setModel(runningSorter_); - runningTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - runningTable_.setPreferredSize(new java.awt.Dimension(700, 200)); - runningTable_.setMaximumSize(new java.awt.Dimension(30000, 30000)); - runningTable_.setPreferredScrollableViewportSize(new java.awt.Dimension(0, 0)); - runningTable_.setMinimumSize(new java.awt.Dimension(700, 200)); - runTableScrollPane_.setViewportView(runningTable_); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.gridwidth = 2; - gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST; - gridBagConstraints2.weightx = 1.0; - gridBagConstraints2.weighty = 1.0; - runPanel_.add(runTableScrollPane_, gridBagConstraints2); - - tabbedPanel_.addTab("runningJobs", runPanel_); - - finPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints5; - - finPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - finPanel_.setToolTipText("Finished Jobs"); - finPanel_.setPreferredSize(new java.awt.Dimension(730, 161)); - finPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - finAllPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints6; - - finAllPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - finAllPanel_.setName("All Processes"); - finAllPanel_.setBackground(new java.awt.Color(204, 204, 204)); - finAllPanel_.setForeground(java.awt.Color.black); - purgeOldButton_.setToolTipText("Remove old entries"); - purgeOldButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - purgeOldButton_.setText("purge"); - purgeOldButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnPurgeOld(evt); - } - }); - - gridBagConstraints6 = new java.awt.GridBagConstraints(); - gridBagConstraints6.gridx = 0; - gridBagConstraints6.gridy = 0; - gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL; - finAllPanel_.add(purgeOldButton_, gridBagConstraints6); - - gridBagConstraints5 = new java.awt.GridBagConstraints(); - gridBagConstraints5.gridx = 0; - gridBagConstraints5.gridy = 0; - gridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints5.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints5.anchor = java.awt.GridBagConstraints.WEST; - finPanel_.add(finAllPanel_, gridBagConstraints5); - - finPidPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints7; - - finPidPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - finPidPanel_.setName("Single Procses"); - finPidPanel_.setBackground(new java.awt.Color(204, 204, 204)); - finPidPanel_.setForeground(java.awt.Color.black); - finInfoButton_.setToolTipText("Display job info"); - finInfoButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - finInfoButton_.setText("Info"); - finInfoButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - onFinInfo(evt); - } - }); - - gridBagConstraints7 = new java.awt.GridBagConstraints(); - gridBagConstraints7.gridx = 0; - gridBagConstraints7.gridy = 0; - gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL; - finPidPanel_.add(finInfoButton_, gridBagConstraints7); - - removeButton_.setToolTipText("Remove entry"); - removeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - removeButton_.setText("remove"); - removeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - onRemove(evt); - } - }); - - gridBagConstraints7 = new java.awt.GridBagConstraints(); - gridBagConstraints7.gridx = 1; - gridBagConstraints7.gridy = 0; - gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL; - finPidPanel_.add(removeButton_, gridBagConstraints7); - - gridBagConstraints5 = new java.awt.GridBagConstraints(); - gridBagConstraints5.gridx = 1; - gridBagConstraints5.gridy = 0; - gridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints5.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints5.anchor = java.awt.GridBagConstraints.EAST; - finPanel_.add(finPidPanel_, gridBagConstraints5); - - finTableScrollPane_.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); - finTableScrollPane_.setPreferredSize(new java.awt.Dimension(700, 200)); - finTableScrollPane_.setMinimumSize(new java.awt.Dimension(700, 200)); - finTableScrollPane_.setFont(new java.awt.Font("Dialog", 0, 10)); - finTableScrollPane_.setAutoscrolls(true); - finishedTable_.setModel(finishedSorter_); - finishedTable_.setFont(new java.awt.Font("Dialog", 0, 10)); - finishedTable_.setPreferredSize(new java.awt.Dimension(700, 200)); - finishedTable_.setMaximumSize(new java.awt.Dimension(30000, 30000)); - finishedTable_.setPreferredScrollableViewportSize(new java.awt.Dimension(0, 0)); - finishedTable_.setMinimumSize(new java.awt.Dimension(700, 200)); - finTableScrollPane_.setViewportView(finishedTable_); - - gridBagConstraints5 = new java.awt.GridBagConstraints(); - gridBagConstraints5.gridx = 0; - gridBagConstraints5.gridy = 1; - gridBagConstraints5.gridwidth = 2; - gridBagConstraints5.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints5.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTHWEST; - gridBagConstraints5.weightx = 1.0; - gridBagConstraints5.weighty = 1.0; - finPanel_.add(finTableScrollPane_, gridBagConstraints5); - - tabbedPanel_.addTab("finishedJobs", finPanel_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.gridwidth = 2; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(tabbedPanel_, gridBagConstraints1); - - closeButtonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - closeButtonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - closeButtonPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - myRunsBox_.setToolTipText("Show my jobs only"); - myRunsBox_.setFont(new java.awt.Font("Dialog", 0, 10)); - myRunsBox_.setText("My Jobs"); - myRunsBox_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - myRunsBox_ActionPerformed(evt); - } - }); - - closeButtonPanel_.add(myRunsBox_); - - compactBox_.setToolTipText("Compact Representation"); - compactBox_.setFont(new java.awt.Font("Dialog", 0, 10)); - compactBox_.setText("Compact"); - compactBox_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - compactBox_ActionPerformed(evt); - } - }); - - closeButtonPanel_.add(compactBox_); - - closeButton_.setToolTipText("Close Panel"); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - closeButtonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 2; - gridBagConstraints1.gridwidth = 2; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - getContentPane().add(closeButtonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(750, 380)); - setLocation((screenSize.width-750)/2,(screenSize.height-380)/2); - }//GEN-END:initComponents - - private void onRunInfo(java.awt.event.ActionEvent evt)//GEN-FIRST:event_onRunInfo - {//GEN-HEADEREND:event_onRunInfo - // Add your handling code here: - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - if (startRow == endRow) - { - displayJobInfo(runningModel_, startRow); - } - }//GEN-LAST:event_onRunInfo - - private void onFinInfo(java.awt.event.ActionEvent evt)//GEN-FIRST:event_onFinInfo - {//GEN-HEADEREND:event_onFinInfo - // Add your handling code here: - int startRow = finishedTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = finishedTable_.getSelectionModel().getMaxSelectionIndex(); - if (startRow == endRow) - { - displayJobInfo(finishedModel_, startRow); - } - }//GEN-LAST:event_onFinInfo - - private void onEndNow(java.awt.event.ActionEvent evt)//GEN-FIRST:event_onEndNow - {//GEN-HEADEREND:event_onEndNow - // Add your handling code here: - - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - - try - { - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = runningModel_.mkJobID(row); - - String caseRoot = runningModel_.caseRoot(row); - String caseName = runningModel_.caseName(row); - - if ((caseRoot.length() == 0) || (caseName.length() == 0)) - { - JOptionPane.showConfirmDialog - ( - this, - "Process " - + runningModel_.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )\n" - + "has empty root or case and can not be 'ended'", - "Information Dialog", - JOptionPane.DEFAULT_OPTION, - JOptionPane.INFORMATION_MESSAGE - ); - - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - else if - ( - askConfirm - ( - "Ok to end process " - + runningModel_.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )" - + "\n(This will stop the job after the next time step)" - ) - ) - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - caseBrowser_.end - ( - jobID, - caseRoot, - caseName, - true // end now - ); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - } - else - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - endNowButton_.setEnabled(false); - - }//GEN-LAST:event_onEndNow - - private void compactBox_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_compactBox_ActionPerformed - {//GEN-HEADEREND:event_compactBox_ActionPerformed - // Add your handling code here: - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - initTableSize(finishedTable_, finishedModel_); - finishedTable_.repaint(); - }//GEN-LAST:event_compactBox_ActionPerformed - - private void myRunsBox_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_myRunsBox_ActionPerformed - {//GEN-HEADEREND:event_myRunsBox_ActionPerformed - // Add your handling code here: - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - initTableSize(finishedTable_, finishedModel_); - finishedTable_.repaint(); - }//GEN-LAST:event_myRunsBox_ActionPerformed - - private void onRemove(java.awt.event.ActionEvent evt)//GEN-FIRST:event_onRemove - {//GEN-HEADEREND:event_onRemove - // Add your handling code here: - try - { - int startRow = finishedTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = finishedTable_.getSelectionModel().getMaxSelectionIndex(); - - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = finishedModel_.mkJobID(row); - - caseBrowser_.purgeFinishedJob(jobID); - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - - finishedTable_.getSelectionModel().clearSelection(); - - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - initTableSize(finishedTable_, finishedModel_); - finishedTable_.repaint(); - - removeButton_.setEnabled(false); - - }//GEN-LAST:event_onRemove - - private void OnPurgeOld(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnPurgeOld - {//GEN-HEADEREND:event_OnPurgeOld - // Add your handling code here: - try - { - caseBrowser_.purgeFinishedJobs(7); - - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - - initTableSize(finishedTable_, finishedModel_); - finishedTable_.repaint(); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - }//GEN-LAST:event_OnPurgeOld - - private void OnCont(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnCont - {//GEN-HEADEREND:event_OnCont - // Add your handling code here: - - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - - try - { - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = runningModel_.mkJobID(row); - - if - ( - askConfirm - ( - "Ok to continue process " - + ProcessModel.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )" - ) - ) - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - caseBrowser_.cont(jobID); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - } - else - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - contButton_.setEnabled(false); - - }//GEN-LAST:event_OnCont - - private void OnSusp(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnSusp - {//GEN-HEADEREND:event_OnSusp - // Add your handling code here: - - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - - try - { - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = runningModel_.mkJobID(row); - - if - ( - askConfirm - ( - "Ok to suspend process " - + ProcessModel.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )" - ) - ) - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - caseBrowser_.suspend(jobID); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - } - else - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - suspButton_.setEnabled(false); - - }//GEN-LAST:event_OnSusp - - private void OnKill(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnKill - {//GEN-HEADEREND:event_OnKill - // Add your handling code here: - - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - - try - { - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = runningModel_.mkJobID(row); - - if - ( - askConfirm - ( - "Ok to kill process " - + ProcessModel.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )" - ) - ) - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - caseBrowser_.kill(jobID); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - } - else - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - initTableSize(runningTable_, runningModel_); - initTableSize(finishedTable_, finishedModel_); - runningTable_.repaint(); - - killButton_.setEnabled(false); - - }//GEN-LAST:event_OnKill - - private void OnEnd(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnEnd - {//GEN-HEADEREND:event_OnEnd - // Add your handling code here: - - int startRow = runningTable_.getSelectionModel().getMinSelectionIndex(); - int endRow = runningTable_.getSelectionModel().getMaxSelectionIndex(); - - try - { - for (int row = startRow; row <= endRow; row++) - { - JobID jobID = runningModel_.mkJobID(row); - - String caseRoot = runningModel_.caseRoot(row); - String caseName = runningModel_.caseName(row); - - if ((caseRoot.length() == 0) || (caseName.length() == 0)) - { - JOptionPane.showConfirmDialog - ( - this, - "Process " - + runningModel_.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )\n" - + "has empty root or case and can not be 'ended'", - "Information Dialog", - JOptionPane.DEFAULT_OPTION, - JOptionPane.INFORMATION_MESSAGE - ); - - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - else if - ( - askConfirm - ( - "Ok to end process " - + runningModel_.toString(jobID) - + "\n( " - + runningModel_.mkCodeString(row) - + " )" - + "\n(This will stop the job when next writing results)" - ) - ) - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - caseBrowser_.end - ( - jobID, - runningModel_.caseRoot(row), - runningModel_.caseName(row), - false // end at next write - ); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - } - else - { - runningTable_.getSelectionModel().removeSelectionInterval - ( - row, - row - ); - } - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - endButton_.setEnabled(false); - - }//GEN-LAST:event_OnEnd - - private void OnPurge(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnPurge - {//GEN-HEADEREND:event_OnPurge - // Add your handling code here: - try - { - caseBrowser_.purgeRunningJobs(); - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - }//GEN-LAST:event_OnPurge - - private void OnStatus(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnStatus - {//GEN-HEADEREND:event_OnStatus - // Add your handling code here: - if - ( - askConfirm - ( - "Ok to update status?\n" + - "(This will contact licensed hosts\n" + - " and might take some time)" - ) - ) - { - // Update status on caseBrowser - try - { - caseBrowser_.refreshJobsLists(); - caseBrowser_.checkRunningJobs(); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - catch (FoamXSYSError sysErr) - { - App.handleAllExceptions(sysErr); - } - - // Reload data - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - - runningTable_.updateUI(); - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - } - - }//GEN-LAST:event_OnStatus - - private void OnRead(java.awt.event.ActionEvent evt)//GEN-FIRST:event_OnRead - {//GEN-HEADEREND:event_OnRead - // Add your handling code here: - - try - { - caseBrowser_.refreshJobsLists(); - - runningModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - setLicLabel(); - finishedModel_.refresh - ( - myRunsBox_.isSelected(), - compactBox_.isSelected() - ); - - runningTable_.updateUI(); - finishedTable_.updateUI(); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - - initTableSize(runningTable_, runningModel_); - runningTable_.repaint(); - - initTableSize(finishedTable_, finishedModel_); - }//GEN-LAST:event_OnRead - - - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void OnClose (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - - // Close the dialog. - setVisible(false); - dispose(); - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel headerPanel_; - private javax.swing.JLabel licenceLabel_; - private javax.swing.JTabbedPane tabbedPanel_; - private javax.swing.JPanel runPanel_; - private java.awt.Panel runAllPanel_; - private javax.swing.JButton readButton_; - private javax.swing.JButton statusButton_; - private javax.swing.JButton purgeButton_; - private java.awt.Panel runPidPanel_; - private javax.swing.JButton runInfoButton_; - private javax.swing.JButton endNowButton_; - private javax.swing.JButton endButton_; - private javax.swing.JButton killButton_; - private javax.swing.JButton suspButton_; - private javax.swing.JButton contButton_; - private javax.swing.JScrollPane runTableScrollPane_; - private javax.swing.JTable runningTable_; - private javax.swing.JPanel finPanel_; - private java.awt.Panel finAllPanel_; - private javax.swing.JButton purgeOldButton_; - private java.awt.Panel finPidPanel_; - private javax.swing.JButton finInfoButton_; - private javax.swing.JButton removeButton_; - private javax.swing.JScrollPane finTableScrollPane_; - private javax.swing.JTable finishedTable_; - private javax.swing.JPanel closeButtonPanel_; - private javax.swing.JCheckBox myRunsBox_; - private javax.swing.JCheckBox compactBox_; - private javax.swing.JButton closeButton_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - - private class RunningProcessModel - extends ProcessModel - { - public RunningProcessModel(ICaseBrowser caseBrowser) - { - super(caseBrowser); - } - - public void refresh(boolean myJobsOnly, boolean compact) - { - try - { - ICaseBrowser caseBrowser = getCaseBrowser(); - StringHolder holder = new StringHolder(); - caseBrowser.getUserName(holder); - - JobDescriptor[] jobs = caseBrowser.runningJobs(); - - setData(myJobsOnly, compact, holder.value, jobs); - fireTableChanged(new TableModelEvent(this)); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - } - } - - private class FinishedProcessModel - extends ProcessModel - { - public FinishedProcessModel(ICaseBrowser caseBrowser) - { - super(caseBrowser); - } - - public void refresh(boolean myJobsOnly, boolean compact) - { - try - { - ICaseBrowser caseBrowser = getCaseBrowser(); - StringHolder holder = new StringHolder(); - caseBrowser.getUserName(holder); - - JobDescriptor[] jobs = getCaseBrowser().finishedJobs(); - - setData(myJobsOnly, compact, holder.value, jobs); - fireTableChanged(new TableModelEvent(this)); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessModel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessModel.java deleted file mode 100644 index e999eef0dc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ProcessManagement/ProcessModel.java +++ /dev/null @@ -1,342 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ProcessManagement; - -import javax.swing.table.*; -import javax.swing.event.TableModelListener; -import javax.swing.event.TableModelEvent; - -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.*; - -public class ProcessModel - extends AbstractTableModel - implements TableModelListener -{ - static public int STAT_INDEX = 0, USER_INDEX = 1, CASE_INDEX = 2; - static public int HOST_INDEX = 3, PID_INDEX = 4, NPROC_INDEX = 5; - static public int START_INDEX = 6, END_INDEX = 7, CODE_INDEX = 8; - static public int ROOT_INDEX = 9, NCNTPROC_INDEX = 10; - static public int MAX_INDEX = 10; - - static private String[] columnNames_ = - { - "Stat", "User", "Case", "Host", "PID", "nCpu", - "start", "end", "code", "root", "nLic" - }; - - /** Data used to size table columns */ - static private Object[] longValues_ = - { - "ENDING", // max status width - "someus", // max user width - "12346789", // case - "12345678", // hostname - "12345678", // pid - "9", // nProcs - "20 Feb ", // start data - "20 Feb ", // end data - "icoFoamJunk", // code - "someRoot/aaaa/bbb/ccc", // root - "1" // nCountedProcs - }; - - private String[] statusNames_; - - protected ICaseBrowser caseBrowser_; - - // Actual jobControl data - protected Object[][] data_; - - // Sum of all jobs - protected int nJobs_; - // Sum of all floatlicensed processes - protected int nCountedProcs_; - - - //-------------------------------------------------------------------------- - /** Creates new empty ProcessModel. Only for variable initialisation */ - public ProcessModel() - { - } - - - //-------------------------------------------------------------------------- - /** Creates new ProcessModel */ - public ProcessModel(ICaseBrowser caseBrowser) - { - caseBrowser_ = caseBrowser; - - nJobs_ = 0; - nCountedProcs_ = 0; - - statusNames_ = new String[7]; - statusNames_[FoamXServer.JobStatus.JOB_UNDEFINED.value()] = "OTHR"; - statusNames_[FoamXServer.JobStatus.JOB_LAUNCHING.value()] = "LAUNCH"; - statusNames_[FoamXServer.JobStatus.JOB_RUNNING.value()] = "RUNN"; - statusNames_[FoamXServer.JobStatus.JOB_STOPPING.value()] = "ENDING"; - statusNames_[FoamXServer.JobStatus.JOB_SUSPENDED.value()] = "SUSP"; - statusNames_[FoamXServer.JobStatus.JOB_FINISHED.value()] = "FINI"; - statusNames_[FoamXServer.JobStatus.JOB_ABORTED.value()] = "ABRT"; - - refresh(false, false); - } - - - //-------------------------------------------------------------------------- - /** refresh data from caseBrowser. Overloaded */ - public void refresh(boolean myJobsOnly, boolean compact) - { - System.out.println("ProcessModel::refresh should never be called"); - } - - public Object[] getLongValues() - { - return longValues_; - } - - public int getNJobs() - { - return nJobs_; - } - - public int getNCountedProcs() - { - return nCountedProcs_; - } - - - //-------------------------------------------------------------------------- - /** copy from jobDescriptor[] into data[] array */ - protected void setData - ( - boolean myJobsOnly, - boolean compact, - String userName, - JobDescriptor[] jobs - ) - { - nJobs_ = jobs.length; - nCountedProcs_ = 0; - - - // Count licenced jobs. - for (int row = 0; row < jobs.length; row++) - { - nCountedProcs_ += jobs[row].nCountedProcs; - } - - // Map of which ones to use. - int nJobsToUse = 0; - boolean[] jobsToUse = new boolean[nJobs_]; - for (int i = 0; i < jobs.length; i++) - { - jobsToUse[i] = false; - } - - // Use only user's jobs if specified - if (myJobsOnly) - { - for (int row = 0; row < jobs.length; row++) - { - if (jobs[row].userName.equals(userName)) - { - jobsToUse[row] = true; - nJobsToUse++; - } - } - } - else - { - for (int row = 0; row < jobs.length; row++) - { - jobsToUse[row] = true; - nJobsToUse++; - } - } - - // Remove all FoamX stuff if compact - if (compact) - { - for (int row = 0; row < jobs.length; row++) - { - if - ( - jobsToUse[row] - && ( - (jobs[row].code.equals("FoamXHostBrowser")) - || (jobs[row].code.equals("FoamXCaseBrowser")) - || (jobs[row].code.equals("FoamXCaseServer")) - || (jobs[row].code.equals("FoamXCasePostServer")) - || (jobs[row].code.equals("dxFoamExec")) - || (jobs[row].code.equals("vxpFoam")) - || (jobs[row].code.equals("vxpFoamUser")) - ) - ) - { - jobsToUse[row] = false; - nJobsToUse--; - } - } - } - - - // Set data according to jobsToUse - - data_ = new Object[nJobsToUse][MAX_INDEX + 1]; - int i = 0; - for (int row = 0; row < jobs.length; row++) - { - if (jobsToUse[row]) - { - setDataRow(i++, jobs[row]); - } - } - } - - public ICaseBrowser getCaseBrowser() - { - return caseBrowser_; - } - - private void setDataRow(int row, JobDescriptor job) - { - data_[row][STAT_INDEX] = statusNames_[job.status.value()]; - data_[row][USER_INDEX] = job.userName; - data_[row][CASE_INDEX] = job.caseName; - data_[row][HOST_INDEX] = job.jobID.hostName; - data_[row][PID_INDEX] = new Integer(job.jobID.processID); - data_[row][NPROC_INDEX] = Integer.toString(job.nProcs); - data_[row][START_INDEX] = job.startDate; - data_[row][END_INDEX] = job.endDate; - data_[row][CODE_INDEX] = job.code; - data_[row][ROOT_INDEX] = job.rootDir; - data_[row][NCNTPROC_INDEX] = Integer.toString(job.nCountedProcs); - } - - -//-------------------------------------------------------------------------- -// -// Implementation of the AbstractTableModel interface -// -//-------------------------------------------------------------------------- - - public int getColumnCount() - { - return columnNames_.length; - } - - public int getRowCount() - { - return data_.length; - } - - public String getColumnName(int col) - { - return columnNames_[col]; - } - - public Object getValueAt(int row, int col) - { - return data_[row][col]; - } - - - /* - * JTable uses this method to determine the default renderer/ - * editor for each cell. (Default would be String) - */ - public Class getColumnClass(int c) - { - if (getRowCount() > 0) - { - return getValueAt(0, c).getClass(); - } - else - { - // Empty table. Use String renderer. - return String.class; - } - } - - // - // Implementation of the TableModelListener interface - // - - // By default forward all events to all the listeners. - public void tableChanged(TableModelEvent e) - { - fireTableChanged(e); - } - -//-------------------------------------------------------------------------- - - /** shortcut for accessing root */ - public String caseRoot(int row) - { - return (String)getValueAt(row, ROOT_INDEX); - } - - /** shortcut for accessing casename */ - public String caseName(int row) - { - return (String)getValueAt(row, CASE_INDEX); - } - - - /** Create string describing job */ - public String mkCodeString(int row) - { - String rootEnding = (String)getValueAt(row, ROOT_INDEX); - int lastSlash = rootEnding.lastIndexOf('/'); - if (lastSlash == -1) - { - lastSlash = 0; - } - - return - (String)getValueAt(row, CODE_INDEX) + " ..." + - rootEnding.substring(lastSlash) + " " + - (String)getValueAt(row, CASE_INDEX); - } - - /** get JobID for given entry */ - public JobID mkJobID(int row) - { - String hostName = - (String)getValueAt(row, HOST_INDEX); - Integer pid2 = (Integer)getValueAt(row, PID_INDEX); - - return new FoamXServer.JobID(hostName, pid2.intValue()); - } - - /** Converted JobID into string */ - public static String toString(JobID jobID) - { - return jobID.hostName + Integer.toString(jobID.processID); - } -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/.nbattrs deleted file mode 100644 index 74971dd429..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/.nbattrs +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.form deleted file mode 100644 index 421f2efbfa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.form +++ /dev/null @@ -1,25 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.java deleted file mode 100644 index 74eff3d838..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingManager.java +++ /dev/null @@ -1,301 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Reporting; - -import java.util.Hashtable; -import java.util.Enumeration; - -import FoamX.CaseManagement.CaseManagerListener; -import FoamX.CaseManagement.CaseManagerEvent; - -import FoamX.App; - -public class ReportingManager - extends javax.swing.JPanel - implements CaseManagerListener -{ - //-------------------------------------------------------------------------- - - protected ReportingWindow foamXWindow_; // Reporting window for FoamX application. - protected Hashtable windowMap_; // Map of ReportingWindow objects. - - //-------------------------------------------------------------------------- - /** ReportingManager constructor. */ - public ReportingManager() - { - try - { - // Initialise the GUI components. - initComponents(); - - windowMap_ = new Hashtable(); - - // Add FoamX reporting window. - foamXWindow_ = new ReportingWindow(); - tabbedPanel_.addTab("FoamX", foamXWindow_); - windowMap_.put("FoamX", foamXWindow_); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void shutdown() - {} - - //-------------------------------------------------------------------------- - - public ReportingWindow getReportingWindow(String windowName) - { - ReportingWindow reportingWindow = null; - - if (windowMap_.containsKey(windowName)) - { - // Return the reporting window - reportingWindow = (ReportingWindow)windowMap_.get(windowName); - } - return reportingWindow; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - tabbedPanel_ = new javax.swing.JTabbedPane(); - - setLayout(new java.awt.BorderLayout()); - - tabbedPanel_.setTabPlacement(3); - tabbedPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - add(tabbedPanel_, java.awt.BorderLayout.CENTER); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JTabbedPane tabbedPanel_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //---- CaseManagerListener Interface - //-------------------------------------------------------------------------- - - public void caseOpened(CaseManagerEvent evt) - { - try - { - // Make sure the event object has a case server reference. - if (evt.caseServer() != null) - { - // See if we already have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (!windowMap_.containsKey(key)) - { - // Create a new reporting window object. - ReportingWindow repWin = new ReportingWindow(); - - // Add new tab. - tabbedPanel_.addTab(evt.caseName(), repWin); - windowMap_.put(key, repWin); - - // Select the case report window. - tabbedPanel_.setSelectedComponent(repWin); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void casePostOpened(CaseManagerEvent evt) - { - try - { - // Make sure the event object has a case server reference. - if (evt.casePostServer() != null) - { - // See if we already have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (!windowMap_.containsKey(key)) - { - // Create a new reporting window object. - ReportingWindow repWin = new ReportingWindow(); - - // Add new tab. - tabbedPanel_.addTab(evt.caseName(), repWin); - windowMap_.put(key, repWin); - - // Select the case report window. - tabbedPanel_.setSelectedComponent(repWin); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void caseClosed(CaseManagerEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (windowMap_.containsKey(key)) - { - // Get reporting window object for this case. - ReportingWindow repWin = (ReportingWindow)windowMap_.get(key); - - // Select the main report window. - tabbedPanel_.setSelectedComponent(foamXWindow_); - - // Remove tab. - tabbedPanel_.remove(repWin); - windowMap_.remove(key); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void casePostClosed(CaseManagerEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (windowMap_.containsKey(key)) - { - // Get reporting window object for this case. - ReportingWindow repWin = (ReportingWindow)windowMap_.get(key); - - // Select the main report window. - tabbedPanel_.setSelectedComponent(foamXWindow_); - - // Remove tab. - tabbedPanel_.remove(repWin); - windowMap_.remove(key); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void caseDeleted(CaseManagerEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (windowMap_.containsKey(key)) - { - // Get reporting window object for this case. - ReportingWindow repWin = (ReportingWindow)windowMap_.get(key); - - // Select the main report window. - tabbedPanel_.setSelectedComponent(foamXWindow_); - - // Remove tab. - tabbedPanel_.remove(repWin); - windowMap_.remove(key); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void casePanelSelected(CaseManagerEvent evt) - { - try - { - // See if we have this case. - String key = evt.caseRoot() + "/" + evt.caseName(); - if (windowMap_.containsKey(key)) - { - // Get reporting window object for this case. - ReportingWindow repWin = (ReportingWindow)windowMap_.get(key); - - // Select the case tab. - tabbedPanel_.setSelectedComponent(repWin); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void caseBrowserSelected(CaseManagerEvent evt) - { - try - { - // Select the main report window. - tabbedPanel_.setSelectedComponent(foamXWindow_); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.form deleted file mode 100644 index 163cf5a327..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.form +++ /dev/null @@ -1,29 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.java deleted file mode 100644 index e420243918..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/ReportingWindow.java +++ /dev/null @@ -1,92 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Reporting; - -import FoamX.App; - -public class ReportingWindow - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - /** ReportingWindow constructor. */ - public ReportingWindow() - { - try - { - initComponents(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void printMessage(String message) - { - textArea_.append(message); - textArea_.append("\n"); - - // Force scrolling to end of text - textArea_.setCaretPosition(textArea_.getText().length()); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - scrollPane_ = new javax.swing.JScrollPane(); - textArea_ = new javax.swing.JTextArea(); - - setLayout(new java.awt.BorderLayout()); - - textArea_.setEditable(false); - textArea_.setFont(new java.awt.Font("Monospaced", 0, 10)); - scrollPane_.setViewportView(textArea_); - - add(scrollPane_, java.awt.BorderLayout.CENTER); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JScrollPane scrollPane_; - private javax.swing.JTextArea textArea_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/filesystem.attributes deleted file mode 100644 index 7491fde6de..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Reporting/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/.nbattrs deleted file mode 100644 index c2965d7f17..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/.nbattrs +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/Task.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/Task.java deleted file mode 100644 index fbb75828c9..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/Task.java +++ /dev/null @@ -1,98 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.TaskManagement; - -public class Task - extends Object -{ - //-------------------------------------------------------------------------- - - protected String taskName_; - protected int progressValue_; - protected int progressMin_; - protected int progressMax_; - protected TaskStatusBar statusBar_; - - //-------------------------------------------------------------------------- - /** Task constructor. */ - Task(String taskName, int min, int max) - { - taskName_ = taskName; - progressValue_ = min; - progressMin_ = min; - progressMax_ = max; - statusBar_ = null; - } - - //-------------------------------------------------------------------------- - - public void setProgress(int progress) - { - progressValue_ = (progress progressMax_) ? progressMax_ : progress; - - // Update the status bar. - if (statusBar_ != null) - { - statusBar_.setProgress(progressValue_); - statusBar_.updateUI(); - } - } - - //-------------------------------------------------------------------------- - - void activate(TaskStatusBar statusBar) - { - // Store reference to the status bar. - statusBar_ = statusBar; - - // Initialise the task status bar with our settings. - statusBar_.setStatusText(taskName_); - statusBar_.setProgressMin(progressMin_); - statusBar_.setProgressMax(progressMax_); - statusBar_.setProgress(progressValue_); - //statusBar_.updateUI(); - } - - //-------------------------------------------------------------------------- - - void deactivate() - { - if (statusBar_ != null) - { - // Release reference to status bar. - statusBar_ = null; - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskManager.java deleted file mode 100644 index 2514fdd551..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskManager.java +++ /dev/null @@ -1,154 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.TaskManagement; - -import java.util.Stack; -import javax.swing.*; -import java.awt.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -public class TaskManager - extends java.lang.Object -{ - //-------------------------------------------------------------------------- - - protected TaskStatusBar statusBar_; - protected Stack taskStack_; - protected String defaultText_; - - //-------------------------------------------------------------------------- - /** TaskManager constructor. */ - public TaskManager() - { - statusBar_ = new TaskStatusBar(); - taskStack_ = new Stack(); - - defaultText_ = "OpenFoamX Version 1.4"; - - // Hide the progress bar initially. - statusBar_.showProgress(false); - - // Set default status text. - statusBar_.setStatusText(defaultText_); - } - - //-------------------------------------------------------------------------- - - public TaskStatusBar getStatusBar() - { - return statusBar_; - } - - //-------------------------------------------------------------------------- - - public Task createTask(String taskName, int progressMin, int progressMax) - { - Task newTask = null; - - try - { - // Deactivate the previous task if there is one. - if (taskStack_.size()> 0) - { - Task currentTask = (Task)taskStack_.peek(); - currentTask.deactivate(); - } - - // Create a new task object. - newTask = new Task(taskName, progressMin, progressMax); - - // Add to stack. - taskStack_.push(newTask); - - // Show busy cursor. - //FoamXFrame.RootFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); - - // Make sure the progress bar is visible. - //statusBar_.showProgress(true); - - // Activate the new task. - newTask.activate(statusBar_); - } - catch (Exception ex) - { - ex.printStackTrace(); - App.handleAllExceptions(ex); - } - - // Return reference to new task object. - return newTask; - } - - //-------------------------------------------------------------------------- - - public void endTask() - { - try - { - if (taskStack_.size() == 0) - { - throw new FoamXException("Task count mismatch."); - } - - // Pop current task off stack. - Task oldTask = (Task)taskStack_.pop(); - - // Deactivate the task. - oldTask.deactivate(); - - // Activate the following task. - if (taskStack_.size()> 0) - { - Task currentTask = (Task)taskStack_.peek(); - currentTask.activate(statusBar_); - } - else - { - // No more tasks. Hide the progress bar. - statusBar_.showProgress(false); - - // Restore default status text. - statusBar_.setStatusText(defaultText_); - - // Restore cursor. - //FoamXFrame.RootFrame.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); - } - } - catch (Exception ex) - { - ex.printStackTrace(); - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.form deleted file mode 100644 index 88d3b2679f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.form +++ /dev/null @@ -1,38 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.java deleted file mode 100644 index db924a13e2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/TaskStatusBar.java +++ /dev/null @@ -1,137 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.TaskManagement; - -public class TaskStatusBar - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - /** Creates new form TaskStatusBar */ - public TaskStatusBar() - { - initComponents(); - } - - //-------------------------------------------------------------------------- - - String getStatusText() - { - return statusLabel_.getText(); - } - void setStatusText(String text) - { - statusLabel_.setText(text); - } - - int getProgress() - { - return progressBar_.getModel().getValue(); - } - void setProgress(int value) - { - progressBar_.getModel().setValue(value); - } - - int getProgressMin() - { - return progressBar_.getModel().getMinimum(); - } - void setProgressMin(int value) - { - progressBar_.getModel().setMinimum(value); - } - - int getProgressMax() - { - return progressBar_.getModel().getMaximum(); - } - void setProgressMax(int value) - { - progressBar_.getModel().setMaximum(value); - } - - //-------------------------------------------------------------------------- - - void showProgress(boolean visible) - { - progressBar_.setVisible(visible); - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - statusLabel_ = new javax.swing.JLabel(); - progressBar_ = new javax.swing.JProgressBar(); - - setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - statusLabel_.setText("Task"); - statusLabel_.setForeground(java.awt.Color.black); - statusLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.insets = new java.awt.Insets(0, 10, 0, 5); - add(statusLabel_, gridBagConstraints1); - - progressBar_.setFont(new java.awt.Font("Dialog", 0, 10)); - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 1; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.insets = new java.awt.Insets(0, 5, 0, 10); - gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; - gridBagConstraints1.weightx = 1.0; - add(progressBar_, gridBagConstraints1); - - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JLabel statusLabel_; - private javax.swing.JProgressBar progressBar_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/filesystem.attributes deleted file mode 100644 index 024d4f9be7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/TaskManagement/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/.nbattrs deleted file mode 100644 index 9ff3041c5a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/.nbattrs +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ActionDelegate.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ActionDelegate.java deleted file mode 100644 index bc8e9316e3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ActionDelegate.java +++ /dev/null @@ -1,231 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ToolbarManagement; - -import java.beans.*; -import java.awt.event.*; -import java.util.HashMap; -import javax.swing.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -public class ActionDelegate - extends javax.swing.AbstractAction - implements PropertyChangeListener -{ - //-------------------------------------------------------------------------- - - public static final String DEFAULT_ACTION = "Default"; - - protected HashMap subActions_; - protected Action currentAction_; - - //-------------------------------------------------------------------------- - /** ActionDelegate constructor. */ - public ActionDelegate(javax.swing.AbstractAction defaultAction) - { - try - { - subActions_ = new HashMap(); - subActions_.put(DEFAULT_ACTION, defaultAction); - - // Select the default action. - selectAction(DEFAULT_ACTION); - - // Use the default action's client properties. - if (defaultAction.getValue(Action.SMALL_ICON) != null) - { - putValue(Action.SMALL_ICON, defaultAction.getValue(Action.SMALL_ICON)); - } - if (defaultAction.getValue(Action.NAME) != null) - { - putValue(Action.NAME, defaultAction.getValue(Action.NAME)); - } - if (defaultAction.getValue(Action.SHORT_DESCRIPTION) != null) - { - putValue(Action.SHORT_DESCRIPTION, defaultAction.getValue(Action.SHORT_DESCRIPTION)); - } - if (defaultAction.getValue(Action.LONG_DESCRIPTION) != null) - { - putValue(Action.LONG_DESCRIPTION, defaultAction.getValue(Action.LONG_DESCRIPTION)); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** ActionDelegate constructor. */ - public ActionDelegate(String actionName, javax.swing.AbstractAction action) - { - try - { - subActions_ = new HashMap(); - subActions_.put(actionName, action); - - // Select the default action. - selectAction(actionName); - - // Use the default action's client properties. - if (action.getValue(Action.SMALL_ICON) != null) - { - putValue(Action.SMALL_ICON, action.getValue(Action.SMALL_ICON)); - } - if (action.getValue(Action.NAME) != null) - { - putValue(Action.NAME, action.getValue(Action.NAME)); - } - if (action.getValue(Action.SHORT_DESCRIPTION) != null) - { - putValue(Action.SHORT_DESCRIPTION, action.getValue(Action.SHORT_DESCRIPTION)); - } - if (action.getValue(Action.LONG_DESCRIPTION) != null) - { - putValue(Action.LONG_DESCRIPTION, action.getValue(Action.LONG_DESCRIPTION)); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** Overridded isEnabled method. Return enabled status of current sub-action. */ - public boolean isEnabled() - { - // Return the enabled status of the current sub-action. - return currentAction_ == null ? false : currentAction_.isEnabled(); - } - - //-------------------------------------------------------------------------- - - public void addSubAction(String actionName, Action action) throws FoamXException - { - // Check for duplicate name. - if (subActions_.containsKey(actionName)) - { - throw new FoamXException("Duplicate sub-action name : " + actionName); - } - - // Add to map. - subActions_.put(actionName, action); - } - - //-------------------------------------------------------------------------- - - public void removeSubAction(String actionName) throws FoamXException - { - // Check for valid name. - if (!subActions_.containsKey(actionName)) - { - throw new FoamXException("Invalid sub-action name : " + actionName); - } - - // Reset current action if we have invalidated it. - Action subAction = (Action)subActions_.get(actionName); - if (currentAction_ == subAction) // Object reference equality? - { - // Unregister for property change events. - currentAction_.removePropertyChangeListener(this); - currentAction_ = null; - } - - // Remove from map. - subActions_.remove(actionName); - } - - //-------------------------------------------------------------------------- - - public void selectAction(String actionName) throws FoamXException - { - // Check for valid name. - if (!subActions_.containsKey(actionName)) - { - throw new FoamXException("Invalid sub-action name : " + actionName); - } - - if (currentAction_ != null) - { - // Unregister for property change events. - currentAction_.removePropertyChangeListener(this); - } - - // Select specified action. - currentAction_ = (Action)subActions_.get(actionName); - - // Register for property change events. - currentAction_.addPropertyChangeListener(this); - - // Set the enabled state of this object to reflect the - // enabled state of the current sub-action object. - // Causes property change event from this object. - setEnabled(currentAction_.isEnabled()); - } - - //-------------------------------------------------------------------------- - - public synchronized void actionPerformed(ActionEvent evt) - { - try - { - // Belt and braces! - if (currentAction_ != null && currentAction_.isEnabled()) - { - // Invoke sub-action. - currentAction_.actionPerformed(evt); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void propertyChange(java.beans.PropertyChangeEvent evt) - { - // Set the enabled state of this object to reflect the - // enabled state of the current sub-action object. - // Causes property change event from this object. - Boolean enabled = (Boolean)evt.getNewValue(); - setEnabled(enabled.booleanValue()); - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/Toolbar.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/Toolbar.java deleted file mode 100644 index a84273995e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/Toolbar.java +++ /dev/null @@ -1,862 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ToolbarManagement; - -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.border.*; - -import FoamX.App; -import FoamX.Util.ReferenceCount; - -public class Toolbar - extends JToolBar - implements ReferenceCount -{ - //-------------------------------------------------------------------------- - /** Constant of grip layout constraint. */ - private static final String GRIP = "Grip"; - /** Constant of action layout constraint. */ - private static final String ACTION = "Action"; - /** Basic toolbar height. */ - public static final int BASIC_HEIGHT = 34; - /** 5 pixels is tolerance of toolbar height so toolbar can be high (BASIC_HEIGHT + HEIGHT_TOLERANCE) but it will be set to BASIC_HEIGHT high. */ - static int HEIGHT_TOLERANCE = 5; - /** Horizontal separator gap. */ - private static final int SEPARARTOR_GAP = 3; - /** TOP of toolbar empty border. */ - static int TOP = 2; - /** LEFT of toolbar empty border. */ - static int LEFT = 4; - /** BOTTOM of toolbar empty border. */ - static int BOTTOM = 2; - /** RIGHT of toolbar empty border. */ - static int RIGHT = 4; - - /** Is toolbar floatable */ - private boolean floatable_; - /** Toolbar DnDListener */ - private DnDListener listener_; - /** Toolbar mouse listener */ - private ToolbarMouseListener mouseListener_; - /** Display name of the toolbar */ - private String displayName_; - /** Map of action objects managed by this toolbar. */ - private HashMap actionMap_; - /** Map of toolbar button objects managed by this toolbar. */ - private HashMap buttonMap_; - /** Reference count for multi-toolbars. */ - private int refCount_; - - static final long serialVersionUID = 5011742660516204764L; - - //-------------------------------------------------------------------------- - /** - * Create a new not floatable Toolbar with programmatic name. - * Display name is set to be the same as name. - */ - public Toolbar(String name) - { - this(name, name, false); - } - - /** - * Create a new not floatable Toolbar with specified programmatic name - * and display name. - */ - public Toolbar(String name, String displayName) - { - this(name, displayName, false); - } - - /** - * Create a new Toolbar. - * @param name a String containing the associated name - * @param f specified if Toolbar is floatable - * Display name of the toolbar is set equal to the name. - */ - public Toolbar(String name, boolean f) - { - this(name, name, f); - } - - /** - * Create a new Toolbar. - * @param name a String containing the associated name - * @param f specifies if Toolbar is floatable - */ - public Toolbar(String name, String displayName, boolean f) - { - super(); - setDisplayName(displayName); - initAll(name, f); - } - - //-------------------------------------------------------------------------- - - private void initAll(String name, boolean f) - { - floatable_ = f; - mouseListener_ = null; - actionMap_ = new HashMap(); - buttonMap_ = new HashMap(); - refCount_ = 0; - - setName(name); - - setFloatable(false); - setBorder(new CompoundBorder(new EtchedBorder(), - new EmptyBorder(TOP, LEFT, BOTTOM, RIGHT))); - setLayout(new InnerLayout(2, 2)); - addGrip(); - } - - //-------------------------------------------------------------------------- - /** - * When Toolbar is floatable, ToolbarGrip is added as Grip as first toolbar component - */ - private void addGrip() - { - if (floatable_) - { - ToolbarGrip grip = new ToolbarGrip(); - - if (mouseListener_ == null) - { - mouseListener_ = new ToolbarMouseListener(); - } - - grip.addMouseListener(mouseListener_); - grip.addMouseMotionListener(mouseListener_); - - add(GRIP, grip); - //grip.updateUI(); - } - } - - //-------------------------------------------------------------------------- - /** - * Compute with HEIGHT_TOLERANCE number of rows for specific toolbar height. - * @param height of some toolbar - * @return number of rows - */ - static public int rowCount(int height) - { - int rows = 1; - int max_height = (BASIC_HEIGHT + HEIGHT_TOLERANCE); - while (height> max_height) - { - rows++; - height -= max_height; - } - return rows; - } - - //-------------------------------------------------------------------------- - /** - * @return Display name of this toolbar. Display name is localizable, - * on the contrary to the programmatic name. - */ - public String getDisplayName() - { - return displayName_; - } - - //-------------------------------------------------------------------------- - /** - * Sets new display name of this toolbar. Display name is localizable, - * on the contrary to the programmatic name. - */ - public void setDisplayName(String displayName) - { - displayName_ = displayName; - } - - //-------------------------------------------------------------------------- - - public JButton addMultiAction(String actionName, String clientKey, javax.swing.AbstractAction action) - { - JButton button = null; - - try - { - if (actionMap_.containsKey(actionName)) - { - ActionDelegate delegate = (ActionDelegate)actionMap_.get(actionName); - - // Add sub-action to delegate object. - delegate.addSubAction(clientKey, action); - - // Return the appropriate button for this action. - button = (JButton)buttonMap_.get(actionName); - } - else - { - // Create a new action delegate object. - ActionDelegate delegate = new ActionDelegate(clientKey, action); - - // Add action to map. - actionMap_.put(actionName, delegate); - - // Add button to toolbar connected to delegate. - button = add(delegate); - - // Add button to map. - buttonMap_.put(actionName, button); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return button; - } - - //-------------------------------------------------------------------------- - - public void selectClient(String clientKey) - { - try - { - // Loop over all actions and set the action key, - Iterator iter = actionMap_.values().iterator(); - while (iter.hasNext()) - { - ActionDelegate delegate = (ActionDelegate)iter.next(); - delegate.selectAction(clientKey); - } - //invalidate(); - //updateUI(); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void removeMultiActions(String clientKey) - { - try - { - // Loop over all actions and set the action key, - Iterator iter = actionMap_.values().iterator(); - while (iter.hasNext()) - { - ActionDelegate delegate = (ActionDelegate)iter.next(); - delegate.removeSubAction(clientKey); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- Container Overrides - //-------------------------------------------------------------------------- - /** Add new Component as ACTION. */ - public Component add(Component comp) - { - add(ACTION, comp); - return comp; - } - - //-------------------------------------------------------------------------- - /** Removes all ACTION components. */ - public void removeAll() - { - super.removeAll(); - addGrip(); - } - - //-------------------------------------------------------------------------- - //---- JToolBar Overrides - //-------------------------------------------------------------------------- - - public JButton add(Action action) - { - return super.add(action); - } - - public void addSeparator() - { - addSeparator(new Dimension(SEPARARTOR_GAP, SEPARARTOR_GAP)); - } - - //-------------------------------------------------------------------------- - //---- Drag & Drop Methods - //-------------------------------------------------------------------------- - /** - * Set DnDListener to Toolbar. - * @param DndListener for toolbar - */ - public void setDnDListener(DnDListener l) - { - listener_ = l; - } - - //-------------------------------------------------------------------------- - /** - * Fire drag of Toolbar - * @param dx distance of horizontal dragging - * @param dy distance of vertical dragging - * @param type type of toolbar dragging - */ - protected void fireDragToolbar(int dx, int dy, int type) - { - if (listener_ != null) - { - listener_.dragToolbar(new DnDEvent(this, getName(), dx, dy, type)); - } - } - - //-------------------------------------------------------------------------- - /** - * Fire drop of Toolbar - * @param dx distance of horizontal dropping - * @param dy distance of vertical dropping - * @param type type of toolbar dropping - */ - protected void fireDropToolbar(int dx, int dy, int type) - { - if (listener_ != null) - { - listener_.dropToolbar(new DnDEvent(this, getName(), dx, dy, type)); - } - } - - //-------------------------------------------------------------------------- - /** DnDListener is Drag and Drop listener for Toolbar motion events. */ - public interface DnDListener - extends java.util.EventListener - { - /** Invoked when toolbar is dragged. */ - public void dragToolbar(DnDEvent e); - - /** Invoked when toolbar is dropped. */ - public void dropToolbar(DnDEvent e); - } - - //-------------------------------------------------------------------------- - //---- ReferenceCount Interface - //-------------------------------------------------------------------------- - public synchronized int addRef() - { - // Return new reference count. - return ++refCount_; - } - - public synchronized int release() - { - // Return new reference count. - return --refCount_; - } - - public synchronized int refCount() - { - // Return current reference count. - return refCount_; - } - - //-------------------------------------------------------------------------- - //---- DnDEvent Class - //-------------------------------------------------------------------------- - - public static class DnDEvent - extends EventObject - { - /** Type of DnDEvent. Dragging with only one Toolbar. */ - public static final int DND_ONE = 1; - /** Type of DnDEvent. Only horizontal dragging with Toolbar and it's followers. */ - public static final int DND_END = 2; - /** Type of DnDEvent. Only vertical dragging with whole lines. */ - public static final int DND_LINE = 3; - - /** Name of toolbar where event occured. */ - private String name; - /** distance of horizontal dragging */ - private int dx; - /** distance of vertical dragging */ - private int dy; - /** Type of event. */ - private int type; - - static final long serialVersionUID = 4389530973297716699L; - - public DnDEvent(Toolbar toolbar, String n, int x, int y, int t) - { - super(toolbar); - - name = n; - dx = x; - dy = y; - type = t; - } - - /** @return name of toolbar where event occured. */ - public String getName() - { - return name; - } - - /** @return distance of horizontal dragging */ - public int getDX() - { - return dx; - } - - /** @return distance of vertical dragging */ - public int getDY() - { - return dy; - } - - /** @return type of event. */ - public int getType() - { - return type; - } - } - - //-------------------------------------------------------------------------- - //---- ToolbarMouseListener Class - //-------------------------------------------------------------------------- - - class ToolbarMouseListener - implements MouseInputListener - { - /** Is toolbar dragging now. */ - private boolean dragging_; - /** Start point of dragging. */ - private Point startPoint_; - - public ToolbarMouseListener() - { - dragging_ = false; - startPoint_ = null; - } - - /** Invoked when the mouse has been clicked on a component. */ - public void mouseClicked(MouseEvent e) - { - } - - /** Invoked when the mouse enters a component. */ - public void mouseEntered(MouseEvent e) - { - } - - /** Invoked when the mouse exits a component. */ - public void mouseExited(MouseEvent e) - { - } - - /** Invoked when a mouse button has been pressed on a component. */ - public void mousePressed(MouseEvent e) - { - startPoint_ = new Point(e.getX(), e.getY()); - } - - /** Invoked when a mouse button has been released on a component. */ - public void mouseReleased(MouseEvent e) - { - if (dragging_) - { - fireDropToolbar(e.getX() - startPoint_.x, - e.getY() - startPoint_.y, - DnDEvent.DND_ONE); - dragging_ = false; - } - } - - /** Invoked when a mouse button is pressed on a component and then dragged. */ - public void mouseDragged(MouseEvent e) - { - int m = e.getModifiers(); - int type = DnDEvent.DND_ONE; - if (e.isControlDown()) - { - type = DnDEvent.DND_LINE; - } - else if (((m & InputEvent.BUTTON2_MASK) != 0) || - ((m & InputEvent.BUTTON3_MASK) != 0)) - { - type = DnDEvent.DND_END; - } - if (startPoint_ == null) - { - startPoint_ = new Point(e.getX(), e.getY()); - } - fireDragToolbar(e.getX() - startPoint_.x, - e.getY() - startPoint_.y, - type); - dragging_ = true; - } - - /** Invoked when the mouse button has been moved on a component (with no buttons no down). */ - public void mouseMoved(MouseEvent e) - { - } - } - - //-------------------------------------------------------------------------- - //---- ToolbarGrip Class - //-------------------------------------------------------------------------- - - private class ToolbarGrip - extends JPanel - { - /** Horizontal gaps. */ - static final int HGAP = 1; - /** Vertical gaps. */ - static final int VGAP = 1; - /** Step between two grip elements. */ - static final int STEP = 1; - /** Width of grip element. */ - static final int WIDTH = 2; - - /** Number of grip elements. */ - int columns_; - /** Minimum size. */ - Dimension dim_; - - static final long serialVersionUID = -8819972936203315276L; - - /** Create new ToolbarGrip for default number of grip elements. */ - public ToolbarGrip() - { - this(2); - } - - /** Create new ToolbarGrip for specific number of grip elements. - * @param col number of grip elements - */ - public ToolbarGrip(int col) - { - super(); - columns_ = col; - int width = (col - 1) * STEP + col * WIDTH + 2 * HGAP; - dim_ = new Dimension(width, width); - setBorder(new EmptyBorder(VGAP, HGAP, VGAP, HGAP)); - setToolTipText(Toolbar.this.getDisplayName()); - } - - /** Paint grip to specific Graphics. */ - public void paint(Graphics g) - { - Dimension size = getSize(); - int top = VGAP; - int bottom = size.height - 1 - VGAP; - int height = bottom - top; - g.setColor(getBackground()); - - for (int i = 0, x = HGAP; i maxPosition)) - { - if (maxPosition - left>= minSize.width) - w = maxPosition - left; - } - - comp.setBounds (left, (fullHeight - d.height)/2, w, h); - - left += d.width; - } - } - } - - /** - * Returns the alignment along the x axis. - */ - public float getLayoutAlignmentX(Container target) - { - return 0; - } - - /** - * Returns the alignment along the y axis. - */ - public float getLayoutAlignmentY(Container target) - { - return (float)0.5; - } - - /** - * Invalidates the layout, indicating that if the layout manager has cached - * information it should ne discarded. - */ - public void invalidateLayout(Container target) - { - // check target components with local vars (grip, actions) - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.form deleted file mode 100644 index 11e8c30bb8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.form +++ /dev/null @@ -1,19 +0,0 @@ - - -
- - - - - - - - - - - - - - - -
diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.java deleted file mode 100644 index 34be65f6e7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/ToolbarManager.java +++ /dev/null @@ -1,225 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.ToolbarManagement; - -import java.util.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -public class ToolbarManager - extends javax.swing.JPanel -{ - //-------------------------------------------------------------------------- - - /** Horizontal gap between toolbars. */ - static int HGAP = 4; - /** Vertical gap between toolbars. */ - static int VGAP = 6; - - // Map of toolbar objects, keyed by toolbar name. - protected java.util.Hashtable toolbars_; - - //-------------------------------------------------------------------------- - /** Creates new form ToolbarManager */ - public ToolbarManager() - { - initComponents(); - - toolbars_ = new Hashtable(); - } - - //-------------------------------------------------------------------------- - - public boolean isToolbarDefined(String name) - { - return toolbars_.containsKey(name); - } - - //-------------------------------------------------------------------------- - - public FoamX.ToolbarManagement.Toolbar getToolbar - ( - String name - ) throws FoamXException - { - if (!toolbars_.containsKey(name)) - { - throw new FoamXException("Invalid toolbar name : " + name); - } - - Toolbar toolbar = (Toolbar)toolbars_.get(name); - return toolbar; - } - - //-------------------------------------------------------------------------- - - /* create new toolBar */ - public FoamX.ToolbarManagement.Toolbar addToolbar - ( - String name, - String description - ) throws FoamXException - { - if (toolbars_.containsKey(name)) - { - throw new FoamXException("Duplicate toolbar name : " + name); - } - - // Create new Toolbar object. - Toolbar toolbar = new Toolbar(name, description, true); - toolbar.setFont(new java.awt.Font("Dialog", 0, 10)); - - // Add to map and content pane. - toolbars_.put(name, toolbar); - add(toolbar); - toolbar.addRef(); - - // Refresh the gui. - updateUI(); - //toolbar.updateUI(); - - return toolbar; - } - - //-------------------------------------------------------------------------- - - public void removeToolbar(String name) throws FoamXException - { - if (!toolbars_.containsKey(name)) - { - throw new FoamXException("Invalid toolbar name : " + name); - } - - Toolbar toolbar = (Toolbar)toolbars_.get(name); - // Decrement reference count; - if (toolbar.release() == 0) - { - // Remove toolbar from container. - remove(toolbar); - updateUI(); - } - } - - //-------------------------------------------------------------------------- - - /* create or reuse existing toolBar */ - public FoamX.ToolbarManagement.Toolbar addMultiToolbar - ( - String name, - String description, - String clientKey - ) throws FoamXException - { - Toolbar toolbar = null; - - if (toolbars_.containsKey(name)) - { - // If toolbar already exists, increment it's reference count. - toolbar = (Toolbar)toolbars_.get(name); - toolbar.addRef(); - } - else - { - // Create new Toolbar object. - toolbar = new Toolbar(name, description, true); - toolbar.setFont(new java.awt.Font("Dialog", 0, 10)); - - // Add to map and content pane. - toolbars_.put(name, toolbar); - add(toolbar); - toolbar.addRef(); - } - - // Refresh gui. - updateUI(); - //toolbar.updateUI(); - - return toolbar; - } - - //-------------------------------------------------------------------------- - - public void removeMultiToolbar - ( - String name, - String clientKey - ) throws FoamXException - { - try - { - if (!toolbars_.containsKey(name)) - { - throw new FoamXException("Invalid toolbar name : " + name); - } - - // Get specified toolbar. - Toolbar toolbar = (Toolbar)toolbars_.get(name); - - // Remove mutil-actions. - toolbar.removeMultiActions(clientKey); - - // Decrement reference count; - if (toolbar.release() <= 0) - { - // Remove toolbar from container. - toolbars_.remove(name); - remove(toolbar); - updateUI(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - - setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 2, 2)); - - setBorder(new javax.swing.border.EtchedBorder()); - }//GEN-END:initComponents - - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/filesystem.attributes deleted file mode 100644 index 30057ddc3f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/ToolbarManagement/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/.nbattrs deleted file mode 100644 index a0e9afe64d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/.nbattrs +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/IUtility.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/IUtility.java deleted file mode 100644 index 0d71dc2fc4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/IUtility.java +++ /dev/null @@ -1,56 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Tools; - -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.UtilityDescriptor; - -public interface IUtility -{ - public void prepareUtility(); - - // Utilities called at browser level are invoked with - // caseBrowser instance and -if possible- with root and casename - public void invokeBrowserUtility - ( - UtilityDescriptor toolDesc, - ICaseBrowser caseBrowser, - String caseRoot, - String caseName - ); - - // Utilities called at case editor level are invoked with - // caseServer instance - public void invokeCaseUtility - ( - UtilityDescriptor toolDesc, - ICaseServer caseServer, - String caseRoot, - String caseName - ); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/InvokeUtilityAction.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/InvokeUtilityAction.java deleted file mode 100644 index 439dfb9195..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/InvokeUtilityAction.java +++ /dev/null @@ -1,360 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Tools; - -import java.awt.event.ActionEvent; -import java.util.Vector; -import javax.swing.*; - -import org.omg.CORBA.StringHolder; - -import FoamXServer.IDictionaryEntryHolder; -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.CaseServer.ICaseServer; -import FoamXServer.ApplicationDescriptor; - -import FoamX.App; -import FoamX.Editors.StringListEditor; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryCache; -import FoamX.Exceptions.FoamXCancel; -import FoamX.Util.BusyCursor; -import FoamX.Util.RunPanel; - - -public class InvokeUtilityAction - extends AbstractAction -{ - //-------------------------------------------------------------------------- - - protected ICaseBrowser caseBrowser_; - protected String caseRoot_; - protected String caseName_; - protected ICaseServer caseServer_; - - //-------------------------------------------------------------------------- - /** InvokeUtilityAction constructor for a case browser. */ - public InvokeUtilityAction - ( - ICaseBrowser caseBrowser, - String caseRoot, - String caseName - ) - { - caseBrowser_ = caseBrowser; - caseRoot_ = caseRoot; - caseName_ = caseName; - caseServer_ = null; - - putValue - ( - Action.SMALL_ICON, - App.getResources().getIcon("InvokeUtilityImage") - ); - putValue(Action.NAME, "Invoke Foam Utility"); - putValue(Action.SHORT_DESCRIPTION, "Invoke Foam Utility"); - putValue(Action.LONG_DESCRIPTION, "Invoke Foam Utility"); - } - -// //-------------------------------------------------------------------------- -// /** InvokeUtilityAction constructor for a case server. */ -// public InvokeUtilityAction(ICaseServer caseServer) -// { -// caseBrowser_ = null; -// caseRoot_ = null; -// caseName_ = null; -// caseServer_ = caseServer; -// -// putValue -// ( -// Action.SMALL_ICON, -// App.getResources().getIcon("InvokeUtilityImage") -// ); -// putValue(Action.NAME, "Invoke Foam Utility"); -// putValue(Action.SHORT_DESCRIPTION, "Invoke Foam Utility"); -// putValue(Action.LONG_DESCRIPTION, "Invoke Foam Utility"); -// } -// - //-------------------------------------------------------------------------- - - public void actionPerformed(ActionEvent evt) - { - try - { - // Source must have a utilityDescriptor client property. - if (evt.getSource() instanceof JComponent) - { - // Get ApplicationDescriptor object. - JComponent comp = (JComponent)evt.getSource(); - ApplicationDescriptor desc = - (ApplicationDescriptor)comp.getClientProperty - ( - "utilityDescriptor" - ); - - // Invoke the utility on the specified server. -// if (caseServer_ != null) -// { -// invokeCaseServerUtility(desc); -// } -// else if (caseBrowser_ != null) -// { - invokeCaseBrowserUtility(desc); -// } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - /** construct argument list for utility */ - static public String[] makeUtilityArgs - ( - ApplicationDescriptor desc, - String caseRoot, - String caseName - ) - throws FoamXCancel - { - // Construct argument list. - - String[] caseArgs = null; - -// // If arguments are required, prompt the user for them. -// if (desc.arguments.length> 0) -// { -// Vector labels = new Vector(desc.arguments.length); -// Vector values = new Vector(desc.arguments.length); -// -// // Use root, case as first arguments -// -// if (desc.caseTool) -// { -// labels.addElement("Case Root"); -// labels.addElement("Case Name"); -// -// values.addElement(caseRoot); -// values.addElement(caseName); -// } -// -// // Add other arguments as from the toolDescriptor -// -// for (int i = 0; i 0) -// { -// // Load the specified bean. -// Object utilityObj; -// try -// { -// ClassLoader loader = ClassLoader.getSystemClassLoader(); -// utilityObj = -// java.beans.Beans.instantiate(loader, desc.clientBean); -// } -// catch (Exception ex) -// { -// throw new Exception -// ( -// "Couldn't instantiate utility bean " -// + desc.clientBean + "." -// ); -// } -// -// // Make sure that this bean supports the IUtility interface. -// java.lang.Class c; -// c = Class.forName("FoamX.Tools.IUtility"); -// if (!java.beans.Beans.isInstanceOf(utilityObj, c)) -// { -// throw new Exception -// ( -// "Utility bean " + desc.clientBean -// + " does not support the IUtility interface." -// ); -// } -// -// // Invoke the utility. -// IUtulity utilityBean = (IUtility)utilityObj; -// utilityBean.prepareUtility(); -// utilityBean.invokeCaseUtility -// ( -// desc, -// caseServer_, -// caseServer_.caseRoot(), -// caseServer_.caseName() -// ); -// } -// else -// { -// // Construct argument list. -// String[] caseArgs = makeUtilityArgs -// ( -// desc, -// caseServer_.caseRoot(), -// caseServer_.caseName() -// ); -// -// // Show busy cursor. -// BusyCursor busyCursor = new BusyCursor(App.getRootFrame()); -// -// // Invoke the utility. -// try -// { -// caseServer_.invokeUtility(desc.name, caseArgs); -// -// JOptionPane.showMessageDialog -// ( -// App.getRootFrame(), -// "The Foam utility " + desc.name + " has been executed.", -// "Foam Utility", -// JOptionPane.PLAIN_MESSAGE -// ); -// } -// catch (Exception ex) -// { -// App.handleAllExceptions(ex); -// } -// } -// } -// catch (FoamXCancel ex) -// { -// // Editing of arguments was cancelled. -// } -// catch (Exception ex) -// { -// App.handleAllExceptions(ex); -// } -// } - - //-------------------------------------------------------------------------- - - public void invokeCaseBrowserUtility(ApplicationDescriptor desc) - { - try - { - // Get the DictionaryEntry reference for this dictionary. - IDictionaryEntryHolder dictHolder = new IDictionaryEntryHolder(); - caseBrowser_.foamProperties().getUtilityControlDict - ( - desc.name, - caseRoot_, - caseName_, - dictHolder - ); - - - DictionaryCache controlDict = null; - if (dictHolder.value != null) - { - controlDict = (DictionaryCache)DictionaryEntryCache.New - ( - dictHolder.value - ); - } - - RunPanel runPanel = new RunPanel - ( - App.getRootFrame(), - caseBrowser_, - caseRoot_, - caseName_, - desc.name, - false, // Is utility - desc.name + "Dict", - controlDict - ); - runPanel.setVisible(true); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/filesystem.attributes deleted file mode 100644 index e3744c3053..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Tools/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/.nbattrs deleted file mode 100644 index 7964ad6ec6..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/.nbattrs +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ArgsManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ArgsManager.java deleted file mode 100644 index 49b934efd0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ArgsManager.java +++ /dev/null @@ -1,103 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Options; - -import javax.swing.*; -import java.io.*; -import java.util.*; - -import FoamX.App; - -import FoamX.Exceptions.FoamXException; - -public class ArgsManager - extends java.util.Properties -{ - //-------------------------------------------------------------------------- - - private String foamXSystemPath_; - private String foamXSystemConfigPath_; - private String foamXUserConfigPath_; - - //-------------------------------------------------------------------------- - /** ArgsManager constructor. */ - public ArgsManager(String[] args) - { - } - - //-------------------------------------------------------------------------- - - public String foamXSystemPath() - { - return foamXSystemPath_; - } - - //-------------------------------------------------------------------------- - - public String foamXSystemConfigPath() - { - return foamXSystemConfigPath_; - } - - //-------------------------------------------------------------------------- - - public String foamXUserConfigPath() - { - return foamXUserConfigPath_; - } - - //-------------------------------------------------------------------------- - - public void loadFromFile() - { - try - { - // Load the properties object from file. - String propFileName = foamXUserConfigPath_ + "/FoamXClient.cfg"; - File propFile = new File(propFileName); - if (propFile.exists()) - { - load(new FileInputStream(propFileName)); - - // Add the config paths to the properties bundle. - put("FoamX.SystemConfigPath", foamXSystemConfigPath_); - put("FoamX.UserConfigPath", foamXUserConfigPath_); - } - else - { - throw new Exception - ( - "FoamX client properties file not found at '" - + propFileName + "'." - ); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/Assert.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/Assert.java deleted file mode 100644 index 154c0ac4cb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/Assert.java +++ /dev/null @@ -1,41 +0,0 @@ -package FoamX.Util; - -import javax.swing.JOptionPane; - -import FoamX.App; - -public class Assert -{ - private static void perr(String msg) - { - JOptionPane.showMessageDialog - ( - null, - "Assertion Failed", - msg, - JOptionPane.ERROR_MESSAGE - ); - - App.printMessage(msg); - } - - public final static void True(boolean exp) - { - if (!exp) perr("Assertion failed"); - } - - public final static void False(boolean exp) - { - if (exp) perr("Assertion failed"); - } - - public final static void True(boolean exp, String msg) - { - if (!exp) perr("Assertion failed: " + msg); - } - - public final static void False(boolean exp, String msg) - { - if (exp) perr("Assertion failed: " + msg); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/BusyCursor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/BusyCursor.java deleted file mode 100644 index 3108914a84..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/BusyCursor.java +++ /dev/null @@ -1,103 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.awt.*; -import javax.swing.*; - -public class BusyCursor - extends Object -{ - //-------------------------------------------------------------------------- - - private java.awt.Component component_; - private java.awt.Cursor prevCursor_; - - //-------------------------------------------------------------------------- - /** BusyCursor constructor. */ - public BusyCursor() - { - component_ = null; - prevCursor_ = null; - } - - //-------------------------------------------------------------------------- - /** BusyCursor constructor. */ - public BusyCursor(java.awt.Component component) - { - component_ = component; - prevCursor_ = component_.getCursor(); - component_.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); - - // Put a restore cursor event into the event dispatch thread event queue. - // This will restore the previous cursor when the current activity - // has finished. - SwingUtilities.invokeLater(new RestoreCursorEvent()); - } - - //-------------------------------------------------------------------------- - - protected void restoreCursor() - { - // Restore previous cursor. - if (component_ != null && prevCursor_ != null) - { - component_.setCursor(prevCursor_); - } - component_ = null; - prevCursor_ = null; - } - - //-------------------------------------------------------------------------- - - protected void finalize() - { - // Restore previous cursor. - //restoreCursor(); - } - - //-------------------------------------------------------------------------- - - class RestoreCursorEvent - implements Runnable - { - public void run() - { - //? Container parent = component_.getParent(); - - // Restore the original cursor. - restoreCursor(); - - //? parent.repaint(); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ButtonActionChangedListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ButtonActionChangedListener.java deleted file mode 100644 index 09cfaba554..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ButtonActionChangedListener.java +++ /dev/null @@ -1,61 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.beans.*; -import javax.swing.*; - -public class ButtonActionChangedListener - implements PropertyChangeListener -{ - private JButton button_; - - public ButtonActionChangedListener(JButton button) - { - super(); - button_ = button; - } - - public void propertyChange(PropertyChangeEvent e) - { - String propertyName = e.getPropertyName(); -/* - if (e.getPropertyName().equals(Action.NAME)) - { - // Change the label on the button if the action name has changed. - String text = (String)e.getNewValue(); - button_.setText(text); - } -*/ - if (propertyName.equals("enabled")) - { - // Disable the button if the action has been disabled. - Boolean enabledState = (Boolean)e.getNewValue(); - button_.setEnabled(enabledState.booleanValue()); - } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/CollapseTreeAction.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/CollapseTreeAction.java deleted file mode 100644 index 803e37dd56..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/CollapseTreeAction.java +++ /dev/null @@ -1,82 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.tree.*; -import javax.swing.event.*; -import java.util.Enumeration; - -import FoamX.App; - -public class CollapseTreeAction - extends AbstractAction -{ - //-------------------------------------------------------------------------- - - protected JTree tree_; - - //-------------------------------------------------------------------------- - /** ExpandTreeAction constructor. */ - public CollapseTreeAction(JTree tree) - { - tree_ = tree; - - putValue(Action.SMALL_ICON, App.getResources().getIcon("Tree.CollapseTreeImage")); - putValue(Action.NAME, "CollapseAll"); - putValue(Action.SHORT_DESCRIPTION, "Collapse All"); - putValue(Action.LONG_DESCRIPTION, "Collapse All"); - } - - //-------------------------------------------------------------------------- - - public void actionPerformed(ActionEvent e) - { - try - { - // Get tree model. - TreeModel model = tree_.getModel(); - - DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot(); - Enumeration iter = root.depthFirstEnumeration(); - while (iter.hasMoreElements()) - { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)iter.nextElement(); - TreePath tp = new TreePath(node.getPath()); - tree_.collapsePath(tp); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ExpandTreeAction.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ExpandTreeAction.java deleted file mode 100644 index bff66540cc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ExpandTreeAction.java +++ /dev/null @@ -1,82 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.awt.event.ActionEvent; -import javax.swing.*; -import javax.swing.tree.*; -import javax.swing.event.*; -import java.util.Enumeration; - -import FoamX.App; - -public class ExpandTreeAction - extends AbstractAction -{ - //-------------------------------------------------------------------------- - - protected JTree tree_; - - //-------------------------------------------------------------------------- - /** ExpandTreeAction constructor. */ - public ExpandTreeAction(JTree tree) - { - tree_ = tree; - - putValue(Action.SMALL_ICON, App.getResources().getIcon("Tree.ExpandTreeImage")); - putValue(Action.NAME, "ExpandAll"); - putValue(Action.SHORT_DESCRIPTION, "Expand All"); - putValue(Action.LONG_DESCRIPTION, "Expand All"); - } - - //-------------------------------------------------------------------------- - - public void actionPerformed(ActionEvent e) - { - try - { - // Get tree model. - TreeModel model = tree_.getModel(); - - DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot(); - Enumeration iter = root.depthFirstEnumeration(); - while (iter.hasMoreElements()) - { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)iter.nextElement(); - TreePath tp = new TreePath(node.getPath()); - tree_.expandPath(tp); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEditor.java deleted file mode 100644 index 450e415c4c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEditor.java +++ /dev/null @@ -1,418 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.util.*; -import java.io.*; -import java.awt.Point; - -import org.omg.CORBA.StringHolder; -import FoamXServer.CaseBrowser.ICaseBrowser; -import FoamXServer.FoamXIOError; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -public class FileEditor - implements FileListener -{ - String fileName_ = ""; - File workFile_; - ICaseBrowser caseBrowser_; - SimpleEditor simpleEditor_; - - public FileEditor - ( - boolean modal, - boolean followMode, - ICaseBrowser caseBrowser, - String fileName, - int startLineNo, - int endLineNo, - int columnNo - ) - { - try - { - fileName_ = fileName; - caseBrowser_ = caseBrowser; - workFile_= new File(fileName_); - - // Get file. Use case browser if nessecary. - - boolean nfsFile = workFile_.canRead(); - - if (!nfsFile && (fileName_.length() > 0)) - { - if (caseBrowser_ == null) - { - throw new FoamXException - ( - "Cannot open file " + fileName_ + " for editing." - ); - } - - // Generate temporary file for the editors to edit. - workFile_ = java.io.File.createTempFile - ( - workFile_.getName(), - "" - ); - - App.printMessage - ( - "Working on temporary file:" + workFile_.getName() - ); - - // Quick and dirty test for availability of file - if - ( - !copyFromCaseBrowser - ( - caseBrowser_, - fileName_, - new File("/dev/null") - ) - ) - { - throw new FoamXException - ( - "Cannot open file " + fileName_ + " for editing." - ); - } - } - - - String editorMethod = App.getOptions().getProperty - ( - "FoamX.Editor", - "internal" - ); - if (editorMethod.equals("internal")) - { - internalEditor(modal, followMode, nfsFile); - } - else - { - externalEditor - ( - modal, - followMode, - nfsFile, - editorMethod, - startLineNo, - endLineNo, - columnNo - ); - } - } - catch (java.io.IOException ex) - { - App.handleAllExceptions(ex); - } - catch (FoamXException ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - private void internalEditor - ( - boolean modal, - boolean followMode, - boolean nfsFile - ) - { - // Start editor. - App.printMessage("Starting internal editor on " + fileName_); - - simpleEditor_ = new SimpleEditor(); - - // Center on screen - Point topLeft = App.getRootFrame().getLocationOnScreen(); -// System.out.println("Size:" + App.getRootFrame().getSize()); -// System.out.println("Position:" + topLeft.x + " " + topLeft.y); -// System.out.println("Here"); - -// java.awt.Dimension screenSize = -// java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - simpleEditor_.setLocation(topLeft); - - if (!nfsFile) - { - // Make sure we are warned of any changes (FileListener events) - simpleEditor_.addFileListener(this); - } - - if (followMode) - { - simpleEditor_.followFile(caseBrowser_, workFile_); - } - else - { - simpleEditor_.openFile(workFile_); - } - - simpleEditor_.setVisible(true); - } - - - //-------------------------------------------------------------------------- - /** Starts External editor. - * Since no events blocks until editing finished - */ - private void externalEditor - ( - boolean modal, - boolean followMode, - boolean nfsFile, - String editorMethod, - int startLineNo, - int endLineNo, - int columnNo - ) throws FoamXException - { - if (!nfsFile) - { - copyFromCaseBrowser(caseBrowser_, fileName_, workFile_); - } - - // Start editor on workFile_ - - Process editProcess = null; - - // External: replace $FILE etc. in editorMethod with actual values - try - { - // Execute the desired browser passing it the required URL. - int hasFile = editorMethod.indexOf("$FILE"); - if (hasFile == -1) - { - throw new Exception - ( - "FoamX.Editor property malformed " + editorMethod + - ".\nIt should at least contain $FILE " + - "(expands to file name)" - ); - } - - Hashtable vars = new Hashtable(3); - vars.put("FILE", workFile_); - - if (startLineNo <= 0) - { - startLineNo = 1; - } - vars.put("START", new Integer(startLineNo)); - if (endLineNo <= 0) - { - endLineNo = startLineNo; - } - vars.put("END", new Integer(endLineNo)); - vars.put("COL", new Integer(columnNo)); - VarString editCmd = new VarString(editorMethod, vars); - - // Start editor. - App.printMessage("Starting external editor : " + editCmd.string()); - editProcess = Runtime.getRuntime().exec(editCmd.string()); - } - catch (java.io.IOException ex) - { - App.handleAllExceptions(ex); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - - - // If nessecary copy working file back to actual one. - - try - { - if (!nfsFile && (editProcess != null)) - { - // Wait for editing to finish before copying back - editProcess.waitFor(); - - copyToCaseBrowser(workFile_, caseBrowser_, fileName_); - - workFile_.delete(); - workFile_ = null; - } - else if (modal) - { - // Wait for editing to finish - editProcess.waitFor(); - } - } - catch (java.lang.InterruptedException ex) - { - App.handleAllExceptions(ex); - } - } - - - //-------------------------------------------------------------------------- - /** Copies file inFileName, located at caseBrowser, into local outFile */ - static public boolean copyFromCaseBrowser - ( - ICaseBrowser caseBrowser, - String inFileName, - File outFile - ) - { - try - { - StringHolder holder = new StringHolder(); - caseBrowser.readFile(inFileName, holder); - String contents = holder.value; - - DataOutputStream out = - new DataOutputStream - ( - new BufferedOutputStream - ( - new FileOutputStream(outFile) - ) - ); - out.writeBytes(contents); - out.close(); - return true; - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(new FoamXException(ioErr.errorMessage)); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - return false; - } - - - //-------------------------------------------------------------------------- - /** Copies local file inFile to caseBrowser as outFileName */ - static public void copyToCaseBrowser - ( - File inFile, - ICaseBrowser caseBrowser, - String outFileName - ) - { - try - { - // Limited to editing files < 2Gb only - int size = (int)inFile.length(); - - FileInputStream inStream = new FileInputStream(inFile); - - int nRead = 0; - byte[] data = new byte[size]; - while(nRead < size) - { - nRead += inStream.read(data, nRead, size-nRead); - } - inStream.close(); - - caseBrowser.writeFile(outFileName, new String(data)); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(new FoamXException(ioErr.errorMessage)); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- FileListener Interface - //-------------------------------------------------------------------------- - - // SimpleEditor wants to read file - public void fileOpened(FileEvent evt) - { - File file = evt.file(); - - try - { - if(file.getCanonicalPath().equals(workFile_.getCanonicalPath())) - { - copyFromCaseBrowser(caseBrowser_, fileName_, workFile_); - } - } - catch (java.io.IOException ex) - { - App.handleAllExceptions(ex); - } - } - - // SimpleEditor has closed a file. - public void fileClosed(FileEvent evt) - { - File file = evt.file(); - - try - { - if(file.getCanonicalPath().equals(workFile_.getCanonicalPath())) - { - // event can only happen once per FileEditor so cleanup - simpleEditor_.removeFileListener(this); - workFile_.delete(); - caseBrowser_ = null; - } - } - catch (java.io.IOException ex) - { - App.handleAllExceptions(ex); - } - } - - // SimpleEditor has saved a file. - public void fileChanged(FileEvent evt) - { - File file = evt.file(); - - try - { - if(file.getCanonicalPath().equals(workFile_.getCanonicalPath())) - { - copyToCaseBrowser(workFile_, caseBrowser_, fileName_); - } - } - catch (java.io.IOException ex) - { - App.handleAllExceptions(ex); - } - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEvent.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEvent.java deleted file mode 100644 index 2f328baf01..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileEvent.java +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.io.*; - -public class FileEvent - extends java.util.EventObject -{ - protected File file_; - - /** CaseBrowserEvent constructor. */ - public FileEvent(Object source, File file) - { - super(source); - file_ = file; - } - - public String toString() - { - return "FileEvent : " + file_; - } - - public File file() - { - return file_; - } -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileListener.java deleted file mode 100644 index 73b9542e0e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -public interface FileListener - extends java.util.EventListener -{ - public abstract void fileOpened(FileEvent evt); - public abstract void fileClosed(FileEvent evt); - public abstract void fileChanged(FileEvent evt); -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileMonitor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileMonitor.java deleted file mode 100644 index a62306d72f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FileMonitor.java +++ /dev/null @@ -1,221 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.awt.*; -import java.awt.event.*; -import java.io.*; - -import javax.swing.*; -import javax.swing.text.*; -import javax.swing.event.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -import FoamXServer.CaseBrowser.ICaseBrowser; - - -public class FileMonitor implements Runnable -{ - // Objects interested in file status - protected EventListenerList listenerList_; - - // Casebrowser reference - protected ICaseBrowser caseBrowser_; - - // Current files to monitor - protected File[] files_; - - // Delay before checking modification - protected int sleep_; - - // Last known modification dates - protected int[] fileDates_; - - // Stop flag - protected boolean stop_; - - public FileMonitor(ICaseBrowser caseBrowser, File[] files, int sleep) - { - // Create listener list. - listenerList_ = new EventListenerList(); - - caseBrowser_ = caseBrowser; - - files_ = files; - - sleep_ = sleep; - - fileDates_ = new int[files.length]; - - stop_ = false; - - try - { - for(int i = 0; i < files.length; i++) - { - String fName = files_[i].getPath(); - - fileDates_[i] = caseBrowser_.fileModificationDate(fName); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void run() - { - for(;;) - { - try - { - Thread.currentThread().sleep(sleep_); - } - catch (InterruptedException ie) - {} - - if (stop_) - { - return; - } - - try - { - for(int i = 0; i < files_.length; i++) - { - String fName = files_[i].getPath(); - - int currentTime = - caseBrowser_.fileModificationDate(fName); - - if (currentTime != fileDates_[i]) - { - fileDates_[i] = currentTime; - - fireChangeFile(files_[i]); - } - else - { - fileDates_[i] = currentTime; - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - } - - //-------------------------------------------------------------------------- - - public void stop() - { - stop_ = true; - } - - //-------------------------------------------------------------------------- - //---- FileListener Interface - //-------------------------------------------------------------------------- - - public void addFileListener(FileListener l) - { - listenerList_.add(FileListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeFileListener(FileListener l) - { - listenerList_.remove(FileListener.class, l); - } - - //-------------------------------------------------------------------------- - - - protected void fireOpenFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileOpened(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireCloseFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireChangeFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are - // interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileChanged(evt); - } - } - } - - //-------------------------------------------------------------------------- -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXAny.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXAny.java deleted file mode 100644 index 4acb48ca79..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXAny.java +++ /dev/null @@ -1,342 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.text.DecimalFormat; -import java.text.MessageFormat; - -import FoamX.App; -import FoamX.Exceptions.FoamXException; - -import FoamXServer.DimensionSet; -import FoamXServer.DimensionSetHelper; -import FoamXServer.FoamXType; - -public class FoamXAny -{ - //------------------------------------------------------------------------- - - // Reference to the managed Any object. - private FoamXServer.FoamXAny fxAny_; - - //------------------------------------------------------------------------- - /** FoamXAny constructor. */ - public FoamXAny(FoamXType type) - { - // Create an uninitialised any object to manage. - fxAny_ = new FoamXServer.FoamXAny - ( - type, - org.omg.CORBA.ORB.init().create_any() - ); - } - - //------------------------------------------------------------------------- - /** FoamXAny constructor. */ - public FoamXAny(FoamXServer.FoamXAny any) - { - fxAny_ = new FoamXServer.FoamXAny(any.type, any.value); - } - - //------------------------------------------------------------------------- - /** Returns a string representation of the value with the Any object. */ - public String toString() - { - return anyToString(); - } - - //------------------------------------------------------------------------- - /** Returns the raw Any object. */ - public FoamXServer.FoamXAny getAny() - { - return fxAny_; - } - - //------------------------------------------------------------------------- - /** Sets the value within the Any object by parsing the given string. */ - public void setValue(String val) throws IllegalArgumentException - { - try - { - // Don't bother if the string is empty. - if (val == null || val.length() == 0) - { - // Reset the Any object to null state. - fxAny_.value = org.omg.CORBA.ORB.init().create_any(); - } - else - { - switch (fxAny_.type.value()) - { - case FoamXType._Type_Boolean: - try - { - Boolean bVal = Boolean.valueOf(val); - fxAny_.value.insert_boolean(bVal.booleanValue()); - } - catch (NumberFormatException ex) - { - throw new IllegalArgumentException - ( - val + " is not a boolean" - ); - } - break; - - case FoamXType._Type_Label: - try - { - int lVal = Integer.parseInt(val); - fxAny_.value.insert_long(lVal); - } - catch (NumberFormatException ex) - { - throw new IllegalArgumentException - ( - val + " is not an integer" - ); - } - break; - - case FoamXType._Type_Scalar: - try - { - double dVal = Double.parseDouble(val); - fxAny_.value.insert_double(dVal); - } - catch (NumberFormatException ex) - { - throw new IllegalArgumentException - ( - val + " is not a number" - ); - } - break; - - case FoamXType._Type_Char: - if (val.length() != 1) - { - throw new IllegalArgumentException - ( - val + " is not a single character" - ); - } - else - { - fxAny_.value.insert_string(val); - } - break; - - case FoamXType._Type_Word: - case FoamXType._Type_String: - - case FoamXType._Type_RootDir: - case FoamXType._Type_RootAndCase: - case FoamXType._Type_CaseName: - case FoamXType._Type_HostName: - case FoamXType._Type_File: - case FoamXType._Type_Directory: - case FoamXType._Type_Time: - - fxAny_.value.insert_string(val); - break; - - case FoamXType._Type_DimensionSet: - throw new IllegalArgumentException - ( - "Cannot create a dimensionSet in FoamXAny.setValue." - ); - - default: - throw new IllegalArgumentException - ( - "Invalid type " + fxAny_.type.value() - + " in FoamXAny.setValue." - ); - } - } - } - catch (org.omg.CORBA.BAD_OPERATION ex) - { - App.handleAllExceptions(ex); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //------------------------------------------------------------------------- - /** Static formatters */ - static private java.text.DecimalFormat intFormat_; - static private java.text.DecimalFormat fixedFormat_; - static private java.text.DecimalFormat expFormat_; - - //------------------------------------------------------------------------- - /** Initialisation for the static formatters */ - static - { - // Get and set decimal notation format object for labels and integers. - intFormat_ = new java.text.DecimalFormat(); - intFormat_.setGroupingUsed(false); - intFormat_.setMaximumFractionDigits(6); - - // Get and set decimal notation format object for fixed-format doubles - fixedFormat_ = new java.text.DecimalFormat("####.#####"); - fixedFormat_.setGroupingUsed(false); - fixedFormat_.setMinimumFractionDigits(1); - fixedFormat_.setMaximumFractionDigits(5); - fixedFormat_.setMinimumIntegerDigits(1); - fixedFormat_.setMaximumIntegerDigits(5); - fixedFormat_.setDecimalSeparatorAlwaysShown(true); - - // Get and set decimal notation format object for - // exponential-format doubles - expFormat_ = new java.text.DecimalFormat("0.#####E0"); - expFormat_.setGroupingUsed(false); - expFormat_.setMinimumFractionDigits(1); - expFormat_.setMaximumFractionDigits(5); - expFormat_.setMinimumIntegerDigits(1); - expFormat_.setMaximumIntegerDigits(1); - expFormat_.setDecimalSeparatorAlwaysShown(true); - } - - //------------------------------------------------------------------------- - /** Format a long as a String */ - static public String format(long iVal) - { - return intFormat_.format(iVal); - } - - //------------------------------------------------------------------------- - /** Format a double as a String */ - static public String format(double sVal) - { - if (sVal == 0) - { - return "0.0"; - } - else if (Math.abs(sVal) >= 1e3 || Math.abs(sVal) < 1e-3) - { - return expFormat_.format(sVal).replace('E', 'e'); - } - else - { - return fixedFormat_.format(sVal); - } - } - - //------------------------------------------------------------------------- - /** Format a DimensionSet as a String */ - static public String format(DimensionSet dimSet) - { - java.lang.Object[] args = new java.lang.Object[] - { - new Double(dimSet.mass), - new Double(dimSet.length), - new Double(dimSet.time), - new Double(dimSet.temperature), - new Double(dimSet.moles), - new Double(dimSet.current), - new Double(dimSet.luminousIntensity) - }; - return MessageFormat.format("[{0} {1} {2} {3} {4} {5} {6}]", args); - } - - - //------------------------------------------------------------------------- - /** Convert a Corba Any value into a nice string. */ - protected String anyToString() - { - String text = ""; // Return a blank string by default. - - try - { - // See if we have a null Any object. - if - ( - fxAny_.value.type().kind().value() - != org.omg.CORBA.TCKind._tk_null - ) - { - switch (fxAny_.type.value()) - { - case FoamXType._Type_Boolean: - text = new Boolean - ( - fxAny_.value.extract_boolean() - ).toString(); - break; - - case FoamXType._Type_Label: - text = format(fxAny_.value.extract_long()); - break; - case FoamXType._Type_Scalar: - text = format(fxAny_.value.extract_double()); - break; - - case FoamXType._Type_Char: - case FoamXType._Type_Word: - case FoamXType._Type_String: - - case FoamXType._Type_RootDir: - case FoamXType._Type_RootAndCase: - case FoamXType._Type_CaseName: - case FoamXType._Type_HostName: - case FoamXType._Type_File: - case FoamXType._Type_Directory: - case FoamXType._Type_Time: - text = fxAny_.value.extract_string(); - break; - - case FoamXType._Type_DimensionSet: - text = format(DimensionSetHelper.extract(fxAny_.value)); - break; - - default: - // Buggeration and damnation. - throw new Exception - ( - "Invalid type in FoamXAny.anyToString." - ); - } - } - } - catch (org.omg.CORBA.BAD_OPERATION ex) - { - App.handleAllExceptions(ex); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return text; - } -} - - -//----------------------------------------------------------------------------- diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXListRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXListRenderer.java deleted file mode 100644 index f87af4afbf..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXListRenderer.java +++ /dev/null @@ -1,131 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.awt.*; -import javax.swing.*; - -import FoamX.App; - -public class FoamXListRenderer - extends DefaultListCellRenderer -{ - //----------------------------------------------------------------------------------------- - - private Icon defaultIcon_; - - //----------------------------------------------------------------------------------------- - /** FoamXListRenderer constrcutor. */ - public FoamXListRenderer() - { - try - { - // Get a reference to the main resource helper and load a default icon. - defaultIcon_ = new ImageIcon(App.getResources().getResourceURL("UndefinedImage")); - setIcon(defaultIcon_); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //----------------------------------------------------------------------------------------- - - public Component getListCellRendererComponent - ( - JList list, - Object value, - int index, - boolean isSelected, - boolean cellHasFocus - ) - { - try - { - Component retValue = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); - - // Object should support the FoamXListItem interface. - FoamXListItem item = (FoamXListItem)value; - - // Set label text and icon. - setText(item.getText()); - setIcon(item.getIcon()); - - if (isSelected) - { - // Hack for X where the system colors are not all defined properly. - //if (SystemColor.textHighlightText.getRGB() == SystemColor.textHighlight.getRGB()) - //{ - // setForeground(Color.white); - // setBackground(Color.blue); - //} - //else - { - setForeground(SystemColor.textHighlightText); - setBackground(SystemColor.textHighlight); - } - } - else - { - // Hack for X where the system colors are not all defined properly. - //if (SystemColor.textText.getRGB() == tree.getBackground().getRGB()) - //{ - // setForeground(Color.black); - //} - //else - { - setForeground(SystemColor.textText); - } - setBackground(list.getBackground()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return this; - } - - //----------------------------------------------------------------------------------------- - /** This interface defines the methods required by all items using the FoamXListRenderer - * list renderer class. - */ - public static interface FoamXListItem - { - public Icon getIcon(); - public String getText(); - } - - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- -} - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTreeRenderer.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTreeRenderer.java deleted file mode 100644 index 8a9bc8317f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTreeRenderer.java +++ /dev/null @@ -1,161 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.awt.*; -import javax.swing.*; -import javax.swing.tree.*; - -import FoamX.App; - -public class FoamXTreeRenderer - extends JLabel - implements TreeCellRenderer -{ - //----------------------------------------------------------------------------------------- - - private Icon defaultIcon_; - - //----------------------------------------------------------------------------------------- - - /** FoamXTreeRenderer constructor. */ - public FoamXTreeRenderer() - { - try - { - // Get a reference to the main resource helper and load a default icon. - defaultIcon_ = new ImageIcon(App.getResources().getResourceURL("UndefinedImage")); - setIcon(defaultIcon_); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //----------------------------------------------------------------------------------------- - - public Component getTreeCellRendererComponent - ( - JTree tree, - Object value, - boolean selected, - boolean expanded, - boolean leaf, - int row, - boolean hasFocus - ) - { - try - { - // User object should support the FoamXTreeItem interface. - DefaultMutableTreeNode nodeItem = (DefaultMutableTreeNode)value; - - // See if this object has a user object associated with it. - if (nodeItem.getUserObject() != null) - { - FoamXTreeItem item = (FoamXTreeItem)nodeItem.getUserObject(); - - // Set label text and icon. - setText(item.getText()); - setIcon(item.getIcon()); - - if (selected) - { - // Hack for X where the system colors are not all defined properly. - //if (SystemColor.textHighlightText.getRGB() == SystemColor.textHighlight.getRGB()) - //{ - // setForeground(Color.white); - // setBackground(Color.blue); - //} - //else - { - setForeground(SystemColor.textHighlightText); - setBackground(SystemColor.textHighlight); - } - } - else - { - // Hack for X where the system colors are not all defined properly. - //if (SystemColor.textText.getRGB() == tree.getBackground().getRGB()) - //{ - // setForeground(Color.black); - //} - //else - { - setForeground(SystemColor.textText); - } - setBackground(tree.getBackground()); - } - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return this; - } - - //----------------------------------------------------------------------------------------- - - public void paint(Graphics g) - { - int textstart = 0; - - if (getIcon() != null) - { - textstart = getIcon().getIconWidth() + getIconTextGap(); - getIcon().paintIcon(this, g, 0, 0); - } - - int textwidth = getSize().width - textstart; - g.setColor(getBackground()); - g.fillRect(textstart, 0, textwidth, getSize().height); - g.setColor(getForeground()); - g.drawString(getText(), textstart, (getSize().height + g.getFontMetrics().getAscent()) / 2); - } - - //----------------------------------------------------------------------------------------- - /** This interface defines the methods required by all items using the FoamXTreeRenderer - * tree renderer class. - */ - public static interface FoamXTreeItem - { - public Icon getIcon(); - public String getText(); - } - - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- - //----------------------------------------------------------------------------------------- -} - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTypeEx.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTypeEx.java deleted file mode 100644 index bfc6cd7f79..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/FoamXTypeEx.java +++ /dev/null @@ -1,242 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import javax.swing.JComboBox; -import javax.swing.Icon; - -import FoamXServer.FoamXType; - -import FoamX.App; - -public class FoamXTypeEx - extends Object -{ - //-------------------------------------------------------------------------- - - public static final int NUM_TYPES = 20; - - // An appropriate icon for each type. - private static Icon[] icons_ = new Icon[NUM_TYPES]; - // An appropriate description for each type. - private static String[] names_ = new String[NUM_TYPES]; - // Named pair types for combo boxes. - private static FoamXNamedType[] namedTypes_ = new FoamXNamedType[NUM_TYPES]; - - // Map between the integer type code and the index into the icon and name - // arrays. - public static final int UNDEFINED_TYPE = FoamXType._Type_Undefined; - public static final int BOOLEAN_TYPE = FoamXType._Type_Boolean; - public static final int LABEL_TYPE = FoamXType._Type_Label; - public static final int SCALAR_TYPE = FoamXType._Type_Scalar; - public static final int CHAR_TYPE = FoamXType._Type_Char; - public static final int WORD_TYPE = FoamXType._Type_Word; - public static final int STRING_TYPE = FoamXType._Type_String; - - public static final int ROOTDIR_TYPE = FoamXType._Type_RootDir; - public static final int ROOTANDCASE_TYPE = FoamXType._Type_RootAndCase; - public static final int CASENAME_TYPE = FoamXType._Type_CaseName; - public static final int HOSTNAME_TYPE = FoamXType._Type_HostName; - public static final int FILE_TYPE = FoamXType._Type_File; - public static final int DIRECTORY_TYPE = FoamXType._Type_Directory; - public static final int TIME_TYPE = FoamXType._Type_Time; - - public static final int DIMENSIONSET_TYPE = FoamXType._Type_DimensionSet; - public static final int VECTORSPACE_TYPE = FoamXType._Type_FixedList; - public static final int LIST_TYPE = FoamXType._Type_List; - public static final int DICTIONARY_TYPE = FoamXType._Type_Dictionary; - public static final int SELECTION_TYPE = FoamXType._Type_Selection; - public static final int COMPOUND_TYPE = FoamXType._Type_Compound; - - //-------------------------------------------------------------------------- - - static - { - try - { - // Load icons. - icons_[UNDEFINED_TYPE] = App.getResources().getIcon("UndefinedImage"); - icons_[BOOLEAN_TYPE] = App.getResources().getIcon("BooleanImage"); - icons_[LABEL_TYPE] = App.getResources().getIcon("LabelImage"); - icons_[SCALAR_TYPE] = App.getResources().getIcon("ScalarImage"); - icons_[CHAR_TYPE] = App.getResources().getIcon("CharImage"); - icons_[WORD_TYPE] = App.getResources().getIcon("WordImage"); - icons_[STRING_TYPE] = App.getResources().getIcon("StringImage"); - - icons_[ROOTDIR_TYPE] = App.getResources().getIcon("StringImage"); - icons_[ROOTANDCASE_TYPE] = App.getResources().getIcon("StringImage"); - icons_[CASENAME_TYPE] = App.getResources().getIcon("StringImage"); - icons_[HOSTNAME_TYPE] = App.getResources().getIcon("StringImage"); - icons_[FILE_TYPE] = App.getResources().getIcon("StringImage"); - icons_[DIRECTORY_TYPE] = App.getResources().getIcon("StringImage"); - icons_[TIME_TYPE] = App.getResources().getIcon("StringImage"); - - icons_[DIMENSIONSET_TYPE] = App.getResources().getIcon("DimensionSetImage"); - icons_[VECTORSPACE_TYPE] = App.getResources().getIcon("FixedListImage"); - icons_[LIST_TYPE] = App.getResources().getIcon("ListImage"); - icons_[DICTIONARY_TYPE] = App.getResources().getIcon("DictionaryImage"); - icons_[SELECTION_TYPE] = App.getResources().getIcon("SelectionImage"); - icons_[COMPOUND_TYPE] = App.getResources().getIcon("CompoundImage"); - - // Load display names. - names_[UNDEFINED_TYPE] = "Undefined"; - names_[BOOLEAN_TYPE] = "Boolean"; - names_[LABEL_TYPE] = "Label"; - names_[SCALAR_TYPE] = "Scalar"; - names_[CHAR_TYPE] = "Char"; - names_[WORD_TYPE] = "Word"; - names_[STRING_TYPE] = "String"; - - names_[ROOTDIR_TYPE] = "RootDir"; - names_[ROOTANDCASE_TYPE] = "RootAndCase"; - names_[CASENAME_TYPE] = "CaseName"; - names_[HOSTNAME_TYPE] = "HostName"; - names_[FILE_TYPE] = "File"; - names_[DIRECTORY_TYPE] = "Directory"; - names_[TIME_TYPE] = "Time"; - - names_[DIMENSIONSET_TYPE] = "DimensionSet"; - names_[VECTORSPACE_TYPE] = "FixedList"; - names_[LIST_TYPE] = "List"; - names_[DICTIONARY_TYPE] = "Dictionary"; - names_[SELECTION_TYPE] = "Selection"; - names_[COMPOUND_TYPE] = "Compound"; - - // Load name-type pair objects. - namedTypes_[UNDEFINED_TYPE] = new FoamXNamedType(FoamXType._Type_Undefined); - namedTypes_[BOOLEAN_TYPE] = new FoamXNamedType(FoamXType._Type_Boolean); - namedTypes_[LABEL_TYPE] = new FoamXNamedType(FoamXType._Type_Label); - namedTypes_[SCALAR_TYPE] = new FoamXNamedType(FoamXType._Type_Scalar); - namedTypes_[CHAR_TYPE] = new FoamXNamedType(FoamXType._Type_Char); - namedTypes_[WORD_TYPE] = new FoamXNamedType(FoamXType._Type_Word); - namedTypes_[STRING_TYPE] = new FoamXNamedType(FoamXType._Type_String); - - namedTypes_[ROOTDIR_TYPE] = new FoamXNamedType(FoamXType._Type_RootDir); - namedTypes_[ROOTANDCASE_TYPE] = new FoamXNamedType(FoamXType._Type_RootAndCase); - namedTypes_[CASENAME_TYPE] = new FoamXNamedType(FoamXType._Type_CaseName); - namedTypes_[HOSTNAME_TYPE] = new FoamXNamedType(FoamXType._Type_HostName); - namedTypes_[FILE_TYPE] = new FoamXNamedType(FoamXType._Type_File); - namedTypes_[DIRECTORY_TYPE] = new FoamXNamedType(FoamXType._Type_Directory); - namedTypes_[TIME_TYPE] = new FoamXNamedType(FoamXType._Type_Time); - - namedTypes_[DIMENSIONSET_TYPE] = new FoamXNamedType(FoamXType._Type_DimensionSet); - namedTypes_[VECTORSPACE_TYPE] = new FoamXNamedType(FoamXType._Type_FixedList); - namedTypes_[LIST_TYPE] = new FoamXNamedType(FoamXType._Type_List); - namedTypes_[DICTIONARY_TYPE] = new FoamXNamedType(FoamXType._Type_Dictionary); - namedTypes_[SELECTION_TYPE] = new FoamXNamedType(FoamXType._Type_Selection); - namedTypes_[COMPOUND_TYPE] = new FoamXNamedType(FoamXType._Type_Compound); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public static void initialiseCombo(JComboBox combo) - { - for (int i=0; i -* Handy for use with NetBeans Developer's internal execution. Then the -* statistic of free memory in the whole environment is displayed. -*/ -public class MemoryView - extends javax.swing.JFrame -{ - /** bundle to use */ - private static ResourceBundle bundle = - ResourceBundle.getBundle ("resources.MemoryViewLocale"); - /** message of free memory */ - private static MessageFormat msgMemory = - new MessageFormat (bundle.getString ("TXT_STATUS")); - - /** default update time */ - private static final int UPDATE_TIME = 1000; - /** timer to invoke updating */ - private Timer timer; - - - /** Initializes the Form */ - public MemoryView() - { - initComponents (); - - setTitle (bundle.getString ("TXT_TITLE")); - doGarbage.setText (bundle.getString ("TXT_GARBAGE")); - doRefresh.setText (bundle.getString ("TXT_REFRESH")); - doClose.setText (bundle.getString ("TXT_CLOSE")); - - txtTime.setText (bundle.getString ("TXT_TIME")); - doTime.setText (bundle.getString ("TXT_SET_TIME")); - time.setText (String.valueOf (UPDATE_TIME)); - time.selectAll (); - time.requestFocus (); - - updateStatus (); - - timer = new Timer - ( - UPDATE_TIME, - new ActionListener () - { - public void actionPerformed (ActionEvent ev) - { - updateStatus (); - } - } - ); - timer.setRepeats (true); - - pack (); - } - - /** Starts the timer. - */ - public void addNotify () - { - super.addNotify (); - timer.start (); - } - - /** Stops the timer. - */ - public void removeNotify () - { - super.removeNotify (); - timer.stop (); - } - - /** Updates the status of all components */ - private void updateStatus () - { - Runtime r = Runtime.getRuntime (); - long free = r.freeMemory (); - long total = r.totalMemory (); - - // when bigger than integer then divide by two - while (total> Integer.MAX_VALUE) - { - total = total>> 1; - free = free>> 1; - } - - int taken = (int) (total - free); - - status.setMaximum ((int)total); - status.setValue (taken); - - text.setText - ( - msgMemory.format - ( - new Object[] - { - new Long (total), - new Long (free), - new Integer (taken) - } - ) - ); - text.invalidate(); - validate(); - } - - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents () - {//GEN-BEGIN:initComponents - jPanel1 = new javax.swing.JPanel (); - text = new javax.swing.JLabel (); - status = new javax.swing.JProgressBar (); - jPanel2 = new javax.swing.JPanel (); - doGarbage = new javax.swing.JButton (); - doRefresh = new javax.swing.JButton (); - doClose = new javax.swing.JButton (); - jPanel3 = new javax.swing.JPanel (); - txtTime = new javax.swing.JLabel (); - time = new javax.swing.JTextField (); - doTime = new javax.swing.JButton (); - addWindowListener (new java.awt.event.WindowAdapter () - { - public void windowClosing (java.awt.event.WindowEvent evt) - { - exitForm (evt); - } - } - ); - - jPanel1.setLayout (new java.awt.BorderLayout ()); - - - jPanel1.add (text, java.awt.BorderLayout.SOUTH); - - - jPanel1.add (status, java.awt.BorderLayout.CENTER); - - - getContentPane ().add (jPanel1, java.awt.BorderLayout.CENTER); - - - doGarbage.addActionListener (new java.awt.event.ActionListener () - { - public void actionPerformed (java.awt.event.ActionEvent evt) - { - doGarbageActionPerformed (evt); - } - } - ); - - jPanel2.add (doGarbage); - - doRefresh.addActionListener (new java.awt.event.ActionListener () - { - public void actionPerformed (java.awt.event.ActionEvent evt) - { - doRefreshActionPerformed (evt); - } - } - ); - - jPanel2.add (doRefresh); - - doClose.addActionListener (new java.awt.event.ActionListener () - { - public void actionPerformed (java.awt.event.ActionEvent evt) - { - doCloseActionPerformed (evt); - } - } - ); - - jPanel2.add (doClose); - - - getContentPane ().add (jPanel2, java.awt.BorderLayout.SOUTH); - - jPanel3.setLayout (new java.awt.BorderLayout (0, 20)); - - - jPanel3.add (txtTime, java.awt.BorderLayout.WEST); - - - jPanel3.add (time, java.awt.BorderLayout.CENTER); - - doTime.addActionListener (new java.awt.event.ActionListener () - { - public void actionPerformed (java.awt.event.ActionEvent evt) - { - setRefreshTime (evt); - } - } - ); - - jPanel3.add (doTime, java.awt.BorderLayout.EAST); - - - getContentPane ().add (jPanel3, java.awt.BorderLayout.NORTH); - - }//GEN-END:initComponents - - /** Exit the Application */ - private void exitForm (java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_exitForm - //System.exit(0); - // Close this dialog. - setVisible(false); - dispose(); - }//GEN-LAST:event_exitForm - - private void setRefreshTime (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_setRefreshTime - try { - int rate = Integer.valueOf (time.getText ()).intValue (); - timer.setDelay (rate); - } catch (NumberFormatException ex) - { - time.setText (String.valueOf (timer.getDelay ())); - } - time.selectAll (); - time.requestFocus (); - }//GEN-LAST:event_setRefreshTime - - - private void doCloseActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_doCloseActionPerformed - exitForm (null); - }//GEN-LAST:event_doCloseActionPerformed - - - private void doRefreshActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_doRefreshActionPerformed - updateStatus (); - }//GEN-LAST:event_doRefreshActionPerformed - - private void doGarbageActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_doGarbageActionPerformed - System.gc (); - updateStatus (); - }//GEN-LAST:event_doGarbageActionPerformed - - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel jPanel1; - private javax.swing.JLabel text; - private javax.swing.JProgressBar status; - private javax.swing.JPanel jPanel2; - private javax.swing.JButton doGarbage; - private javax.swing.JButton doRefresh; - private javax.swing.JButton doClose; - private javax.swing.JPanel jPanel3; - private javax.swing.JLabel txtTime; - private javax.swing.JTextField time; - private javax.swing.JButton doTime; - // End of variables declaration//GEN-END:variables - - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/MenuItemActionChangedListener.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/MenuItemActionChangedListener.java deleted file mode 100644 index 3808dc7826..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/MenuItemActionChangedListener.java +++ /dev/null @@ -1,63 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.beans.*; -import javax.swing.*; - -public class MenuItemActionChangedListener - implements PropertyChangeListener -{ - private JMenuItem menuItem_; - - public MenuItemActionChangedListener(JMenuItem menuItem) - { - super(); - menuItem_ = menuItem; - } - - public void propertyChange(PropertyChangeEvent e) - { - String propertyName = e.getPropertyName(); - if (e.getPropertyName().equals(Action.NAME)) - { - // Change the label on the menu item if the action name has changed. - String text = (String)e.getNewValue(); - menuItem_.setText(text); - } - else if (propertyName.equals("enabled")) - { - // Disable the menu item if the action has been disabled. - Boolean enabledState = (Boolean)e.getNewValue(); - menuItem_.setEnabled(enabledState.booleanValue()); - } - } -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ReferenceCount.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ReferenceCount.java deleted file mode 100644 index 4b6c6cf12c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ReferenceCount.java +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -public interface ReferenceCount -{ - public int addRef(); - public int release(); - public int refCount(); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ResourceHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ResourceHelper.java deleted file mode 100644 index c1554cc257..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/ResourceHelper.java +++ /dev/null @@ -1,249 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.util.*; -import java.net.URL; -import javax.swing.ImageIcon; - -import FoamX.App; - -public class ResourceHelper - extends Object -{ - //-------------------------------------------------------------------------- - - private ResourceBundle resources_; - - //-------------------------------------------------------------------------- - /** ResourceHelper constructor. */ - public ResourceHelper(String bundleName) throws MissingResourceException - { - try - { - // Get the application resource bundle object. - resources_ = ResourceBundle.getBundle(bundleName, Locale.getDefault()); - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - } - - //-------------------------------------------------------------------------- - /** Extract a simple string from the resource bundle. */ - public String getResourceString(String key) throws MissingResourceException - { - String str = null; - - try - { - str = resources_.getString(key); - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - - return str; - } - - //-------------------------------------------------------------------------- - - public String[] getResourceStringArray(String key) throws MissingResourceException - { - String[] strArray = null; - - try - { - String str = resources_.getString(key); - strArray = tokenizeString(str); - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - - return strArray; - } - - //-------------------------------------------------------------------------- - - public URL getResourceURL(String key) throws MissingResourceException - { - URL url = null; - - try - { - // Get the Url string from the resource file. - String name = resources_.getString(key); - url = getClass().getResource(name); - - // Check that this Url is valid. - if (url == null) - { - throw new MissingResourceException - ( - "Invalid Url", - "URL", - key - ); - } - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - - return url; - } - - //-------------------------------------------------------------------------- - /** - * Returns the Icon associated with the name from the resources. - * The resouce should be in the path. - * @param key Name of the resource specifying the icon. - * @return The ImageIcon object or null if the icon is not found. - */ - public ImageIcon getIcon(String key) throws MissingResourceException - { - ImageIcon icon = null; - - try - { - // Get the Url string from the resource file. - String name = resources_.getString(key); - URL url = getClass().getResource(name); - - // Check that this Url is valid. - if (url == null) - { - throw new MissingResourceException - ( - "Invalid Url", - "URL", - key - ); - } - - // Load the icon at the Url. - icon = new ImageIcon(url); - - if (icon == null) - { - throw new MissingResourceException - ( - "Invalid Icon Url", - "ImageIcon", - key - ); - } - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - - return icon; - } - - //-------------------------------------------------------------------------- - /** - * Returns the Icon from the specified URL. - */ - public ImageIcon getIcon(URL url) throws MissingResourceException - { - // Check that this Url is valid. - if (url == null) - { - throw new MissingResourceException - ( - "Invalid Url", - "URL", - "null" - ); - } - - ImageIcon icon = null; - - try - { - // Load the icon at the Url. - icon = new ImageIcon(url); - - if (icon == null) - { - throw new MissingResourceException - ( - "Invalid Url", - "ImageIcon", - url.toString() - ); - } - } - catch (MissingResourceException mre) - { - App.handleException(mre); - } - - return icon; - } - - //-------------------------------------------------------------------------- - /** - * Take the given string and chop it up into a series of - * strings on whitespace boundries. This is useful for - * getting an array of strings out of the resource file. - */ - protected String[] tokenizeString(String input) - { - Vector v = new Vector(); - StringTokenizer t = new StringTokenizer(input); - String cmd[]; - - while (t.hasMoreTokens()) - { - v.addElement(t.nextToken()); - } - cmd = new String[v.size()]; - for (int i=0; i - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/RunPanel.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/RunPanel.java deleted file mode 100644 index c7148d011c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/RunPanel.java +++ /dev/null @@ -1,872 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.Util; - -import java.io.*; -import java.util.*; -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.*; -import org.omg.CORBA.StringHolder; - -import FoamXServer.*; -import FoamXServer.CaseBrowser.*; - -import FoamX.App; -import FoamX.Exceptions.FoamXCancel; -import FoamX.Exceptions.FoamXException; -import FoamX.Util.BusyCursor; -import FoamX.Util.FileEditor; -import FoamX.Tools.InvokeUtilityAction; -import FoamX.CaseManagement.HostChooserDlg; -import FoamX.CaseManagement.CaseManager; -import FoamX.Util.FileMonitor; -import FoamX.Util.FileListener; -import FoamX.Util.FileEvent; - -import FoamX.Editors.CompoundEditor; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryCache; -import FoamX.Editors.DictionaryEntryEditor.EntryCache.DictionaryEntryCache; - -public class RunPanel - extends javax.swing.JDialog - implements FileListener -{ - //-------------------------------------------------------------------------- - - private static final int DEFAULT_HEIGHT = 400; - private static final int DEFAULT_WIDTH = 400; - - //-------------------------------------------------------------------------- - - protected java.awt.Frame parent_; - protected ICaseBrowser caseBrowser_; - protected String caseRoot_; - protected String caseName_; - protected String appName_; - protected String dictName_; - protected DictionaryCache controlDict_; // Utility top level dict - protected boolean hasArgs_; // has 'arguments' entry - protected boolean nonDefaultArgs_; // needs other than - // just case/root - - protected String[] args_; - - - //-------------------------------------------------------------------------- - /** Creates new form RunPanel */ - public RunPanel - ( - java.awt.Frame parent, - ICaseBrowser caseBrowser, - String caseRoot, - String caseName, - String appName, // application to invoke - boolean isApp, // application or utility - String dictName, // dictionary to edit (if any) - DictionaryCache controlDict // entry of dictionary (if any) - ) - { - super(parent, "Run Editor", false); // Non modal. - - parent_ = parent; - - try - { - caseBrowser_ = caseBrowser; - caseRoot_ = caseRoot; - caseName_ = caseName; - appName_ = appName; - dictName_ = dictName; - controlDict_ = controlDict; - - initComponents(); - - - // Title - setTitle(appName_); - - // - // Initialise various input fields - // - - // Enable background running for Applications - if (isApp) - { - backgroundBox_.setSelected(true); - } - - // Start without args - argListText_.setText(""); - argListText_.setEnabled(false); - - // Run on local host - StringHolder holder = new StringHolder(); - caseBrowser_.getHostName(holder); - machineText_.setText(holder.value); - - args_ = new String[1]; - args_[0] = ""; - - if (controlDict_ == null) - { - dictNameText_.setText(""); - dictNameText_.setEnabled(false); - - editDictButton_.setEnabled(false); - - // Set argument list to root and case - setArgsField(true, null); - editArgsButton_.setEnabled(false); - } - else - { - dictNameText_.setText(controlDict_.getEntryName()); - dictNameText_.setEnabled(false); - - editDictButton_.setEnabled(true); - - // Set argument list from entries in controlDict - setDefaultArgs(controlDict_); - //// Disalllow editing - // editArgsButton_.setEnabled(nonDefaultArgs_); - } - - if (isApp) - { - String rootAndCase = caseRoot_ + "/" + caseName_; - String logName = rootAndCase + '/' + appName_ + ".log"; - logText_.setText(logName); - } - else - { - logText_.setText(""); - } - - - setVisible(true); - } - catch(FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch(Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - // Fill in root and case in arguments in controlDict and check if more - // than root and case are needed. - private void setDefaultArgs(DictionaryCache dict) - { - hasArgs_ = false; - nonDefaultArgs_ = false; - - // Get the arguments subelement of the utility dictionary - DictionaryEntryCache argumentsEntry = dict.getSubEntry("arguments"); - - if (argumentsEntry != null) - { - hasArgs_ = true; - nonDefaultArgs_ = true; - - // Loop over all argument entries and replace rootAndCase with - // current values. - DictionaryEntryCache[] args = argumentsEntry.getSubElements(); - - for (int i = 0; i < args.length; i++) - { - DictionaryEntryCache arg = args[i]; - - int typeValue = arg.getTypeDescriptor().getType().value(); - - if (typeValue == FoamXType._Type_RootDir) - { - arg.updateValue(caseRoot_); - } - else if (typeValue == FoamXType._Type_RootAndCase) - { - arg.updateValue(caseRoot_ + "/" + caseName_); - - if (args.length == 1) - { - // Only one argument which is case and root. - nonDefaultArgs_ = false; - } - } - else if (typeValue == FoamXType._Type_CaseName) - { - arg.updateValue(caseName_); - } - } - - // Update displayed argument string - setArgsField(false, argumentsEntry); - } - } - - //-------------------------------------------------------------------------- - // Set arguments textField from control dictionary arguments or - // straight from root,case. - private void setArgsField - ( - boolean isApp, - DictionaryEntryCache argumentsEntry - ) - { - if (argumentsEntry != null) - { - //- Get arguments as vector first - Vector argsVector = new Vector(); - argumentsEntry.toStringRaw(argsVector); - - // Set both args_(for calling) and argString(for displaying) - - args_ = new String[argsVector.size()]; - String argString = ""; - - int argi = 0; - - for (int i = 0; i < argsVector.size(); i++) - { - String arg = (String)argsVector.elementAt(i); - - args_[argi++] = arg; - argString += arg; - - if (i <= argsVector.size() - 1) - { - argString += ' '; - } - } - - argListText_.setText(argString); - } - else if (isApp) - { - args_ = new String[2]; - args_[0] = "-case"; - args_[1] = caseRoot_ + '/' + caseName_; - argListText_.setText(args_[0] + " " + args_[1]); - } - } - - //-------------------------------------------------------------------------- - // Has dictionary been modified (and needs to be saved)? - // If only 'arguments' entry changed don't bother saving - private boolean dictModified() - { - try - { - if (controlDict_ == null) - { - return false; - } - - // Underlying dictionary has not been modified - if (!controlDict_.getDictEntry().modified()) - { - return false; - } - - // Has been modified. Check if only arguments have been modified. - - int nSubEntries = controlDict_.getDictEntry().nSubElements(); - if (nSubEntries == 0) - { - return false; - } - if (nSubEntries > 1) - { - return true; - } - - // Only one entry in controlDict. Is arguments? - if (hasArgs_) - { - return false; - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - - return true; - } - - //-------------------------------------------------------------------------- - //---- FileListener Interface - //-------------------------------------------------------------------------- - - public void fileOpened(FileEvent evt) - { - } - - public void fileClosed(FileEvent evt) - { - } - - public void fileChanged(FileEvent evt) - { - String fName = evt.file().getPath(); - - int index = fName.lastIndexOf('.'); - - if (index >= 0) - { - JOptionPane.showMessageDialog - ( - this, - "Application " + appName_ - + " (pid " + fName.substring(index+1) + ") finished", - "FoamX...", - JOptionPane.INFORMATION_MESSAGE - ); - } - FileMonitor fm = (FileMonitor)evt.getSource(); - - fm.removeFileListener(this); - } - - //-------------------------------------------------------------------------- - //---- GUI - //-------------------------------------------------------------------------- - - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the FormEditor. - */ - private void initComponents()//GEN-BEGIN:initComponents - { - mainPanel_ = new javax.swing.JPanel(); - editDictButton_ = new javax.swing.JButton(); - dictNameText_ = new javax.swing.JTextField(); - editArgsButton_ = new javax.swing.JButton(); - argListText_ = new javax.swing.JTextField(); - startRunButton_ = new javax.swing.JButton(); - machineLabel_ = new javax.swing.JLabel(); - machineText_ = new javax.swing.JTextField(); - backgroundBox_ = new javax.swing.JCheckBox(); - logLabel_ = new javax.swing.JLabel(); - viewLogButton_ = new javax.swing.JButton(); - logText_ = new javax.swing.JTextField(); - buttonPanel_ = new javax.swing.JPanel(); - closeButton_ = new javax.swing.JButton(); - - getContentPane().setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints1; - - setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); - setTitle("Run Editor"); - setFont(new java.awt.Font("Dialog", 0, 10)); - setName("Run Editor"); - addWindowListener(new java.awt.event.WindowAdapter() - { - public void windowClosing(java.awt.event.WindowEvent evt) - { - closeDialog(evt); - } - }); - - mainPanel_.setLayout(new java.awt.GridBagLayout()); - java.awt.GridBagConstraints gridBagConstraints2; - - mainPanel_.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10))); - mainPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - mainPanel_.setPreferredSize(new java.awt.Dimension(400, 200)); - editDictButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - editDictButton_.setText("Edit Dictionary"); - editDictButton_.setMaximumSize(new java.awt.Dimension(117, 24)); - editDictButton_.setMinimumSize(new java.awt.Dimension(117, 24)); - editDictButton_.setPreferredSize(new java.awt.Dimension(117, 21)); - editDictButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - editDictButton_ActionPerformed(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(editDictButton_, gridBagConstraints2); - - dictNameText_.setFont(new java.awt.Font("Dialog", 0, 10)); - dictNameText_.setText("dictionaryName"); - dictNameText_.setMinimumSize(new java.awt.Dimension(250, 17)); - dictNameText_.setPreferredSize(new java.awt.Dimension(300, 17)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 0; - gridBagConstraints2.gridwidth = 5; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - mainPanel_.add(dictNameText_, gridBagConstraints2); - - editArgsButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - editArgsButton_.setText("Edit Arguments"); - editArgsButton_.setMaximumSize(new java.awt.Dimension(117, 24)); - editArgsButton_.setMinimumSize(new java.awt.Dimension(117, 24)); - editArgsButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - editArgsButton_ActionPerformed(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(0, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(editArgsButton_, gridBagConstraints2); - - argListText_.setFont(new java.awt.Font("Dialog", 0, 10)); - argListText_.setText("root case"); - argListText_.setMinimumSize(new java.awt.Dimension(250, 17)); - argListText_.setPreferredSize(new java.awt.Dimension(300, 17)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 1; - gridBagConstraints2.gridwidth = 5; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - mainPanel_.add(argListText_, gridBagConstraints2); - - startRunButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - startRunButton_.setText("Execute"); - startRunButton_.setMaximumSize(new java.awt.Dimension(117, 24)); - startRunButton_.setMinimumSize(new java.awt.Dimension(117, 24)); - startRunButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - startRunButton_ActionPerformed(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(0, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(startRunButton_, gridBagConstraints2); - - machineLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - machineLabel_.setText("machine:"); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST; - mainPanel_.add(machineLabel_, gridBagConstraints2); - - machineText_.setFont(new java.awt.Font("Dialog", 0, 10)); - machineText_.setText("penfold"); - machineText_.setToolTipText("Machine Name"); - machineText_.setMinimumSize(new java.awt.Dimension(60, 15)); - machineText_.setPreferredSize(new java.awt.Dimension(60, 15)); - machineText_.addMouseListener(new java.awt.event.MouseAdapter() - { - public void mouseClicked(java.awt.event.MouseEvent evt) - { - machineText_MouseClicked(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 2; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.gridwidth = 3; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - mainPanel_.add(machineText_, gridBagConstraints2); - - backgroundBox_.setFont(new java.awt.Font("Dialog", 0, 10)); - backgroundBox_.setText("background"); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 5; - gridBagConstraints2.gridy = 2; - gridBagConstraints2.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST; - mainPanel_.add(backgroundBox_, gridBagConstraints2); - - logLabel_.setFont(new java.awt.Font("Dialog", 0, 10)); - logLabel_.setText("log:"); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 1; - gridBagConstraints2.gridy = 3; - gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST; - mainPanel_.add(logLabel_, gridBagConstraints2); - - viewLogButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - viewLogButton_.setText("View Log"); - viewLogButton_.setMaximumSize(new java.awt.Dimension(117, 24)); - viewLogButton_.setMinimumSize(new java.awt.Dimension(117, 24)); - viewLogButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - viewLogButton_ActionPerformed(evt); - } - }); - - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 0; - gridBagConstraints2.gridy = 3; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints2.insets = new java.awt.Insets(0, 5, 5, 5); - gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; - mainPanel_.add(viewLogButton_, gridBagConstraints2); - - logText_.setFont(new java.awt.Font("Dialog", 0, 10)); - logText_.setText("log.icoFoam"); - logText_.setMinimumSize(new java.awt.Dimension(250, 15)); - gridBagConstraints2 = new java.awt.GridBagConstraints(); - gridBagConstraints2.gridx = 2; - gridBagConstraints2.gridy = 3; - gridBagConstraints2.gridwidth = 4; - gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL; - mainPanel_.add(logText_, gridBagConstraints2); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 0; - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5); - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - getContentPane().add(mainPanel_, gridBagConstraints1); - - buttonPanel_.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); - - buttonPanel_.setBorder(new javax.swing.border.EtchedBorder()); - buttonPanel_.setFont(new java.awt.Font("Dialog", 0, 10)); - buttonPanel_.setPreferredSize(new java.awt.Dimension(400, 100)); - closeButton_.setFont(new java.awt.Font("Dialog", 0, 10)); - closeButton_.setText("Close"); - closeButton_.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - OnClose(evt); - } - }); - - buttonPanel_.add(closeButton_); - - gridBagConstraints1 = new java.awt.GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; - gridBagConstraints1.weightx = 1.0; - getContentPane().add(buttonPanel_, gridBagConstraints1); - - pack(); - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setSize(new java.awt.Dimension(480, 200)); - setLocation((screenSize.width-480)/2,(screenSize.height-200)/2); - }//GEN-END:initComponents - - private void machineText_MouseClicked(java.awt.event.MouseEvent evt)//GEN-FIRST:event_machineText_MouseClicked - {//GEN-HEADEREND:event_machineText_MouseClicked - // Add your handling code here: - - // Pop up host chooser panel - HostChooserDlg hostChooser = - new HostChooserDlg(parent_); - hostChooser.setVisible(true); - - if (hostChooser.getHostName() != null) - { - machineText_.setText(hostChooser.getHostName()); - } - }//GEN-LAST:event_machineText_MouseClicked - - private void viewLogButton_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_viewLogButton_ActionPerformed - {//GEN-HEADEREND:event_viewLogButton_ActionPerformed - // Add your handling code here: - - if (logText_.getText().length() > 0) - { - new FileEditor - ( - true, // modal - false, // Edit mode - caseBrowser_, - logText_.getText(), - 0, - 0, - 0 - ); - } - - }//GEN-LAST:event_viewLogButton_ActionPerformed - - private void startRunButton_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_startRunButton_ActionPerformed - {//GEN-HEADEREND:event_startRunButton_ActionPerformed - // Add your handling code here: - - try - { - // Try to save first - CaseManager caseManager = App.getCaseManager(); - if (caseManager == null) - { - throw new FoamXException - ( - "No caseManager in top-level App." - ); - } - caseManager.saveCaseNice(caseRoot_, caseName_); - - // Actually invoke utility on the caseBrowser. - int pid = caseBrowser_.invokeUtility - ( - machineText_.getText(), - appName_, - args_, - logText_.getText(), - backgroundBox_.isSelected() - ); - - if (backgroundBox_.isSelected()) - { - // When running in background print pid started with and - // install filemonitor to check for finishing. - if (pid != -1) - { - // Do like JOptionPane.showMessageDialog but non-modal. - // (from sable-vm) - JOptionPane pane = - new JOptionPane - ( - "Application " + appName_ - + " started with pid " + pid, - JOptionPane.INFORMATION_MESSAGE - ); - JDialog dialog = pane.createDialog(this, "FoamX..."); - dialog.setModal(false); - dialog.pack(); - dialog.setVisible(true); - - // Install new file change listener - StringHolder holder = new StringHolder(); - caseBrowser_.getEnv("FOAM_JOB_DIR", holder); - - File[] files = new File[1]; - files[0] = - new File - ( - holder.value - + "/finishedJobs/" - + machineText_.getText() - + "." - + pid - ); - - int sleep = Integer.parseInt - ( - App.getOptions().getProperty("FoamX.FileSleep", "5000") - ); - - FileMonitor finishedMonitor = - new FileMonitor(caseBrowser_, files, sleep); - - finishedMonitor.addFileListener(this); - - Thread monitorThread = new Thread(finishedMonitor); - - monitorThread.start(); - } - } - else - { - // Foreground running. Warn when finished. - JOptionPane.showMessageDialog - ( - this, - "Application " + appName_ + " (pid " + pid - + ") finished successfully", - "FoamX...", - JOptionPane.INFORMATION_MESSAGE - ); - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXException ex) - { - App.handleAllExceptions(ex); - } - - }//GEN-LAST:event_startRunButton_ActionPerformed - - private void editArgsButton_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_editArgsButton_ActionPerformed - {//GEN-HEADEREND:event_editArgsButton_ActionPerformed - // Add your handling code here: - - try - { - if (controlDict_ != null) - { - // Get the arguments subelement of the utility dictionary - DictionaryEntryCache argumentsEntry = - controlDict_.getSubEntry("arguments"); - if (argumentsEntry != null) - { - CompoundEditor compoundEditor = - new CompoundEditor - ( - parent_, - argumentsEntry.getDictEntry() - ); - compoundEditor.setVisible(true); - - // Update displayed value - setArgsField(false, argumentsEntry); - - } - if (dictModified()) - { - controlDict_.getDictEntry().save(); - } - } - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - - }//GEN-LAST:event_editArgsButton_ActionPerformed - - private void editDictButton_ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_editDictButton_ActionPerformed - {//GEN-HEADEREND:event_editDictButton_ActionPerformed - // Add your handling code here: - - try - { - CompoundEditor compoundEditor = - new CompoundEditor - ( - parent_, - controlDict_.getDictEntry() - ); - - compoundEditor.setVisible(true); - - DictionaryEntryCache argumentsEntry = - controlDict_.getSubEntry("arguments"); - - // Update displayed value - setArgsField(false, argumentsEntry); - - if (dictModified()) - { - controlDict_.getDictEntry().save(); - } - } - catch (FoamXError fxErr) - { - App.handleAllExceptions(fxErr); - } - catch (FoamXIOError ioErr) - { - App.handleAllExceptions(ioErr); - } - - }//GEN-LAST:event_editDictButton_ActionPerformed - - //-------------------------------------------------------------------------- - - private void shapeTypeComboActionPerformed (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_shapeTypeComboActionPerformed - }//GEN-LAST:event_shapeTypeComboActionPerformed - - //-------------------------------------------------------------------------- - - private void OnClose (java.awt.event.ActionEvent evt) - {//GEN-FIRST:event_OnClose - setVisible(false); - dispose(); - }//GEN-LAST:event_OnClose - - //-------------------------------------------------------------------------- - /** Closes the dialog */ - - private void closeDialog(java.awt.event.WindowEvent evt) - {//GEN-FIRST:event_closeDialog - setVisible(false); - dispose(); - }//GEN-LAST:event_closeDialog - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel mainPanel_; - private javax.swing.JButton editDictButton_; - private javax.swing.JTextField dictNameText_; - private javax.swing.JButton editArgsButton_; - private javax.swing.JTextField argListText_; - private javax.swing.JButton startRunButton_; - private javax.swing.JLabel machineLabel_; - private javax.swing.JTextField machineText_; - private javax.swing.JCheckBox backgroundBox_; - private javax.swing.JLabel logLabel_; - private javax.swing.JButton viewLogButton_; - private javax.swing.JTextField logText_; - private javax.swing.JPanel buttonPanel_; - private javax.swing.JButton closeButton_; - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/SimpleEditor.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/SimpleEditor.java deleted file mode 100644 index e7a7c0d2fc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/SimpleEditor.java +++ /dev/null @@ -1,705 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.util.Hashtable; - -import javax.swing.*; -import javax.swing.text.*; -import javax.swing.event.*; -import javax.swing.undo.*; - -import FoamX.App; -import FoamXServer.CaseBrowser.ICaseBrowser; - - -public class SimpleEditor extends JFrame implements FileListener -{ - JTextPane textPane_; - DefaultStyledDocument lsd_; - Hashtable actions_; - JFileChooser fileChooser_; - File file_; - - // Listen for changes to followed file - FileMonitor monitor_; - - // Casebrowser reference - ICaseBrowser caseBrowser_; - - boolean followMode_; - - // Objects interested in file status - protected EventListenerList listenerList_; - - //undo helpers - protected UndoAction undoAction_; - protected RedoAction redoAction_; - protected UndoManager undo_ = new UndoManager(); - - public SimpleEditor() - { - //some initial setup - super("Simple Editor"); - - monitor_ = null; - - caseBrowser_ = null; - - followMode_ = false; - - //Create the document for the text area. - lsd_ = new DefaultStyledDocument(); - - initComponents(); - - // Create listener list. - listenerList_ = new EventListenerList(); - - //Start watching for undoable edits and caret changes. - lsd_.addUndoableEditListener(new MyUndoableEditListener()); - } - - //-------------------------------------------------------------------------- - /** Access textPane */ - public JTextPane getTextPane() - { - return textPane_; - } - - - //-------------------------------------------------------------------------- - /** Initialize gui - */ - private void initComponents() - { - //Create the text pane and configure it. - textPane_ = new JTextPane(lsd_); - textPane_.setCaretPosition(0); - textPane_.setMargin(new Insets(5,5,5,5)); - textPane_.setFont(new java.awt.Font("Monospaced", 0, 12)); - - JScrollPane scrollPane = new JScrollPane(textPane_); - scrollPane.setPreferredSize(new Dimension(660, 400)); - - setContentPane(scrollPane); - - //Set up the menu bar. - createActionTable(textPane_); - - fileChooser_ = new JFileChooser(); - - JMenu fileMenu = createfileMenu(); - JMenu editMenu = createEditMenu(); - JMenuBar mb = new JMenuBar(); - mb.add(fileMenu); - mb.add(editMenu); - setJMenuBar(mb); - - pack(); - - setDefaultCloseOperation - ( - javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE - ); - addWindowListener - ( - new WindowAdapter() - { - public void windowClosing(WindowEvent evt) - { - exitEditor(); - } - } - ); - } - - - //-------------------------------------------------------------------------- - /** Open file */ - public void openFile(File inFile) - { - try - { - // Inform file status listeners - fireOpenFile(inFile); - - // Read data from file - int size = (int)inFile.length(); - - FileInputStream inStream = new FileInputStream(inFile); - - int nRead = 0; - byte[] data = new byte[size]; - while(nRead < size) - { - nRead += inStream.read(data, nRead, size-nRead); - } - inStream.close(); - - textPane_.setText(new String(data)); - file_ = inFile; - - // Clear undoes - undo_.discardAllEdits(); - - // Does not work. Todo - SimpleEditor.this.setTitle(file_.getName()); - } - catch (Exception ex) - { - System.out.println("Cannot open file " + inFile); - } - } - - //-------------------------------------------------------------------------- - /** Follow file */ - public void followFile(ICaseBrowser caseBrowser, File inFile) - { - try - { - caseBrowser_ = caseBrowser; - - openFile(inFile); - - followMode_ = true; - - // Disable editing - getTextPane().setEditable(false); - - System.out.println("Positioning cursor"); - JTextPane textPane = getTextPane(); - textPane.setCaretPosition(textPane.getText().length()); - - // Install file change listener - - File[] files = new File[1]; - files[0] = inFile; - - int sleep = Integer.parseInt - ( - App.getOptions().getProperty("FoamX.FileSleep", "1000") - ); - - monitor_ = new FileMonitor(caseBrowser_, files, sleep); - - monitor_.addFileListener(this); - - Thread monitorThread = new Thread(monitor_); - - monitorThread.start(); - } - catch (Exception ex) - { - System.out.println("Cannot open file " + inFile); - } - } - - //-------------------------------------------------------------------------- - /** Save file */ - protected void saveFile(File outFile) - { - try - { - FileOutputStream outStream = new FileOutputStream(outFile); - - outStream.write(textPane_.getText().getBytes()); - outStream.close(); - - // Clear undoes - undo_.discardAllEdits(); - - // Inform file status listeners - fireSaveFile(outFile); - } - catch (Exception ex) - { - System.out.println("Cannot save file " + outFile); - } - } - - //-------------------------------------------------------------------------- - /** Exit panel */ - protected void exitEditor() - { - if (undo_.canUndo()) - { - if - ( - JOptionPane.showConfirmDialog - ( - SimpleEditor.this, - "File has changed. Are you sure you want to quit?", - "Confirm Quit Operation", - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE - ) - != - JOptionPane.OK_OPTION - ) - { - return; - } - } - - if (monitor_ != null) - { - //System.out.println("Uninstalling fileMonitor on " + file_); - - monitor_.removeFileListener(this); - monitor_.stop(); - monitor_ = null; - } - - // Inform file status listeners - fireCloseFile(file_); - - // Delete my frame - setVisible(false); - dispose(); - } - - - //This one listens for edits that can be undone. - protected class MyUndoableEditListener - implements UndoableEditListener - { - public void undoableEditHappened(UndoableEditEvent e) - { - //Remember the edit and update the menus. - undo_.addEdit(e.getEdit()); - undoAction_.updateUndoState(); - redoAction_.updateRedoState(); - } - } - - - //Create the file menu. - protected JMenu createfileMenu() - { - JMenu menu = new JMenu("File"); - - ReOpenFileAction reOpenFileAction = new ReOpenFileAction(); - menu.add(reOpenFileAction); - - OpenFileAction openFileAction = new OpenFileAction(); - menu.add(openFileAction); - - SaveFileAction saveFileAction = new SaveFileAction(); - menu.add(saveFileAction); - - menu.addSeparator(); - - ExitAction exitAction = new ExitAction(); - menu.add(exitAction); - - return menu; - } - - //-------------------------------------------------------------------------- - //Create the edit menu. - protected JMenu createEditMenu() - { - JMenu menu = new JMenu("Edit"); - - //Undo and redo are actions of our own creation. - undoAction_ = new UndoAction(); - menu.add(undoAction_); - - redoAction_ = new RedoAction(); - menu.add(redoAction_); - - menu.addSeparator(); - - //These actions come from the default editor kit. - //Get the ones we want and stick them in the menu. - menu.add(getActionByName(DefaultEditorKit.cutAction)); - menu.add(getActionByName(DefaultEditorKit.copyAction)); - menu.add(getActionByName(DefaultEditorKit.pasteAction)); - - menu.addSeparator(); - - menu.add(getActionByName(DefaultEditorKit.selectAllAction)); - return menu; - } - - //-------------------------------------------------------------------------- - - //The following two methods allow us to find an - //action provided by the editor kit by its name. - private void createActionTable(JTextComponent textComponent) - { - actions_ = new Hashtable(); - Action[] actionsArray = textComponent.getActions(); - for (int i = 0; i < actionsArray.length; i++) { - Action a = actionsArray[i]; - actions_.put(a.getValue(Action.NAME), a); - } - } - - - //-------------------------------------------------------------------------- - - private Action getActionByName(String name) - { - return (Action)(actions_.get(name)); - } - - //-------------------------------------------------------------------------- - - class OpenFileAction extends AbstractAction - { - public OpenFileAction() - { - super("Open"); - setEnabled(true); - } - - public void actionPerformed(ActionEvent e) - { - if (file_ != null) - { - File parentFile = file_.getParentFile(); - if (parentFile == null) - { - parentFile = new File("."); - } - - fileChooser_.setCurrentDirectory(parentFile); - fileChooser_.setSelectedFile(file_); - } - if - ( - fileChooser_.showOpenDialog(SimpleEditor.this) - != JFileChooser.APPROVE_OPTION - ) - { - return; - } - openFile(fileChooser_.getSelectedFile()); - } - } - - //-------------------------------------------------------------------------- - - class ReOpenFileAction extends AbstractAction - { - public ReOpenFileAction() - { - super("ReOpen"); - setEnabled(true); - } - - public void actionPerformed(ActionEvent e) - { - openFile(file_); - } - } - - //-------------------------------------------------------------------------- - - class SaveFileAction extends AbstractAction - { - public SaveFileAction() - { - super("Save"); - setEnabled(true); - } - - public void actionPerformed(ActionEvent e) - { - File parentFile = file_.getParentFile(); - if (parentFile == null) - { - parentFile = new File("."); - } - - fileChooser_.setCurrentDirectory(parentFile); - fileChooser_.setSelectedFile(file_); - - if - ( - fileChooser_.showSaveDialog(SimpleEditor.this) - != JFileChooser.APPROVE_OPTION - ) - { - return; - } - saveFile(fileChooser_.getSelectedFile()); - } - } - - //-------------------------------------------------------------------------- - - class ExitAction extends AbstractAction - { - public ExitAction() - { - super("Exit"); - setEnabled(true); - } - - public void actionPerformed(ActionEvent e) - { - exitEditor(); - } - } - - //-------------------------------------------------------------------------- - - class UndoAction extends AbstractAction - { - public UndoAction() - { - super("Undo"); - setEnabled(false); - } - - public void actionPerformed(ActionEvent e) - { - try { - undo_.undo(); - } - catch (CannotUndoException ex) - { - System.out.println("Unable to undo: " + ex); - ex.printStackTrace(); - } - updateUndoState(); - redoAction_.updateRedoState(); - } - - protected void updateUndoState() - { - if (undo_.canUndo()) - { - setEnabled(true); - putValue(Action.NAME, undo_.getUndoPresentationName()); - } - else - { - setEnabled(false); - putValue(Action.NAME, "Undo"); - } - } - } - - //-------------------------------------------------------------------------- - - class RedoAction extends AbstractAction - { - public RedoAction() - { - super("Redo"); - setEnabled(false); - } - - public void actionPerformed(ActionEvent e) - { - try - { - undo_.redo(); - } - catch (CannotRedoException ex) - { - System.out.println("Unable to redo: " + ex); - ex.printStackTrace(); - } - updateRedoState(); - undoAction_.updateUndoState(); - } - - protected void updateRedoState() - { - if (undo_.canRedo()) - { - setEnabled(true); - putValue(Action.NAME, undo_.getRedoPresentationName()); - } - else - { - setEnabled(false); - putValue(Action.NAME, "Redo"); - } - } - } - - //-------------------------------------------------------------------------- - //---- FileListener Interface - //-------------------------------------------------------------------------- - - public void addFileListener(FileListener l) - { - listenerList_.add(FileListener.class, l); - } - - //-------------------------------------------------------------------------- - - public void removeFileListener(FileListener l) - { - listenerList_.remove(FileListener.class, l); - } - - //-------------------------------------------------------------------------- - - - protected void fireOpenFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileOpened(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireCloseFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileClosed(evt); - } - } - } - - //-------------------------------------------------------------------------- - - protected void fireSaveFile(File file) - { - // Create event object. - FileEvent evt = new FileEvent(this, file); - - // Process the listeners last to first, notifying those that are interested in this event. - Object[] listeners = listenerList_.getListenerList(); - for (int i=listeners.length-2; i>= 0; i-=2) - { - if (listeners[i] == FileListener.class) - { - ((FileListener)listeners[i+1]).fileChanged(evt); - } - } - } - -// //-------------------------------------------------------------------------- -// /** Starts SimpleEditor. All the reading to/from casebrowser is handled -// * by FileListener events -// */ -// public class KeepOpeningThread implements Runnable -// { -// SimpleEditor editor_; -// File file_; -// -// public KeepOpeningThread(SimpleEditor editor, File file) -// { -// super(); -// editor_ = editor; -// file_ = file; -// } -// -// public void run() -// { -// try -// { -// while (true) -// { -// System.out.println("Trying to load " + file_); -// editor_.openFile(file_); -// -// System.out.println("Positioning cursor"); -// JTextPane textPane = editor_.getTextPane(); -// String text = textPane.getText(); -// textPane.setCaretPosition(text.length()); -// -// Thread.currentThread().sleep(1000); -// } -// } -// catch(InterruptedException iex) {} -// } -// } - - - //-------------------------------------------------------------------------- - //---- FileListener Interface. - // Callback from FileMonitor (only if in follow mode) - //-------------------------------------------------------------------------- - - public void fileOpened(FileEvent evt) - {} - - public void fileClosed(FileEvent evt) - {} - - public void fileChanged(FileEvent evt) - { - File file = evt.file(); - - //System.out.println("Followed file changed " + file); - - openFile(file); - - JTextPane textPane = getTextPane(); - textPane.setCaretPosition(textPane.getText().length()); - } - - //-------------------------------------------------------------------------- - - //The standard main method. - public static void main(String[] args) - { - if (args.length != 1) - { - System.out.println("Usage: java SimpleEditor file"); - System.exit(1); - } - final SimpleEditor frame = - new SimpleEditor(); - - File file = new File(args[0]); - - frame.openFile(file); - - frame.setVisible(true); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TabSelection.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TabSelection.java deleted file mode 100644 index 1cd8bec65e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TabSelection.java +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -public interface TabSelection -{ - public void tabSelected(); - public void tabDeselected(); -} - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableMap.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableMap.java deleted file mode 100644 index 1c99a77fb0..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableMap.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * In a chain of data manipulators some behaviour is common. TableMap - * provides most of this behavour and can be subclassed by filters - * that only need to override a handful of specific methods. TableMap - * implements TableModel by routing all requests to its model, and - * TableModelListener by routing all events to its listeners. Inserting - * a TableMap which has not been subclassed into a chain of table filters - * should have no effect. - * - * @version 1.4 12/17/97 - * @author Philip Milne */ - -package FoamX.Util; - -import javax.swing.table.*; -import javax.swing.event.TableModelListener; -import javax.swing.event.TableModelEvent; - -public class TableMap extends AbstractTableModel - implements TableModelListener { - protected TableModel model; - - public TableModel getModel() { - return model; - } - - public void setModel(TableModel model) { - this.model = model; - model.addTableModelListener(this); - } - - // By default, implement TableModel by forwarding all messages - // to the model. - - public Object getValueAt(int aRow, int aColumn) { - return model.getValueAt(aRow, aColumn); - } - - public void setValueAt(Object aValue, int aRow, int aColumn) { - model.setValueAt(aValue, aRow, aColumn); - } - - public int getRowCount() { - return (model == null) ? 0 : model.getRowCount(); - } - - public int getColumnCount() { - return (model == null) ? 0 : model.getColumnCount(); - } - - public String getColumnName(int aColumn) { - return model.getColumnName(aColumn); - } - - public Class getColumnClass(int aColumn) { - return model.getColumnClass(aColumn); - } - - public boolean isCellEditable(int row, int column) { - return model.isCellEditable(row, column); - } -// -// Implementation of the TableModelListener interface, -// - // By default forward all events to all the listeners. - public void tableChanged(TableModelEvent e) { - fireTableChanged(e); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableSorter.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableSorter.java deleted file mode 100644 index d80c992acc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/TableSorter.java +++ /dev/null @@ -1,312 +0,0 @@ -/** - * A sorter for TableModels. The sorter has a model (conforming to TableModel) - * and itself implements TableModel. TableSorter does not store or copy - * the data in the TableModel, instead it maintains an array of - * integers which it keeps the same size as the number of rows in its - * model. When the model changes it notifies the sorter that something - * has changed eg. "rowsAdded" so that its internal array of integers - * can be reallocated. As requests are made of the sorter (like - * getValueAt(row, col) it redirects them to its model via the mapping - * array. That way the TableSorter appears to hold another copy of the table - * with the rows in a different order. The sorting algorthm used is stable - * which means that it does not move around rows when its comparison - * function returns 0 to denote that they are equivalent. - * - * @version 1.5 12/17/97 - * @author Philip Milne - */ -package FoamX.Util; - -import java.util.*; - -import javax.swing.table.TableModel; -import javax.swing.event.TableModelEvent; - -// Imports for picking up mouse events from the JTable. - -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; -import java.awt.event.InputEvent; -import javax.swing.JTable; -import javax.swing.table.JTableHeader; -import javax.swing.table.TableColumnModel; - -public class TableSorter extends TableMap { - int indexes[]; - Vector sortingColumns = new Vector(); - boolean ascending = true; - int compares; - - public TableSorter() { - indexes = new int[0]; // for consistency - } - - public TableSorter(TableModel model) { - setModel(model); - } - - public void setModel(TableModel model) { - super.setModel(model); - reallocateIndexes(); - } - - public int compareRowsByColumn(int row1, int row2, int column) { - Class type = model.getColumnClass(column); - TableModel data = model; - - // Check for nulls. - - Object o1 = data.getValueAt(row1, column); - Object o2 = data.getValueAt(row2, column); - - // If both values are null, return 0. - if (o1 == null && o2 == null) { - return 0; - } else if (o1 == null) { // Define null less than everything. - return -1; - } else if (o2 == null) { - return 1; - } - - /* - * We copy all returned values from the getValue call in case - * an optimised model is reusing one object to return many - * values. The Number subclasses in the JDK are immutable and - * so will not be used in this way but other subclasses of - * Number might want to do this to save space and avoid - * unnecessary heap allocation. - */ - - if (type.getSuperclass() == java.lang.Number.class) { - Number n1 = (Number)data.getValueAt(row1, column); - double d1 = n1.doubleValue(); - Number n2 = (Number)data.getValueAt(row2, column); - double d2 = n2.doubleValue(); - - if (d1 < d2) { - return -1; - } else if (d1 > d2) { - return 1; - } else { - return 0; - } - } else if (type == java.util.Date.class) { - Date d1 = (Date)data.getValueAt(row1, column); - long n1 = d1.getTime(); - Date d2 = (Date)data.getValueAt(row2, column); - long n2 = d2.getTime(); - - if (n1 < n2) { - return -1; - } else if (n1 > n2) { - return 1; - } else { - return 0; - } - } else if (type == String.class) { - String s1 = (String)data.getValueAt(row1, column); - String s2 = (String)data.getValueAt(row2, column); - int result = s1.compareTo(s2); - - if (result < 0) { - return -1; - } else if (result > 0) { - return 1; - } else { - return 0; - } - } else if (type == Boolean.class) { - Boolean bool1 = (Boolean)data.getValueAt(row1, column); - boolean b1 = bool1.booleanValue(); - Boolean bool2 = (Boolean)data.getValueAt(row2, column); - boolean b2 = bool2.booleanValue(); - - if (b1 == b2) { - return 0; - } else if (b1) { // Define false < true - return 1; - } else { - return -1; - } - } else { - Object v1 = data.getValueAt(row1, column); - String s1 = v1.toString(); - Object v2 = data.getValueAt(row2, column); - String s2 = v2.toString(); - int result = s1.compareTo(s2); - - if (result < 0) { - return -1; - } else if (result > 0) { - return 1; - } else { - return 0; - } - } - } - - public int compare(int row1, int row2) { - compares++; - for (int level = 0; level < sortingColumns.size(); level++) { - Integer column = (Integer)sortingColumns.elementAt(level); - int result = compareRowsByColumn(row1, row2, column.intValue()); - if (result != 0) { - return ascending ? result : -result; - } - } - return 0; - } - - public void reallocateIndexes() { - int rowCount = model.getRowCount(); - - // Set up a new array of indexes with the right number of elements - // for the new data model. - indexes = new int[rowCount]; - - // Initialise with the identity mapping. - for (int row = 0; row < rowCount; row++) { - indexes[row] = row; - } - } - - public void tableChanged(TableModelEvent e) { - //System.out.println("Sorter: tableChanged"); - reallocateIndexes(); - - super.tableChanged(e); - } - - public void checkModel() { - if (indexes.length != model.getRowCount()) { - System.err.println("Sorter not informed of a change in model."); - } - } - - public void sort(Object sender) { - checkModel(); - - compares = 0; - // n2sort(); - // qsort(0, indexes.length-1); - shuttlesort((int[])indexes.clone(), indexes, 0, indexes.length); - //System.out.println("Compares: "+compares); - } - - public void n2sort() { - for (int i = 0; i < getRowCount(); i++) { - for (int j = i+1; j < getRowCount(); j++) { - if (compare(indexes[i], indexes[j]) == -1) { - swap(i, j); - } - } - } - } - - // This is a home-grown implementation which we have not had time - // to research - it may perform poorly in some circumstances. It - // requires twice the space of an in-place algorithm and makes - // NlogN assigments shuttling the values between the two - // arrays. The number of compares appears to vary between N-1 and - // NlogN depending on the initial order but the main reason for - // using it here is that, unlike qsort, it is stable. - public void shuttlesort(int from[], int to[], int low, int high) { - if (high - low < 2) { - return; - } - int middle = (low + high)/2; - shuttlesort(to, from, low, middle); - shuttlesort(to, from, middle, high); - - int p = low; - int q = middle; - - /* This is an optional short-cut; at each recursive call, - check to see if the elements in this subset are already - ordered. If so, no further comparisons are needed; the - sub-array can just be copied. The array must be copied rather - than assigned otherwise sister calls in the recursion might - get out of sinc. When the number of elements is three they - are partitioned so that the first set, [low, mid), has one - element and and the second, [mid, high), has two. We skip the - optimisation when the number of elements is three or less as - the first compare in the normal merge will produce the same - sequence of steps. This optimisation seems to be worthwhile - for partially ordered lists but some analysis is needed to - find out how the performance drops to Nlog(N) as the initial - order diminishes - it may drop very quickly. */ - - if (high - low >= 4 && compare(from[middle-1], from[middle]) <= 0) { - for (int i = low; i < high; i++) { - to[i] = from[i]; - } - return; - } - - // A normal merge. - - for (int i = low; i < high; i++) { - if (q >= high || (p < middle && compare(from[p], from[q]) <= 0)) { - to[i] = from[p++]; - } - else { - to[i] = from[q++]; - } - } - } - - public void swap(int i, int j) { - int tmp = indexes[i]; - indexes[i] = indexes[j]; - indexes[j] = tmp; - } - - // The mapping only affects the contents of the data rows. - // Pass all requests to these rows through the mapping array: "indexes". - - public Object getValueAt(int aRow, int aColumn) { - checkModel(); - return model.getValueAt(indexes[aRow], aColumn); - } - - public void setValueAt(Object aValue, int aRow, int aColumn) { - checkModel(); - model.setValueAt(aValue, indexes[aRow], aColumn); - } - - public void sortByColumn(int column) { - sortByColumn(column, true); - } - - public void sortByColumn(int column, boolean ascending) { - this.ascending = ascending; - sortingColumns.removeAllElements(); - sortingColumns.addElement(new Integer(column)); - sort(this); - super.tableChanged(new TableModelEvent(this)); - } - - // There is no-where else to put this. - // Add a mouse listener to the Table to trigger a table sort - // when a column heading is clicked in the JTable. - public void addMouseListenerToHeaderInTable(JTable table) { - final TableSorter sorter = this; - final JTable tableView = table; - tableView.setColumnSelectionAllowed(false); - MouseAdapter listMouseListener = new MouseAdapter() { - public void mouseClicked(MouseEvent e) { - TableColumnModel columnModel = tableView.getColumnModel(); - int viewColumn = columnModel.getColumnIndexAtX(e.getX()); - int column = tableView.convertColumnIndexToModel(viewColumn); - if (e.getClickCount() == 1 && column != -1) { - //System.out.println("Sorting ..."); - int shiftPressed = e.getModifiers()&InputEvent.SHIFT_MASK; - boolean ascending = (shiftPressed == 0); - sorter.sortByColumn(column, ascending); - } - } - }; - JTableHeader th = tableView.getTableHeader(); - th.addMouseListener(listMouseListener); - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/VarString.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/VarString.java deleted file mode 100644 index 45f23c2553..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/VarString.java +++ /dev/null @@ -1,90 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -package FoamX.Util; - -import java.util.*; - -public class VarString -{ - private String expandedStr_ = ""; - - //-------------------------------------------------------------------------- - /** VarString constructor. */ - public VarString(String str, Hashtable vars) - throws Exception - { - int i = 0; - - while (i < str.length()) - { - char c = str.charAt(i); - - if (c == '$') - { - int varEnd = parseVar(str, i+1); - String varName = str.substring(i+1, varEnd); - if (!vars.containsKey(varName)) - { - throw new Exception - ( - "Unknown variable name " + varName + " in " + str - ); - } - expandedStr_ += vars.get(varName); - i = varEnd; - } - else - { - expandedStr_ += c; - i++; - } - } - } - - - //-------------------------------------------------------------------------- - /** Get expanded string */ - public String string() - { - return expandedStr_; - } - - //-------------------------------------------------------------------------- - /** Find end of variable name. Returns index of first non identifier - * character - */ - private int parseVar(String str, int i) - { - // First character after $ is always excepted. - i++; - while ((i < str.length()) && Character.isLetterOrDigit(str.charAt(i))) - { - i++; - } - return i; - } -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/filesystem.attributes b/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/filesystem.attributes deleted file mode 100644 index c8bfa47f35..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/Util/filesystem.attributes and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/.nbattrs b/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/.nbattrs deleted file mode 100644 index 2a54caa47f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/.nbattrs +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.form b/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.form deleted file mode 100644 index caeedfd944..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.form +++ /dev/null @@ -1,24 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.java deleted file mode 100644 index d4cfd0893c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/FoamXInternalFrame.java +++ /dev/null @@ -1,95 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.WindowManagement; - -import java.awt.*; -import javax.swing.*; - -import FoamX.App; - -public class FoamXInternalFrame - extends javax.swing.JInternalFrame -{ - //-------------------------------------------------------------------------- - - protected int windowID_; // The ID of the window hosted by this frame. - - //-------------------------------------------------------------------------- - - /** Creates new form FoamXInternalFrame */ - public FoamXInternalFrame(int windowID, JComponent component) - { - try - { - windowID_ = windowID; - - // Default GUI initialisation. - initComponents(); - - // Set the component for this window. - getContentPane().add(component, java.awt.BorderLayout.CENTER); - pack(); - - // Set the frame title. - setTitle(component.toString()); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public int getWindowID() - { - return windowID_; - } - - //-------------------------------------------------------------------------- - /** This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always regenerated by the FormEditor. - */ - private void initComponents() {//GEN-BEGIN:initComponents - - setMaximizable(true); - setIconifiable(true); - setResizable(true); - setClosable(true); - }//GEN-END:initComponents - - //-------------------------------------------------------------------------- - - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/WindowManager.java b/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/WindowManager.java deleted file mode 100644 index 9ceae61422..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/WindowManagement/WindowManager.java +++ /dev/null @@ -1,433 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ -package FoamX.WindowManagement; - -import java.util.*; -import java.awt.Rectangle; -import java.awt.Point; -import java.awt.event.*; -import javax.swing.*; - -import FoamX.App; - -public class WindowManager - implements FoamX.ActionManagement.IActionProvider -{ - //-------------------------------------------------------------------------- - - protected JDesktopPane desktopPanel_; // Reference to the desktop panel object. - protected JPopupMenu contextMenu_; - protected Hashtable windowMap_; // Map of FoamXInternalFrame objects. - protected int windowCount_; - protected Point windowPosition_; - protected int defaultFrameWidth_; - protected int defaultFrameHeight_; - - //-------------------------------------------------------------------------- - // Window manager actions. - private Action[] actions_ = - { - new ArrangeWindowsCascadeAction(), - new ArrangeWindowsHorizontalAction(), - new ArrangeWindowsVerticalAction() - }; - - //-------------------------------------------------------------------------- - /** ModuleWindowManager constructor. */ - public WindowManager(JDesktopPane desktopPanel) - { - try - { - desktopPanel_ = desktopPanel; - contextMenu_ = new javax.swing.JPopupMenu(); - windowMap_ = new Hashtable(10); - windowCount_ = 0; - windowPosition_ = new Point(0, 0); - - contextMenu_.setFont(new java.awt.Font("Courier", 0, 10)); - - // Listen out for right mouse clicks. - desktopPanel_.addMouseListener - ( - new java.awt.event.MouseAdapter() - { - public void mouseClicked(java.awt.event.MouseEvent evt) - { - OnMouseClick(evt); - } - } - ); - - // Get the default frame size. - defaultFrameWidth_ = 400; - defaultFrameHeight_ = 350; - if (App.getOptions().containsKey("WindowManager.InternalFrameWidth")) - { - defaultFrameWidth_ = Integer.parseInt(App.getOptions().getProperty("WindowManager.InternalFrameWidth")); - } - if (App.getOptions().containsKey("WindowManager.InternalFrameHeight")) - { - defaultFrameHeight_ = Integer.parseInt(App.getOptions().getProperty("WindowManager.InternalFrameHeight")); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - /** - * Create a new window and adds it to the desktop. - * @return The id of the new window. - * @param component A reference to the component to be hosted by the new - * window. - */ - public int createWindow(javax.swing.JComponent component) - { - int windowID = -1; - - try - { - // Allocate a new Window ID. - windowID = windowCount_++; - - // Create a new FoamXInternalFrame object and add the component. - FoamXInternalFrame frame = new FoamXInternalFrame - ( - windowID, - component - ); - - // Add new window to the map. - windowMap_.put(new Integer(windowID), frame); - - // Add new window to the desktop. - desktopPanel_.add(frame, javax.swing.JLayeredPane.DEFAULT_LAYER); - - // Reset initial position if desktop panel is smaller than required. - if (windowPosition_.getX()>= 50) //desktopPanel_.getWidth()) - { - windowPosition_.setLocation(0, 0); - } - - int width = defaultFrameWidth_; - int height = defaultFrameHeight_; - - // Use component provided sizes - java.awt.Dimension componentSize = component.getPreferredSize(); - if (componentSize != null) - { - width = (int)componentSize.getWidth(); - height = (int)componentSize.getHeight(); - } - - // Clip to desktop size - width = Math.min(width, desktopPanel_.getWidth()); - height = Math.min(height, desktopPanel_.getHeight()); - - // Set the frame size and position. - frame.setBounds - ( - (int)windowPosition_.getX(), - (int)windowPosition_.getY(), - width, - height - ); - windowPosition_.translate(10, 10); - - // Subscribe to the FoamXInternalFrame object's frameClosed event. - frame.addInternalFrameListener - ( - new javax.swing.event.InternalFrameAdapter() - { - public void internalFrameClosed - ( - javax.swing.event.InternalFrameEvent evt - ) - { - FoamXInternalFrame evtFrame = - (FoamXInternalFrame)evt.getSource(); - if (evtFrame != null) - { - onFrameClosed(evtFrame.getWindowID()); - } - } - } - ); - - // Finally show the window. - frame.toFront(); - frame.setVisible(true); - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - windowID = -1; - } - - return windowID; - } - - //-------------------------------------------------------------------------- - - public void closeWindow(int windowID) - { - try - { - if (windowMap_.containsKey(new Integer(windowID))) - { - FoamXInternalFrame frame = (FoamXInternalFrame)windowMap_.get(new Integer(windowID)); - - // Remove window from the desktop. - desktopPanel_.remove(frame); - desktopPanel_.updateUI(); // TODO : Check whether we need - - // Close the window. This will fire a Frame Closed event which - // we handle in onFrameClosed where we tidy up the window map. - frame.setClosed(true); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void showWindow(int windowID) - { - try - { - if (windowMap_.containsKey(new Integer(windowID))) - { - FoamXInternalFrame frame = (FoamXInternalFrame)windowMap_.get(new Integer(windowID)); - - // See if this window is iconified. - if (frame.isIcon()) frame.setIcon(false); - frame.setVisible(true); - frame.toFront(); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public void hideWindow(int windowID) - { - try - { - if (windowMap_.containsKey(new Integer(windowID))) - { - FoamXInternalFrame frame = (FoamXInternalFrame)windowMap_.get(new Integer(windowID)); - - // Hide window. - frame.setVisible(false); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - public FoamXInternalFrame getWindowFrame(int windowID) - { - FoamXInternalFrame frame = null; - - try - { - // Check for valid window ID. - if (windowMap_.containsKey(new Integer(windowID))) - { - frame = (FoamXInternalFrame)windowMap_.get(new Integer(windowID)); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - - return frame; - } - - //-------------------------------------------------------------------------- - - protected void onFrameClosed(int windowId) - { - try - { - if (windowMap_.containsKey(new Integer(windowId))) - { - // Remove window from map. - windowMap_.remove(new Integer(windowId)); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - protected void OnMouseClick(java.awt.event.MouseEvent evt) - { - try - { - // Show context menu for the desktop. - //if (evt.isPopupTrigger()) - if (evt.getModifiers() == evt.BUTTON3_MASK) - { - // Construct context menu. - contextMenu_.removeAll(); - - JMenuItem mnuProperties = new JMenuItem(); - mnuProperties.setFont(new java.awt.Font("Courier", 0, 10)); - mnuProperties.setText("Properties..."); - contextMenu_.add(mnuProperties); - - // Display the context menu. - contextMenu_.show(desktopPanel_, evt.getX(), evt.getY()); - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - - protected void arrangeWindowsCascade() - { - try - { - int x = 0; - - Enumeration iter = windowMap_.elements(); - while (iter.hasMoreElements()) - { - FoamXInternalFrame frame = (FoamXInternalFrame)iter.nextElement(); - - frame.setBounds(x, x, defaultFrameWidth_, defaultFrameHeight_); - x += 20; - } - } - catch (Exception ex) - { - App.handleAllExceptions(ex); - } - } - - //-------------------------------------------------------------------------- - //---- IActionProvider Interface Methods - //-------------------------------------------------------------------------- - - public String getPrefix() - { - return "WindowManager"; - } - public javax.swing.Action[] getActions() - { - return actions_; - } - - //-------------------------------------------------------------------------- - //---- Action Classes - //-------------------------------------------------------------------------- - - class ArrangeWindowsCascadeAction - extends AbstractAction - { - ArrangeWindowsCascadeAction() - { - putValue(Action.NAME, "ArrangeCascade"); - putValue(Action.SMALL_ICON, App.getResources().getIcon("NewPatchPhysicalTypeImage")); - putValue(Action.SHORT_DESCRIPTION, "Arrange windows cascade"); - putValue(Action.LONG_DESCRIPTION, "Arrange windows cascade"); - } - - public void actionPerformed(ActionEvent e) - { - arrangeWindowsCascade(); - } - } - - //-------------------------------------------------------------------------- - - class ArrangeWindowsHorizontalAction - extends AbstractAction - { - ArrangeWindowsHorizontalAction() - { - putValue(Action.NAME, "ArrangeHorizontal"); - putValue(Action.SMALL_ICON, App.getResources().getIcon("NewPatchPhysicalTypeImage")); - putValue(Action.SHORT_DESCRIPTION, "Arrange windows horizontally"); - putValue(Action.LONG_DESCRIPTION, "Arrange windows horizontally"); - } - - public void actionPerformed(ActionEvent e) - { - arrangeWindowsCascade(); - } - } - - //-------------------------------------------------------------------------- - - class ArrangeWindowsVerticalAction - extends AbstractAction - { - ArrangeWindowsVerticalAction() - { - putValue(Action.NAME, "ArrangeVertical"); - putValue(Action.SMALL_ICON, App.getResources().getIcon("NewPatchPhysicalTypeImage")); - putValue(Action.SHORT_DESCRIPTION, "Arrange windows vertically"); - putValue(Action.LONG_DESCRIPTION, "Arrange windows vertically"); - } - - public void actionPerformed(ActionEvent e) - { - arrangeWindowsCascade(); - } - } - - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- - //-------------------------------------------------------------------------- -} - - - - diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bold.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bold.gif deleted file mode 100644 index e521b7081d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bold.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bullets.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bullets.gif deleted file mode 100644 index 845085cf19..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/bullets.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/center.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/center.gif deleted file mode 100644 index 15d6798ffd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/center.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/copy.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/copy.gif deleted file mode 100644 index de22235a00..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/copy.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/cut.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/cut.gif deleted file mode 100644 index 1fcafecdd8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/cut.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dictionary.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dictionary.xpm deleted file mode 100644 index fd8df6fab3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dictionary.xpm and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dot.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dot.gif deleted file mode 100644 index e30ccf20e5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/dot.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/fg.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/fg.gif deleted file mode 100644 index 8b52dd7d5c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/fg.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/italic.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/italic.gif deleted file mode 100644 index ae47eac076..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/italic.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/left.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/left.gif deleted file mode 100644 index d798fed853..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/left.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/mini-exclam.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/mini-exclam.xpm deleted file mode 100644 index 4e10d97a6c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/mini-exclam.xpm and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/new.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/new.gif deleted file mode 100644 index 6dfc96c714..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/new.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/newAppClass.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/newAppClass.xpm deleted file mode 100644 index be257efabc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/newAppClass.xpm and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.gif deleted file mode 100644 index caee52994c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.xpm deleted file mode 100644 index f36df68754..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/open.xpm and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_crop.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_crop.gif deleted file mode 100644 index b45e730b8f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_crop.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_draw.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_draw.gif deleted file mode 100644 index a1d75adc04..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_draw.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_hand.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_hand.gif deleted file mode 100644 index c6bf964351..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_hand.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_select.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_select.gif deleted file mode 100644 index 7cfc71a92f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_select.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_text.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_text.gif deleted file mode 100644 index 4690974f9c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_text.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_zoom.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_zoom.gif deleted file mode 100644 index b19c2718ed..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/palette_zoom.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/paste.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/paste.gif deleted file mode 100644 index 6c15b63be9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/paste.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/pause.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/pause.gif deleted file mode 100644 index 06ac403861..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/pause.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/right.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/right.gif deleted file mode 100644 index 8c74cb4199..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/right.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/run.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/run.gif deleted file mode 100644 index 5a88590061..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/run.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.gif deleted file mode 100644 index aa27aa04c3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.xpm deleted file mode 100644 index ed3d0d0f55..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/save.xpm and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/stop.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/stop.gif deleted file mode 100644 index d806ca1219..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/stop.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/swirl.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/swirl.gif deleted file mode 100644 index a7e1d360be..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/swirl.gif +++ /dev/null @@ -1,6 +0,0 @@ -P7 332 -#XVVERSION: -#IMGINFO: -#END_OF_COMMENTS: -9 9 255 -IÛÛÛÛÛÛÛÛIÛIIIIIIÛIÛIÛÛÛÛIÛIÛIÛIIÛIÛIÛIÛÛIÛIÛIÛIÛÛIÛIÛIÛIIIIÛIÛIÛÛÛÛÛÛIÛIIIIIIIIÛ \ No newline at end of file diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/underline.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/underline.gif deleted file mode 100644 index 64bdd3f15c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/.xvpics/underline.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bold.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bold.gif deleted file mode 100644 index 544a8ec2f6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bold.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bullets.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bullets.gif deleted file mode 100644 index 23aff77cc9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/bullets.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/center.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/center.gif deleted file mode 100644 index a7ef58fc0f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/center.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/copy.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/copy.gif deleted file mode 100644 index 2178eb5d18..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/copy.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/cut.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/cut.gif deleted file mode 100644 index 9dca1e2f84..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/cut.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dictionary.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dictionary.xpm deleted file mode 100644 index acba639e9a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dictionary.xpm +++ /dev/null @@ -1,27 +0,0 @@ -/* XPM */ -static char*mini[]={ -"16 16 8 1", -"c c #c0c0c0", -"a c #808000", -"d c #404000", -"b c #000000", -"# c #303030", -". c None", -"f c #a0a0a4", -"e c #ffffff", -"................", -".......###......", -"......#aaabb....", -".....baaaaaabb..", -"....baaaaaaaaabb", -"...baaaaaaaaaab.", -"..baaaaaaaaaabc.", -".baaaaaaaaaabccb", -"baaaaaaaaaabccb.", -"bbdaaaaaaabccb..", -"becbdaaaabccb...", -"beeecbdabccb....", -".bbeeecbccb.....", -"...bbeefcb......", -".....bbfb.......", -".......b........"}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dot.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dot.gif deleted file mode 100644 index b6a13d7a46..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/dot.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/fg.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/fg.gif deleted file mode 100644 index 8475160c18..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/fg.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/italic.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/italic.gif deleted file mode 100644 index 0042b7f4cf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/italic.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/left.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/left.gif deleted file mode 100644 index e9fe1b7ec0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/left.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/mini-exclam.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/mini-exclam.xpm deleted file mode 100644 index 47abc4aecb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/mini-exclam.xpm +++ /dev/null @@ -1,24 +0,0 @@ -/* XPM */ -static char * mini_exclam_xpm[] = { -"16 16 5 1", -" s None c None", -". c #808080", -"X c #008000", -"o c white", -"O c black", -" .X ", -" .oXX. ", -" .oXXXO ", -" XXXXXO ", -" .XXXXO. ", -" XXXXXO ", -" XXXXO ", -" XXXO ", -" XXO ", -" XO ", -" O ", -" .oXX ", -" XXXX. ", -" XXO. ", -" .O. ", -" "}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/new.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/new.gif deleted file mode 100644 index 0812c57714..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/new.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/newAppClass.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/newAppClass.xpm deleted file mode 100644 index 78a431ae5f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/newAppClass.xpm +++ /dev/null @@ -1,22 +0,0 @@ -/* XPM */ -static char * mini-frame_xpm[] = { -"16 16 3 1", -" c None s None", -". c red", -"# c black", -" ", -" ..... ", -" .#####. ", -" .# ... . ", -" .# .###. . ", -" .# . ..# ", -" .# .#. .# ", -" .# .# .# . ", -" .#. .# .# ", -" .. .# .# ", -" .# . .# . ", -" . ...# .# ", -" . ## .# ", -" .....# ", -" #### ", -" "}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.gif deleted file mode 100644 index fe0914f283..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.xpm deleted file mode 100644 index d1cd8bb28d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/open.xpm +++ /dev/null @@ -1,29 +0,0 @@ -/* XPM */ -static char *mini-ofolder[] = { -/* width height num_colors chars_per_pixel */ -" 16 16 6 1", -/* colors */ -" c None s None", -". c black", -"# c #808080", -"g c white", -"h c #c0c0c0", -"j c yellow", -/* pixels */ -" ", -" ##### ", -" #ggggg# ", -" #ghjhjhg###### ", -" #gjhjhjhggggg#.", -" #ghjhjhjhjhjh#.", -"#############j#.", -"#gggggggggg#.h#.", -"#ghjhjhjhjhj.##.", -" #ghjhjhjhjh#.#.", -" #gjhjhjhjhjh.#.", -" #gjhjhjhjhj#..", -" ############..", -" .............", -" ", -" ", -}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_crop.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_crop.gif deleted file mode 100644 index 636b66870b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_crop.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_draw.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_draw.gif deleted file mode 100644 index bfda313419..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_draw.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_hand.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_hand.gif deleted file mode 100644 index 0dd4d38ef7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_hand.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_select.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_select.gif deleted file mode 100644 index 7087ea1e71..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_select.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_text.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_text.gif deleted file mode 100644 index 35b7d13115..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_text.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_zoom.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_zoom.gif deleted file mode 100644 index 21fbb25f86..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/palette_zoom.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/paste.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/paste.gif deleted file mode 100644 index 9c3638a050..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/paste.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/pause.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/pause.gif deleted file mode 100644 index 083abcb42f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/pause.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/right.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/right.gif deleted file mode 100644 index 64b7995052..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/right.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/run.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/run.gif deleted file mode 100644 index 1838e4b2d4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/run.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.gif deleted file mode 100644 index 6acb730560..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.xpm deleted file mode 100644 index 1d26807ca8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/save.xpm +++ /dev/null @@ -1,29 +0,0 @@ -/* XPM */ -static char * mini_diskett_xpm[] = { -/* width height ncolors cpp [x_hot y_hot] */ -"16 16 7 1 0 0", -/* colors */ -" c #000080", -". s iconColor1 m black c black", -"X s none m none c none", -"o s iconColor6 m white c yellow", -"O s iconGray1 m white c #e0e0e0", -"+ s iconColor2 m white c white", -"@ c #C0C0C0", -/* pixels */ -" ........... X", -" ooooooooooo .", -" OOOOOOOOOOO .", -" +++++++++++ .", -" OOOOOOOOOOO .", -" +++++++++++ .", -" OOOOOOOOOOO .", -" +++++++++++ .", -" .", -" @@@@@@@ .", -" @ @@@@ .", -" @ @@@@ .", -" @ @@@@ .", -" @ @@@@ .", -"X @@@@@@@ .", -"XX.............."}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/.xvpics/dictionary.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/.xvpics/dictionary.gif deleted file mode 100644 index ab89df94c7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/.xvpics/dictionary.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeClosed.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeClosed.gif deleted file mode 100644 index 92906710d5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeClosed.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeLeaf.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeLeaf.gif deleted file mode 100644 index 12ec258657..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeLeaf.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeOpen.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeOpen.gif deleted file mode 100644 index 642fb09daf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/TreeOpen.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/back.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/back.gif deleted file mode 100644 index e331454726..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/back.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binary.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binary.gif deleted file mode 100644 index 995f79b9b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binary.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binhex.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binhex.gif deleted file mode 100644 index 3d54a5458e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/binhex.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/blank.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/blank.gif deleted file mode 100644 index 606787a839..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/blank.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/broken.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/broken.gif deleted file mode 100644 index 1bcc57f25c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/broken.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/burst.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/burst.gif deleted file mode 100644 index d882ceba9c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/burst.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.gif deleted file mode 100644 index 58fd098a96..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.xpm b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.xpm deleted file mode 100644 index d5ca309cfa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/cog.xpm +++ /dev/null @@ -1,30 +0,0 @@ -/* XPM */ -static char * mini_kpipe_xpm[] = { -"16 16 11 1", -" c None", -". c #000000", -"+ c #DCDCDC", -"@ c #A0A0A0", -"# c #C3C3C3", -"S c #808080", -"% c #FFA858", -"& c #FFDCA8", -"* c #FFFFC0", -"= c #FFFFFF", -"- c #585858", -" .. ", -" .. .++. .. ", -" .+@.@##@.@+. ", -" .@+S@%%@S+@. ", -" .S%%&%&%S. ", -" ..+@%&SS%&@+.. ", -".+#@%&%@@&*%@#+.", -".S@+S&*&&=*S+@S.", -" .--+S&*=&S+--. ", -" .S#++SS++#S. ", -" .@=S-S++S-S=@. ", -" .+@-..@@..-@+. ", -" ... .+=. ... ", -" .-S. ", -" .. ", -" "}; diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp1.gif deleted file mode 100644 index 712f36afdb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp2.gif deleted file mode 100644 index 7759eb11f9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/comp2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/compressed.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/compressed.gif deleted file mode 100644 index d3b156072a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/compressed.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/continued.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/continued.gif deleted file mode 100644 index e1c9f2cfa6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/continued.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary.gif deleted file mode 100644 index 587c259afe..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary2.gif deleted file mode 100644 index 2600d76f89..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dictionary2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir.gif deleted file mode 100644 index 7b37b09917..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir2.gif deleted file mode 100644 index 425d6e4b77..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/dir2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/document.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/document.gif deleted file mode 100644 index 75317e39d4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/document.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/file.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/file.gif deleted file mode 100644 index aad4ab7164..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/file.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder.gif deleted file mode 100644 index ac9f77111e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder_open.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder_open.gif deleted file mode 100644 index 4bdafeb15b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/folder_open.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/forward.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/forward.gif deleted file mode 100644 index 2997466eb4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/forward.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic.gif deleted file mode 100644 index f8da6ff92c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic2.gif deleted file mode 100644 index 992f13331b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic3.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic3.gif deleted file mode 100644 index 85aa275e25..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/generic3.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image.gif deleted file mode 100644 index dc3d95ced7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image2.gif deleted file mode 100644 index a5c40f1550..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/image2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/index.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/index.gif deleted file mode 100644 index 526df6b064..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/index.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A.gif deleted file mode 100644 index 98fb56d69b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A1.gif deleted file mode 100644 index b5378d2441..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A2.gif deleted file mode 100644 index 3e5757e4a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/A2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aepsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aepsilon.gif deleted file mode 100644 index 777977d0b0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aepsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Alpha.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Alpha.gif deleted file mode 100644 index 98fb56d69b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Alpha.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Am.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Am.gif deleted file mode 100644 index ae8f73178a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Am.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Amu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Amu.gif deleted file mode 100644 index 66975766fd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Amu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aplus.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aplus.gif deleted file mode 100644 index ad403accc4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Aplus.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B.gif deleted file mode 100644 index 945f36b90a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B0.gif deleted file mode 100644 index 222ac5408a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B1.gif deleted file mode 100644 index de5bc02201..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B2.gif deleted file mode 100644 index e0be6e058f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/B2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Bm.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Bm.gif deleted file mode 100644 index e3a4852284..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Bm.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C.gif deleted file mode 100644 index 2339ecaf67..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1.gif deleted file mode 100644 index d86323060d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1Ref.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1Ref.gif deleted file mode 100644 index 4102b65b66..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C1Ref.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2.gif deleted file mode 100644 index 16f9ea5462..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2Ref.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2Ref.gif deleted file mode 100644 index 3dfdbe4421..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C2Ref.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C3.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C3.gif deleted file mode 100644 index 52ea0f8fd1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/C3.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CDES.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CDES.gif deleted file mode 100644 index 10e931cf6a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CDES.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CRT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CRT.gif deleted file mode 100644 index b2ab193d8c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CRT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb.gif deleted file mode 100644 index d3a684b6eb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb1.gif deleted file mode 100644 index 57d3f070a4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb2.gif deleted file mode 100644 index d4c342dce6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cb2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cbag.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cbag.gif deleted file mode 100644 index f420b0f4ab..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cbag.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cd.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cd.gif deleted file mode 100644 index 4e1de90823..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cd.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CdLimit.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CdLimit.gif deleted file mode 100644 index e9f3cd7167..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/CdLimit.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdelta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdelta.gif deleted file mode 100644 index 5b865b3be4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdelta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdistort.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdistort.gif deleted file mode 100644 index db667571c0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cdistort.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ceps.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ceps.gif deleted file mode 100644 index 15bd26326f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ceps.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cl.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cl.gif deleted file mode 100644 index c4cc14bd42..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cl.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg1.gif deleted file mode 100644 index e13ac4c2a2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg2.gif deleted file mode 100644 index 3cdfe39db3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clg2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr1.gif deleted file mode 100644 index 94c1fb3fbe..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr2.gif deleted file mode 100644 index f6c3d4fe12..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Clrr2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cmu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cmu.gif deleted file mode 100644 index 274adba26e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cmu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cp.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cp.gif deleted file mode 100644 index 01e5136a56..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cp.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cs.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cs.gif deleted file mode 100644 index e55d4d1861..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cs.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cstrip.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cstrip.gif deleted file mode 100644 index 1d18752553..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cstrip.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ct.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ct.gif deleted file mode 100644 index 4d216d8bd5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ct.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau.gif deleted file mode 100644 index 1955e8bbf9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau1.gif deleted file mode 100644 index 6d5506ca43..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau2.gif deleted file mode 100644 index 47a2c9fa2f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau3.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau3.gif deleted file mode 100644 index c75ecf25f1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ctau3.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv.gif deleted file mode 100644 index 9d91c675a2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv1.gif deleted file mode 100644 index f6d56ab7e3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv2.gif deleted file mode 100644 index f6d56ab7e3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cv2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cvm.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cvm.gif deleted file mode 100644 index dbfe38450e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cvm.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw1.gif deleted file mode 100644 index 7b071d22ad..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw2.gif deleted file mode 100644 index d8674c6ecd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw3.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw3.gif deleted file mode 100644 index fe320d5572..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Cw3.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/D.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/D.gif deleted file mode 100644 index 4791a457b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/D.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/DT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/DT.gif deleted file mode 100644 index e5971b0926..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/DT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Delta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Delta.gif deleted file mode 100644 index 4724585b5e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Delta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Deltat.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Deltat.gif deleted file mode 100644 index 7e134329b9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Deltat.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/E.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/E.gif deleted file mode 100644 index 029f98b195..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/E.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/F.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/F.gif deleted file mode 100644 index 02d23d22a6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/F.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons211x.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons211x.gif deleted file mode 100644 index d25b23f851..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons211x.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons427x.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons427x.gif deleted file mode 100644 index 86aae62a65..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/FoamXIcons427x.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/G.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/G.gif deleted file mode 100644 index 5543f1718e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/G.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Gamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Gamma.gif deleted file mode 100644 index 9bb6121be7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Gamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/H.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/H.gif deleted file mode 100644 index e3b206de7d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/H.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/I.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/I.gif deleted file mode 100644 index dc6697ad63..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/I.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/J.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/J.gif deleted file mode 100644 index 87184ea285..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/J.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/K.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/K.gif deleted file mode 100644 index 0748f56f95..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/K.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Kappa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Kappa.gif deleted file mode 100644 index 2e2f3fd0d2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Kappa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/L.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/L.gif deleted file mode 100644 index 31d8af8193..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/L.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Lambda.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Lambda.gif deleted file mode 100644 index 46111fc99b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Lambda.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/M.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/M.gif deleted file mode 100644 index b3be992418..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/M.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Model.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Model.gif deleted file mode 100644 index 7add8777a4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Model.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/N.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/N.gif deleted file mode 100644 index a321b8f018..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/N.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nx.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nx.gif deleted file mode 100644 index b81cf0ae08..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nx.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ny.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ny.gif deleted file mode 100644 index 3aa5dec45f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ny.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nz.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nz.gif deleted file mode 100644 index 7466845cac..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Nz.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/O.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/O.gif deleted file mode 100644 index bf5a26303c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/O.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Omega.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Omega.gif deleted file mode 100644 index 8997661a09..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Omega.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/P.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/P.gif deleted file mode 100644 index 3d9d1bd4ba..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/P.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Phi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Phi.gif deleted file mode 100644 index ab978461ed..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Phi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/PhiField.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/PhiField.gif deleted file mode 100644 index 2b74d46c3f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/PhiField.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pi.gif deleted file mode 100644 index 204e0ac438..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pr.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pr.gif deleted file mode 100644 index 22391f31b0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Pr.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Psi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Psi.gif deleted file mode 100644 index 48f4378120..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Psi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Q.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Q.gif deleted file mode 100644 index 23197b8640..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Q.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/R.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/R.gif deleted file mode 100644 index 934b565dd4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/R.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Re.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Re.gif deleted file mode 100644 index a81c3848aa..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Re.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReLimit.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReLimit.gif deleted file mode 100644 index 4ca66b30cd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReLimit.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/RePr.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/RePr.gif deleted file mode 100644 index 1a526f978c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/RePr.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReSc.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReSc.gif deleted file mode 100644 index e68a46131b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReSc.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReynoldsStress.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReynoldsStress.gif deleted file mode 100644 index c211922502..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ReynoldsStress.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/S.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/S.gif deleted file mode 100644 index 1de3bc7ee9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/S.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sc.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sc.gif deleted file mode 100644 index b1aa975c78..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sc.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sigma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sigma.gif deleted file mode 100644 index 1498d362de..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Sigma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Su.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Su.gif deleted file mode 100644 index eb402fb08e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Su.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Switch.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Switch.gif deleted file mode 100644 index 3a3068f7bb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Switch.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/T.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/T.gif deleted file mode 100644 index fcb127f2b3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/T.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tair.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tair.gif deleted file mode 100644 index 71272b116e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tair.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Theta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Theta.gif deleted file mode 100644 index f3590b8aab..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Theta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ttin.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ttin.gif deleted file mode 100644 index a74c713e5a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ttin.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tu.gif deleted file mode 100644 index 6a6fbcc1c7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Tu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/U.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/U.gif deleted file mode 100644 index e0cb8026ae..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/U.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/UR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/UR.gif deleted file mode 100644 index f4d7576a33..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/UR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ua.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ua.gif deleted file mode 100644 index d1025f98b6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ua.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ub.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ub.gif deleted file mode 100644 index 5c578595ef..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ub.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ubar.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ubar.gif deleted file mode 100644 index 5b1f0df834..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Ubar.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Upsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Upsilon.gif deleted file mode 100644 index 06912c9e64..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Upsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V.gif deleted file mode 100644 index 8a5c3c7f1e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V0.gif deleted file mode 100644 index f19e488649..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/V0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Vs.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Vs.gif deleted file mode 100644 index 933b395638..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Vs.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/W.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/W.gif deleted file mode 100644 index 555a72b7f8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/W.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Weber.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Weber.gif deleted file mode 100644 index c7e37c3bde..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Weber.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/WeberLimit.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/WeberLimit.gif deleted file mode 100644 index a28df8d5fb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/WeberLimit.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/X.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/X.gif deleted file mode 100644 index edb783963e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/X.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xi.gif deleted file mode 100644 index 7397d52ac9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiCoef.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiCoef.gif deleted file mode 100644 index 3c28abed9e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiCoef.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiFoam.gif deleted file mode 100644 index 1e9a0bfa7d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiShapeCoef.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiShapeCoef.gif deleted file mode 100644 index 8eb2710090..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/XiShapeCoef.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xoodles.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xoodles.gif deleted file mode 100644 index ee69bc40cb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Xoodles.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Y.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Y.gif deleted file mode 100644 index 35e09499a6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Y.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Z.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Z.gif deleted file mode 100644 index ec29a4a569..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/Z.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a.gif deleted file mode 100644 index c59e04e200..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a1.gif deleted file mode 100644 index d12399a8da..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/a1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alpha.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alpha.gif deleted file mode 100644 index ab8e94ae51..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alpha.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaEps.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaEps.gif deleted file mode 100644 index 3a8be2c193..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaEps.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaKsi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaKsi.gif deleted file mode 100644 index eb10be1d91..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaKsi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaMin.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaMin.gif deleted file mode 100644 index 8687941d49..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaMin.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaNut.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaNut.gif deleted file mode 100644 index 770660c773..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaNut.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaR.gif deleted file mode 100644 index bfa85ed60b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaZeta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaZeta.gif deleted file mode 100644 index 5d3fe347fb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphaZeta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphah.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphah.gif deleted file mode 100644 index 5902d464c9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphah.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphak.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphak.gif deleted file mode 100644 index fed5803a0f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/alphak.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/angle.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/angle.gif deleted file mode 100644 index a044159471..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/angle.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/application.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/application.gif deleted file mode 100644 index d6fe9bb862..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/application.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/b.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/b.gif deleted file mode 100644 index 52826ff442..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/b.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/basePoint.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/basePoint.gif deleted file mode 100644 index d51f015494..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/basePoint.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/beta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/beta.gif deleted file mode 100644 index 98874fc49a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/beta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/biscuitFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/biscuitFoam.gif deleted file mode 100644 index b89770a0fb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/biscuitFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bore.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bore.gif deleted file mode 100644 index 1054638f28..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bore.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/boundaryFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/boundaryFoam.gif deleted file mode 100644 index a04dafca73..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/boundaryFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bubbleFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bubbleFoam.gif deleted file mode 100644 index 5c4b602c81..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/bubbleFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/buoyantFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/buoyantFoam.gif deleted file mode 100644 index fc311270ff..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/buoyantFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c.gif deleted file mode 100644 index 95c14af8c2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c1.gif deleted file mode 100644 index 0da23e9fea..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c2.gif deleted file mode 100644 index b11e598f87..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/c2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cB.gif deleted file mode 100644 index 23f01eb3fd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD.gif deleted file mode 100644 index 2fe46bcc56..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD2.gif deleted file mode 100644 index 6552109c86..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cD2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cGamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cGamma.gif deleted file mode 100644 index c782f902b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cGamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cI.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cI.gif deleted file mode 100644 index 60cd390e99..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cI.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK1.gif deleted file mode 100644 index 867e5390d1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK2.gif deleted file mode 100644 index 2ea8513c90..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK3.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK3.gif deleted file mode 100644 index 0270241cdb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK3.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK4.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK4.gif deleted file mode 100644 index 451379b279..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cK4.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cSpace.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cSpace.gif deleted file mode 100644 index 63b16609d0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cSpace.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cTime.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cTime.gif deleted file mode 100644 index fe0882b246..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cTime.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ce.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ce.gif deleted file mode 100644 index b951c2fb8f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ce.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cgamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cgamma.gif deleted file mode 100644 index c782f902b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cgamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/channelOodles.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/channelOodles.gif deleted file mode 100644 index 1449d74beb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/channelOodles.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/chi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/chi.gif deleted file mode 100644 index f9c94f7b4a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/chi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ck.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ck.gif deleted file mode 100644 index 7a5470afdf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ck.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/clearance.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/clearance.gif deleted file mode 100644 index 0a43a3d6b8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/clearance.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cm.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cm.gif deleted file mode 100644 index 11f47d0a7e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/cm.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/conRodLength.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/conRodLength.gif deleted file mode 100644 index fe9574724a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/conRodLength.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactStressFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactStressFoam.gif deleted file mode 100644 index f0969f2276..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactStressFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactUnderrelaxation.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactUnderrelaxation.gif deleted file mode 100644 index 1b1822e3fb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/contactUnderrelaxation.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/convertToMeters.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/convertToMeters.gif deleted file mode 100644 index 674e265fb1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/convertToMeters.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d.gif deleted file mode 100644 index 20bc55f03a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d2dt2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d2dt2.gif deleted file mode 100644 index 19fd6c3f2e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/d2dt2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/da.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/da.gif deleted file mode 100644 index 5dd4e1df2c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/da.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/db.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/db.gif deleted file mode 100644 index cbb99b2bb8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/db.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ddt.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ddt.gif deleted file mode 100644 index 996aef75a4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ddt.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/delta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/delta.gif deleted file mode 100644 index f811b273b0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/delta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaCoeff.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaCoeff.gif deleted file mode 100644 index 5b865b3be4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaCoeff.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaT.gif deleted file mode 100644 index 7e134329b9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/deltaT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diameter.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diameter.gif deleted file mode 100644 index 1054638f28..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diameter.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselEngineFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselEngineFoam.gif deleted file mode 100644 index a7f1c9863d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselEngineFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselFoam.gif deleted file mode 100644 index 4fadafd2a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dieselFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diffusion.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diffusion.gif deleted file mode 100644 index d12ce6a16b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/diffusion.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dirPatchID.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dirPatchID.gif deleted file mode 100644 index c707d5b42b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dirPatchID.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/div.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/div.gif deleted file mode 100644 index e4b6c015e5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/div.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divB.gif deleted file mode 100644 index 18d6aec72a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divGammaU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divGammaU.gif deleted file mode 100644 index e0024b46b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divGammaU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffGradUT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffGradUT.gif deleted file mode 100644 index fd80dddaa6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffGradUT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffaUaT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffaUaT.gif deleted file mode 100644 index f07d791cb5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffaUaT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffbUbT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffbUbT.gif deleted file mode 100644 index fbcefe3c44..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divNuEffbUbT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlpha.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlpha.gif deleted file mode 100644 index bc89b4986d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlpha.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlphaAlpha.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlphaAlpha.gif deleted file mode 100644 index 2ec3a16a18..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiAlphaAlpha.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB.gif deleted file mode 100644 index 992c70c862..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2DBUB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2DBUB.gif deleted file mode 100644 index 849b3eb326..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2DBUB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2GammaBUB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2GammaBUB.gif deleted file mode 100644 index c01ae199bf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiB2GammaBUB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBT.gif deleted file mode 100644 index 6103535328..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBU.gif deleted file mode 100644 index 532aa0a2d6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiBU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiCp.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiCp.gif deleted file mode 100644 index 2b0e3e1ad8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiCp.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiE.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiE.gif deleted file mode 100644 index e9cdc255fa..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiE.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiEpsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiEpsilon.gif deleted file mode 100644 index 8a78a85260..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiEpsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiGamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiGamma.gif deleted file mode 100644 index 4176b232d3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiGamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiH.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiH.gif deleted file mode 100644 index 043f02f84a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiH.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiNuTilda.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiNuTilda.gif deleted file mode 100644 index fd4a56d565..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiNuTilda.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiR.gif deleted file mode 100644 index 221e911f0b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRho.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRho.gif deleted file mode 100644 index d4a4f47c42..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRho.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRhoP.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRhoP.gif deleted file mode 100644 index e788e600b2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiRhoP.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStar.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStar.gif deleted file mode 100644 index 17963ae54c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStar.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStb.gif deleted file mode 100644 index 8bfbe41c11..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiStb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiT.gif deleted file mode 100644 index ec8887ac08..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiTheta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiTheta.gif deleted file mode 100644 index b4710bca64..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiTheta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiU.gif deleted file mode 100644 index 492e1d0c43..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUa.gif deleted file mode 100644 index a87f848e23..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUp.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUp.gif deleted file mode 100644 index 2d16db5788..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiUp.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiV.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiV.gif deleted file mode 100644 index ec644859a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiV.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVV.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVV.gif deleted file mode 100644 index d96edc39fd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVV.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVdjVdj.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVdjVdj.gif deleted file mode 100644 index 1cfecb0fd6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiVdjVdj.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiX.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiX.gif deleted file mode 100644 index fc37938ca5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiX.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiSu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiSu.gif deleted file mode 100644 index d9bab00792..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiSu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiXi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiXi.gif deleted file mode 100644 index d9dc56e0b5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXiXi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXv.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXv.gif deleted file mode 100644 index b44cc8b0a1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiXv.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiaUa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiaUa.gif deleted file mode 100644 index 4edc97b74d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhiaUa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhibUb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhibUb.gif deleted file mode 100644 index ee29c63411..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhibUb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhidP.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhidP.gif deleted file mode 100644 index 9c84436caa..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhidP.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhih.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhih.gif deleted file mode 100644 index 043f02f84a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhih.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhik.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhik.gif deleted file mode 100644 index 3ebdc1fc2c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhik.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhirbGamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhirbGamma.gif deleted file mode 100644 index 3b69c41f6b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divPhirbGamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divR.gif deleted file mode 100644 index 3e0ca4c6ee..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoPhiU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoPhiU.gif deleted file mode 100644 index 3f1cfdbf0c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoPhiU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoRho.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoRho.gif deleted file mode 100644 index 934c84fbb3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divRhoRho.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSigma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSigma.gif deleted file mode 100644 index 376d8cbdc8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSigma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divStar.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divStar.gif deleted file mode 100644 index 68c86a3dac..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divStar.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSuGradb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSuGradb.gif deleted file mode 100644 index 31d110d9d6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divSuGradb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divU.gif deleted file mode 100644 index 5f7b3aed37..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/divU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dnsFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dnsFoam.gif deleted file mode 100644 index 7e9a650582..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dnsFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dropletDiameterRatio.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dropletDiameterRatio.gif deleted file mode 100644 index 4a9aaed7f1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/dropletDiameterRatio.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/e.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/e.gif deleted file mode 100644 index 9d4ff0ff0a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/e.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/electrostaticFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/electrostaticFoam.gif deleted file mode 100644 index b69a62c203..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/electrostaticFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/endTime.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/endTime.gif deleted file mode 100644 index 91a4edb949..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/endTime.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/engineFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/engineFoam.gif deleted file mode 100644 index 9871049566..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/engineFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon.gif deleted file mode 100644 index da86d82adf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon0.gif deleted file mode 100644 index 2292f6f4e4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/epsilon0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta.gif deleted file mode 100644 index cfd2cd6933..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta0.gif deleted file mode 100644 index aa01a60b7c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/eta0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/f.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/f.gif deleted file mode 100644 index c3a82feae3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/f.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/financialFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/financialFoam.gif deleted file mode 100644 index 788667ff4d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/financialFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ft.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ft.gif deleted file mode 100644 index fab997d92b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ft.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fu.gif deleted file mode 100644 index 811ad313e6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fuel.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fuel.gif deleted file mode 100644 index a4a80646f4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/fuel.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/g.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/g.gif deleted file mode 100644 index e9a1131576..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/g.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gamma.gif deleted file mode 100644 index 32bf202d58..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/grad.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/grad.gif deleted file mode 100644 index 38a4540e26..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/grad.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradDBUmagsqrB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradDBUmagsqrB.gif deleted file mode 100644 index fb09d8e187..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradDBUmagsqrB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradE.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradE.gif deleted file mode 100644 index b3b38b867c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradE.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradGamma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradGamma.gif deleted file mode 100644 index a157e4892d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradGamma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradP.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradP.gif deleted file mode 100644 index 4ae5588212..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradP.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradPatchID.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradPatchID.gif deleted file mode 100644 index 8bc3b880e7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradPatchID.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradT.gif deleted file mode 100644 index 855dbdf680..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradU.gif deleted file mode 100644 index 66fdeca10f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradV.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradV.gif deleted file mode 100644 index c68894fb29..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/gradV.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/h.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/h.gif deleted file mode 100644 index da636df830..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/h.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hAir.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hAir.gif deleted file mode 100644 index 697ad54bd6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hAir.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hu.gif deleted file mode 100644 index f1b1ffae87..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/hu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/i.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/i.gif deleted file mode 100644 index acd5910294..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/i.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoam.gif deleted file mode 100644 index 9f7eda2489..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoamAutoMotion.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoamAutoMotion.gif deleted file mode 100644 index 26e433830d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoFoamAutoMotion.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoTopoFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoTopoFoam.gif deleted file mode 100644 index d11199c885..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/icoTopoFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignition.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignition.gif deleted file mode 100644 index b72b99ac2e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignition.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignitionSite.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignitionSite.gif deleted file mode 100644 index b72b99ac2e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ignitionSite.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/injector.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/injector.gif deleted file mode 100644 index d85366bc73..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/injector.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interFoam.gif deleted file mode 100644 index de5ef7103d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolate1A.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolate1A.gif deleted file mode 100644 index 11e538a9a2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolate1A.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateB.gif deleted file mode 100644 index f4349592fe..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateHbyA.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateHbyA.gif deleted file mode 100644 index 38658610a8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateHbyA.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsi.gif deleted file mode 100644 index 768acb730e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsiU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsiU.gif deleted file mode 100644 index ea820b2ef4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolatePsiU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho.gif deleted file mode 100644 index 44d6c52ab2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho0PsiP0U.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho0PsiP0U.gif deleted file mode 100644 index f41db1d814..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateRho0PsiP0U.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateU.gif deleted file mode 100644 index 42c910b5c7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolateU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolationScheme.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolationScheme.gif deleted file mode 100644 index 5b69dd8681..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/interpolationScheme.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/iota.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/iota.gif deleted file mode 100644 index 35e3f8014a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/iota.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/j.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/j.gif deleted file mode 100644 index 1834681859..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/j.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/k.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/k.gif deleted file mode 100644 index 9306e87d5b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/k.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kappa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kappa.gif deleted file mode 100644 index 2a5ca6d934..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kappa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kcWater.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kcWater.gif deleted file mode 100644 index a52771c778..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/kcWater.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/l.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/l.gif deleted file mode 100644 index c9d557811d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/l.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lambda.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lambda.gif deleted file mode 100644 index 241cfa7f3f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lambda.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian.gif deleted file mode 100644 index 276c8af56c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1ABpB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1ABpB.gif deleted file mode 100644 index f1234c08d2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1ABpB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUp.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUp.gif deleted file mode 100644 index 6b099ac9a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUp.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpB.gif deleted file mode 100644 index f1234c08d2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpcorr.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpcorr.gif deleted file mode 100644 index 4406184402..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1AUpcorr.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1phi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1phi.gif deleted file mode 100644 index 98729a95ad..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacian1phi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffh.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffh.gif deleted file mode 100644 index 0329e9a32c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffh.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffhu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffhu.gif deleted file mode 100644 index e52c23bc6b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEffhu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEpsNuEffbEpsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEpsNuEffbEpsilon.gif deleted file mode 100644 index 741b0b111c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaEpsNuEffbEpsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaKNuEffbK.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaKNuEffbK.gif deleted file mode 100644 index ea5524ca21..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphaKNuEffbK.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaH.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaH.gif deleted file mode 100644 index 1a54089f02..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaH.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaHu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaHu.gif deleted file mode 100644 index bc8ec3c530..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianAlphahMutAlphaHu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBB.gif deleted file mode 100644 index 9367fbb537..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBEffB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBEffB.gif deleted file mode 100644 index 81f8a078b6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDBEffB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDREffR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDREffR.gif deleted file mode 100644 index 9bdd7ff4a6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDREffR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDT.gif deleted file mode 100644 index 3404856a9c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDTT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDTT.gif deleted file mode 100644 index 0da35d5f5b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDTT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDUU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDUU.gif deleted file mode 100644 index 3229241909..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDUU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDVV.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDVV.gif deleted file mode 100644 index a2c7fc509e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDVV.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilon.gif deleted file mode 100644 index d28d7544ab..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilonEffEpsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilonEffEpsilon.gif deleted file mode 100644 index e4937677c4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDepsilonEffEpsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDk.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDk.gif deleted file mode 100644 index ed72f4e819..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDk.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDkEffk.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDkEffk.gif deleted file mode 100644 index c9cf52e5fc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDkEffk.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDnuTildaEffNuTilda.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDnuTildaEffNuTilda.gif deleted file mode 100644 index 42d357da36..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDnuTildaEffNuTilda.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDphi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDphi.gif deleted file mode 100644 index e7b3e4efed..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianDphi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianFoam.gif deleted file mode 100644 index 912c3fb28d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaBB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaBB.gif deleted file mode 100644 index dc09c6f260..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaBB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaPhi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaPhi.gif deleted file mode 100644 index b939259c86..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaPhi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaTheta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaTheta.gif deleted file mode 100644 index 62e6c1e9f5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaTheta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaU.gif deleted file mode 100644 index 40350859bb..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaVV.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaVV.gif deleted file mode 100644 index 3d2e07bd57..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianGammaVV.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuE.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuE.gif deleted file mode 100644 index a62ac2bb39..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuE.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffEpsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffEpsilon.gif deleted file mode 100644 index e86c9b6485..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffEpsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFt.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFt.gif deleted file mode 100644 index cc39f6c286..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFt.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFu.gif deleted file mode 100644 index 1abe17d1dc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffFu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffK.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffK.gif deleted file mode 100644 index 53f7ca6252..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffK.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffU.gif deleted file mode 100644 index db1b443f88..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffb.gif deleted file mode 100644 index 1bbaf86939..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuEffb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuSgsAlphaH.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuSgsAlphaH.gif deleted file mode 100644 index a70b15a8d8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuSgsAlphaH.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuU.gif deleted file mode 100644 index 38843bad51..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMuU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMutAlpha.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMutAlpha.gif deleted file mode 100644 index 1b7a7fdb7d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianMutAlpha.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffEpsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffEpsilon.gif deleted file mode 100644 index 75460a37ed..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffEpsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffK.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffK.gif deleted file mode 100644 index 9ab27f4661..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffK.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffU.gif deleted file mode 100644 index 047ea0c251..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffaUa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffaUa.gif deleted file mode 100644 index 72a766026a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffaUa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffbUb.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffbUb.gif deleted file mode 100644 index 6930844f16..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuEffbUb.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuU.gif deleted file mode 100644 index 889e8c2448..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianNuU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianP.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianP.gif deleted file mode 100644 index 9b52e38f97..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianP.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUp.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUp.gif deleted file mode 100644 index 982cf2f0b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUp.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUpd.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUpd.gif deleted file mode 100644 index 704fd3e097..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoAUpd.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDU.gif deleted file mode 100644 index f8b3688f72..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDepsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDepsilon.gif deleted file mode 100644 index b82d28999a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDepsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDk.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDk.gif deleted file mode 100644 index dfc043521a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianRhoDk.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianStar.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianStar.gif deleted file mode 100644 index 0be3346791..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianStar.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianTwoMuLambdaU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianTwoMuLambdaU.gif deleted file mode 100644 index 34a27585a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/laplacianTwoMuLambdaU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lesInterFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lesInterFoam.gif deleted file mode 100644 index bc85d0bcb3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/lesInterFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/m.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/m.gif deleted file mode 100644 index 87b84ff41d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/m.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/max.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/max.gif deleted file mode 100644 index 762590c76c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/max.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCo.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCo.gif deleted file mode 100644 index 66e1c474e3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCo.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCoNum.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCoNum.gif deleted file mode 100644 index eb131f372c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxCoNum.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaRatio.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaRatio.gif deleted file mode 100644 index d22b06966d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaRatio.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaT.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaT.gif deleted file mode 100644 index 7995daf9d5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/maxDeltaT.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mesh.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mesh.gif deleted file mode 100644 index 3822d9a4c3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mesh.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mgbsCoef.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mgbsCoef.gif deleted file mode 100644 index ce48689117..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mgbsCoef.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mhdFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mhdFoam.gif deleted file mode 100644 index 98854954fc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mhdFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mixture.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mixture.gif deleted file mode 100644 index 2e42a4fd30..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mixture.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mmax.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mmax.gif deleted file mode 100644 index dc9b7ab2a6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mmax.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/movingFvMesh.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/movingFvMesh.gif deleted file mode 100644 index e4e884a197..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/movingFvMesh.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu.gif deleted file mode 100644 index 93f8ab85df..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu1.gif deleted file mode 100644 index e73014ceb4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu2.gif deleted file mode 100644 index 908c9c510b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/mu2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muSgs.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muSgs.gif deleted file mode 100644 index 88e7293e0a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muSgs.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muc.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muc.gif deleted file mode 100644 index f203c43a75..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/muc.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/n.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/n.gif deleted file mode 100644 index 3ef77c63c5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/n.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nCorrectors.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nCorrectors.gif deleted file mode 100644 index d4336903a7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nCorrectors.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaCorr.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaCorr.gif deleted file mode 100644 index 538fb1b1a1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaCorr.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaSubCycles.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaSubCycles.gif deleted file mode 100644 index d231581d50..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nGammaSubCycles.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nNonOrthogonalCorrectors.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nNonOrthogonalCorrectors.gif deleted file mode 100644 index db1466c039..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nNonOrthogonalCorrectors.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nStressCorrectors.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nStressCorrectors.gif deleted file mode 100644 index 180b57a0a9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nStressCorrectors.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoam.gif deleted file mode 100644 index c3454192c6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoamAutoMotion.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoamAutoMotion.gif deleted file mode 100644 index 12a6bd788d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/newInterFoamAutoMotion.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nonNewtonianIcoFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nonNewtonianIcoFoam.gif deleted file mode 100644 index 99163f01d8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nonNewtonianIcoFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normal.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normal.gif deleted file mode 100644 index e0e890e079..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normal.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normalVector.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normalVector.gif deleted file mode 100644 index 7d445838ae..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/normalVector.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu.gif deleted file mode 100644 index 4286f341f6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu0.gif deleted file mode 100644 index 619b3a710f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nu0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuInf.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuInf.gif deleted file mode 100644 index 1ce49c4475..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuInf.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuSgs.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuSgs.gif deleted file mode 100644 index b7ce94f1c4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuSgs.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuTilda.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuTilda.gif deleted file mode 100644 index cbc7c3c0da..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nuTilda.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nua.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nua.gif deleted file mode 100644 index 7c7b393d1f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nua.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nub.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nub.gif deleted file mode 100644 index 5265d365f5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/nub.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/o.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/o.gif deleted file mode 100644 index fd5e565a34..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/o.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/omega.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/omega.gif deleted file mode 100644 index d1bfc15b70..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/omega.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/oodles.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/oodles.gif deleted file mode 100644 index 03bcbeb58e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/oodles.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p.gif deleted file mode 100644 index 2c39652fb2..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p0.gif deleted file mode 100644 index 5139c502c5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/p0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pB.gif deleted file mode 100644 index ed77f5a6ee..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patch.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patch.gif deleted file mode 100644 index 2f787af4d0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patch.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patches.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patches.gif deleted file mode 100644 index c17f9655bd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/patches.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pcorr.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pcorr.gif deleted file mode 100644 index a11da981e9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pcorr.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pd.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pd.gif deleted file mode 100644 index 1b8c979ba5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pd.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phi.gif deleted file mode 100644 index 62594cf046..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phim.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phim.gif deleted file mode 100644 index 8e02068916..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/phim.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pi.gif deleted file mode 100644 index f78d128457..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/pi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityCoeff.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityCoeff.gif deleted file mode 100644 index 274adba26e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityCoeff.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityExponent.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityExponent.gif deleted file mode 100644 index 93b50aeee7..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/plasticViscosityExponent.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/potentialFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/potentialFoam.gif deleted file mode 100644 index 7970603808..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/potentialFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/problemD.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/problemD.gif deleted file mode 100644 index 378a1cad73..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/problemD.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/products.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/products.gif deleted file mode 100644 index d51f015494..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/products.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/psi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/psi.gif deleted file mode 100644 index ad69c057db..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/psi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/purgeWrite.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/purgeWrite.gif deleted file mode 100644 index 2e42a4fd30..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/purgeWrite.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/q.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/q.gif deleted file mode 100644 index 54d6802c1a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/q.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/r.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/r.gif deleted file mode 100644 index 3cb7586340..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/r.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rXi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rXi.gif deleted file mode 100644 index 1d21ba9d1c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rXi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ratio.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ratio.gif deleted file mode 100644 index 3d554d4c98..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/ratio.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/reactants.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/reactants.gif deleted file mode 100644 index 52e795515b..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/reactants.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho.gif deleted file mode 100644 index 4f2b15a5e3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho0.gif deleted file mode 100644 index c7131fae19..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho1.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho1.gif deleted file mode 100644 index 55e23f631c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho1.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho2.gif deleted file mode 100644 index 5c7b0c61be..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rho2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoS.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoS.gif deleted file mode 100644 index 0b6806410e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoS.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoa.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoa.gif deleted file mode 100644 index 6933d0bde1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoa.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhob.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhob.gif deleted file mode 100644 index b31b9a0147..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhob.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoc.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoc.gif deleted file mode 100644 index 0ecd4a8c34..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhoc.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhod.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhod.gif deleted file mode 100644 index 2585a784dc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rhod.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rpm.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rpm.gif deleted file mode 100644 index 2e42a4fd30..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/rpm.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/s.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/s.gif deleted file mode 100644 index a30e869913..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/s.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/scalarTransportFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/scalarTransportFoam.gif deleted file mode 100644 index 47975648d3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/scalarTransportFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/settlingFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/settlingFoam.gif deleted file mode 100644 index 12242cf49c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/settlingFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigma.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigma.gif deleted file mode 100644 index 5441835d64..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigma.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigmaExt.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigmaExt.gif deleted file mode 100644 index df695dca8e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sigmaExt.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/simpleFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/simpleFoam.gif deleted file mode 100644 index b2088a4595..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/simpleFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrP.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrP.gif deleted file mode 100644 index f6e2720a2e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrP.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrU.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrU.gif deleted file mode 100644 index 86c37e30ac..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradCorrU.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradScheme.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradScheme.gif deleted file mode 100644 index eaa3f657e8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/snGradScheme.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicFoam.gif deleted file mode 100644 index 4447d44c45..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoam.gif deleted file mode 100644 index fd21ad5e06..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoamAutoMotion.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoamAutoMotion.gif deleted file mode 100644 index 98100e3243..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicLiquidFoamAutoMotion.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicTurbFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicTurbFoam.gif deleted file mode 100644 index e5bf500d48..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/sonicTurbFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startFrom.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startFrom.gif deleted file mode 100644 index ad0330ddc4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startFrom.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startTime.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startTime.gif deleted file mode 100644 index cb45a478e9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/startTime.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stopAt.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stopAt.gif deleted file mode 100644 index 5cc2247421..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stopAt.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stress.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stress.gif deleted file mode 100644 index 63585ccb99..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stress.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressFemFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressFemFoam.gif deleted file mode 100644 index 7a64941f6c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressFemFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressedFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressedFoam.gif deleted file mode 100644 index 6f0b47aa9a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stressedFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/strike.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/strike.gif deleted file mode 100644 index b72b99ac2e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/strike.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stroke.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stroke.gif deleted file mode 100644 index fe9574724a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/stroke.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/t.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/t.gif deleted file mode 100644 index 105ae5eb53..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/t.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/tau.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/tau.gif deleted file mode 100644 index ce686c0a90..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/tau.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta.gif deleted file mode 100644 index 145c11e5e3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta0.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta0.gif deleted file mode 100644 index 355544e208..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/theta0.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaA.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaA.gif deleted file mode 100644 index ab4be6de20..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaA.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaR.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaR.gif deleted file mode 100644 index 5602dd59cc..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/thetaR.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timeFormat.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timeFormat.gif deleted file mode 100644 index 273ce07679..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timeFormat.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timePrecision.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timePrecision.gif deleted file mode 100644 index 4e81d06aa9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/timePrecision.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/toleranceSet.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/toleranceSet.gif deleted file mode 100644 index 0a43a3d6b8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/toleranceSet.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/touchTolerance.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/touchTolerance.gif deleted file mode 100644 index 0a43a3d6b8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/touchTolerance.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/turbFoam.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/turbFoam.gif deleted file mode 100644 index 66395565b0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/turbFoam.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/u.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/u.gif deleted file mode 100644 index ec9972e8b1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/u.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uPrimeCoeff.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uPrimeCoeff.gif deleted file mode 100644 index d25b23f851..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uPrimeCoeff.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uTheta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uTheta.gif deleted file mode 100644 index cc7a1a1cf6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/uTheta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/upsilon.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/upsilon.gif deleted file mode 100644 index d5ef96f612..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/upsilon.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/v.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/v.gif deleted file mode 100644 index 6abe754e1d..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/v.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/vecB.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/vecB.gif deleted file mode 100644 index 5fb50c9987..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/vecB.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/w.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/w.gif deleted file mode 100644 index fcb4012ed6..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/w.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeCompression.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeCompression.gif deleted file mode 100644 index 3379639cb1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeCompression.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeControl.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeControl.gif deleted file mode 100644 index f54c3be3c4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeControl.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeFormat.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeFormat.gif deleted file mode 100644 index 6f8a4643cd..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeFormat.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeInterval.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeInterval.gif deleted file mode 100644 index d645812fcf..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writeInterval.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writePrecision.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writePrecision.gif deleted file mode 100644 index 4e81d06aa9..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/writePrecision.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/x.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/x.gif deleted file mode 100644 index 80897615ac..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/x.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMax.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMax.gif deleted file mode 100644 index f7d533b843..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMax.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMin.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMin.gif deleted file mode 100644 index 56fff02d0f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xMin.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xi.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xi.gif deleted file mode 100644 index d4f809d785..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xi.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xvInf.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xvInf.gif deleted file mode 100644 index 8119889852..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/xvInf.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/y.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/y.gif deleted file mode 100644 index 4fe32faf3e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/y.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMax.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMax.gif deleted file mode 100644 index f97f7436aa..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMax.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMin.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMin.gif deleted file mode 100644 index 7c048dfcf0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yMin.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressCoeff.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressCoeff.gif deleted file mode 100644 index 40714552c4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressCoeff.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressExponent.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressExponent.gif deleted file mode 100644 index 1b5f3ce7db..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressExponent.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressOffset.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressOffset.gif deleted file mode 100644 index dd4d4ba8a1..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/yieldStressOffset.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/z.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/z.gif deleted file mode 100644 index ff72f76ce4..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/z.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMax.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMax.gif deleted file mode 100644 index a4234ad080..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMax.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMin.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMin.gif deleted file mode 100644 index 4ddf87205e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zMin.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zeta.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zeta.gif deleted file mode 100644 index 8e378c84af..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/maths/zeta.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/movie.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/movie.gif deleted file mode 100644 index 7b4a42e7a0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/movie.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound.gif deleted file mode 100644 index a7a89ffd9e..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound2.gif deleted file mode 100644 index 07706e07b8..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/sound2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/tar.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/tar.gif deleted file mode 100644 index 59c3ffb9a5..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/tar.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/text.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/text.gif deleted file mode 100644 index 66ceefbc8c..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/text.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/transfer.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/transfer.gif deleted file mode 100644 index d460d3fffe..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/transfer.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown.gif deleted file mode 100644 index d770f17ae3..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown2.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown2.gif deleted file mode 100644 index 7bf0bbc10a..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/unknown2.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/utilities_package.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/utilities_package.gif deleted file mode 100644 index 4e16169631..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/utilities_package.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/uu.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/uu.gif deleted file mode 100644 index 8c793f8a7f..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/small/uu.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/stop.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/stop.gif deleted file mode 100644 index ef2d839e20..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/stop.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/swirl.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/swirl.gif deleted file mode 100644 index 0801ca1aee..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/swirl.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/underline.gif b/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/underline.gif deleted file mode 100644 index 780dbdf592..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/Java/FoamX/icons/underline.gif and /dev/null differ diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptor.java deleted file mode 100644 index 7c64a61851..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptor.java +++ /dev/null @@ -1,32 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ApplicationDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Application descriptor structure. -public final class ApplicationDescriptor implements org.omg.CORBA.portable.IDLEntity -{ - public String name = null; - public String category = null; - public String path = null; - public boolean systemClass = false; - - public ApplicationDescriptor () - { - } // ctor - - public ApplicationDescriptor (String _name, String _category, String _path, boolean _systemClass) - { - name = _name; - category = _category; - path = _path; - systemClass = _systemClass; - } // ctor - -} // class ApplicationDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHelper.java deleted file mode 100644 index 76359b7fde..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHelper.java +++ /dev/null @@ -1,98 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ApplicationDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Application descriptor structure. -abstract public class ApplicationDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/ApplicationDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ApplicationDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ApplicationDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [4]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "name", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "category", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.StructMember ( - "path", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[3] = new org.omg.CORBA.StructMember ( - "systemClass", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.ApplicationDescriptorHelper.id (), "ApplicationDescriptor", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ApplicationDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.ApplicationDescriptor value = new FoamXServer.ApplicationDescriptor (); - value.name = istream.read_string (); - value.category = istream.read_string (); - value.path = istream.read_string (); - value.systemClass = istream.read_boolean (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ApplicationDescriptor value) - { - ostream.write_string (value.name); - ostream.write_string (value.category); - ostream.write_string (value.path); - ostream.write_boolean (value.systemClass); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHolder.java deleted file mode 100644 index ae0947ed83..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/ApplicationDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Application descriptor structure. -public final class ApplicationDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ApplicationDescriptor value = null; - - public ApplicationDescriptorHolder () - { - } - - public ApplicationDescriptorHolder (FoamXServer.ApplicationDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.ApplicationDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.ApplicationDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.ApplicationDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHelper.java deleted file mode 100644 index b1d701fc47..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ApplicationDescriptorListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class ApplicationDescriptorListHelper -{ - private static String _id = "IDL:FoamXServer/ApplicationDescriptorList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ApplicationDescriptor[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ApplicationDescriptor[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.ApplicationDescriptorHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.ApplicationDescriptorListHelper.id (), "ApplicationDescriptorList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ApplicationDescriptor[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.ApplicationDescriptor value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.ApplicationDescriptor[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.ApplicationDescriptorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ApplicationDescriptor[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.ApplicationDescriptorHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHolder.java deleted file mode 100644 index 9c52713e90..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ApplicationDescriptorListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ApplicationDescriptorListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class ApplicationDescriptorListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ApplicationDescriptor value[] = null; - - public ApplicationDescriptorListHolder () - { - } - - public ApplicationDescriptorListHolder (FoamXServer.ApplicationDescriptor[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.ApplicationDescriptorListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.ApplicationDescriptorListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.ApplicationDescriptorListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowser.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowser.java deleted file mode 100644 index 172f1180ba..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowser.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseBrowser; - - -/** -* FoamXServer/CaseBrowser/ICaseBrowser.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICaseBrowser extends ICaseBrowserOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ICaseBrowser diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHelper.java deleted file mode 100644 index 437066f6ef..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseBrowser; - - -/** -* FoamXServer/CaseBrowser/ICaseBrowserHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class ICaseBrowserHelper -{ - private static String _id = "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseBrowser.ICaseBrowser that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseBrowser.ICaseBrowser extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseBrowser.ICaseBrowserHelper.id (), "ICaseBrowser"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseBrowser.ICaseBrowser read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ICaseBrowserStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseBrowser.ICaseBrowser value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseBrowser.ICaseBrowser narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseBrowser.ICaseBrowser) - return (FoamXServer.CaseBrowser.ICaseBrowser)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseBrowser._ICaseBrowserStub stub = new FoamXServer.CaseBrowser._ICaseBrowserStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHolder.java deleted file mode 100644 index 4bcf849e6c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseBrowser; - -/** -* FoamXServer/CaseBrowser/ICaseBrowserHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class ICaseBrowserHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseBrowser.ICaseBrowser value = null; - - public ICaseBrowserHolder () - { - } - - public ICaseBrowserHolder (FoamXServer.CaseBrowser.ICaseBrowser initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseBrowser.ICaseBrowserHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseBrowser.ICaseBrowserHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseBrowser.ICaseBrowserHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserOperations.java deleted file mode 100644 index f94a5a6473..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/ICaseBrowserOperations.java +++ /dev/null @@ -1,104 +0,0 @@ -package FoamXServer.CaseBrowser; - - -/** -* FoamXServer/CaseBrowser/ICaseBrowserOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICaseBrowserOperations -{ - - // Foam system properties (user data editable). - FoamXServer.CaseServer.IFoamProperties foamProperties (); - - // Managed cases list. - FoamXServer.CaseDescriptor[] cases (); - - // Running jobs list. - FoamXServer.JobDescriptor[] runningJobs (); - - // Finished jobs list. - FoamXServer.JobDescriptor[] finishedJobs (); - - // Get environment variable - void getEnv (String envName, org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError; - - // Get the machines hostName - void getHostName (org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError; - - // Get userName - void getUserName (org.omg.CORBA.StringHolder userName) throws FoamXServer.FoamXError; - - // Get modification date - int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError; - - // Read file and store contents in string - void readFile (String fileName, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Write contents of string as a file - void writeFile (String fileName, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Utility execution. - int invokeUtility (String hostName, String utilityName, String[] arguments, String logName, boolean backGround) throws FoamXServer.FoamXError; - void refreshCaseList () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addToCaseList (String rootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Case manipulation. - void openCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void newCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void importCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void cloneCase (FoamXServer.CaseDescriptor caseDesc, String newCaseRootDir, String newCaseName, String newAppClassName, String timeSel) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Try to resolve NameServer entry for caseServer - boolean getCaseServerReference (String rootDir, String caseName, FoamXServer.CaseServer.ICaseServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // start casePostServer - void openCasePost (FoamXServer.CaseDescriptor caseDesc, int nProcs) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Try to resolve NameServer entry for casePostServer - boolean getCasePostServerReference (String rootDir, String caseName, int nProcs, FoamXServer.CasePostServer.ICasePostServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - boolean caseLocked (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError; - void unlockCase (String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void unlockCaseDescriptor (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addCase (String rootDir, String rawRootDir, String caseName, String app) throws FoamXServer.FoamXError; - void caseOpen (String rootDir, String caseName) throws FoamXServer.FoamXError; - boolean isCaseInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError; - void caseIsInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError; - - // Process control - void refreshJobsLists () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void checkRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - void purgeRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void purgeFinishedJob (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void purgeFinishedJobs (int nDays) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Kill process. - void kill (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // Suspend process - void suspend (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // Continue process - void cont (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // now=false: next natural dump - void end (FoamXServer.JobID jobID, String rootDir, String caseName, boolean now) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // Reset the job status - void setStatus (FoamXServer.JobID jobID, FoamXServer.JobStatus jobStatus) throws FoamXServer.FoamXError; - - // Validation. - void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError; - - // Persistence. - void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - // Lifetime management. - void close (); -} // interface ICaseBrowserOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/_ICaseBrowserStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/_ICaseBrowserStub.java deleted file mode 100644 index 836ce9e3dc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseBrowser/_ICaseBrowserStub.java +++ /dev/null @@ -1,1058 +0,0 @@ -package FoamXServer.CaseBrowser; - - -/** -* FoamXServer/CaseBrowser/_ICaseBrowserStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _ICaseBrowserStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseBrowser.ICaseBrowser -{ - - - // Foam system properties (user data editable). - public FoamXServer.CaseServer.IFoamProperties foamProperties () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamProperties", true); - $in = _invoke ($out); - FoamXServer.CaseServer.IFoamProperties $result = FoamXServer.CaseServer.IFoamPropertiesHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return foamProperties ( ); - } finally { - _releaseReply ($in); - } - } // foamProperties - - - // Managed cases list. - public FoamXServer.CaseDescriptor[] cases () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_cases", true); - $in = _invoke ($out); - FoamXServer.CaseDescriptor $result[] = FoamXServer.CaseDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return cases ( ); - } finally { - _releaseReply ($in); - } - } // cases - - - // Running jobs list. - public FoamXServer.JobDescriptor[] runningJobs () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_runningJobs", true); - $in = _invoke ($out); - FoamXServer.JobDescriptor $result[] = FoamXServer.JobDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return runningJobs ( ); - } finally { - _releaseReply ($in); - } - } // runningJobs - - - // Finished jobs list. - public FoamXServer.JobDescriptor[] finishedJobs () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_finishedJobs", true); - $in = _invoke ($out); - FoamXServer.JobDescriptor $result[] = FoamXServer.JobDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return finishedJobs ( ); - } finally { - _releaseReply ($in); - } - } // finishedJobs - - - // Get environment variable - public void getEnv (String envName, org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getEnv", true); - $out.write_string (envName); - $in = _invoke ($out); - hostName.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getEnv (envName, hostName ); - } finally { - _releaseReply ($in); - } - } // getEnv - - - // Get the machines hostName - public void getHostName (org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getHostName", true); - $in = _invoke ($out); - hostName.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getHostName (hostName ); - } finally { - _releaseReply ($in); - } - } // getHostName - - - // Get userName - public void getUserName (org.omg.CORBA.StringHolder userName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getUserName", true); - $in = _invoke ($out); - userName.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getUserName (userName ); - } finally { - _releaseReply ($in); - } - } // getUserName - - - // Get modification date - public int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("fileModificationDate", true); - $out.write_string (fileName); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return fileModificationDate (fileName ); - } finally { - _releaseReply ($in); - } - } // fileModificationDate - - - // Read file and store contents in string - public void readFile (String fileName, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("readFile", true); - $out.write_string (fileName); - $in = _invoke ($out); - contents.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - readFile (fileName, contents ); - } finally { - _releaseReply ($in); - } - } // readFile - - - // Write contents of string as a file - public void writeFile (String fileName, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("writeFile", true); - $out.write_string (fileName); - $out.write_string (contents); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - writeFile (fileName, contents ); - } finally { - _releaseReply ($in); - } - } // writeFile - - - // Utility execution. - public int invokeUtility (String hostName, String utilityName, String[] arguments, String logName, boolean backGround) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("invokeUtility", true); - $out.write_string (hostName); - $out.write_string (utilityName); - FoamXServer.StringListHelper.write ($out, arguments); - $out.write_string (logName); - $out.write_boolean (backGround); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return invokeUtility (hostName, utilityName, arguments, logName, backGround ); - } finally { - _releaseReply ($in); - } - } // invokeUtility - - public void refreshCaseList () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("refreshCaseList", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - refreshCaseList ( ); - } finally { - _releaseReply ($in); - } - } // refreshCaseList - - public void addToCaseList (String rootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addToCaseList", true); - $out.write_string (rootDir); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addToCaseList (rootDir ); - } finally { - _releaseReply ($in); - } - } // addToCaseList - - - // Case manipulation. - public void openCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("openCase", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - openCase (caseDesc ); - } finally { - _releaseReply ($in); - } - } // openCase - - public void newCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("newCase", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $out.write_string (app); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - newCase (rootDir, caseName, app ); - } finally { - _releaseReply ($in); - } - } // newCase - - public void importCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("importCase", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $out.write_string (app); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - importCase (rootDir, caseName, app ); - } finally { - _releaseReply ($in); - } - } // importCase - - public void deleteCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteCase", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteCase (caseDesc ); - } finally { - _releaseReply ($in); - } - } // deleteCase - - public void cloneCase (FoamXServer.CaseDescriptor caseDesc, String newCaseRootDir, String newCaseName, String newAppClassName, String timeSel) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cloneCase", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $out.write_string (newCaseRootDir); - $out.write_string (newCaseName); - $out.write_string (newAppClassName); - $out.write_string (timeSel); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cloneCase (caseDesc, newCaseRootDir, newCaseName, newAppClassName, timeSel ); - } finally { - _releaseReply ($in); - } - } // cloneCase - - - // Try to resolve NameServer entry for caseServer - public boolean getCaseServerReference (String rootDir, String caseName, FoamXServer.CaseServer.ICaseServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCaseServerReference", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - caseObj.value = FoamXServer.CaseServer.ICaseServerHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getCaseServerReference (rootDir, caseName, caseObj ); - } finally { - _releaseReply ($in); - } - } // getCaseServerReference - - - // start casePostServer - public void openCasePost (FoamXServer.CaseDescriptor caseDesc, int nProcs) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("openCasePost", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $out.write_long (nProcs); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - openCasePost (caseDesc, nProcs ); - } finally { - _releaseReply ($in); - } - } // openCasePost - - - // Try to resolve NameServer entry for casePostServer - public boolean getCasePostServerReference (String rootDir, String caseName, int nProcs, FoamXServer.CasePostServer.ICasePostServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCasePostServerReference", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $out.write_long (nProcs); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - caseObj.value = FoamXServer.CasePostServer.ICasePostServerHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getCasePostServerReference (rootDir, caseName, nProcs, caseObj ); - } finally { - _releaseReply ($in); - } - } // getCasePostServerReference - - public boolean caseLocked (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("caseLocked", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return caseLocked (caseDesc ); - } finally { - _releaseReply ($in); - } - } // caseLocked - - public void unlockCase (String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("unlockCase", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - unlockCase (rootDir, caseName ); - } finally { - _releaseReply ($in); - } - } // unlockCase - - public void unlockCaseDescriptor (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("unlockCaseDescriptor", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - unlockCaseDescriptor (caseDesc ); - } finally { - _releaseReply ($in); - } - } // unlockCaseDescriptor - - public void addCase (String rootDir, String rawRootDir, String caseName, String app) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addCase", true); - $out.write_string (rootDir); - $out.write_string (rawRootDir); - $out.write_string (caseName); - $out.write_string (app); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addCase (rootDir, rawRootDir, caseName, app ); - } finally { - _releaseReply ($in); - } - } // addCase - - public void caseOpen (String rootDir, String caseName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("caseOpen", true); - $out.write_string (rootDir); - $out.write_string (caseName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - caseOpen (rootDir, caseName ); - } finally { - _releaseReply ($in); - } - } // caseOpen - - public boolean isCaseInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("isCaseInError", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return isCaseInError (caseDesc ); - } finally { - _releaseReply ($in); - } - } // isCaseInError - - public void caseIsInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("caseIsInError", true); - FoamXServer.CaseDescriptorHelper.write ($out, caseDesc); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - caseIsInError (caseDesc ); - } finally { - _releaseReply ($in); - } - } // caseIsInError - - - // Process control - public void refreshJobsLists () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("refreshJobsLists", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - refreshJobsLists ( ); - } finally { - _releaseReply ($in); - } - } // refreshJobsLists - - public void checkRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("checkRunningJobs", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - checkRunningJobs ( ); - } finally { - _releaseReply ($in); - } - } // checkRunningJobs - - public void purgeRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("purgeRunningJobs", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - purgeRunningJobs ( ); - } finally { - _releaseReply ($in); - } - } // purgeRunningJobs - - public void purgeFinishedJob (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("purgeFinishedJob", true); - FoamXServer.JobIDHelper.write ($out, jobID); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - purgeFinishedJob (jobID ); - } finally { - _releaseReply ($in); - } - } // purgeFinishedJob - - public void purgeFinishedJobs (int nDays) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("purgeFinishedJobs", true); - $out.write_long (nDays); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - purgeFinishedJobs (nDays ); - } finally { - _releaseReply ($in); - } - } // purgeFinishedJobs - - - // Kill process. - public void kill (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("kill", true); - FoamXServer.JobIDHelper.write ($out, jobID); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - kill (jobID ); - } finally { - _releaseReply ($in); - } - } // kill - - - // Suspend process - public void suspend (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("suspend", true); - FoamXServer.JobIDHelper.write ($out, jobID); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - suspend (jobID ); - } finally { - _releaseReply ($in); - } - } // suspend - - - // Continue process - public void cont (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cont", true); - FoamXServer.JobIDHelper.write ($out, jobID); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cont (jobID ); - } finally { - _releaseReply ($in); - } - } // cont - - - // now=false: next natural dump - public void end (FoamXServer.JobID jobID, String rootDir, String caseName, boolean now) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("end", true); - FoamXServer.JobIDHelper.write ($out, jobID); - $out.write_string (rootDir); - $out.write_string (caseName); - $out.write_boolean (now); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - end (jobID, rootDir, caseName, now ); - } finally { - _releaseReply ($in); - } - } // end - - - // Reset the job status - public void setStatus (FoamXServer.JobID jobID, FoamXServer.JobStatus jobStatus) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setStatus", true); - FoamXServer.JobIDHelper.write ($out, jobID); - FoamXServer.JobStatusHelper.write ($out, jobStatus); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setStatus (jobID, jobStatus ); - } finally { - _releaseReply ($in); - } - } // setStatus - - - // Validation. - public void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - // Persistence. - public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("save", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - save ( ); - } finally { - _releaseReply ($in); - } - } // save - - - // Lifetime management. - public void close () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("close", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - close ( ); - } finally { - _releaseReply ($in); - } - } // close - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ICaseBrowserStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptor.java deleted file mode 100644 index 81916933e6..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptor.java +++ /dev/null @@ -1,50 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/CaseDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Case descriptor structure. -public final class CaseDescriptor implements org.omg.CORBA.portable.IDLEntity -{ - public String rootDir = null; - - // rootDir (after expansion) - public String rawRootDir = null; - - // rootDir (before expansion) - public String caseName = null; - public String app = null; - public int nProcs = (int)0; - - // 1 or number of subdomains in parallel - public boolean managed = false; - - // True if this is a FoamX managed case. - public boolean locked = false; - - // True if this case is locked by another user. - public boolean error = false; - - public CaseDescriptor () - { - } // ctor - - public CaseDescriptor (String _rootDir, String _rawRootDir, String _caseName, String _app, int _nProcs, boolean _managed, boolean _locked, boolean _error) - { - rootDir = _rootDir; - rawRootDir = _rawRootDir; - caseName = _caseName; - app = _app; - nProcs = _nProcs; - managed = _managed; - locked = _locked; - error = _error; - } // ctor - -} // class CaseDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHelper.java deleted file mode 100644 index 09cb153bad..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHelper.java +++ /dev/null @@ -1,126 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/CaseDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Case descriptor structure. -abstract public class CaseDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/CaseDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [8]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "rootDir", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "rawRootDir", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.StructMember ( - "caseName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[3] = new org.omg.CORBA.StructMember ( - "app", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[4] = new org.omg.CORBA.StructMember ( - "nProcs", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[5] = new org.omg.CORBA.StructMember ( - "managed", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[6] = new org.omg.CORBA.StructMember ( - "locked", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[7] = new org.omg.CORBA.StructMember ( - "error", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.CaseDescriptorHelper.id (), "CaseDescriptor", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.CaseDescriptor value = new FoamXServer.CaseDescriptor (); - value.rootDir = istream.read_string (); - value.rawRootDir = istream.read_string (); - value.caseName = istream.read_string (); - value.app = istream.read_string (); - value.nProcs = istream.read_long (); - value.managed = istream.read_boolean (); - value.locked = istream.read_boolean (); - value.error = istream.read_boolean (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseDescriptor value) - { - ostream.write_string (value.rootDir); - ostream.write_string (value.rawRootDir); - ostream.write_string (value.caseName); - ostream.write_string (value.app); - ostream.write_long (value.nProcs); - ostream.write_boolean (value.managed); - ostream.write_boolean (value.locked); - ostream.write_boolean (value.error); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHolder.java deleted file mode 100644 index 978aa13d1c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/CaseDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Case descriptor structure. -public final class CaseDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseDescriptor value = null; - - public CaseDescriptorHolder () - { - } - - public CaseDescriptorHolder (FoamXServer.CaseDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHelper.java deleted file mode 100644 index 5cd637ba7f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/CaseDescriptorListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class CaseDescriptorListHelper -{ - private static String _id = "IDL:FoamXServer/CaseDescriptorList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseDescriptor[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseDescriptor[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.CaseDescriptorHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.CaseDescriptorListHelper.id (), "CaseDescriptorList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseDescriptor[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.CaseDescriptor value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.CaseDescriptor[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.CaseDescriptorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseDescriptor[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.CaseDescriptorHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHolder.java deleted file mode 100644 index ed00944cfe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseDescriptorListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/CaseDescriptorListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class CaseDescriptorListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseDescriptor value[] = null; - - public CaseDescriptorListHolder () - { - } - - public CaseDescriptorListHolder (FoamXServer.CaseDescriptor[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseDescriptorListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseDescriptorListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseDescriptorListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServer.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServer.java deleted file mode 100644 index c218fdf56a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServer.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CasePostServer; - - -/** -* FoamXServer/CasePostServer/ICasePostServer.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICasePostServer extends ICasePostServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ICasePostServer diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHelper.java deleted file mode 100644 index 3f808ac306..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CasePostServer; - - -/** -* FoamXServer/CasePostServer/ICasePostServerHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class ICasePostServerHelper -{ - private static String _id = "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CasePostServer.ICasePostServer that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CasePostServer.ICasePostServer extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CasePostServer.ICasePostServerHelper.id (), "ICasePostServer"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CasePostServer.ICasePostServer read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ICasePostServerStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CasePostServer.ICasePostServer value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CasePostServer.ICasePostServer narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CasePostServer.ICasePostServer) - return (FoamXServer.CasePostServer.ICasePostServer)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CasePostServer._ICasePostServerStub stub = new FoamXServer.CasePostServer._ICasePostServerStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHolder.java deleted file mode 100644 index cab6931713..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CasePostServer; - -/** -* FoamXServer/CasePostServer/ICasePostServerHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class ICasePostServerHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CasePostServer.ICasePostServer value = null; - - public ICasePostServerHolder () - { - } - - public ICasePostServerHolder (FoamXServer.CasePostServer.ICasePostServer initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CasePostServer.ICasePostServerHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CasePostServer.ICasePostServerHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CasePostServer.ICasePostServerHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerOperations.java deleted file mode 100644 index 8bd785c6b8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/ICasePostServerOperations.java +++ /dev/null @@ -1,89 +0,0 @@ -package FoamXServer.CasePostServer; - - -/** -* FoamXServer/CasePostServer/ICasePostServerOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICasePostServerOperations -{ - - // Attributes. - String caseRoot (); - String caseName (); - int nProcs (); - - // Time-steps. - String[] availableTimeSteps (); - - // Set database - void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void setTimeSlave (); - - // Get patchnames over all domains - String[] getPatchNames () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void getPatchNamesSlave (); - - // Get fieldNames - String[] getFieldNames (String type) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Bounding box - void getMeshBb (FoamXServer.Point3Holder min, FoamXServer.Point3Holder max) throws FoamXServer.FoamXError; - - // Slave variant - void getMeshBbSlave (); - - // Patch mesh - void getPatchMesh (String patchName, double creaseAngle, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError; - - // Slave variant - void getPatchMeshSlave (); - - // Cut mesh - void getCutMesh (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError; - - // Slave variant - void getCutMeshSlave (); - - // Cut mesh outline - void getCutMeshOutline (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError; - - // Slave variant - void getCutMeshOutlineSlave (); - - // Triangulate and sample patch - void getTriPatch (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void getTriPatchSlave (); - - // Triangulate and sample patch - void getTriPatchVec (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void getTriPatchVecSlave (); - - // Cutplane and sample - void cutPlane (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void cutPlaneSlave (); - - // Cutplane and sample - void cutPlaneVec (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Slave variant - void cutPlaneVecSlave (); - - //- Lifetime management. - void close (); -} // interface ICasePostServerOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/_ICasePostServerStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/_ICasePostServerStub.java deleted file mode 100644 index 5f5dfc4f7e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CasePostServer/_ICasePostServerStub.java +++ /dev/null @@ -1,650 +0,0 @@ -package FoamXServer.CasePostServer; - - -/** -* FoamXServer/CasePostServer/_ICasePostServerStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _ICasePostServerStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CasePostServer.ICasePostServer -{ - - - // Attributes. - public String caseRoot () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseRoot", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return caseRoot ( ); - } finally { - _releaseReply ($in); - } - } // caseRoot - - public String caseName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return caseName ( ); - } finally { - _releaseReply ($in); - } - } // caseName - - public int nProcs () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_nProcs", true); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return nProcs ( ); - } finally { - _releaseReply ($in); - } - } // nProcs - - - // Time-steps. - public String[] availableTimeSteps () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableTimeSteps", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return availableTimeSteps ( ); - } finally { - _releaseReply ($in); - } - } // availableTimeSteps - - - // Set database - public void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setTime", true); - $out.write_string (timeName); - $out.write_long (timeIndex); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setTime (timeName, timeIndex ); - } finally { - _releaseReply ($in); - } - } // setTime - - - // Slave variant - public void setTimeSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setTimeSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setTimeSlave ( ); - } finally { - _releaseReply ($in); - } - } // setTimeSlave - - - // Get patchnames over all domains - public String[] getPatchNames () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchNames", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getPatchNames ( ); - } finally { - _releaseReply ($in); - } - } // getPatchNames - - - // Slave variant - public void getPatchNamesSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchNamesSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchNamesSlave ( ); - } finally { - _releaseReply ($in); - } - } // getPatchNamesSlave - - - // Get fieldNames - public String[] getFieldNames (String type) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getFieldNames", true); - $out.write_string (type); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getFieldNames (type ); - } finally { - _releaseReply ($in); - } - } // getFieldNames - - - // Bounding box - public void getMeshBb (FoamXServer.Point3Holder min, FoamXServer.Point3Holder max) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getMeshBb", true); - $in = _invoke ($out); - min.value = FoamXServer.Point3Helper.read ($in); - max.value = FoamXServer.Point3Helper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getMeshBb (min, max ); - } finally { - _releaseReply ($in); - } - } // getMeshBb - - - // Slave variant - public void getMeshBbSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getMeshBbSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getMeshBbSlave ( ); - } finally { - _releaseReply ($in); - } - } // getMeshBbSlave - - - // Patch mesh - public void getPatchMesh (String patchName, double creaseAngle, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchMesh", true); - $out.write_string (patchName); - $out.write_double (creaseAngle); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - edges.value = FoamXServer.LongListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchMesh (patchName, creaseAngle, points, edges ); - } finally { - _releaseReply ($in); - } - } // getPatchMesh - - - // Slave variant - public void getPatchMeshSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchMeshSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchMeshSlave ( ); - } finally { - _releaseReply ($in); - } - } // getPatchMeshSlave - - - // Cut mesh - public void getCutMesh (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCutMesh", true); - FoamXServer.Point3Helper.write ($out, basePoint); - FoamXServer.Point3Helper.write ($out, normal); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - edges.value = FoamXServer.LongListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getCutMesh (basePoint, normal, points, edges ); - } finally { - _releaseReply ($in); - } - } // getCutMesh - - - // Slave variant - public void getCutMeshSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getCutMeshSlave ( ); - } finally { - _releaseReply ($in); - } - } // getCutMeshSlave - - - // Cut mesh outline - public void getCutMeshOutline (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshOutline", true); - FoamXServer.Point3Helper.write ($out, basePoint); - FoamXServer.Point3Helper.write ($out, normal); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - edges.value = FoamXServer.LongListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getCutMeshOutline (basePoint, normal, points, edges ); - } finally { - _releaseReply ($in); - } - } // getCutMeshOutline - - - // Slave variant - public void getCutMeshOutlineSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshOutlineSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getCutMeshOutlineSlave ( ); - } finally { - _releaseReply ($in); - } - } // getCutMeshOutlineSlave - - - // Triangulate and sample patch - public void getTriPatch (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatch", true); - $out.write_string (fieldName); - $out.write_string (patchName); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - triFaces.value = FoamXServer.LongListHelper.read ($in); - values.value = FoamXServer.FloatListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getTriPatch (fieldName, patchName, points, triFaces, values ); - } finally { - _releaseReply ($in); - } - } // getTriPatch - - - // Slave variant - public void getTriPatchSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getTriPatchSlave ( ); - } finally { - _releaseReply ($in); - } - } // getTriPatchSlave - - - // Triangulate and sample patch - public void getTriPatchVec (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchVec", true); - $out.write_string (fieldName); - $out.write_string (patchName); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - triFaces.value = FoamXServer.LongListHelper.read ($in); - values.value = FoamXServer.FloatListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getTriPatchVec (fieldName, patchName, points, triFaces, values ); - } finally { - _releaseReply ($in); - } - } // getTriPatchVec - - - // Slave variant - public void getTriPatchVecSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchVecSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getTriPatchVecSlave ( ); - } finally { - _releaseReply ($in); - } - } // getTriPatchVecSlave - - - // Cutplane and sample - public void cutPlane (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cutPlane", true); - $out.write_string (fieldName); - FoamXServer.Point3Helper.write ($out, basePoint); - FoamXServer.Point3Helper.write ($out, normal); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - triFaces.value = FoamXServer.LongListHelper.read ($in); - values.value = FoamXServer.FloatListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cutPlane (fieldName, basePoint, normal, points, triFaces, values ); - } finally { - _releaseReply ($in); - } - } // cutPlane - - - // Slave variant - public void cutPlaneSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cutPlaneSlave ( ); - } finally { - _releaseReply ($in); - } - } // cutPlaneSlave - - - // Cutplane and sample - public void cutPlaneVec (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneVec", true); - $out.write_string (fieldName); - FoamXServer.Point3Helper.write ($out, basePoint); - FoamXServer.Point3Helper.write ($out, normal); - $in = _invoke ($out); - points.value = FoamXServer.FloatListHelper.read ($in); - triFaces.value = FoamXServer.LongListHelper.read ($in); - values.value = FoamXServer.FloatListHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cutPlaneVec (fieldName, basePoint, normal, points, triFaces, values ); - } finally { - _releaseReply ($in); - } - } // cutPlaneVec - - - // Slave variant - public void cutPlaneVecSlave () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneVecSlave", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cutPlaneVecSlave ( ); - } finally { - _releaseReply ($in); - } - } // cutPlaneVecSlave - - - //- Lifetime management. - public void close () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("close", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - close ( ); - } finally { - _releaseReply ($in); - } - } // close - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ICasePostServerStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplication.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplication.java deleted file mode 100644 index 63c3e7ca09..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplication.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IApplication.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IApplication extends IApplicationOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IApplication diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHelper.java deleted file mode 100644 index 0803d9ccc7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IApplicationHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IApplicationHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IApplication:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IApplication that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IApplication extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IApplicationHelper.id (), "IApplication"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IApplication read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IApplicationStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IApplication value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IApplication narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IApplication) - return (FoamXServer.CaseServer.IApplication)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IApplicationStub stub = new FoamXServer.CaseServer._IApplicationStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHolder.java deleted file mode 100644 index eb25c9cbf1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IApplicationHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IApplicationHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IApplication value = null; - - public IApplicationHolder () - { - } - - public IApplicationHolder (FoamXServer.CaseServer.IApplication initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IApplicationHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IApplicationHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IApplicationHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationOperations.java deleted file mode 100644 index f537c35985..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IApplicationOperations.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IApplicationOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IApplicationOperations -{ - - //- Short name for this application class. - String name (); - - //- Short name for this application class. - void name (String newName); - - //- Application class description. - String description (); - - //- Application class description. - void description (String newDescription); - - //- Application class category. - String category (); - - //- Application class category. - void category (String newCategory); - - //- List of modules required to pre-process this application class. - String[] modules (); - - //- List of modules required to pre-process this application class. - void modules (String[] newModules); - - //- System or user defined application class. - boolean systemClass (); - - //- List of defined fields. - String[] fields (); - void getField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void findField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteField (String fieldName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Patch physical types. - String[] patchPhysicalTypes (); - - // List of defined patch physical types. - void getPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void findPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deletePatchPhysicalType (String patchPhysicalTypeName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Dictionaries. - String[] dictionaries (); - - // List of defined dictionaries. - void getDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteDictionary (String dictName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Validation. - void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - // Persistence. - void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; -} // interface IApplicationOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServer.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServer.java deleted file mode 100644 index 7d02b0228c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServer.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/ICaseServer.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICaseServer extends ICaseServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ICaseServer diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHelper.java deleted file mode 100644 index aefa1fab4c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/ICaseServerHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class ICaseServerHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/ICaseServer:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.ICaseServer that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.ICaseServer extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.ICaseServerHelper.id (), "ICaseServer"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.ICaseServer read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ICaseServerStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.ICaseServer value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.ICaseServer narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.ICaseServer) - return (FoamXServer.CaseServer.ICaseServer)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._ICaseServerStub stub = new FoamXServer.CaseServer._ICaseServerStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHolder.java deleted file mode 100644 index 8310681b32..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/ICaseServerHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class ICaseServerHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.ICaseServer value = null; - - public ICaseServerHolder () - { - } - - public ICaseServerHolder (FoamXServer.CaseServer.ICaseServer initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.ICaseServerHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.ICaseServerHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.ICaseServerHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerOperations.java deleted file mode 100644 index 129e03cd9c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/ICaseServerOperations.java +++ /dev/null @@ -1,80 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/ICaseServerOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface ICaseServerOperations -{ - - // Attributes. - boolean managed (); - - // Attributes. - void managed (boolean newManaged); - String caseRoot (); - String caseName (); - - // Application class for this case (read only). - FoamXServer.CaseServer.IApplication application (); - - // Foam system properties (read only). - FoamXServer.CaseServer.IFoamProperties foamProperties (); - - // Time-steps. - String[] availableTimeSteps (); - - // Get current time - String getTime () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Set time - void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Mesh. - boolean meshDefined (); - void readMesh () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void importMesh (String hostName, String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Field values. - void getFieldValues (String fieldName, FoamXServer.CaseServer.IGeometricFieldHolder fieldValues) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Patches. - String[] patchNames (); - void addPatch (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deletePatch (String patchName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteAllPatches () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Patch physical type - void setPatchPhysicalType (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void getPatchPhysicalType (String patchName, org.omg.CORBA.StringHolder patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Dictionaries. - void getDictionary (String dictionaryName, boolean forceRead, FoamXServer.IDictionaryEntryHolder dictRoot) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void readFile (String name, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void writeFile (String name, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Get modification date - int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError; - - //- Calculation control. - int runCase (String arguments) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void killCase () throws FoamXServer.FoamXError; - - //- Validation. - void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - // Returns true if this has been modified - boolean modified (); - - //- Persistence. - void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - //- Lifetime management. - void close (); -} // interface ICaseServerOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamProperties.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamProperties.java deleted file mode 100644 index b8562199af..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamProperties.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IFoamProperties.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IFoamProperties extends IFoamPropertiesOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IFoamProperties diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHelper.java deleted file mode 100644 index b283a4ce3e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IFoamPropertiesHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IFoamPropertiesHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IFoamProperties:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IFoamProperties that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IFoamProperties extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IFoamPropertiesHelper.id (), "IFoamProperties"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IFoamProperties read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IFoamPropertiesStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IFoamProperties value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IFoamProperties narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IFoamProperties) - return (FoamXServer.CaseServer.IFoamProperties)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IFoamPropertiesStub stub = new FoamXServer.CaseServer._IFoamPropertiesStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHolder.java deleted file mode 100644 index 7cedd33576..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IFoamPropertiesHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IFoamPropertiesHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IFoamProperties value = null; - - public IFoamPropertiesHolder () - { - } - - public IFoamPropertiesHolder (FoamXServer.CaseServer.IFoamProperties initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IFoamPropertiesHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IFoamPropertiesHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IFoamPropertiesHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesOperations.java deleted file mode 100644 index 4a49b38de2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IFoamPropertiesOperations.java +++ /dev/null @@ -1,65 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IFoamPropertiesOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IFoamPropertiesOperations -{ - - //- Attributes. - String[] availableModules (); - - //- Root directories to search for cases. - String[] rootDirectories (); - - //- Unexpanded form of rootDirectories. - String[] rawRootDirectories (); - void addRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Foam types. - String[] foamTypes (); - void getFoamType (String foamTypeName, FoamXServer.ITypeDescriptorHolder typeDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Geometry types. - String[] geometryTypes (); - void getGeometryType (String geometryTypeName, FoamXServer.CaseServer.IGeometryDescriptorHolder geometryDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Patch types. - String[] patchTypes (); - void getPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void findPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Patch field types. - String[] patchFieldTypes (); - void getPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void findPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // FOAM controlDict - void getFoamControlDict (FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Application classes. - FoamXServer.ApplicationDescriptor[] applicationes (); - void getApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void addApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void deleteApplication (String appName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void cloneApplication (String appNameSrc, String appNameDest, String appDestPath, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Foam utilities. - FoamXServer.ApplicationDescriptor[] utilities (); - void getUtilityControlDict (String utilityName, String rootDir, String caseName, FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - //- Validation. - void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - //- Persistence. - void saveSystemProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - void saveUserProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; -} // interface IFoamPropertiesOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricField.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricField.java deleted file mode 100644 index 5fe46b1274..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricField.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricField.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometricField extends IGeometricFieldOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IGeometricField diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptor.java deleted file mode 100644 index 155a9c371a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptor.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricFieldDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometricFieldDescriptor extends IGeometricFieldDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IGeometricFieldDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHelper.java deleted file mode 100644 index 92ef44de1f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricFieldDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IGeometricFieldDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometricFieldDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IGeometricFieldDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.id (), "IGeometricFieldDescriptor"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IGeometricFieldDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IGeometricFieldDescriptorStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometricFieldDescriptor value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IGeometricFieldDescriptor narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IGeometricFieldDescriptor) - return (FoamXServer.CaseServer.IGeometricFieldDescriptor)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IGeometricFieldDescriptorStub stub = new FoamXServer.CaseServer._IGeometricFieldDescriptorStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHolder.java deleted file mode 100644 index 6f44edb05b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IGeometricFieldDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IGeometricFieldDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IGeometricFieldDescriptor value = null; - - public IGeometricFieldDescriptorHolder () - { - } - - public IGeometricFieldDescriptorHolder (FoamXServer.CaseServer.IGeometricFieldDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorOperations.java deleted file mode 100644 index 40133b8316..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldDescriptorOperations.java +++ /dev/null @@ -1,48 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricFieldDescriptorOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometricFieldDescriptorOperations -{ - FoamXServer.ITypeDescriptor typeDescriptor (); - FoamXServer.ITypeDescriptor fieldTypeDescriptor (); - FoamXServer.CaseServer.IGeometryDescriptor geometryDescriptor (); - - //- Field name (eg, "p"). - String name (); - - //- Field name (eg, "p"). - void name (String newName); - - //- Field description (eg, "Pressure"). - String description (); - - //- Field description (eg, "Pressure"). - void description (String newDescription); - - //- Field type name (eg, "scalar"). - String fieldTypeName (); - - //- Field type name (eg, "scalar"). - void fieldTypeName (String newFieldTypeName); - - //- Geometry type name (eg, "vol"). - String geometryTypeName (); - - //- Geometry type name (eg, "vol"). - void geometryTypeName (String newGeometryTypeName); - - //- Field dimensions. - FoamXServer.DimensionSet dimensions (); - - //- Field dimensions. - void dimensions (FoamXServer.DimensionSet newDimensions); -} // interface IGeometricFieldDescriptorOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHelper.java deleted file mode 100644 index 181f91083a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricFieldHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IGeometricFieldHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IGeometricField:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometricField that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IGeometricField extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometricFieldHelper.id (), "IGeometricField"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IGeometricField read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IGeometricFieldStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometricField value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IGeometricField narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IGeometricField) - return (FoamXServer.CaseServer.IGeometricField)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IGeometricFieldStub stub = new FoamXServer.CaseServer._IGeometricFieldStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHolder.java deleted file mode 100644 index 1bccbb0f63..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IGeometricFieldHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IGeometricFieldHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IGeometricField value = null; - - public IGeometricFieldHolder () - { - } - - public IGeometricFieldHolder (FoamXServer.CaseServer.IGeometricField initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IGeometricFieldHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IGeometricFieldHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IGeometricFieldHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldOperations.java deleted file mode 100644 index 9768ea256b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometricFieldOperations.java +++ /dev/null @@ -1,21 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometricFieldOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometricFieldOperations -{ - String name (); - void getInternalFieldValue (FoamXServer.IDictionaryEntryHolder internalFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void getPatchFieldParameters (String patchName, FoamXServer.IDictionaryEntryHolder patchFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // Returns true if this has been modified - boolean modified (); -} // interface IGeometricFieldOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptor.java deleted file mode 100644 index 983aaf8425..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptor.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometryDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometryDescriptor extends IGeometryDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IGeometryDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHelper.java deleted file mode 100644 index 2fa6623d05..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometryDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IGeometryDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometryDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IGeometryDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometryDescriptorHelper.id (), "IGeometryDescriptor"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IGeometryDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IGeometryDescriptorStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometryDescriptor value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IGeometryDescriptor narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IGeometryDescriptor) - return (FoamXServer.CaseServer.IGeometryDescriptor)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IGeometryDescriptorStub stub = new FoamXServer.CaseServer._IGeometryDescriptorStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHolder.java deleted file mode 100644 index 3e069decc7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IGeometryDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IGeometryDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IGeometryDescriptor value = null; - - public IGeometryDescriptorHolder () - { - } - - public IGeometryDescriptorHolder (FoamXServer.CaseServer.IGeometryDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IGeometryDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IGeometryDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IGeometryDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorOperations.java deleted file mode 100644 index a392ca1a91..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IGeometryDescriptorOperations.java +++ /dev/null @@ -1,33 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IGeometryDescriptorOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IGeometryDescriptorOperations -{ - - //- Name of geometry type (eg, "volume"). - String name (); - - //- Name of geometry type (eg, "volume"). - void name (String newName); - - //- Display name (eg, "Volume"). - String displayName (); - - //- Display name (eg, "Volume"). - void displayName (String newDisplayName); - - //- Description (eg, "Finite Volume Geometry"). - String description (); - - //- Description (eg, "Finite Volume Geometry"). - void description (String newDescription); -} // interface IGeometryDescriptorOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptor.java deleted file mode 100644 index 8ee83ec850..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptor.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IPatchDescriptor extends IPatchDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IPatchDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHelper.java deleted file mode 100644 index ad632c56ca..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IPatchDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IPatchDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IPatchDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IPatchDescriptorHelper.id (), "IPatchDescriptor"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IPatchDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IPatchDescriptorStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IPatchDescriptor value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IPatchDescriptor narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IPatchDescriptor) - return (FoamXServer.CaseServer.IPatchDescriptor)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IPatchDescriptorStub stub = new FoamXServer.CaseServer._IPatchDescriptorStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHolder.java deleted file mode 100644 index 5eb88b18fa..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IPatchDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IPatchDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IPatchDescriptor value = null; - - public IPatchDescriptorHolder () - { - } - - public IPatchDescriptorHolder (FoamXServer.CaseServer.IPatchDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IPatchDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IPatchDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IPatchDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorOperations.java deleted file mode 100644 index e694c44a1e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchDescriptorOperations.java +++ /dev/null @@ -1,33 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchDescriptorOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IPatchDescriptorOperations -{ - - //- Name of patch type (eg, "wall"). - String name (); - - //- Name of patch type (eg, "wall"). - void name (String newName); - - //- Display name (eg, "Wall"). - String displayName (); - - //- Display name (eg, "Wall"). - void displayName (String newDisplayName); - - //- Description (eg, "Solid Wall"). - String description (); - - //- Description (eg, "Solid Wall"). - void description (String newDescription); -} // interface IPatchDescriptorOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor.java deleted file mode 100644 index d607714b13..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IPatchPhysicalTypeDescriptor extends IPatchPhysicalTypeDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IPatchPhysicalTypeDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHelper.java deleted file mode 100644 index 0261ac9b61..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IPatchPhysicalTypeDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.id (), "IPatchPhysicalTypeDescriptor"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IPatchPhysicalTypeDescriptorStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor) - return (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.CaseServer._IPatchPhysicalTypeDescriptorStub stub = new FoamXServer.CaseServer._IPatchPhysicalTypeDescriptorStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHolder.java deleted file mode 100644 index 1ed6fbcfbb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.CaseServer; - -/** -* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IPatchPhysicalTypeDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor value = null; - - public IPatchPhysicalTypeDescriptorHolder () - { - } - - public IPatchPhysicalTypeDescriptorHolder (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorOperations.java deleted file mode 100644 index 1c1e063d56..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorOperations.java +++ /dev/null @@ -1,31 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IPatchPhysicalTypeDescriptorOperations -{ - - //- Patch physical type name (eg, "inlet"). - String name (); - - //- Patch physical type name (eg, "inlet"). - void name (String newName); - String displayName (); - void displayName (String newDisplayName); - String description (); - void description (String newDescription); - String patchType (); - void patchType (String newPatchType); - String parentType (); - void parentType (String newParentType); - FoamXServer.StringPair[] patchFieldTypes (); - void patchFieldTypes (FoamXServer.StringPair[] newPatchFieldTypes); -} // interface IPatchPhysicalTypeDescriptorOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IApplicationStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IApplicationStub.java deleted file mode 100644 index 05ee2b83b3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IApplicationStub.java +++ /dev/null @@ -1,624 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IApplicationStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IApplicationStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IApplication -{ - - - //- Short name for this application class. - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Short name for this application class. - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Application class description. - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Application class description. - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Application class category. - public String category () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_category", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return category ( ); - } finally { - _releaseReply ($in); - } - } // category - - - //- Application class category. - public void category (String newCategory) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_category", true); - $out.write_string (newCategory); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - category (newCategory ); - } finally { - _releaseReply ($in); - } - } // category - - - //- List of modules required to pre-process this application class. - public String[] modules () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_modules", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return modules ( ); - } finally { - _releaseReply ($in); - } - } // modules - - - //- List of modules required to pre-process this application class. - public void modules (String[] newModules) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_modules", true); - FoamXServer.StringListHelper.write ($out, newModules); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - modules (newModules ); - } finally { - _releaseReply ($in); - } - } // modules - - - //- System or user defined application class. - public boolean systemClass () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_systemClass", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return systemClass ( ); - } finally { - _releaseReply ($in); - } - } // systemClass - - - //- List of defined fields. - public String[] fields () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_fields", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return fields ( ); - } finally { - _releaseReply ($in); - } - } // fields - - public void getField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getField", true); - $out.write_string (fieldName); - $in = _invoke ($out); - fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getField (fieldName, fieldDescriptor ); - } finally { - _releaseReply ($in); - } - } // getField - - public void findField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("findField", true); - $out.write_string (fieldName); - $in = _invoke ($out); - fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - findField (fieldName, fieldDescriptor ); - } finally { - _releaseReply ($in); - } - } // findField - - public void addField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addField", true); - $out.write_string (fieldName); - $in = _invoke ($out); - fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addField (fieldName, fieldDescriptor ); - } finally { - _releaseReply ($in); - } - } // addField - - public void deleteField (String fieldName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteField", true); - $out.write_string (fieldName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteField (fieldName ); - } finally { - _releaseReply ($in); - } - } // deleteField - - - // Patch physical types. - public String[] patchPhysicalTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchPhysicalTypes", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchPhysicalTypes ( ); - } finally { - _releaseReply ($in); - } - } // patchPhysicalTypes - - - // List of defined patch physical types. - public void getPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchPhysicalType", true); - $out.write_string (patchPhysicalTypeName); - $in = _invoke ($out); - patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor ); - } finally { - _releaseReply ($in); - } - } // getPatchPhysicalType - - public void findPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("findPatchPhysicalType", true); - $out.write_string (patchPhysicalTypeName); - $in = _invoke ($out); - patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - findPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor ); - } finally { - _releaseReply ($in); - } - } // findPatchPhysicalType - - public void addPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addPatchPhysicalType", true); - $out.write_string (patchPhysicalTypeName); - $in = _invoke ($out); - patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor ); - } finally { - _releaseReply ($in); - } - } // addPatchPhysicalType - - public void deletePatchPhysicalType (String patchPhysicalTypeName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deletePatchPhysicalType", true); - $out.write_string (patchPhysicalTypeName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deletePatchPhysicalType (patchPhysicalTypeName ); - } finally { - _releaseReply ($in); - } - } // deletePatchPhysicalType - - - // Dictionaries. - public String[] dictionaries () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_dictionaries", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return dictionaries ( ); - } finally { - _releaseReply ($in); - } - } // dictionaries - - - // List of defined dictionaries. - public void getDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getDictionary", true); - $out.write_string (dictName); - $in = _invoke ($out); - dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getDictionary (dictName, dictTypeDescriptor ); - } finally { - _releaseReply ($in); - } - } // getDictionary - - public void addDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addDictionary", true); - $out.write_string (dictName); - $in = _invoke ($out); - dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addDictionary (dictName, dictTypeDescriptor ); - } finally { - _releaseReply ($in); - } - } // addDictionary - - public void deleteDictionary (String dictName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteDictionary", true); - $out.write_string (dictName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteDictionary (dictName ); - } finally { - _releaseReply ($in); - } - } // deleteDictionary - - - // Validation. - public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - // Persistence. - public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("save", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - save ( ); - } finally { - _releaseReply ($in); - } - } // save - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IApplication:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IApplicationStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_ICaseServerStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_ICaseServerStub.java deleted file mode 100644 index 07785f4f87..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_ICaseServerStub.java +++ /dev/null @@ -1,726 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_ICaseServerStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _ICaseServerStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.ICaseServer -{ - - - // Attributes. - public boolean managed () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_managed", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return managed ( ); - } finally { - _releaseReply ($in); - } - } // managed - - - // Attributes. - public void managed (boolean newManaged) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_managed", true); - $out.write_boolean (newManaged); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - managed (newManaged ); - } finally { - _releaseReply ($in); - } - } // managed - - public String caseRoot () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseRoot", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return caseRoot ( ); - } finally { - _releaseReply ($in); - } - } // caseRoot - - public String caseName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return caseName ( ); - } finally { - _releaseReply ($in); - } - } // caseName - - - // Application class for this case (read only). - public FoamXServer.CaseServer.IApplication application () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_application", true); - $in = _invoke ($out); - FoamXServer.CaseServer.IApplication $result = FoamXServer.CaseServer.IApplicationHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return application ( ); - } finally { - _releaseReply ($in); - } - } // application - - - // Foam system properties (read only). - public FoamXServer.CaseServer.IFoamProperties foamProperties () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamProperties", true); - $in = _invoke ($out); - FoamXServer.CaseServer.IFoamProperties $result = FoamXServer.CaseServer.IFoamPropertiesHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return foamProperties ( ); - } finally { - _releaseReply ($in); - } - } // foamProperties - - - // Time-steps. - public String[] availableTimeSteps () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableTimeSteps", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return availableTimeSteps ( ); - } finally { - _releaseReply ($in); - } - } // availableTimeSteps - - - // Get current time - public String getTime () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getTime", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getTime ( ); - } finally { - _releaseReply ($in); - } - } // getTime - - - // Set time - public void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setTime", true); - $out.write_string (timeName); - $out.write_long (timeIndex); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setTime (timeName, timeIndex ); - } finally { - _releaseReply ($in); - } - } // setTime - - - // Mesh. - public boolean meshDefined () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_meshDefined", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return meshDefined ( ); - } finally { - _releaseReply ($in); - } - } // meshDefined - - public void readMesh () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("readMesh", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - readMesh ( ); - } finally { - _releaseReply ($in); - } - } // readMesh - - public void importMesh (String hostName, String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("importMesh", true); - $out.write_string (hostName); - $out.write_string (rootDir); - $out.write_string (caseName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - importMesh (hostName, rootDir, caseName ); - } finally { - _releaseReply ($in); - } - } // importMesh - - - // Field values. - public void getFieldValues (String fieldName, FoamXServer.CaseServer.IGeometricFieldHolder fieldValues) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getFieldValues", true); - $out.write_string (fieldName); - $in = _invoke ($out); - fieldValues.value = FoamXServer.CaseServer.IGeometricFieldHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getFieldValues (fieldName, fieldValues ); - } finally { - _releaseReply ($in); - } - } // getFieldValues - - - // Patches. - public String[] patchNames () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchNames", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchNames ( ); - } finally { - _releaseReply ($in); - } - } // patchNames - - public void addPatch (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addPatch", true); - $out.write_string (patchName); - $out.write_string (patchPhysicalType); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addPatch (patchName, patchPhysicalType ); - } finally { - _releaseReply ($in); - } - } // addPatch - - public void deletePatch (String patchName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deletePatch", true); - $out.write_string (patchName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deletePatch (patchName ); - } finally { - _releaseReply ($in); - } - } // deletePatch - - public void deleteAllPatches () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteAllPatches", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteAllPatches ( ); - } finally { - _releaseReply ($in); - } - } // deleteAllPatches - - - // Patch physical type - public void setPatchPhysicalType (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setPatchPhysicalType", true); - $out.write_string (patchName); - $out.write_string (patchPhysicalType); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setPatchPhysicalType (patchName, patchPhysicalType ); - } finally { - _releaseReply ($in); - } - } // setPatchPhysicalType - - public void getPatchPhysicalType (String patchName, org.omg.CORBA.StringHolder patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchPhysicalType", true); - $out.write_string (patchName); - $in = _invoke ($out); - patchPhysicalType.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchPhysicalType (patchName, patchPhysicalType ); - } finally { - _releaseReply ($in); - } - } // getPatchPhysicalType - - - // Dictionaries. - public void getDictionary (String dictionaryName, boolean forceRead, FoamXServer.IDictionaryEntryHolder dictRoot) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getDictionary", true); - $out.write_string (dictionaryName); - $out.write_boolean (forceRead); - $in = _invoke ($out); - dictRoot.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getDictionary (dictionaryName, forceRead, dictRoot ); - } finally { - _releaseReply ($in); - } - } // getDictionary - - public void readFile (String name, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("readFile", true); - $out.write_string (name); - $in = _invoke ($out); - contents.value = $in.read_string (); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - readFile (name, contents ); - } finally { - _releaseReply ($in); - } - } // readFile - - public void writeFile (String name, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("writeFile", true); - $out.write_string (name); - $out.write_string (contents); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - writeFile (name, contents ); - } finally { - _releaseReply ($in); - } - } // writeFile - - - // Get modification date - public int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("fileModificationDate", true); - $out.write_string (fileName); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return fileModificationDate (fileName ); - } finally { - _releaseReply ($in); - } - } // fileModificationDate - - - //- Calculation control. - public int runCase (String arguments) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("runCase", true); - $out.write_string (arguments); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return runCase (arguments ); - } finally { - _releaseReply ($in); - } - } // runCase - - public void killCase () throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("killCase", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - killCase ( ); - } finally { - _releaseReply ($in); - } - } // killCase - - - //- Validation. - public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - // Returns true if this has been modified - public boolean modified () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("modified", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return modified ( ); - } finally { - _releaseReply ($in); - } - } // modified - - - //- Persistence. - public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("save", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - save ( ); - } finally { - _releaseReply ($in); - } - } // save - - - //- Lifetime management. - public void close () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("close", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - close ( ); - } finally { - _releaseReply ($in); - } - } // close - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/ICaseServer:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ICaseServerStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IFoamPropertiesStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IFoamPropertiesStub.java deleted file mode 100644 index b04b957d4c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IFoamPropertiesStub.java +++ /dev/null @@ -1,662 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IFoamPropertiesStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IFoamPropertiesStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IFoamProperties -{ - - - //- Attributes. - public String[] availableModules () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableModules", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return availableModules ( ); - } finally { - _releaseReply ($in); - } - } // availableModules - - - //- Root directories to search for cases. - public String[] rootDirectories () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_rootDirectories", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return rootDirectories ( ); - } finally { - _releaseReply ($in); - } - } // rootDirectories - - - //- Unexpanded form of rootDirectories. - public String[] rawRootDirectories () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_rawRootDirectories", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return rawRootDirectories ( ); - } finally { - _releaseReply ($in); - } - } // rawRootDirectories - - public void addRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addRootDirectory", true); - $out.write_string (rawRootDir); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addRootDirectory (rawRootDir ); - } finally { - _releaseReply ($in); - } - } // addRootDirectory - - public void deleteRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteRootDirectory", true); - $out.write_string (rawRootDir); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteRootDirectory (rawRootDir ); - } finally { - _releaseReply ($in); - } - } // deleteRootDirectory - - - // Foam types. - public String[] foamTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamTypes", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return foamTypes ( ); - } finally { - _releaseReply ($in); - } - } // foamTypes - - public void getFoamType (String foamTypeName, FoamXServer.ITypeDescriptorHolder typeDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getFoamType", true); - $out.write_string (foamTypeName); - $in = _invoke ($out); - typeDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getFoamType (foamTypeName, typeDesc ); - } finally { - _releaseReply ($in); - } - } // getFoamType - - - // Geometry types. - public String[] geometryTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryTypes", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return geometryTypes ( ); - } finally { - _releaseReply ($in); - } - } // geometryTypes - - public void getGeometryType (String geometryTypeName, FoamXServer.CaseServer.IGeometryDescriptorHolder geometryDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getGeometryType", true); - $out.write_string (geometryTypeName); - $in = _invoke ($out); - geometryDesc.value = FoamXServer.CaseServer.IGeometryDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getGeometryType (geometryTypeName, geometryDesc ); - } finally { - _releaseReply ($in); - } - } // getGeometryType - - - // Patch types. - public String[] patchTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchTypes", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchTypes ( ); - } finally { - _releaseReply ($in); - } - } // patchTypes - - public void getPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchType", true); - $out.write_string (patchTypeName); - $in = _invoke ($out); - patchDesc.value = FoamXServer.CaseServer.IPatchDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchType (patchTypeName, patchDesc ); - } finally { - _releaseReply ($in); - } - } // getPatchType - - public void findPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("findPatchType", true); - $out.write_string (patchTypeName); - $in = _invoke ($out); - patchDesc.value = FoamXServer.CaseServer.IPatchDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - findPatchType (patchTypeName, patchDesc ); - } finally { - _releaseReply ($in); - } - } // findPatchType - - - // Patch field types. - public String[] patchFieldTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchFieldTypes", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchFieldTypes ( ); - } finally { - _releaseReply ($in); - } - } // patchFieldTypes - - public void getPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchFieldType", true); - $out.write_string (patchFieldTypeName); - $in = _invoke ($out); - patchFieldDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchFieldType (patchFieldTypeName, patchFieldDesc ); - } finally { - _releaseReply ($in); - } - } // getPatchFieldType - - public void findPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("findPatchFieldType", true); - $out.write_string (patchFieldTypeName); - $in = _invoke ($out); - patchFieldDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - findPatchFieldType (patchFieldTypeName, patchFieldDesc ); - } finally { - _releaseReply ($in); - } - } // findPatchFieldType - - - // FOAM controlDict - public void getFoamControlDict (FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getFoamControlDict", true); - $in = _invoke ($out); - controlDict.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getFoamControlDict (controlDict ); - } finally { - _releaseReply ($in); - } - } // getFoamControlDict - - - // Application classes. - public FoamXServer.ApplicationDescriptor[] applicationes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_applicationes", true); - $in = _invoke ($out); - FoamXServer.ApplicationDescriptor $result[] = FoamXServer.ApplicationDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return applicationes ( ); - } finally { - _releaseReply ($in); - } - } // applicationes - - public void getApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getApplication", true); - $out.write_string (appName); - $in = _invoke ($out); - app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getApplication (appName, app ); - } finally { - _releaseReply ($in); - } - } // getApplication - - public void addApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addApplication", true); - $out.write_string (appName); - $in = _invoke ($out); - app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addApplication (appName, app ); - } finally { - _releaseReply ($in); - } - } // addApplication - - public void deleteApplication (String appName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("deleteApplication", true); - $out.write_string (appName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - deleteApplication (appName ); - } finally { - _releaseReply ($in); - } - } // deleteApplication - - public void cloneApplication (String appNameSrc, String appNameDest, String appDestPath, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("cloneApplication", true); - $out.write_string (appNameSrc); - $out.write_string (appNameDest); - $out.write_string (appDestPath); - $in = _invoke ($out); - app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - cloneApplication (appNameSrc, appNameDest, appDestPath, app ); - } finally { - _releaseReply ($in); - } - } // cloneApplication - - - // Foam utilities. - public FoamXServer.ApplicationDescriptor[] utilities () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_utilities", true); - $in = _invoke ($out); - FoamXServer.ApplicationDescriptor $result[] = FoamXServer.ApplicationDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return utilities ( ); - } finally { - _releaseReply ($in); - } - } // utilities - - public void getUtilityControlDict (String utilityName, String rootDir, String caseName, FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getUtilityControlDict", true); - $out.write_string (utilityName); - $out.write_string (rootDir); - $out.write_string (caseName); - $in = _invoke ($out); - controlDict.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getUtilityControlDict (utilityName, rootDir, caseName, controlDict ); - } finally { - _releaseReply ($in); - } - } // getUtilityControlDict - - - //- Validation. - public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - //- Persistence. - public void saveSystemProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("saveSystemProperties", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - saveSystemProperties ( ); - } finally { - _releaseReply ($in); - } - } // saveSystemProperties - - public void saveUserProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("saveUserProperties", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - saveUserProperties ( ); - } finally { - _releaseReply ($in); - } - } // saveUserProperties - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IFoamProperties:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IFoamPropertiesStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldDescriptorStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldDescriptorStub.java deleted file mode 100644 index b2b3655f0a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldDescriptorStub.java +++ /dev/null @@ -1,309 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IGeometricFieldDescriptorStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IGeometricFieldDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometricFieldDescriptor -{ - - public FoamXServer.ITypeDescriptor typeDescriptor () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_typeDescriptor", true); - $in = _invoke ($out); - FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return typeDescriptor ( ); - } finally { - _releaseReply ($in); - } - } // typeDescriptor - - public FoamXServer.ITypeDescriptor fieldTypeDescriptor () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_fieldTypeDescriptor", true); - $in = _invoke ($out); - FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return fieldTypeDescriptor ( ); - } finally { - _releaseReply ($in); - } - } // fieldTypeDescriptor - - public FoamXServer.CaseServer.IGeometryDescriptor geometryDescriptor () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryDescriptor", true); - $in = _invoke ($out); - FoamXServer.CaseServer.IGeometryDescriptor $result = FoamXServer.CaseServer.IGeometryDescriptorHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return geometryDescriptor ( ); - } finally { - _releaseReply ($in); - } - } // geometryDescriptor - - - //- Field name (eg, "p"). - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Field name (eg, "p"). - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Field description (eg, "Pressure"). - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Field description (eg, "Pressure"). - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Field type name (eg, "scalar"). - public String fieldTypeName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_fieldTypeName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return fieldTypeName ( ); - } finally { - _releaseReply ($in); - } - } // fieldTypeName - - - //- Field type name (eg, "scalar"). - public void fieldTypeName (String newFieldTypeName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_fieldTypeName", true); - $out.write_string (newFieldTypeName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - fieldTypeName (newFieldTypeName ); - } finally { - _releaseReply ($in); - } - } // fieldTypeName - - - //- Geometry type name (eg, "vol"). - public String geometryTypeName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryTypeName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return geometryTypeName ( ); - } finally { - _releaseReply ($in); - } - } // geometryTypeName - - - //- Geometry type name (eg, "vol"). - public void geometryTypeName (String newGeometryTypeName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_geometryTypeName", true); - $out.write_string (newGeometryTypeName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - geometryTypeName (newGeometryTypeName ); - } finally { - _releaseReply ($in); - } - } // geometryTypeName - - - //- Field dimensions. - public FoamXServer.DimensionSet dimensions () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_dimensions", true); - $in = _invoke ($out); - FoamXServer.DimensionSet $result = FoamXServer.DimensionSetHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return dimensions ( ); - } finally { - _releaseReply ($in); - } - } // dimensions - - - //- Field dimensions. - public void dimensions (FoamXServer.DimensionSet newDimensions) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_dimensions", true); - FoamXServer.DimensionSetHelper.write ($out, newDimensions); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - dimensions (newDimensions ); - } finally { - _releaseReply ($in); - } - } // dimensions - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IGeometricFieldDescriptorStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldStub.java deleted file mode 100644 index bb2f2719c3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometricFieldStub.java +++ /dev/null @@ -1,131 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IGeometricFieldStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IGeometricFieldStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometricField -{ - - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - public void getInternalFieldValue (FoamXServer.IDictionaryEntryHolder internalFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getInternalFieldValue", true); - $in = _invoke ($out); - internalFieldValue.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getInternalFieldValue (internalFieldValue ); - } finally { - _releaseReply ($in); - } - } // getInternalFieldValue - - public void getPatchFieldParameters (String patchName, FoamXServer.IDictionaryEntryHolder patchFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getPatchFieldParameters", true); - $out.write_string (patchName); - $in = _invoke ($out); - patchFieldValue.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getPatchFieldParameters (patchName, patchFieldValue ); - } finally { - _releaseReply ($in); - } - } // getPatchFieldParameters - - - // Returns true if this has been modified - public boolean modified () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("modified", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return modified ( ); - } finally { - _releaseReply ($in); - } - } // modified - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IGeometricField:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IGeometricFieldStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometryDescriptorStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometryDescriptorStub.java deleted file mode 100644 index 6742ec6e3f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IGeometryDescriptorStub.java +++ /dev/null @@ -1,168 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IGeometryDescriptorStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IGeometryDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometryDescriptor -{ - - - //- Name of geometry type (eg, "volume"). - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Name of geometry type (eg, "volume"). - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Display name (eg, "Volume"). - public String displayName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return displayName ( ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Display name (eg, "Volume"). - public void displayName (String newDisplayName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true); - $out.write_string (newDisplayName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - displayName (newDisplayName ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Description (eg, "Finite Volume Geometry"). - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Description (eg, "Finite Volume Geometry"). - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IGeometryDescriptorStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchDescriptorStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchDescriptorStub.java deleted file mode 100644 index 8ae66cc37a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchDescriptorStub.java +++ /dev/null @@ -1,168 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IPatchDescriptorStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IPatchDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IPatchDescriptor -{ - - - //- Name of patch type (eg, "wall"). - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Name of patch type (eg, "wall"). - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Display name (eg, "Wall"). - public String displayName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return displayName ( ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Display name (eg, "Wall"). - public void displayName (String newDisplayName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true); - $out.write_string (newDisplayName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - displayName (newDisplayName ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Description (eg, "Solid Wall"). - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Description (eg, "Solid Wall"). - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IPatchDescriptorStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchPhysicalTypeDescriptorStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchPhysicalTypeDescriptorStub.java deleted file mode 100644 index c3a9655510..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/CaseServer/_IPatchPhysicalTypeDescriptorStub.java +++ /dev/null @@ -1,274 +0,0 @@ -package FoamXServer.CaseServer; - - -/** -* FoamXServer/CaseServer/_IPatchPhysicalTypeDescriptorStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IPatchPhysicalTypeDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor -{ - - - //- Patch physical type name (eg, "inlet"). - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Patch physical type name (eg, "inlet"). - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - public String displayName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return displayName ( ); - } finally { - _releaseReply ($in); - } - } // displayName - - public void displayName (String newDisplayName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true); - $out.write_string (newDisplayName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - displayName (newDisplayName ); - } finally { - _releaseReply ($in); - } - } // displayName - - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - public String patchType () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchType", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchType ( ); - } finally { - _releaseReply ($in); - } - } // patchType - - public void patchType (String newPatchType) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_patchType", true); - $out.write_string (newPatchType); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - patchType (newPatchType ); - } finally { - _releaseReply ($in); - } - } // patchType - - public String parentType () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_parentType", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return parentType ( ); - } finally { - _releaseReply ($in); - } - } // parentType - - public void parentType (String newParentType) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_parentType", true); - $out.write_string (newParentType); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - parentType (newParentType ); - } finally { - _releaseReply ($in); - } - } // parentType - - public FoamXServer.StringPair[] patchFieldTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchFieldTypes", true); - $in = _invoke ($out); - FoamXServer.StringPair $result[] = FoamXServer.StringPairListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return patchFieldTypes ( ); - } finally { - _releaseReply ($in); - } - } // patchFieldTypes - - public void patchFieldTypes (FoamXServer.StringPair[] newPatchFieldTypes) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_patchFieldTypes", true); - FoamXServer.StringPairListHelper.write ($out, newPatchFieldTypes); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - patchFieldTypes (newPatchFieldTypes ); - } finally { - _releaseReply ($in); - } - } // patchFieldTypes - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IPatchPhysicalTypeDescriptorStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHelper.java deleted file mode 100644 index d1abc562ff..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DictionaryEntryListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class DictionaryEntryListHelper -{ - private static String _id = "IDL:FoamXServer/DictionaryEntryList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.IDictionaryEntry[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.IDictionaryEntry[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.IDictionaryEntryHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DictionaryEntryListHelper.id (), "DictionaryEntryList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.IDictionaryEntry[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.IDictionaryEntry value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.IDictionaryEntry[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.IDictionaryEntryHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.IDictionaryEntry[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.IDictionaryEntryHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHolder.java deleted file mode 100644 index 31604d8d0a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DictionaryEntryListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DictionaryEntryListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class DictionaryEntryListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.IDictionaryEntry value[] = null; - - public DictionaryEntryListHolder () - { - } - - public DictionaryEntryListHolder (FoamXServer.IDictionaryEntry[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.DictionaryEntryListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.DictionaryEntryListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.DictionaryEntryListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSet.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSet.java deleted file mode 100644 index 5bfdf79a1b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSet.java +++ /dev/null @@ -1,48 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DimensionSet.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class DimensionSet implements org.omg.CORBA.portable.IDLEntity -{ - public double mass = (double)0; - - // Kilogramme Kg. - public double length = (double)0; - - // meter m. - public double time = (double)0; - - // second s. - public double temperature = (double)0; - - // Kelvin K. - public double moles = (double)0; - - // mole mol. - public double current = (double)0; - - // Ampere Amp. - public double luminousIntensity = (double)0; - - public DimensionSet () - { - } // ctor - - public DimensionSet (double _mass, double _length, double _time, double _temperature, double _moles, double _current, double _luminousIntensity) - { - mass = _mass; - length = _length; - time = _time; - temperature = _temperature; - moles = _moles; - current = _current; - luminousIntensity = _luminousIntensity; - } // ctor - -} // class DimensionSet diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHelper.java deleted file mode 100644 index 45dbbffeb2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHelper.java +++ /dev/null @@ -1,117 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DimensionSetHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class DimensionSetHelper -{ - private static String _id = "IDL:FoamXServer/DimensionSet:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.DimensionSet that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.DimensionSet extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [7]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[0] = new org.omg.CORBA.StructMember ( - "mass", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[1] = new org.omg.CORBA.StructMember ( - "length", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[2] = new org.omg.CORBA.StructMember ( - "time", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[3] = new org.omg.CORBA.StructMember ( - "temperature", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[4] = new org.omg.CORBA.StructMember ( - "moles", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[5] = new org.omg.CORBA.StructMember ( - "current", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[6] = new org.omg.CORBA.StructMember ( - "luminousIntensity", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.DimensionSetHelper.id (), "DimensionSet", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.DimensionSet read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.DimensionSet value = new FoamXServer.DimensionSet (); - value.mass = istream.read_double (); - value.length = istream.read_double (); - value.time = istream.read_double (); - value.temperature = istream.read_double (); - value.moles = istream.read_double (); - value.current = istream.read_double (); - value.luminousIntensity = istream.read_double (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.DimensionSet value) - { - ostream.write_double (value.mass); - ostream.write_double (value.length); - ostream.write_double (value.time); - ostream.write_double (value.temperature); - ostream.write_double (value.moles); - ostream.write_double (value.current); - ostream.write_double (value.luminousIntensity); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHolder.java deleted file mode 100644 index 0b5699fc8b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/DimensionSetHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class DimensionSetHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.DimensionSet value = null; - - public DimensionSetHolder () - { - } - - public DimensionSetHolder (FoamXServer.DimensionSet initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.DimensionSetHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.DimensionSetHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.DimensionSetHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHelper.java deleted file mode 100644 index 704aea796c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DimensionSetListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class DimensionSetListHelper -{ - private static String _id = "IDL:FoamXServer/DimensionSetList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.DimensionSet[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.DimensionSet[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.DimensionSetHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DimensionSetListHelper.id (), "DimensionSetList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.DimensionSet[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.DimensionSet value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.DimensionSet[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.DimensionSetHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.DimensionSet[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.DimensionSetHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHolder.java deleted file mode 100644 index 79436f7473..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DimensionSetListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DimensionSetListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class DimensionSetListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.DimensionSet value[] = null; - - public DimensionSetListHolder () - { - } - - public DimensionSetListHolder (FoamXServer.DimensionSet[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.DimensionSetListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.DimensionSetListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.DimensionSetListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHelper.java deleted file mode 100644 index 253965359d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHelper.java +++ /dev/null @@ -1,60 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DoubleListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class DoubleListHelper -{ - private static String _id = "IDL:FoamXServer/DoubleList:1.0"; - - public static void insert (org.omg.CORBA.Any a, double[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static double[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DoubleListHelper.id (), "DoubleList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static double[] read (org.omg.CORBA.portable.InputStream istream) - { - double value[] = null; - int _len0 = istream.read_long (); - value = new double[_len0]; - istream.read_double_array (value, 0, _len0); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, double[] value) - { - ostream.write_long (value.length); - ostream.write_double_array (value, 0, value.length); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHolder.java deleted file mode 100644 index 4a16e75e05..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/DoubleListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/DoubleListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class DoubleListHolder implements org.omg.CORBA.portable.Streamable -{ - public double value[] = null; - - public DoubleListHolder () - { - } - - public DoubleListHolder (double[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.DoubleListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.DoubleListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.DoubleListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCode.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCode.java deleted file mode 100644 index a484ba8e62..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCode.java +++ /dev/null @@ -1,54 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ErrorCode.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public class ErrorCode implements org.omg.CORBA.portable.IDLEntity -{ - private int __value; - private static int __size = 9; - private static FoamXServer.ErrorCode[] __array = new FoamXServer.ErrorCode [__size]; - - public static final int _S_OK = 0; - public static final FoamXServer.ErrorCode S_OK = new FoamXServer.ErrorCode(_S_OK); - public static final int _E_FAIL = 1; - public static final FoamXServer.ErrorCode E_FAIL = new FoamXServer.ErrorCode(_E_FAIL); - public static final int _E_FOAM = 2; - public static final FoamXServer.ErrorCode E_FOAM = new FoamXServer.ErrorCode(_E_FOAM); - public static final int _E_INVALID_ARG = 3; - public static final FoamXServer.ErrorCode E_INVALID_ARG = new FoamXServer.ErrorCode(_E_INVALID_ARG); - public static final int _E_INVALID_PTR = 4; - public static final FoamXServer.ErrorCode E_INVALID_PTR = new FoamXServer.ErrorCode(_E_INVALID_PTR); - public static final int _E_INVALID_REF = 5; - public static final FoamXServer.ErrorCode E_INVALID_REF = new FoamXServer.ErrorCode(_E_INVALID_REF); - public static final int _E_INDEX_OUT_OF_BOUNDS = 6; - public static final FoamXServer.ErrorCode E_INDEX_OUT_OF_BOUNDS = new FoamXServer.ErrorCode(_E_INDEX_OUT_OF_BOUNDS); - public static final int _E_UNKNOWN_NAME = 7; - public static final FoamXServer.ErrorCode E_UNKNOWN_NAME = new FoamXServer.ErrorCode(_E_UNKNOWN_NAME); - public static final int _E_UNEXPECTED = 8; - public static final FoamXServer.ErrorCode E_UNEXPECTED = new FoamXServer.ErrorCode(_E_UNEXPECTED); - - public int value () - { - return __value; - } - - public static FoamXServer.ErrorCode from_int (int value) - { - if (value >= 0 && value < __size) - return __array[value]; - else - throw new org.omg.CORBA.BAD_PARAM (); - } - - protected ErrorCode (int value) - { - __value = value; - __array[__value] = this; - } -} // class ErrorCode diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHelper.java deleted file mode 100644 index e06db10bd8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHelper.java +++ /dev/null @@ -1,53 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ErrorCodeHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class ErrorCodeHelper -{ - private static String _id = "IDL:FoamXServer/ErrorCode:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ErrorCode that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ErrorCode extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.ErrorCodeHelper.id (), "ErrorCode", new String[] { "S_OK", "E_FAIL", "E_FOAM", "E_INVALID_ARG", "E_INVALID_PTR", "E_INVALID_REF", "E_INDEX_OUT_OF_BOUNDS", "E_UNKNOWN_NAME", "E_UNEXPECTED"} ); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ErrorCode read (org.omg.CORBA.portable.InputStream istream) - { - return FoamXServer.ErrorCode.from_int (istream.read_long ()); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ErrorCode value) - { - ostream.write_long (value.value ()); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHolder.java deleted file mode 100644 index ffedc217db..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ErrorCodeHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/ErrorCodeHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class ErrorCodeHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ErrorCode value = null; - - public ErrorCodeHolder () - { - } - - public ErrorCodeHolder (FoamXServer.ErrorCode initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.ErrorCodeHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.ErrorCodeHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.ErrorCodeHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHelper.java deleted file mode 100644 index d955e0057d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHelper.java +++ /dev/null @@ -1,60 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FloatListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class FloatListHelper -{ - private static String _id = "IDL:FoamXServer/FloatList:1.0"; - - public static void insert (org.omg.CORBA.Any a, float[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static float[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.FloatListHelper.id (), "FloatList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static float[] read (org.omg.CORBA.portable.InputStream istream) - { - float value[] = null; - int _len0 = istream.read_long (); - value = new float[_len0]; - istream.read_float_array (value, 0, _len0); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, float[] value) - { - ostream.write_long (value.length); - ostream.write_float_array (value, 0, value.length); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHolder.java deleted file mode 100644 index 6bb30e1dc9..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FloatListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FloatListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FloatListHolder implements org.omg.CORBA.portable.Streamable -{ - public float value[] = null; - - public FloatListHolder () - { - } - - public FloatListHolder (float[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FloatListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FloatListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FloatListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAny.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAny.java deleted file mode 100644 index 3bb472cb8b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAny.java +++ /dev/null @@ -1,28 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXAny.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class FoamXAny implements org.omg.CORBA.portable.IDLEntity -{ - public FoamXServer.FoamXType type = null; - public org.omg.CORBA.Any value = null; - - public FoamXAny () - { - } // ctor - - public FoamXAny (FoamXServer.FoamXType _type, org.omg.CORBA.Any _value) - { - type = _type; - value = _value; - } // ctor - -} // class FoamXAny diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHelper.java deleted file mode 100644 index e6a2e9cfbc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHelper.java +++ /dev/null @@ -1,84 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXAnyHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -abstract public class FoamXAnyHelper -{ - private static String _id = "IDL:FoamXServer/FoamXAny:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXAny that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXAny extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = FoamXServer.FoamXTypeHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "type", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_any); - _members0[1] = new org.omg.CORBA.StructMember ( - "value", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.FoamXAnyHelper.id (), "FoamXAny", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXAny read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.FoamXAny value = new FoamXServer.FoamXAny (); - value.type = FoamXServer.FoamXTypeHelper.read (istream); - value.value = istream.read_any (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXAny value) - { - FoamXServer.FoamXTypeHelper.write (ostream, value.type); - ostream.write_any (value.value); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHolder.java deleted file mode 100644 index 4d402bdfb8..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/FoamXAnyHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class FoamXAnyHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXAny value = null; - - public FoamXAnyHolder () - { - } - - public FoamXAnyHolder (FoamXServer.FoamXAny initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXAnyHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXAnyHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXAnyHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHelper.java deleted file mode 100644 index fbac93e2e9..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXAnyListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class FoamXAnyListHelper -{ - private static String _id = "IDL:FoamXServer/FoamXAnyList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXAny[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXAny[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.FoamXAnyHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.FoamXAnyListHelper.id (), "FoamXAnyList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXAny[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.FoamXAny value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.FoamXAny[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.FoamXAnyHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXAny[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.FoamXAnyHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHolder.java deleted file mode 100644 index 5d63bb67e7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXAnyListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXAnyListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXAnyListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXAny value[] = null; - - public FoamXAnyListHolder () - { - } - - public FoamXAnyListHolder (FoamXServer.FoamXAny[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXAnyListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXAnyListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXAnyListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXError.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXError.java deleted file mode 100644 index b32a167aa7..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXError.java +++ /dev/null @@ -1,45 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXError.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXError extends org.omg.CORBA.UserException -{ - public FoamXServer.ErrorCode errorCode = null; - public String errorMessage = null; - public String methodName = null; - public String fileName = null; - public int lineNo = (int)0; - - public FoamXError () - { - super(FoamXErrorHelper.id()); - } // ctor - - public FoamXError (FoamXServer.ErrorCode _errorCode, String _errorMessage, String _methodName, String _fileName, int _lineNo) - { - super(FoamXErrorHelper.id()); - errorCode = _errorCode; - errorMessage = _errorMessage; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - - - public FoamXError (String $reason, FoamXServer.ErrorCode _errorCode, String _errorMessage, String _methodName, String _fileName, int _lineNo) - { - super(FoamXErrorHelper.id() + " " + $reason); - errorCode = _errorCode; - errorMessage = _errorMessage; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - -} // class FoamXError diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHelper.java deleted file mode 100644 index baa52b59be..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHelper.java +++ /dev/null @@ -1,107 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXErrorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class FoamXErrorHelper -{ - private static String _id = "IDL:FoamXServer/FoamXError:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXError that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXError extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [5]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = FoamXServer.ErrorCodeHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "errorCode", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "errorMessage", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.StructMember ( - "methodName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[3] = new org.omg.CORBA.StructMember ( - "fileName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[4] = new org.omg.CORBA.StructMember ( - "lineNo", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXErrorHelper.id (), "FoamXError", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXError read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.FoamXError value = new FoamXServer.FoamXError (); - // read and discard the repository ID - istream.read_string (); - value.errorCode = FoamXServer.ErrorCodeHelper.read (istream); - value.errorMessage = istream.read_string (); - value.methodName = istream.read_string (); - value.fileName = istream.read_string (); - value.lineNo = istream.read_long (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXError value) - { - // write the repository ID - ostream.write_string (id ()); - FoamXServer.ErrorCodeHelper.write (ostream, value.errorCode); - ostream.write_string (value.errorMessage); - ostream.write_string (value.methodName); - ostream.write_string (value.fileName); - ostream.write_long (value.lineNo); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHolder.java deleted file mode 100644 index beb032e783..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXErrorHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/FoamXErrorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXErrorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXError value = null; - - public FoamXErrorHolder () - { - } - - public FoamXErrorHolder (FoamXServer.FoamXError initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXErrorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXErrorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXErrorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOError.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOError.java deleted file mode 100644 index 03ba412881..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOError.java +++ /dev/null @@ -1,51 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXIOError.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXIOError extends org.omg.CORBA.UserException -{ - public String errorMessage = null; - public String ioFileName = null; - public int ioStartLineNo = (int)0; - public int ioEndLineNo = (int)0; - public String methodName = null; - public String fileName = null; - public int lineNo = (int)0; - - public FoamXIOError () - { - super(FoamXIOErrorHelper.id()); - } // ctor - - public FoamXIOError (String _errorMessage, String _ioFileName, int _ioStartLineNo, int _ioEndLineNo, String _methodName, String _fileName, int _lineNo) - { - super(FoamXIOErrorHelper.id()); - errorMessage = _errorMessage; - ioFileName = _ioFileName; - ioStartLineNo = _ioStartLineNo; - ioEndLineNo = _ioEndLineNo; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - - - public FoamXIOError (String $reason, String _errorMessage, String _ioFileName, int _ioStartLineNo, int _ioEndLineNo, String _methodName, String _fileName, int _lineNo) - { - super(FoamXIOErrorHelper.id() + " " + $reason); - errorMessage = _errorMessage; - ioFileName = _ioFileName; - ioStartLineNo = _ioStartLineNo; - ioEndLineNo = _ioEndLineNo; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - -} // class FoamXIOError diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHelper.java deleted file mode 100644 index 6051981c4b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHelper.java +++ /dev/null @@ -1,121 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXIOErrorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class FoamXIOErrorHelper -{ - private static String _id = "IDL:FoamXServer/FoamXIOError:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXIOError that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXIOError extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [7]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "errorMessage", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "ioFileName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[2] = new org.omg.CORBA.StructMember ( - "ioStartLineNo", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[3] = new org.omg.CORBA.StructMember ( - "ioEndLineNo", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[4] = new org.omg.CORBA.StructMember ( - "methodName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[5] = new org.omg.CORBA.StructMember ( - "fileName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[6] = new org.omg.CORBA.StructMember ( - "lineNo", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXIOErrorHelper.id (), "FoamXIOError", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXIOError read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.FoamXIOError value = new FoamXServer.FoamXIOError (); - // read and discard the repository ID - istream.read_string (); - value.errorMessage = istream.read_string (); - value.ioFileName = istream.read_string (); - value.ioStartLineNo = istream.read_long (); - value.ioEndLineNo = istream.read_long (); - value.methodName = istream.read_string (); - value.fileName = istream.read_string (); - value.lineNo = istream.read_long (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXIOError value) - { - // write the repository ID - ostream.write_string (id ()); - ostream.write_string (value.errorMessage); - ostream.write_string (value.ioFileName); - ostream.write_long (value.ioStartLineNo); - ostream.write_long (value.ioEndLineNo); - ostream.write_string (value.methodName); - ostream.write_string (value.fileName); - ostream.write_long (value.lineNo); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHolder.java deleted file mode 100644 index 023b98c88c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXIOErrorHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/FoamXIOErrorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXIOErrorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXIOError value = null; - - public FoamXIOErrorHolder () - { - } - - public FoamXIOErrorHolder (FoamXServer.FoamXIOError initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXIOErrorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXIOErrorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXIOErrorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSError.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSError.java deleted file mode 100644 index fe129acf0f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSError.java +++ /dev/null @@ -1,48 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXSYSError.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXSYSError extends org.omg.CORBA.UserException -{ - public FoamXServer.ErrorCode errorCode = null; - public String errorMessage = null; - public String hostName = null; - public String methodName = null; - public String fileName = null; - public int lineNo = (int)0; - - public FoamXSYSError () - { - super(FoamXSYSErrorHelper.id()); - } // ctor - - public FoamXSYSError (FoamXServer.ErrorCode _errorCode, String _errorMessage, String _hostName, String _methodName, String _fileName, int _lineNo) - { - super(FoamXSYSErrorHelper.id()); - errorCode = _errorCode; - errorMessage = _errorMessage; - hostName = _hostName; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - - - public FoamXSYSError (String $reason, FoamXServer.ErrorCode _errorCode, String _errorMessage, String _hostName, String _methodName, String _fileName, int _lineNo) - { - super(FoamXSYSErrorHelper.id() + " " + $reason); - errorCode = _errorCode; - errorMessage = _errorMessage; - hostName = _hostName; - methodName = _methodName; - fileName = _fileName; - lineNo = _lineNo; - } // ctor - -} // class FoamXSYSError diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHelper.java deleted file mode 100644 index bcc4a88757..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHelper.java +++ /dev/null @@ -1,114 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXSYSErrorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class FoamXSYSErrorHelper -{ - private static String _id = "IDL:FoamXServer/FoamXSYSError:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXSYSError that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXSYSError extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [6]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = FoamXServer.ErrorCodeHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "errorCode", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "errorMessage", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.StructMember ( - "hostName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[3] = new org.omg.CORBA.StructMember ( - "methodName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[4] = new org.omg.CORBA.StructMember ( - "fileName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[5] = new org.omg.CORBA.StructMember ( - "lineNo", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXSYSErrorHelper.id (), "FoamXSYSError", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXSYSError read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.FoamXSYSError value = new FoamXServer.FoamXSYSError (); - // read and discard the repository ID - istream.read_string (); - value.errorCode = FoamXServer.ErrorCodeHelper.read (istream); - value.errorMessage = istream.read_string (); - value.hostName = istream.read_string (); - value.methodName = istream.read_string (); - value.fileName = istream.read_string (); - value.lineNo = istream.read_long (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXSYSError value) - { - // write the repository ID - ostream.write_string (id ()); - FoamXServer.ErrorCodeHelper.write (ostream, value.errorCode); - ostream.write_string (value.errorMessage); - ostream.write_string (value.hostName); - ostream.write_string (value.methodName); - ostream.write_string (value.fileName); - ostream.write_long (value.lineNo); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHolder.java deleted file mode 100644 index 2268fd5cbe..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXSYSErrorHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/FoamXSYSErrorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class FoamXSYSErrorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXSYSError value = null; - - public FoamXSYSErrorHolder () - { - } - - public FoamXSYSErrorHolder (FoamXServer.FoamXSYSError initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXSYSErrorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXSYSErrorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXSYSErrorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXType.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXType.java deleted file mode 100644 index 18a822bd0f..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXType.java +++ /dev/null @@ -1,80 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXType.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public class FoamXType implements org.omg.CORBA.portable.IDLEntity -{ - private int __value; - private static int __size = 21; - private static FoamXServer.FoamXType[] __array = new FoamXServer.FoamXType [__size]; - - public static final int _Type_Undefined = 0; - public static final FoamXServer.FoamXType Type_Undefined = new FoamXServer.FoamXType(_Type_Undefined); - public static final int _Type_Boolean = 1; - public static final FoamXServer.FoamXType Type_Boolean = new FoamXServer.FoamXType(_Type_Boolean); - public static final int _Type_Label = 2; - public static final FoamXServer.FoamXType Type_Label = new FoamXServer.FoamXType(_Type_Label); - public static final int _Type_Scalar = 3; - public static final FoamXServer.FoamXType Type_Scalar = new FoamXServer.FoamXType(_Type_Scalar); - public static final int _Type_Char = 4; - public static final FoamXServer.FoamXType Type_Char = new FoamXServer.FoamXType(_Type_Char); - public static final int _Type_Word = 5; - public static final FoamXServer.FoamXType Type_Word = new FoamXServer.FoamXType(_Type_Word); - public static final int _Type_String = 6; - public static final FoamXServer.FoamXType Type_String = new FoamXServer.FoamXType(_Type_String); - public static final int _Type_RootDir = 7; - public static final FoamXServer.FoamXType Type_RootDir = new FoamXServer.FoamXType(_Type_RootDir); - public static final int _Type_RootAndCase = 8; - public static final FoamXServer.FoamXType Type_RootAndCase = new FoamXServer.FoamXType(_Type_RootAndCase); - public static final int _Type_CaseName = 9; - public static final FoamXServer.FoamXType Type_CaseName = new FoamXServer.FoamXType(_Type_CaseName); - public static final int _Type_HostName = 10; - public static final FoamXServer.FoamXType Type_HostName = new FoamXServer.FoamXType(_Type_HostName); - public static final int _Type_File = 11; - public static final FoamXServer.FoamXType Type_File = new FoamXServer.FoamXType(_Type_File); - public static final int _Type_Directory = 12; - public static final FoamXServer.FoamXType Type_Directory = new FoamXServer.FoamXType(_Type_Directory); - public static final int _Type_Time = 13; - public static final FoamXServer.FoamXType Type_Time = new FoamXServer.FoamXType(_Type_Time); - public static final int _Type_DimensionSet = 14; - public static final FoamXServer.FoamXType Type_DimensionSet = new FoamXServer.FoamXType(_Type_DimensionSet); - public static final int _Type_FixedList = 15; - public static final FoamXServer.FoamXType Type_FixedList = new FoamXServer.FoamXType(_Type_FixedList); - public static final int _Type_List = 16; - public static final FoamXServer.FoamXType Type_List = new FoamXServer.FoamXType(_Type_List); - public static final int _Type_Dictionary = 17; - public static final FoamXServer.FoamXType Type_Dictionary = new FoamXServer.FoamXType(_Type_Dictionary); - public static final int _Type_Selection = 18; - public static final FoamXServer.FoamXType Type_Selection = new FoamXServer.FoamXType(_Type_Selection); - public static final int _Type_Compound = 19; - public static final FoamXServer.FoamXType Type_Compound = new FoamXServer.FoamXType(_Type_Compound); - public static final int _Type_Field = 20; - public static final FoamXServer.FoamXType Type_Field = new FoamXServer.FoamXType(_Type_Field); - - public int value () - { - return __value; - } - - public static FoamXServer.FoamXType from_int (int value) - { - if (value >= 0 && value < __size) - return __array[value]; - else - throw new org.omg.CORBA.BAD_PARAM (); - } - - protected FoamXType (int value) - { - __value = value; - __array[__value] = this; - } -} // class FoamXType diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHelper.java deleted file mode 100644 index 71ae1b96fc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHelper.java +++ /dev/null @@ -1,55 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/FoamXTypeHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -abstract public class FoamXTypeHelper -{ - private static String _id = "IDL:FoamXServer/FoamXType:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXType that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.FoamXType extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.FoamXTypeHelper.id (), "FoamXType", new String[] { "Type_Undefined", "Type_Boolean", "Type_Label", "Type_Scalar", "Type_Char", "Type_Word", "Type_String", "Type_RootDir", "Type_RootAndCase", "Type_CaseName", "Type_HostName", "Type_File", "Type_Directory", "Type_Time", "Type_DimensionSet", "Type_FixedList", "Type_List", "Type_Dictionary", "Type_Selection", "Type_Compound", "Type_Field"} ); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.FoamXType read (org.omg.CORBA.portable.InputStream istream) - { - return FoamXServer.FoamXType.from_int (istream.read_long ()); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXType value) - { - ostream.write_long (value.value ()); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHolder.java deleted file mode 100644 index 038d6263c3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/FoamXTypeHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/FoamXTypeHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class FoamXTypeHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.FoamXType value = null; - - public FoamXTypeHolder () - { - } - - public FoamXTypeHolder (FoamXServer.FoamXType initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.FoamXTypeHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.FoamXTypeHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.FoamXTypeHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowser.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowser.java deleted file mode 100644 index 58eecf5672..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowser.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer.HostBrowser; - - -/** -* FoamXServer/HostBrowser/IHostBrowser.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IHostBrowser extends IHostBrowserOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IHostBrowser diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHelper.java deleted file mode 100644 index 86add5a17a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer.HostBrowser; - - -/** -* FoamXServer/HostBrowser/IHostBrowserHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -abstract public class IHostBrowserHelper -{ - private static String _id = "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.HostBrowser.IHostBrowser that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.HostBrowser.IHostBrowser extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.HostBrowser.IHostBrowserHelper.id (), "IHostBrowser"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.HostBrowser.IHostBrowser read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IHostBrowserStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostBrowser.IHostBrowser value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.HostBrowser.IHostBrowser narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.HostBrowser.IHostBrowser) - return (FoamXServer.HostBrowser.IHostBrowser)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer.HostBrowser._IHostBrowserStub stub = new FoamXServer.HostBrowser._IHostBrowserStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHolder.java deleted file mode 100644 index 783cb9ff7a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer.HostBrowser; - -/** -* FoamXServer/HostBrowser/IHostBrowserHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public final class IHostBrowserHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.HostBrowser.IHostBrowser value = null; - - public IHostBrowserHolder () - { - } - - public IHostBrowserHolder (FoamXServer.HostBrowser.IHostBrowser initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.HostBrowser.IHostBrowserHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.HostBrowser.IHostBrowserHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.HostBrowser.IHostBrowserHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserOperations.java deleted file mode 100644 index b4e11c0f80..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/IHostBrowserOperations.java +++ /dev/null @@ -1,31 +0,0 @@ -package FoamXServer.HostBrowser; - - -/** -* FoamXServer/HostBrowser/IHostBrowserOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public interface IHostBrowserOperations -{ - FoamXServer.HostDescriptor[] hosts (); - void refreshHostList () throws FoamXServer.FoamXError; - boolean isHostAlive (String hostName) throws FoamXServer.FoamXError; - void hostIsAlive (String hostName) throws FoamXServer.FoamXError; - void hostIsDead (String hostName) throws FoamXServer.FoamXError; - void openCaseBrowser (String hostName) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - boolean getCaseBrowserReference (String hostName, FoamXServer.CaseBrowser.ICaseBrowserHolder browserObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError; - - // Validation. - void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - // Persistence. - void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; - - // Lifetime management. - void close (); -} // interface IHostBrowserOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/_IHostBrowserStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/_IHostBrowserStub.java deleted file mode 100644 index 98ea08303e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostBrowser/_IHostBrowserStub.java +++ /dev/null @@ -1,273 +0,0 @@ -package FoamXServer.HostBrowser; - - -/** -* FoamXServer/HostBrowser/_IHostBrowserStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// --------------------------------------------------------------------- -public class _IHostBrowserStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.HostBrowser.IHostBrowser -{ - - public FoamXServer.HostDescriptor[] hosts () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_hosts", true); - $in = _invoke ($out); - FoamXServer.HostDescriptor $result[] = FoamXServer.HostDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return hosts ( ); - } finally { - _releaseReply ($in); - } - } // hosts - - public void refreshHostList () throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("refreshHostList", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - refreshHostList ( ); - } finally { - _releaseReply ($in); - } - } // refreshHostList - - public boolean isHostAlive (String hostName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("isHostAlive", true); - $out.write_string (hostName); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return isHostAlive (hostName ); - } finally { - _releaseReply ($in); - } - } // isHostAlive - - public void hostIsAlive (String hostName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("hostIsAlive", true); - $out.write_string (hostName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - hostIsAlive (hostName ); - } finally { - _releaseReply ($in); - } - } // hostIsAlive - - public void hostIsDead (String hostName) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("hostIsDead", true); - $out.write_string (hostName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - hostIsDead (hostName ); - } finally { - _releaseReply ($in); - } - } // hostIsDead - - public void openCaseBrowser (String hostName) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("openCaseBrowser", true); - $out.write_string (hostName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - openCaseBrowser (hostName ); - } finally { - _releaseReply ($in); - } - } // openCaseBrowser - - public boolean getCaseBrowserReference (String hostName, FoamXServer.CaseBrowser.ICaseBrowserHolder browserObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getCaseBrowserReference", true); - $out.write_string (hostName); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - browserObj.value = FoamXServer.CaseBrowser.ICaseBrowserHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0")) - throw FoamXServer.FoamXSYSErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return getCaseBrowserReference (hostName, browserObj ); - } finally { - _releaseReply ($in); - } - } // getCaseBrowserReference - - - // Validation. - public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - // Persistence. - public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("save", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - save ( ); - } finally { - _releaseReply ($in); - } - } // save - - - // Lifetime management. - public void close () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("close", false); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - close ( ); - } finally { - _releaseReply ($in); - } - } // close - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IHostBrowserStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptor.java deleted file mode 100644 index 91d1cfdf63..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptor.java +++ /dev/null @@ -1,28 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/HostDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Host descriptor structure. -public final class HostDescriptor implements org.omg.CORBA.portable.IDLEntity -{ - public String name = null; - public boolean alive = false; - - public HostDescriptor () - { - } // ctor - - public HostDescriptor (String _name, boolean _alive) - { - name = _name; - alive = _alive; - } // ctor - -} // class HostDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHelper.java deleted file mode 100644 index 8b7fc3d3b2..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHelper.java +++ /dev/null @@ -1,84 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/HostDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Host descriptor structure. -abstract public class HostDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/HostDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.HostDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.HostDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "name", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[1] = new org.omg.CORBA.StructMember ( - "alive", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.HostDescriptorHelper.id (), "HostDescriptor", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.HostDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.HostDescriptor value = new FoamXServer.HostDescriptor (); - value.name = istream.read_string (); - value.alive = istream.read_boolean (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostDescriptor value) - { - ostream.write_string (value.name); - ostream.write_boolean (value.alive); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHolder.java deleted file mode 100644 index 0ff7071d71..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/HostDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Host descriptor structure. -public final class HostDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.HostDescriptor value = null; - - public HostDescriptorHolder () - { - } - - public HostDescriptorHolder (FoamXServer.HostDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.HostDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.HostDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.HostDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHelper.java deleted file mode 100644 index bb2b245c46..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/HostDescriptorListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class HostDescriptorListHelper -{ - private static String _id = "IDL:FoamXServer/HostDescriptorList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.HostDescriptor[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.HostDescriptor[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.HostDescriptorHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.HostDescriptorListHelper.id (), "HostDescriptorList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.HostDescriptor[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.HostDescriptor value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.HostDescriptor[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.HostDescriptorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostDescriptor[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.HostDescriptorHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHolder.java deleted file mode 100644 index db63eeac11..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/HostDescriptorListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/HostDescriptorListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class HostDescriptorListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.HostDescriptor value[] = null; - - public HostDescriptorListHolder () - { - } - - public HostDescriptorListHolder (FoamXServer.HostDescriptor[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.HostDescriptorListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.HostDescriptorListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.HostDescriptorListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntry.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntry.java deleted file mode 100644 index ef30a8b343..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntry.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/IDictionaryEntry.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public interface IDictionaryEntry extends IDictionaryEntryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface IDictionaryEntry diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHelper.java deleted file mode 100644 index 6cde37e86a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/IDictionaryEntryHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -abstract public class IDictionaryEntryHelper -{ - private static String _id = "IDL:FoamXServer/IDictionaryEntry:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.IDictionaryEntry that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.IDictionaryEntry extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.IDictionaryEntryHelper.id (), "IDictionaryEntry"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.IDictionaryEntry read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_IDictionaryEntryStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.IDictionaryEntry value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.IDictionaryEntry narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.IDictionaryEntry) - return (FoamXServer.IDictionaryEntry)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer._IDictionaryEntryStub stub = new FoamXServer._IDictionaryEntryStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHolder.java deleted file mode 100644 index 63f0969c4e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/IDictionaryEntryHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class IDictionaryEntryHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.IDictionaryEntry value = null; - - public IDictionaryEntryHolder () - { - } - - public IDictionaryEntryHolder (FoamXServer.IDictionaryEntry initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.IDictionaryEntryHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.IDictionaryEntryHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.IDictionaryEntryHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryOperations.java deleted file mode 100644 index 6287e7bf75..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/IDictionaryEntryOperations.java +++ /dev/null @@ -1,51 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/IDictionaryEntryOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public interface IDictionaryEntryOperations -{ - - // Reference to the type descriptor object for this entry. - FoamXServer.ITypeDescriptor typeDescriptor (); - - // Current value for this (non compound) entry. - FoamXServer.FoamXAny value (); - - // Current value for this (non compound) entry. - void value (FoamXServer.FoamXAny newValue); - void setValue (FoamXServer.FoamXAny value) throws FoamXServer.FoamXError; - - // Sub-elements for compound types. - FoamXServer.IDictionaryEntry[] subElements (); - int nSubElements () throws FoamXServer.FoamXError; - boolean packedList () throws FoamXServer.FoamXError; - - // The current selection index - int selection (); - - // The current selection index - void selection (int newSelection); - - // entry object. - void addElement (FoamXServer.IDictionaryEntryHolder subEntry) throws FoamXServer.FoamXError; - - // Remove element from list. - void removeElement (FoamXServer.IDictionaryEntry subEntry) throws FoamXServer.FoamXError; - - // are found. - void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError; - - // Returns true if this entry, or any sub-entries have been modified. - boolean modified () throws FoamXServer.FoamXError; - - // Save method for root (dictionary) objects. - void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; -} // interface IDictionaryEntryOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptor.java deleted file mode 100644 index 7fbefd6992..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptor.java +++ /dev/null @@ -1,15 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ITypeDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public interface ITypeDescriptor extends ITypeDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ITypeDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHelper.java deleted file mode 100644 index 2ced6468f5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHelper.java +++ /dev/null @@ -1,72 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ITypeDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -abstract public class ITypeDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/ITypeDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ITypeDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ITypeDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.ITypeDescriptorHelper.id (), "ITypeDescriptor"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ITypeDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ITypeDescriptorStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ITypeDescriptor value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static FoamXServer.ITypeDescriptor narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof FoamXServer.ITypeDescriptor) - return (FoamXServer.ITypeDescriptor)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - FoamXServer._ITypeDescriptorStub stub = new FoamXServer._ITypeDescriptorStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHolder.java deleted file mode 100644 index fb13815718..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/ITypeDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class ITypeDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ITypeDescriptor value = null; - - public ITypeDescriptorHolder () - { - } - - public ITypeDescriptorHolder (FoamXServer.ITypeDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.ITypeDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.ITypeDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.ITypeDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorOperations.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorOperations.java deleted file mode 100644 index 3d2c1afafb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ITypeDescriptorOperations.java +++ /dev/null @@ -1,150 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ITypeDescriptorOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public interface ITypeDescriptorOperations -{ - - //- The type of this parameter. - FoamXServer.FoamXType type (); - - //- The type of this parameter. - void type (FoamXServer.FoamXType newType); - - //- Primitive type flag. - boolean isPrimitiveType (); - - //- Compound type flag. - boolean isCompoundType (); - - //- Path of this parameter relative to root dictionary. - String path (); - - //- Path of this parameter relative to root dictionary. - void path (String newPath); - - //- Foam parameter name. - String name (); - - //- Foam parameter name. - void name (String newName); - - //- Short display name. - String displayName (); - - //- Short display name. - void displayName (String newDisplayName); - - //- Long descriptive name. - String description (); - - //- Long descriptive name. - void description (String newDescription); - - //- Dictionary comment. - String comment (); - - //- Dictionary comment. - void comment (String newComment); - - //- GUI category. - String category (); - - //- GUI category. - void category (String newCategory); - - //- URL to relevant help file. - String helpURL (); - - //- URL to relevant help file. - void helpURL (String newHelpURL); - - //- URL to a nice icon for this entry. - String iconURL (); - - //- URL to a nice icon for this entry. - void iconURL (String newIconURL); - - // Defaults to false. - boolean optional (); - - // Defaults to false. - void optional (boolean newOptional); - - // Defaults to true. - boolean visible (); - - // Defaults to true. - void visible (boolean newVisible); - - // Defaults to true. - boolean editable (); - - // Defaults to true. - void editable (boolean newEditable); - - //- Minimum value for this parameter. - FoamXServer.FoamXAny minValue (); - - //- Minimum value for this parameter. - void minValue (FoamXServer.FoamXAny newMinValue); - - //- Maximum value for this parameter. - FoamXServer.FoamXAny maxValue (); - - //- Maximum value for this parameter. - void maxValue (FoamXServer.FoamXAny newMaxValue); - - //- Name of dictionary to use as a lookup table. - String lookupDict (); - - //- Name of dictionary to use as a lookup table. - void lookupDict (String newLookupDict); - - //- List of permissible values for this parameter. - FoamXServer.FoamXAny[] valueList (); - - //- List of permissible values for this parameter. - void valueList (FoamXServer.FoamXAny[] newValueList); - - //- Top-level dictionary location relative to case root. - String dictionaryPath (); - - //- Top-level dictionary location relative to case root. - void dictionaryPath (String newDictionaryPath); - - //- Number of vector space elements. - int numElements (); - - //- Number of vector space elements. - void numElements (int newNumElements); - - //- Labels of vector space elements (eg, x, y, z). - String[] elementLabels (); - - //- Labels of vector space elements (eg, x, y, z). - void elementLabels (String[] newElementLabels); - - //- List of sub-types for compound types. - FoamXServer.ITypeDescriptor[] subTypes (); - - //- Element type in List of elements. - FoamXServer.ITypeDescriptor elementType (); - boolean hasDefaultValue (); - void getDefaultValue (FoamXServer.IDictionaryEntryHolder defaultValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - //- Compound sub-type methods. - void addSubType (FoamXServer.FoamXType type, FoamXServer.ITypeDescriptorHolder subEntry) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - void removeSubType (FoamXServer.ITypeDescriptor subEntry) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError; - - // are found. - void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError; -} // interface ITypeDescriptorOperations diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptor.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptor.java deleted file mode 100644 index e16c408582..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptor.java +++ /dev/null @@ -1,98 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobDescriptor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job descriptor structure. -public final class JobDescriptor implements org.omg.CORBA.portable.IDLEntity -{ - public FoamXServer.JobID jobID = null; - - // Job ID. - public int ppid = (int)0; - - // Parent pid. - public int pgid = (int)0; - - // Group pid. - public String startDate = null; - - // Start date. - public String startTime = null; - - // Start time. - public String userName = null; - - // Username. - public String foamVersion = null; - - // Software version. - public String code = null; - - // Code. - public String argList = null; - - // Argument list. - public String currentDir = null; - - // Current working directory. - public String rootDir = null; - - // Case root. - public String caseName = null; - - // Case name. - public int nProcs = (int)0; - - // Number of processes. - public FoamXServer.JobID slaves[] = null; - - // slave JobIDs - public int nCountedProcs = (int)0; - - // Number of licences taken up. - public double cpuTime = (double)0; - - // Used cpuTime. - public String endDate = null; - - // End date. - public String endTime = null; - - // End time. - public FoamXServer.JobStatus status = null; - - public JobDescriptor () - { - } // ctor - - public JobDescriptor (FoamXServer.JobID _jobID, int _ppid, int _pgid, String _startDate, String _startTime, String _userName, String _foamVersion, String _code, String _argList, String _currentDir, String _rootDir, String _caseName, int _nProcs, FoamXServer.JobID[] _slaves, int _nCountedProcs, double _cpuTime, String _endDate, String _endTime, FoamXServer.JobStatus _status) - { - jobID = _jobID; - ppid = _ppid; - pgid = _pgid; - startDate = _startDate; - startTime = _startTime; - userName = _userName; - foamVersion = _foamVersion; - code = _code; - argList = _argList; - currentDir = _currentDir; - rootDir = _rootDir; - caseName = _caseName; - nProcs = _nProcs; - slaves = _slaves; - nCountedProcs = _nCountedProcs; - cpuTime = _cpuTime; - endDate = _endDate; - endTime = _endTime; - status = _status; - } // ctor - -} // class JobDescriptor diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHelper.java deleted file mode 100644 index 22ea3b690a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHelper.java +++ /dev/null @@ -1,205 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobDescriptorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job descriptor structure. -abstract public class JobDescriptorHelper -{ - private static String _id = "IDL:FoamXServer/JobDescriptor:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.JobDescriptor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.JobDescriptor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [19]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = FoamXServer.JobIDHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "jobID", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[1] = new org.omg.CORBA.StructMember ( - "ppid", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[2] = new org.omg.CORBA.StructMember ( - "pgid", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[3] = new org.omg.CORBA.StructMember ( - "startDate", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[4] = new org.omg.CORBA.StructMember ( - "startTime", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[5] = new org.omg.CORBA.StructMember ( - "userName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[6] = new org.omg.CORBA.StructMember ( - "foamVersion", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[7] = new org.omg.CORBA.StructMember ( - "code", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[8] = new org.omg.CORBA.StructMember ( - "argList", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[9] = new org.omg.CORBA.StructMember ( - "currentDir", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[10] = new org.omg.CORBA.StructMember ( - "rootDir", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[11] = new org.omg.CORBA.StructMember ( - "caseName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[12] = new org.omg.CORBA.StructMember ( - "nProcs", - _tcOf_members0, - null); - _tcOf_members0 = FoamXServer.JobIDHelper.type (); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.JobIDListHelper.id (), "JobIDList", _tcOf_members0); - _members0[13] = new org.omg.CORBA.StructMember ( - "slaves", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[14] = new org.omg.CORBA.StructMember ( - "nCountedProcs", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double); - _members0[15] = new org.omg.CORBA.StructMember ( - "cpuTime", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[16] = new org.omg.CORBA.StructMember ( - "endDate", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[17] = new org.omg.CORBA.StructMember ( - "endTime", - _tcOf_members0, - null); - _tcOf_members0 = FoamXServer.JobStatusHelper.type (); - _members0[18] = new org.omg.CORBA.StructMember ( - "status", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.JobDescriptorHelper.id (), "JobDescriptor", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.JobDescriptor read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.JobDescriptor value = new FoamXServer.JobDescriptor (); - value.jobID = FoamXServer.JobIDHelper.read (istream); - value.ppid = istream.read_long (); - value.pgid = istream.read_long (); - value.startDate = istream.read_string (); - value.startTime = istream.read_string (); - value.userName = istream.read_string (); - value.foamVersion = istream.read_string (); - value.code = istream.read_string (); - value.argList = istream.read_string (); - value.currentDir = istream.read_string (); - value.rootDir = istream.read_string (); - value.caseName = istream.read_string (); - value.nProcs = istream.read_long (); - value.slaves = FoamXServer.JobIDListHelper.read (istream); - value.nCountedProcs = istream.read_long (); - value.cpuTime = istream.read_double (); - value.endDate = istream.read_string (); - value.endTime = istream.read_string (); - value.status = FoamXServer.JobStatusHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.JobDescriptor value) - { - FoamXServer.JobIDHelper.write (ostream, value.jobID); - ostream.write_long (value.ppid); - ostream.write_long (value.pgid); - ostream.write_string (value.startDate); - ostream.write_string (value.startTime); - ostream.write_string (value.userName); - ostream.write_string (value.foamVersion); - ostream.write_string (value.code); - ostream.write_string (value.argList); - ostream.write_string (value.currentDir); - ostream.write_string (value.rootDir); - ostream.write_string (value.caseName); - ostream.write_long (value.nProcs); - FoamXServer.JobIDListHelper.write (ostream, value.slaves); - ostream.write_long (value.nCountedProcs); - ostream.write_double (value.cpuTime); - ostream.write_string (value.endDate); - ostream.write_string (value.endTime); - FoamXServer.JobStatusHelper.write (ostream, value.status); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHolder.java deleted file mode 100644 index d3a7002c0c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/JobDescriptorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job descriptor structure. -public final class JobDescriptorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.JobDescriptor value = null; - - public JobDescriptorHolder () - { - } - - public JobDescriptorHolder (FoamXServer.JobDescriptor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.JobDescriptorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.JobDescriptorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.JobDescriptorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHelper.java deleted file mode 100644 index 6a3dd4f79d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobDescriptorListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class JobDescriptorListHelper -{ - private static String _id = "IDL:FoamXServer/JobDescriptorList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.JobDescriptor[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.JobDescriptor[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.JobDescriptorHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.JobDescriptorListHelper.id (), "JobDescriptorList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.JobDescriptor[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.JobDescriptor value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.JobDescriptor[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.JobDescriptorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.JobDescriptor[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.JobDescriptorHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHolder.java deleted file mode 100644 index bd33457055..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobDescriptorListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobDescriptorListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class JobDescriptorListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.JobDescriptor value[] = null; - - public JobDescriptorListHolder () - { - } - - public JobDescriptorListHolder (FoamXServer.JobDescriptor[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.JobDescriptorListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.JobDescriptorListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.JobDescriptorListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobID.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobID.java deleted file mode 100644 index 6e3905f8ba..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobID.java +++ /dev/null @@ -1,30 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobID.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job ID. -public final class JobID implements org.omg.CORBA.portable.IDLEntity -{ - public String hostName = null; - - // Host name. - public int processID = (int)0; - - public JobID () - { - } // ctor - - public JobID (String _hostName, int _processID) - { - hostName = _hostName; - processID = _processID; - } // ctor - -} // class JobID diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHelper.java deleted file mode 100644 index decc654dcb..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHelper.java +++ /dev/null @@ -1,84 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobIDHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job ID. -abstract public class JobIDHelper -{ - private static String _id = "IDL:FoamXServer/JobID:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.JobID that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.JobID extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "hostName", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[1] = new org.omg.CORBA.StructMember ( - "processID", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.JobIDHelper.id (), "JobID", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.JobID read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.JobID value = new FoamXServer.JobID (); - value.hostName = istream.read_string (); - value.processID = istream.read_long (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.JobID value) - { - ostream.write_string (value.hostName); - ostream.write_long (value.processID); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHolder.java deleted file mode 100644 index b0866087f1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDHolder.java +++ /dev/null @@ -1,40 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/JobIDHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// Job ID. -public final class JobIDHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.JobID value = null; - - public JobIDHolder () - { - } - - public JobIDHolder (FoamXServer.JobID initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.JobIDHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.JobIDHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.JobIDHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHelper.java deleted file mode 100644 index ae6ba846e5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobIDListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class JobIDListHelper -{ - private static String _id = "IDL:FoamXServer/JobIDList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.JobID[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.JobID[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.JobIDHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.JobIDListHelper.id (), "JobIDList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.JobID[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.JobID value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.JobID[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.JobIDHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.JobID[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.JobIDHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHolder.java deleted file mode 100644 index 46b5b7a68a..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobIDListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobIDListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class JobIDListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.JobID value[] = null; - - public JobIDListHolder () - { - } - - public JobIDListHolder (FoamXServer.JobID[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.JobIDListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.JobIDListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.JobIDListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatus.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatus.java deleted file mode 100644 index accb929d1b..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatus.java +++ /dev/null @@ -1,50 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobStatus.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public class JobStatus implements org.omg.CORBA.portable.IDLEntity -{ - private int __value; - private static int __size = 7; - private static FoamXServer.JobStatus[] __array = new FoamXServer.JobStatus [__size]; - - public static final int _JOB_UNDEFINED = 0; - public static final FoamXServer.JobStatus JOB_UNDEFINED = new FoamXServer.JobStatus(_JOB_UNDEFINED); - public static final int _JOB_LAUNCHING = 1; - public static final FoamXServer.JobStatus JOB_LAUNCHING = new FoamXServer.JobStatus(_JOB_LAUNCHING); - public static final int _JOB_RUNNING = 2; - public static final FoamXServer.JobStatus JOB_RUNNING = new FoamXServer.JobStatus(_JOB_RUNNING); - public static final int _JOB_STOPPING = 3; - public static final FoamXServer.JobStatus JOB_STOPPING = new FoamXServer.JobStatus(_JOB_STOPPING); - public static final int _JOB_SUSPENDED = 4; - public static final FoamXServer.JobStatus JOB_SUSPENDED = new FoamXServer.JobStatus(_JOB_SUSPENDED); - public static final int _JOB_FINISHED = 5; - public static final FoamXServer.JobStatus JOB_FINISHED = new FoamXServer.JobStatus(_JOB_FINISHED); - public static final int _JOB_ABORTED = 6; - public static final FoamXServer.JobStatus JOB_ABORTED = new FoamXServer.JobStatus(_JOB_ABORTED); - - public int value () - { - return __value; - } - - public static FoamXServer.JobStatus from_int (int value) - { - if (value >= 0 && value < __size) - return __array[value]; - else - throw new org.omg.CORBA.BAD_PARAM (); - } - - protected JobStatus (int value) - { - __value = value; - __array[__value] = this; - } -} // class JobStatus diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHelper.java deleted file mode 100644 index a45bedf602..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHelper.java +++ /dev/null @@ -1,53 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/JobStatusHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class JobStatusHelper -{ - private static String _id = "IDL:FoamXServer/JobStatus:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.JobStatus that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.JobStatus extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.JobStatusHelper.id (), "JobStatus", new String[] { "JOB_UNDEFINED", "JOB_LAUNCHING", "JOB_RUNNING", "JOB_STOPPING", "JOB_SUSPENDED", "JOB_FINISHED", "JOB_ABORTED"} ); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.JobStatus read (org.omg.CORBA.portable.InputStream istream) - { - return FoamXServer.JobStatus.from_int (istream.read_long ()); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.JobStatus value) - { - ostream.write_long (value.value ()); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHolder.java deleted file mode 100644 index 93edaf1062..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/JobStatusHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/JobStatusHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class JobStatusHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.JobStatus value = null; - - public JobStatusHolder () - { - } - - public JobStatusHolder (FoamXServer.JobStatus initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.JobStatusHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.JobStatusHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.JobStatusHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHelper.java deleted file mode 100644 index 4dbad975e4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHelper.java +++ /dev/null @@ -1,60 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/LongListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class LongListHelper -{ - private static String _id = "IDL:FoamXServer/LongList:1.0"; - - public static void insert (org.omg.CORBA.Any a, int[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static int[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.LongListHelper.id (), "LongList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static int[] read (org.omg.CORBA.portable.InputStream istream) - { - int value[] = null; - int _len0 = istream.read_long (); - value = new int[_len0]; - istream.read_long_array (value, 0, _len0); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, int[] value) - { - ostream.write_long (value.length); - ostream.write_long_array (value, 0, value.length); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHolder.java deleted file mode 100644 index a21c05613d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/LongListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/LongListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class LongListHolder implements org.omg.CORBA.portable.Streamable -{ - public int value[] = null; - - public LongListHolder () - { - } - - public LongListHolder (int[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.LongListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.LongListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.LongListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageType.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageType.java deleted file mode 100644 index e2a9bd2b7d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageType.java +++ /dev/null @@ -1,42 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/MessageType.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public class MessageType implements org.omg.CORBA.portable.IDLEntity -{ - private int __value; - private static int __size = 3; - private static FoamXServer.MessageType[] __array = new FoamXServer.MessageType [__size]; - - public static final int _M_DIAGNOSTIC = 0; - public static final FoamXServer.MessageType M_DIAGNOSTIC = new FoamXServer.MessageType(_M_DIAGNOSTIC); - public static final int _M_WARNING = 1; - public static final FoamXServer.MessageType M_WARNING = new FoamXServer.MessageType(_M_WARNING); - public static final int _M_ERROR = 2; - public static final FoamXServer.MessageType M_ERROR = new FoamXServer.MessageType(_M_ERROR); - - public int value () - { - return __value; - } - - public static FoamXServer.MessageType from_int (int value) - { - if (value >= 0 && value < __size) - return __array[value]; - else - throw new org.omg.CORBA.BAD_PARAM (); - } - - protected MessageType (int value) - { - __value = value; - __array[__value] = this; - } -} // class MessageType diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHelper.java deleted file mode 100644 index 9f6ebf720e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHelper.java +++ /dev/null @@ -1,53 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/MessageTypeHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class MessageTypeHelper -{ - private static String _id = "IDL:FoamXServer/MessageType:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.MessageType that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.MessageType extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.MessageTypeHelper.id (), "MessageType", new String[] { "M_DIAGNOSTIC", "M_WARNING", "M_ERROR"} ); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.MessageType read (org.omg.CORBA.portable.InputStream istream) - { - return FoamXServer.MessageType.from_int (istream.read_long ()); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.MessageType value) - { - ostream.write_long (value.value ()); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHolder.java deleted file mode 100644 index 3a6e0a9a2c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/MessageTypeHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/MessageTypeHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class MessageTypeHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.MessageType value = null; - - public MessageTypeHolder () - { - } - - public MessageTypeHolder (FoamXServer.MessageType initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.MessageTypeHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.MessageTypeHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.MessageTypeHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Helper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Helper.java deleted file mode 100644 index 050c86ffc5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Helper.java +++ /dev/null @@ -1,66 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/Point3Helper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class Point3Helper -{ - private static String _id = "IDL:FoamXServer/Point3:1.0"; - - public static void insert (org.omg.CORBA.Any a, float[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static float[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float); - __typeCode = org.omg.CORBA.ORB.init ().create_array_tc (3, __typeCode ); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.Point3Helper.id (), "Point3", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static float[] read (org.omg.CORBA.portable.InputStream istream) - { - float value[] = null; - value = new float[3]; - for (int _o0 = 0;_o0 < (3); ++_o0) - { - value[_o0] = istream.read_float (); - } - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, float[] value) - { - if (value.length != (3)) - throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - for (int _i0 = 0;_i0 < (3); ++_i0) - { - ostream.write_float (value[_i0]); - } - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Holder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Holder.java deleted file mode 100644 index 15d9085490..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/Point3Holder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/Point3Holder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class Point3Holder implements org.omg.CORBA.portable.Streamable -{ - public float value[] = null; - - public Point3Holder () - { - } - - public Point3Holder (float[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.Point3Helper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.Point3Helper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.Point3Helper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHelper.java deleted file mode 100644 index 0303deb4ef..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHelper.java +++ /dev/null @@ -1,64 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -abstract public class StringListHelper -{ - private static String _id = "IDL:FoamXServer/StringList:1.0"; - - public static void insert (org.omg.CORBA.Any a, String[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static String[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.StringListHelper.id (), "StringList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static String[] read (org.omg.CORBA.portable.InputStream istream) - { - String value[] = null; - int _len0 = istream.read_long (); - value = new String[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = istream.read_string (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, String[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - ostream.write_string (value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHolder.java deleted file mode 100644 index bb3c0fb4b1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringListHolder.java +++ /dev/null @@ -1,41 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public final class StringListHolder implements org.omg.CORBA.portable.Streamable -{ - public String value[] = null; - - public StringListHolder () - { - } - - public StringListHolder (String[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.StringListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.StringListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.StringListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPair.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPair.java deleted file mode 100644 index eaaebd3363..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPair.java +++ /dev/null @@ -1,26 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringPair.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class StringPair implements org.omg.CORBA.portable.IDLEntity -{ - public String name = null; - public String value = null; - - public StringPair () - { - } // ctor - - public StringPair (String _name, String _value) - { - name = _name; - value = _value; - } // ctor - -} // class StringPair diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHelper.java deleted file mode 100644 index c91f8ef802..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHelper.java +++ /dev/null @@ -1,82 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringPairHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class StringPairHelper -{ - private static String _id = "IDL:FoamXServer/StringPair:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.StringPair that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.StringPair extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "name", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "value", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.StringPairHelper.id (), "StringPair", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.StringPair read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.StringPair value = new FoamXServer.StringPair (); - value.name = istream.read_string (); - value.value = istream.read_string (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.StringPair value) - { - ostream.write_string (value.name); - ostream.write_string (value.value); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHolder.java deleted file mode 100644 index 9f567f9156..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/StringPairHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class StringPairHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.StringPair value = null; - - public StringPairHolder () - { - } - - public StringPairHolder (FoamXServer.StringPair initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.StringPairHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.StringPairHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.StringPairHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHelper.java deleted file mode 100644 index 7a4752336d..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringPairListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class StringPairListHelper -{ - private static String _id = "IDL:FoamXServer/StringPairList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.StringPair[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.StringPair[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.StringPairHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.StringPairListHelper.id (), "StringPairList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.StringPair[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.StringPair value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.StringPair[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.StringPairHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.StringPair[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.StringPairHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHolder.java deleted file mode 100644 index 5ee7242677..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/StringPairListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/StringPairListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class StringPairListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.StringPair value[] = null; - - public StringPairListHolder () - { - } - - public StringPairListHolder (FoamXServer.StringPair[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.StringPairListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.StringPairListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.StringPairListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHelper.java deleted file mode 100644 index d80b0c25d5..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/TypeDescriptorListHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class TypeDescriptorListHelper -{ - private static String _id = "IDL:FoamXServer/TypeDescriptorList:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ITypeDescriptor[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ITypeDescriptor[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = FoamXServer.ITypeDescriptorHelper.type (); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.TypeDescriptorListHelper.id (), "TypeDescriptorList", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ITypeDescriptor[] read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.ITypeDescriptor value[] = null; - int _len0 = istream.read_long (); - value = new FoamXServer.ITypeDescriptor[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = FoamXServer.ITypeDescriptorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ITypeDescriptor[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - FoamXServer.ITypeDescriptorHelper.write (ostream, value[_i0]); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHolder.java deleted file mode 100644 index b63e4bddfc..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/TypeDescriptorListHolder.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/TypeDescriptorListHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class TypeDescriptorListHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ITypeDescriptor value[] = null; - - public TypeDescriptorListHolder () - { - } - - public TypeDescriptorListHolder (FoamXServer.ITypeDescriptor[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.TypeDescriptorListHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.TypeDescriptorListHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.TypeDescriptorListHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationError.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationError.java deleted file mode 100644 index 0ea60eae8c..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationError.java +++ /dev/null @@ -1,39 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ValidationError.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class ValidationError extends org.omg.CORBA.UserException -{ - public FoamXServer.ErrorCode errorCode = null; - public String errorMessage = null; - public String itemPath = null; - - public ValidationError () - { - super(ValidationErrorHelper.id()); - } // ctor - - public ValidationError (FoamXServer.ErrorCode _errorCode, String _errorMessage, String _itemPath) - { - super(ValidationErrorHelper.id()); - errorCode = _errorCode; - errorMessage = _errorMessage; - itemPath = _itemPath; - } // ctor - - - public ValidationError (String $reason, FoamXServer.ErrorCode _errorCode, String _errorMessage, String _itemPath) - { - super(ValidationErrorHelper.id() + " " + $reason); - errorCode = _errorCode; - errorMessage = _errorMessage; - itemPath = _itemPath; - } // ctor - -} // class ValidationError diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHelper.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHelper.java deleted file mode 100644 index 74f14442f3..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHelper.java +++ /dev/null @@ -1,93 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/ValidationErrorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -abstract public class ValidationErrorHelper -{ - private static String _id = "IDL:FoamXServer/ValidationError:1.0"; - - public static void insert (org.omg.CORBA.Any a, FoamXServer.ValidationError that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static FoamXServer.ValidationError extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [3]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = FoamXServer.ErrorCodeHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "errorCode", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "errorMessage", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.StructMember ( - "itemPath", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.ValidationErrorHelper.id (), "ValidationError", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static FoamXServer.ValidationError read (org.omg.CORBA.portable.InputStream istream) - { - FoamXServer.ValidationError value = new FoamXServer.ValidationError (); - // read and discard the repository ID - istream.read_string (); - value.errorCode = FoamXServer.ErrorCodeHelper.read (istream); - value.errorMessage = istream.read_string (); - value.itemPath = istream.read_string (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ValidationError value) - { - // write the repository ID - ostream.write_string (id ()); - FoamXServer.ErrorCodeHelper.write (ostream, value.errorCode); - ostream.write_string (value.errorMessage); - ostream.write_string (value.itemPath); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHolder.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHolder.java deleted file mode 100644 index ca58060c68..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/ValidationErrorHolder.java +++ /dev/null @@ -1,38 +0,0 @@ -package FoamXServer; - -/** -* FoamXServer/ValidationErrorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - -public final class ValidationErrorHolder implements org.omg.CORBA.portable.Streamable -{ - public FoamXServer.ValidationError value = null; - - public ValidationErrorHolder () - { - } - - public ValidationErrorHolder (FoamXServer.ValidationError initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = FoamXServer.ValidationErrorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - FoamXServer.ValidationErrorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return FoamXServer.ValidationErrorHelper.type (); - } - -} diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_IDictionaryEntryStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_IDictionaryEntryStub.java deleted file mode 100644 index 41bdbe10e1..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_IDictionaryEntryStub.java +++ /dev/null @@ -1,356 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/_IDictionaryEntryStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public class _IDictionaryEntryStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.IDictionaryEntry -{ - - - // Reference to the type descriptor object for this entry. - public FoamXServer.ITypeDescriptor typeDescriptor () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_typeDescriptor", true); - $in = _invoke ($out); - FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return typeDescriptor ( ); - } finally { - _releaseReply ($in); - } - } // typeDescriptor - - - // Current value for this (non compound) entry. - public FoamXServer.FoamXAny value () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_value", true); - $in = _invoke ($out); - FoamXServer.FoamXAny $result = FoamXServer.FoamXAnyHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return value ( ); - } finally { - _releaseReply ($in); - } - } // value - - - // Current value for this (non compound) entry. - public void value (FoamXServer.FoamXAny newValue) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_value", true); - FoamXServer.FoamXAnyHelper.write ($out, newValue); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - value (newValue ); - } finally { - _releaseReply ($in); - } - } // value - - public void setValue (FoamXServer.FoamXAny value) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setValue", true); - FoamXServer.FoamXAnyHelper.write ($out, value); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - setValue (value ); - } finally { - _releaseReply ($in); - } - } // setValue - - - // Sub-elements for compound types. - public FoamXServer.IDictionaryEntry[] subElements () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_subElements", true); - $in = _invoke ($out); - FoamXServer.IDictionaryEntry $result[] = FoamXServer.DictionaryEntryListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return subElements ( ); - } finally { - _releaseReply ($in); - } - } // subElements - - public int nSubElements () throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("nSubElements", true); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return nSubElements ( ); - } finally { - _releaseReply ($in); - } - } // nSubElements - - public boolean packedList () throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("packedList", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return packedList ( ); - } finally { - _releaseReply ($in); - } - } // packedList - - - // The current selection index - public int selection () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_selection", true); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return selection ( ); - } finally { - _releaseReply ($in); - } - } // selection - - - // The current selection index - public void selection (int newSelection) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_selection", true); - $out.write_long (newSelection); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - selection (newSelection ); - } finally { - _releaseReply ($in); - } - } // selection - - - // entry object. - public void addElement (FoamXServer.IDictionaryEntryHolder subEntry) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addElement", true); - $in = _invoke ($out); - subEntry.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addElement (subEntry ); - } finally { - _releaseReply ($in); - } - } // addElement - - - // Remove element from list. - public void removeElement (FoamXServer.IDictionaryEntry subEntry) throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("removeElement", true); - FoamXServer.IDictionaryEntryHelper.write ($out, subEntry); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - removeElement (subEntry ); - } finally { - _releaseReply ($in); - } - } // removeElement - - - // are found. - public void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - - // Returns true if this entry, or any sub-entries have been modified. - public boolean modified () throws FoamXServer.FoamXError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("modified", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return modified ( ); - } finally { - _releaseReply ($in); - } - } // modified - - - // Save method for root (dictionary) objects. - public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("save", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - save ( ); - } finally { - _releaseReply ($in); - } - } // save - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/IDictionaryEntry:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _IDictionaryEntryStub diff --git a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_ITypeDescriptorStub.java b/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_ITypeDescriptorStub.java deleted file mode 100644 index d325e16c56..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/FoamXServer/_ITypeDescriptorStub.java +++ /dev/null @@ -1,1045 +0,0 @@ -package FoamXServer; - - -/** -* FoamXServer/_ITypeDescriptorStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.1" -* from FoamX.idl -* 02 April 2007 09:53:40 o'clock BST -*/ - - -// ------------------------------------------------------------------------- -public class _ITypeDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.ITypeDescriptor -{ - - - //- The type of this parameter. - public FoamXServer.FoamXType type () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_type", true); - $in = _invoke ($out); - FoamXServer.FoamXType $result = FoamXServer.FoamXTypeHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return type ( ); - } finally { - _releaseReply ($in); - } - } // type - - - //- The type of this parameter. - public void type (FoamXServer.FoamXType newType) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_type", true); - FoamXServer.FoamXTypeHelper.write ($out, newType); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - type (newType ); - } finally { - _releaseReply ($in); - } - } // type - - - //- Primitive type flag. - public boolean isPrimitiveType () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_isPrimitiveType", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return isPrimitiveType ( ); - } finally { - _releaseReply ($in); - } - } // isPrimitiveType - - - //- Compound type flag. - public boolean isCompoundType () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_isCompoundType", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return isCompoundType ( ); - } finally { - _releaseReply ($in); - } - } // isCompoundType - - - //- Path of this parameter relative to root dictionary. - public String path () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_path", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return path ( ); - } finally { - _releaseReply ($in); - } - } // path - - - //- Path of this parameter relative to root dictionary. - public void path (String newPath) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_path", true); - $out.write_string (newPath); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - path (newPath ); - } finally { - _releaseReply ($in); - } - } // path - - - //- Foam parameter name. - public String name () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return name ( ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Foam parameter name. - public void name (String newName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true); - $out.write_string (newName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - name (newName ); - } finally { - _releaseReply ($in); - } - } // name - - - //- Short display name. - public String displayName () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return displayName ( ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Short display name. - public void displayName (String newDisplayName) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true); - $out.write_string (newDisplayName); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - displayName (newDisplayName ); - } finally { - _releaseReply ($in); - } - } // displayName - - - //- Long descriptive name. - public String description () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return description ( ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Long descriptive name. - public void description (String newDescription) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true); - $out.write_string (newDescription); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - description (newDescription ); - } finally { - _releaseReply ($in); - } - } // description - - - //- Dictionary comment. - public String comment () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_comment", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return comment ( ); - } finally { - _releaseReply ($in); - } - } // comment - - - //- Dictionary comment. - public void comment (String newComment) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_comment", true); - $out.write_string (newComment); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - comment (newComment ); - } finally { - _releaseReply ($in); - } - } // comment - - - //- GUI category. - public String category () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_category", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return category ( ); - } finally { - _releaseReply ($in); - } - } // category - - - //- GUI category. - public void category (String newCategory) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_category", true); - $out.write_string (newCategory); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - category (newCategory ); - } finally { - _releaseReply ($in); - } - } // category - - - //- URL to relevant help file. - public String helpURL () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_helpURL", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return helpURL ( ); - } finally { - _releaseReply ($in); - } - } // helpURL - - - //- URL to relevant help file. - public void helpURL (String newHelpURL) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_helpURL", true); - $out.write_string (newHelpURL); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - helpURL (newHelpURL ); - } finally { - _releaseReply ($in); - } - } // helpURL - - - //- URL to a nice icon for this entry. - public String iconURL () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_iconURL", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return iconURL ( ); - } finally { - _releaseReply ($in); - } - } // iconURL - - - //- URL to a nice icon for this entry. - public void iconURL (String newIconURL) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_iconURL", true); - $out.write_string (newIconURL); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - iconURL (newIconURL ); - } finally { - _releaseReply ($in); - } - } // iconURL - - - // Defaults to false. - public boolean optional () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_optional", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return optional ( ); - } finally { - _releaseReply ($in); - } - } // optional - - - // Defaults to false. - public void optional (boolean newOptional) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_optional", true); - $out.write_boolean (newOptional); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - optional (newOptional ); - } finally { - _releaseReply ($in); - } - } // optional - - - // Defaults to true. - public boolean visible () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_visible", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return visible ( ); - } finally { - _releaseReply ($in); - } - } // visible - - - // Defaults to true. - public void visible (boolean newVisible) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_visible", true); - $out.write_boolean (newVisible); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - visible (newVisible ); - } finally { - _releaseReply ($in); - } - } // visible - - - // Defaults to true. - public boolean editable () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_editable", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return editable ( ); - } finally { - _releaseReply ($in); - } - } // editable - - - // Defaults to true. - public void editable (boolean newEditable) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_editable", true); - $out.write_boolean (newEditable); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - editable (newEditable ); - } finally { - _releaseReply ($in); - } - } // editable - - - //- Minimum value for this parameter. - public FoamXServer.FoamXAny minValue () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_minValue", true); - $in = _invoke ($out); - FoamXServer.FoamXAny $result = FoamXServer.FoamXAnyHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return minValue ( ); - } finally { - _releaseReply ($in); - } - } // minValue - - - //- Minimum value for this parameter. - public void minValue (FoamXServer.FoamXAny newMinValue) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_minValue", true); - FoamXServer.FoamXAnyHelper.write ($out, newMinValue); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - minValue (newMinValue ); - } finally { - _releaseReply ($in); - } - } // minValue - - - //- Maximum value for this parameter. - public FoamXServer.FoamXAny maxValue () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_maxValue", true); - $in = _invoke ($out); - FoamXServer.FoamXAny $result = FoamXServer.FoamXAnyHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return maxValue ( ); - } finally { - _releaseReply ($in); - } - } // maxValue - - - //- Maximum value for this parameter. - public void maxValue (FoamXServer.FoamXAny newMaxValue) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_maxValue", true); - FoamXServer.FoamXAnyHelper.write ($out, newMaxValue); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - maxValue (newMaxValue ); - } finally { - _releaseReply ($in); - } - } // maxValue - - - //- Name of dictionary to use as a lookup table. - public String lookupDict () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_lookupDict", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return lookupDict ( ); - } finally { - _releaseReply ($in); - } - } // lookupDict - - - //- Name of dictionary to use as a lookup table. - public void lookupDict (String newLookupDict) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_lookupDict", true); - $out.write_string (newLookupDict); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - lookupDict (newLookupDict ); - } finally { - _releaseReply ($in); - } - } // lookupDict - - - //- List of permissible values for this parameter. - public FoamXServer.FoamXAny[] valueList () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_valueList", true); - $in = _invoke ($out); - FoamXServer.FoamXAny $result[] = FoamXServer.FoamXAnyListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return valueList ( ); - } finally { - _releaseReply ($in); - } - } // valueList - - - //- List of permissible values for this parameter. - public void valueList (FoamXServer.FoamXAny[] newValueList) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_valueList", true); - FoamXServer.FoamXAnyListHelper.write ($out, newValueList); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - valueList (newValueList ); - } finally { - _releaseReply ($in); - } - } // valueList - - - //- Top-level dictionary location relative to case root. - public String dictionaryPath () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_dictionaryPath", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return dictionaryPath ( ); - } finally { - _releaseReply ($in); - } - } // dictionaryPath - - - //- Top-level dictionary location relative to case root. - public void dictionaryPath (String newDictionaryPath) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_dictionaryPath", true); - $out.write_string (newDictionaryPath); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - dictionaryPath (newDictionaryPath ); - } finally { - _releaseReply ($in); - } - } // dictionaryPath - - - //- Number of vector space elements. - public int numElements () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_numElements", true); - $in = _invoke ($out); - int $result = $in.read_long (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return numElements ( ); - } finally { - _releaseReply ($in); - } - } // numElements - - - //- Number of vector space elements. - public void numElements (int newNumElements) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_numElements", true); - $out.write_long (newNumElements); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - numElements (newNumElements ); - } finally { - _releaseReply ($in); - } - } // numElements - - - //- Labels of vector space elements (eg, x, y, z). - public String[] elementLabels () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_elementLabels", true); - $in = _invoke ($out); - String $result[] = FoamXServer.StringListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return elementLabels ( ); - } finally { - _releaseReply ($in); - } - } // elementLabels - - - //- Labels of vector space elements (eg, x, y, z). - public void elementLabels (String[] newElementLabels) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_elementLabels", true); - FoamXServer.StringListHelper.write ($out, newElementLabels); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - elementLabels (newElementLabels ); - } finally { - _releaseReply ($in); - } - } // elementLabels - - - //- List of sub-types for compound types. - public FoamXServer.ITypeDescriptor[] subTypes () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_subTypes", true); - $in = _invoke ($out); - FoamXServer.ITypeDescriptor $result[] = FoamXServer.TypeDescriptorListHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return subTypes ( ); - } finally { - _releaseReply ($in); - } - } // subTypes - - - //- Element type in List of elements. - public FoamXServer.ITypeDescriptor elementType () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_elementType", true); - $in = _invoke ($out); - FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return elementType ( ); - } finally { - _releaseReply ($in); - } - } // elementType - - public boolean hasDefaultValue () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("hasDefaultValue", true); - $in = _invoke ($out); - boolean $result = $in.read_boolean (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return hasDefaultValue ( ); - } finally { - _releaseReply ($in); - } - } // hasDefaultValue - - public void getDefaultValue (FoamXServer.IDictionaryEntryHolder defaultValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("getDefaultValue", true); - $in = _invoke ($out); - defaultValue.value = FoamXServer.IDictionaryEntryHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - getDefaultValue (defaultValue ); - } finally { - _releaseReply ($in); - } - } // getDefaultValue - - - //- Compound sub-type methods. - public void addSubType (FoamXServer.FoamXType type, FoamXServer.ITypeDescriptorHolder subEntry) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("addSubType", true); - FoamXServer.FoamXTypeHelper.write ($out, type); - $in = _invoke ($out); - subEntry.value = FoamXServer.ITypeDescriptorHelper.read ($in); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - addSubType (type, subEntry ); - } finally { - _releaseReply ($in); - } - } // addSubType - - public void removeSubType (FoamXServer.ITypeDescriptor subEntry) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("removeSubType", true); - FoamXServer.ITypeDescriptorHelper.write ($out, subEntry); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - removeSubType (subEntry ); - } finally { - _releaseReply ($in); - } - } // removeSubType - - - // are found. - public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("validate", true); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:FoamXServer/FoamXError:1.0")) - throw FoamXServer.FoamXErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0")) - throw FoamXServer.FoamXIOErrorHelper.read ($in); - else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0")) - throw FoamXServer.ValidationErrorHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - validate ( ); - } finally { - _releaseReply ($in); - } - } // validate - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:FoamXServer/ITypeDescriptor:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ITypeDescriptorStub diff --git a/applications/utilities/preProcessing/FoamX/Java/META-INF/MANIFEST.MF b/applications/utilities/preProcessing/FoamX/Java/META-INF/MANIFEST.MF deleted file mode 100644 index 833b22645e..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Created-By: OpenCFD -Main-Class: FoamX.App diff --git a/applications/utilities/preProcessing/FoamX/Java/Make/files b/applications/utilities/preProcessing/FoamX/Java/Make/files deleted file mode 100644 index 2fcfe08018..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/Make/files +++ /dev/null @@ -1,31 +0,0 @@ -FoamX/Modules/CaseEditor/CaseEditorModule.java -FoamX/App.java -/* FoamXServer/FoamXIOError.java */ -/* FoamXServer/FoamXError.java */ -/* FoamXServer/FoamXSYSError.java */ -/* FoamXServer/HostBrowser/IHostBrowserHelper.java */ -/* FoamXServer/HostBrowser/IHostBrowser.java */ -/* FoamX/Exceptions/FoamXException.java */ -/* FoamX/Exceptions/CaseBrowserIOException.java */ -/* FoamX/Util/FileEditor.java */ -/* FoamX/Util/MemoryView.java */ -/* FoamX/Util/MenuItemActionChangedListener.java */ -/* FoamX/Util/ResourceHelper.java */ -/* FoamX/Options/OptionsManager.java */ -/* FoamX/ToolbarManagement/Toolbar.java */ -/* FoamX/ToolbarManagement/ToolbarManager.java */ -/* FoamX/ActionManagement/ActionManager.java */ -/* FoamX/TaskManagement/TaskManager.java */ -/* FoamX/Reporting/ReportingManager.java */ -/* FoamX/Reporting/ReportingWindow.java */ -/* FoamX/CaseManagement/CaseManager.java */ -/* FoamX/CaseManagement/CaseBrowserPanel.java */ -/* FoamX/CaseManagement/ContextInfo.java */ -/* FoamX/WindowManagement/WindowManager.java */ -/* FoamX/ActionManagement/IActionProvider.java */ -/* FoamX/TaskManagement/TaskStatusBar.java */ -/* FoamX/CaseManagement/CaseManagerListener.java */ -/* FoamXServer/HostBrowser/IHostBrowserOperations.java */ -/* FoamXServer/CaseBrowser/ICaseBrowser.java */ - -LIB = $(FOAMX_PATH)/lib/FoamX diff --git a/applications/utilities/preProcessing/FoamX/Java/Make/options b/applications/utilities/preProcessing/FoamX/Java/Make/options deleted file mode 100644 index b3d008ff38..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/Make/options +++ /dev/null @@ -1,6 +0,0 @@ -EXE_INC = -nowarn - -LIB_LIBS = \ - META-INF/MANIFEST.MF \ - resources \ - FoamX/icons diff --git a/applications/utilities/preProcessing/FoamX/Java/resources/DictEditorModule.properties b/applications/utilities/preProcessing/FoamX/Java/resources/DictEditorModule.properties deleted file mode 100644 index 6765d6c2b4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/resources/DictEditorModule.properties +++ /dev/null @@ -1,24 +0,0 @@ -################################################################################ -# Resource settings for the Dictionary Editor Module. -# -################################################################################ - -UndefinedImage = icons/small/unknown.gif -BooleanImage = icons/small/document.gif -LabelImage = icons/small/document.gif -ScalarImage = icons/small/document.gif -CharImage = icons/small/document.gif -WordImage = icons/small/document.gif -StringImage = icons/small/document.gif -DimensionSetImage = icons/small/document.gif -ShapeImage = icons/small/document.gif -FixedListImage = icons/small/text.gif -ListImage = icons/small/text.gif -DictionaryImage = icons/small/folder.gif -CompoundImage = icons/small/text.gif - -################################################################################ -################################################################################ -################################################################################ -################################################################################ - diff --git a/applications/utilities/preProcessing/FoamX/Java/resources/FoamX.properties b/applications/utilities/preProcessing/FoamX/Java/resources/FoamX.properties deleted file mode 100644 index d9f6078fa4..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/resources/FoamX.properties +++ /dev/null @@ -1,272 +0,0 @@ -################################################################################ -# Basic Resource Settings for FoamX. -# -################################################################################ - -Title = FoamX - -################################################################################ -# Application menu bar definitions. -# Each of the strings that follow form a key to be used to the -# actual menu definition. -################################################################################ -FoamX.Menubar = FoamX.FileMenu FoamX.ToolsMenu WindowMenu HelpMenu -#FoamX.Toolbar = FoamX.Options -FoamX.Toolbar = - -################################################################################ -# File Menu Definition. -################################################################################ -FoamX.FileMenu = FoamX.Exit -FoamX.FileMenuLabel = File - -FoamX.ExitLabel = Exit -FoamX.ExitShortDescription = Exit -FoamX.ExitLongDescription = Exit -FoamX.ExitAction = FoamX.Exit -FoamX.ExitImage = /toolbarButtonGraphics/general/Stop16.gif - -################################################################################ -# Tools Menu Definition. -################################################################################ -//FoamX.ToolsMenu = MemoryView - FoamX.Process -FoamX.ToolsMenu = MemoryView -FoamX.ToolsMenuLabel = Tools - -MemoryViewLabel = Show Memory View... -MemoryViewShortDescription = Show Memory View -MemoryViewLongDescription = Show Memory View -MemoryViewAction = FoamX.ShowMemoryView -MemoryViewImage = /toolbarButtonGraphics/development/Applet16.gif - -FoamX.OptionsLabel = Options... -FoamX.OptionsShortDescription = Options -FoamX.OptionsLongDescription = Options -FoamX.OptionsTooltip = FoamX Options -FoamX.OptionsAction = FoamX.EditOptions -FoamX.OptionsImage = /toolbarButtonGraphics/general/Preferences16.gif - -FoamX.ProcessLabel = Process Management -FoamX.ProcessShortDescription = Process Management -FoamX.ProcessLongDescription = Process Management -FoamX.ProcessTooltip = Foam Process Management -FoamX.ProcessAction = FoamX.EditProcesses -FoamX.ProcessImage = /toolbarButtonGraphics/general/Information16.gif - -################################################################################ -# Window Menu Definition. -################################################################################ -WindowMenu = ArrangeCascade -WindowMenuLabel = Window - -ArrangeCascadeLabel = Arrange Cascade... -ArrangeCascadeAction = WindowManager.ArrangeCascade -ArrangeCascadeImage = /toolbarButtonGraphics/development/Applet16.gif - -################################################################################ -# Help Menu Definition. -################################################################################ -HelpMenu = FoamX - Online - DemoGuide - ProgrammersGuide - Code -HelpMenuLabel = Help - -FoamXLabel = FoamX Documentation... -FoamXShortDescription = FoamX Documentation -FoamXLongDescription = FoamX Documentation -FoamXAction = FoamX.ShowOnlineHTML -FoamXImage = /toolbarButtonGraphics/general/Information16.gif -FoamXHTML = http://www.openfoam.org/doc/index.html - -OnlineLabel = Online FOAM Documentation... -OnlineShortDescription = Online Documentation -OnlineLongDescription = Online Documentation -OnlineAction = FoamX.ShowOnlineHTML -OnlineImage = /toolbarButtonGraphics/general/Information16.gif -OnlineHTML = http://www.openfoam.org/doc/index.html - -DemoGuideLabel = User Guide (PDF)... -DemoGuideShortDescription= User Guide -DemoGuideLongDescription= User Guide -DemoGuideAction = FoamX.ShowDemoGuidePDF -DemoGuideImage = /toolbarButtonGraphics/general/Information16.gif -DemoGuidePDF = Guides-a4/UserGuide.pdf - -ProgrammersGuideLabel = Programmers Guide (PDF)... -ProgrammersGuideShortDescription= Programmers Guide -ProgrammersGuideLongDescription= Programmers Guide -ProgrammersGuideAction = FoamX.ShowProgrammersGuidePDF -ProgrammersGuideImage = /toolbarButtonGraphics/general/Information16.gif -ProgrammersGuidePDF = Guides-a4/ProgrammersGuide.pdf - -CodeLabel = Code Documentation... -CodeShortDescription = Code Documentation -CodeLongDescription = Code Documentation -CodeAction = FoamX.ShowCodeHTML -CodeImage = /toolbarButtonGraphics/general/Information16.gif -CodeHTML = Doxygen/html/index.html - -SaveCaseLabel = Save Case... -SaveCaseShortDescription = Save Case -SaveCaseLongDescription = Save Case -SaveCaseAction = FoamX.SaveCurrentCase -SaveCaseImage = /toolbarButtonGraphics/general/Save16.gif -SaveCaseTooltip = Save Current Case. - -#SaveAllCasesLabel = Save All Cases... -#SaveAllCasesAction = FoamX.SaveAllCases -#SaveAllCasesImage = /toolbarButtonGraphics/general/SaveAll16.gif -#SaveAllCasesTooltip = Save All Cases. - -CloseCaseLabel = Close Case... -CloseCaseAction = FoamX.CloseCurrentCase -CloseCaseImage = /toolbarButtonGraphics/general/Stop16.gif -CloseCaseTooltip = Close Current Case. - -#CloseAllCasesLabel = Close All Cases... -#CloseAllCasesAction = FoamX.CloseAllCases -#CloseAllCasesImage = /toolbarButtonGraphics/general/Save16.gif -#CloseAllCasesTooltip = Close All Cases. - -################################################################################ -# Type Icons -################################################################################ - -UndefinedImage = /FoamX/icons/small/unknown.gif -BooleanImage = /FoamX/icons/small/unknown.gif -LabelImage = /FoamX/icons/small/unknown.gif -ScalarImage = /FoamX/icons/small/unknown.gif -CharImage = /FoamX/icons/small/unknown.gif -WordImage = /FoamX/icons/small/unknown.gif -StringImage = /FoamX/icons/small/unknown.gif -DimensionSetImage = /FoamX/icons/small/unknown.gif -ShapeImage = /FoamX/icons/small/unknown.gif -FixedListImage = /FoamX/icons/small/unknown.gif -ListImage = /FoamX/icons/small/unknown.gif -DictionaryImage = /FoamX/icons/small/dictionary2.gif -SelectionImage = /FoamX/icons/small/file.gif -CompoundImage = /FoamX/icons/small/file.gif - -################################################################################ -# Icons -################################################################################ -#PatchRootImage = /FoamX/icons/small/folder.gif -PatchRootImage = /FoamX/icons/small/maths/patches.gif -#PatchTypeImage = /FoamX/icons/small/folder.gif -PatchTypeImage = /FoamX/icons/small/maths/patch.gif -BoundaryDefinitionImage = /FoamX/icons/small/text.gif - -NewPatchTypeImage = /toolbarButtonGraphics/general/New16.gif -DelPatchTypeImage = /toolbarButtonGraphics/general/Cut16.gif -NewPatchPhysicalTypeImage = /toolbarButtonGraphics/general/Refresh16.gif -DelPatchPhysicalTypeImage = /toolbarButtonGraphics/general/Delete16.gif - -NewDictionaryImage = /toolbarButtonGraphics/general/New16.gif -DelDictionaryImage = /toolbarButtonGraphics/general/Cut16.gif -NewDictionaryEntryImage = /toolbarButtonGraphics/general/Refresh16.gif -DelDictionaryEntryImage = /toolbarButtonGraphics/general/Delete16.gif - -AddFieldImage = /toolbarButtonGraphics/general/New16.gif -DeleteFieldImage = /toolbarButtonGraphics/general/Cut16.gif - -################################################################################ -# Case Browser Icons -################################################################################ -CaseBrowser.RootContextImage= /toolbarButtonGraphics/development/WebComponent16.gif -NamingContextImage = /FoamX/icons/small/folder.gif -CaseBrowser.HostImage = /toolbarButtonGraphics/development/Host16.gif -CaseBrowserImage = /toolbarButtonGraphics/development/Server16.gif -CaseBrowser.InvalidRefImage = /toolbarButtonGraphics/general/Stop16.gif -CaseBrowser.CaseRootImage = /FoamX/icons/small/folder.gif -CaseBrowser.CaseNameImage = /FoamX/icons/small/text.gif -CaseBrowser.LockedCaseImage = /toolbarButtonGraphics/general/History16.gif - -CaseBrowser.OpenCaseImage = /toolbarButtonGraphics/general/Open16.gif -CaseBrowser.CreateCaseImage = /toolbarButtonGraphics/general/New16.gif -CaseBrowser.ImportCaseImage = /toolbarButtonGraphics/general/Import16.gif -CaseBrowser.DeleteCaseImage = /toolbarButtonGraphics/general/Delete16.gif -CaseBrowser.UnlockCaseImage = /toolbarButtonGraphics/general/Bookmarks16.gif -CaseBrowser.RefreshBrowserImage= /toolbarButtonGraphics/general/Refresh16.gif -Tree.ExpandTreeImage = /toolbarButtonGraphics/navigation/Down16.gif -Tree.CollapseTreeImage = /toolbarButtonGraphics/navigation/Up16.gif - -################################################################################ -# Case Editor Module Icons -################################################################################ -OpenDictionaryImage = /toolbarButtonGraphics/general/Open16.gif -CloseDictionaryImage = /toolbarButtonGraphics/general/Delete16.gif -SaveDictionaryImage = /toolbarButtonGraphics/general/Save16.gif -EditRawDictionaryImage = /toolbarButtonGraphics/general/Edit16.gif -EditDictionaryEntryImage= /toolbarButtonGraphics/general/Open16.gif -EditPatchImage = /toolbarButtonGraphics/general/Open16.gif -EditFieldImage = /toolbarButtonGraphics/general/Open16.gif -FieldImage = /FoamX/icons/small/maths/PhiField.gif -#FieldImage = /toolbarButtonGraphics/general/Cut16.gif - -################################################################################ -# Toolbar buttons -################################################################################ -BackImage = /toolbarButtonGraphics/navigation/Back16.gif -ForwardImage = /toolbarButtonGraphics/navigation/Forward16.gif -StopImage = /toolbarButtonGraphics/general/Stop16.gif -ReloadImage = /toolbarButtonGraphics/general/Refresh16.gif -HomeImage = /toolbarButtonGraphics/navigation/Home16.gif - -CaseBrowser.StopBrowserImage = /toolbarButtonGraphics/media/Stop16.gif -CaseBrowser.StartBrowserImage = /toolbarButtonGraphics/media/Play16.gif -CaseBrowser.StartProcessEditorImage = /toolbarButtonGraphics/general/Information16.gif -CaseBrowser.EditFoamControlDictImage = /toolbarButtonGraphics/general/Information16.gif - -RunCalculationImage = /toolbarButtonGraphics/media/Play16.gif -StartCalculationImage = /toolbarButtonGraphics/media/FastForward16.gif -StopCalculationImage = /toolbarButtonGraphics/media/Stop16.gif -SystemAppClassImage = /toolbarButtonGraphics/general/Stop16.gif -UserAppClassImage = /toolbarButtonGraphics/general/Cut16.gif -OverridenAppClassImage = /toolbarButtonGraphics/general/Open16.gif - -################################################################################ -# External documentation browser -################################################################################ -Browser = mozilla -PDFBrowser = acroread - -################################################################################ -# Default width and height of internal frame windows. -################################################################################ -WindowManager.InternalFrameWidth = 400 -WindowManager.InternalFrameHeight = 350 - -# Initial window Width. -FoamX.FrameWidth = 800 -FoamX.FrameHeight = 600 - -################################################################################ -# Case Editor Icons -################################################################################ -MeshImage = /FoamX/icons/small/maths/mesh.gif -#PatchesImage = /toolbarButtonGraphics/general/Open16.gif -PatchesImage = /FoamX/icons/small/maths/patches.gif -#PatchImage = /toolbarButtonGraphics/general/Open16.gif -PatchImage = /FoamX/icons/small/maths/patch.gif -InvokeUtilityImage = /toolbarButtonGraphics/development/Bean16.gif -ReadMeshImage = /FoamX/icons/small/text.gif -CaseBrowser.CasePropertiesImage = /toolbarButtonGraphics/general/About16.gif -CaseBrowser.EditAppClassesImage = /toolbarButtonGraphics/general/History16.gif -CaseBrowser.InvokeUtilityImage = /toolbarButtonGraphics/development/Bean16.gif - -# Tree line style. Can be Angled, Horizontal or None. -Tree.LineStyle = Angled - -################################################################################ -# Tree Icons -################################################################################ -CaseManager.SaveCurrentCaseImage = /toolbarButtonGraphics/general/Save16.gif -#CaseManager.SaveAllCasesImage = /toolbarButtonGraphics/general/SaveAll16.gif -CaseManager.CloseCurrentCaseImage = /toolbarButtonGraphics/media/Stop16.gif -#CaseManager.CloseAllCasesImage = /toolbarButtonGraphics/general/Delete16.gif -CaseBrowser.CloneCaseImage = /toolbarButtonGraphics/general/Copy16.gif -CaseBrowser.ManagedCaseImage = /toolbarButtonGraphics/development/Bean16.gif -CaseBrowser.HostOfflineImage = /toolbarButtonGraphics/general/Stop16.gif -Case.CaseRootImage = /FoamX/icons/small/folder.gif - -################################################################################ -################################################################################ - diff --git a/applications/utilities/preProcessing/FoamX/Java/resources/MemoryViewLocale.properties b/applications/utilities/preProcessing/FoamX/Java/resources/MemoryViewLocale.properties deleted file mode 100644 index 8b112169ff..0000000000 --- a/applications/utilities/preProcessing/FoamX/Java/resources/MemoryViewLocale.properties +++ /dev/null @@ -1,35 +0,0 @@ -# Sun Public License Notice -# -# The contents of this file are subject to the Sun Public License -# Version 1.0 (the "License"). You may not use this file except in -# compliance with the License. A copy of the License is available at -# http://www.sun.com/ -# -# The Original Code is Forte for Java, Community Edition. The Initial -# Developer of the Original Code is Sun Microsystems, Inc. Portions -# Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved. - -# Sample ResourceBundle properties file - - - - - -# {0} total memory - -# {1} free memory - -# {2} used memory -TXT_STATUS=Used {2} bytes of {0} allocated memory - -# name of window -TXT_TITLE=Memory View - -TXT_GARBAGE=Garbage Collect -TXT_REFRESH=Refresh Now -TXT_CLOSE=Close -TXT_TIME=Refresh time: -TXT_SET_TIME=Apply - - - diff --git a/applications/utilities/preProcessing/FoamX/currentBugs.txt b/applications/utilities/preProcessing/FoamX/currentBugs.txt deleted file mode 100644 index da85ff6cac..0000000000 --- a/applications/utilities/preProcessing/FoamX/currentBugs.txt +++ /dev/null @@ -1,149 +0,0 @@ -Bugs ----- - -1] -(startup) -The C++ codes read the ns.ref file as well as the Java. -They should contact nsd directly. 04/02/03: C++ codes use commandline arguments -passed through. - -2] -(startup) -- also if roots are incorrect and cannot be read) you get no warning. -8/1/02: partially fixed: is warning message from FoamXCaseBrowser ---> FOAM Warning : User specified root directory '"/aaaa/run/LES"' not found. -Removing from root directories list. - -3] -(startup) -If licenseserver gets killed and restarted foamX gets confused. -Unclear message. Should it be possible to reconnect (by rereading ns.ref?). - -4] -(case opening) -if mesh&fields are not consistent (changing number of patches) -you get exception: -FoamXError: -Type mismatch, expected scalar, got invalidType -in function FoamX::FoamXAny::SetValue(const FoamXServer::FoamXAny&) -in file FoamXAny.C at line 87 -CANNOT REPRODUCE. 04/02/03. Adding patch to 'boundaryField' is no problem -(not used). Deleting patch info from 'boundaryField' just makes it use default -values. - -5] -(create case) -Application class is straight pull down instead of now hierarchical. - -6] -(dictionary editor) -Timeformat is Optional but -- if they don't have it, it is scientific -- if they do have it, it is general. - -7] -(import mesh) -If import is meshDescription only FoamX pops up box: "no mesh defined" -Yes? What is the problem? - -8] -no possibility of hand editing arguments. E.g. parallel running? - -9] -parallel running tool - -10] -Logs/Probes: -- text tail log (should wait until log appears. Sleep is done on Java side) -- text view log -- graph tail var in log -- graph view var in log -- graph tail probe -- graph view probe - -11] -(process editor) -On slow machine Corba can timeout (e.g. running foamProcessInfo on turner) -leaving it in bad state. -Ok if timeOut set to larger value. - -12] -(run panel) -Run a case (e.g. icoFoam) in foreground. Kill icoFoam process. -Upsets Corba and FoamX does not work anymore. -CANNOT REPRODUCE. 4/02/03. It pops up panel saying 'icoFoam exited with -return code 15' - -13] -Cannot resolve URL from /FoamX/icons/small/maths/interpolationScheme.gif -Cannot resolve URL from /FoamX/icons/small/maths/snGradScheme.gif - -14] -in caseChooserDlg you are allowed to 'Open Case Browser'. -Is not supported internally. - -15] -No possibility of rereading dictionaries. But is supported for mesh & fields. - -16] -caseBrowser tree does not get refreshed sometimes if case gets closed. - -17] -If clone case fails the case list gets messed up. Unlock-case should remove -any case from caseList in caseBrowser. - -18] -Chris: for his tutorials: no boundary file. When opening case and then saving -it overwrites fields with ones without all the carefully set boundary info. - -19] -Start with arguments to open case automatically: -runFoamX penfold $FOAM_RUN/icoFoam cavityTut -Now in caseBrower busyCursor is still on. -10/04/03. REMOVED busy cursor from openCase - -20] -View Log file. - Followmode does not work. - -21] -(simpleEditor) -Does not have key shortcuts. - - -**** APPEARANCE *************************************************************** - -22] -Close button does not close all dictionary windows. -Open e.g. field (say U), open boundary condition window. -This (managed) window does not close. - -23] -(changes to button icons) -Open/Close_Case_Broswer (they are the same as start/stop FOAM run) -perhaps a terminal for Open_Case_Browser -Close_case (looks like stop run) - -24] -(case setup) -Tools are not accessible from the menu bar at the top of the screen. - -25] -(case panel) -Icons for fields dont work (icons for dictionary entries do!) -(Chris) - -26] (dictionary editor) -Description of an individual entry in a dictionary in bottom panel of -toplevel dictionaryEditor appears only in dictionaryEditor, not in any of the -other editors. - -27] -(case editor) -Nice to know which time is set in database so when you are editing fields -you know which one is being edited. - -28] -(menu bar) -When editing a case there should be File -> Save Case (and other options) - -******************************************************************************** diff --git a/applications/utilities/preProcessing/FoamX/lib/jlfgr-1_0.jar b/applications/utilities/preProcessing/FoamX/lib/jlfgr-1_0.jar deleted file mode 100644 index 6fdf3d5bf0..0000000000 Binary files a/applications/utilities/preProcessing/FoamX/lib/jlfgr-1_0.jar and /dev/null differ diff --git a/applications/utilities/preProcessing/boxTurb/FoamX/boxTurb.cfg b/applications/utilities/preProcessing/boxTurb/FoamX/boxTurb.cfg deleted file mode 100644 index 1b44ec4cba..0000000000 --- a/applications/utilities/preProcessing/boxTurb/FoamX/boxTurb.cfg +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// boxTurb tool definition - -description "Make a box of turbulence which has given energy spectrum and is divergence-free (for rectangular, aligned mesh)"; - -boxTurbDict -{ - type dictionary; - description "boxTurb control dictionary"; - dictionaryPath "constant"; - - entries - { - arguments - { - type rootCaseArguments; - } - - Ea - { - type scalar; - description "Peak/total energy in spectrum"; - default 10.0; - } - - k0 - { - type scalar; - description "Wave number of peak in energy spectrum"; - default 5.0; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/changeDictionary/FoamX/foamInfoExec.cfg b/applications/utilities/preProcessing/changeDictionary/FoamX/foamInfoExec.cfg deleted file mode 100644 index 6b9347d91b..0000000000 --- a/applications/utilities/preProcessing/changeDictionary/FoamX/foamInfoExec.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// foamInfoExec tool definition - -description "Interrogates a case and prints information to screen"; - -foamInfoExecDict -{ - type dictionary; - description "foamInfoExec control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - entries - { - include "$FOAMX_CONFIG/entries/arguments/times.cfg"; - include "$FOAMX_CONFIG/entries/arguments/dictionary.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/engineSwirl/FoamX/engineSwirl.cfg b/applications/utilities/preProcessing/engineSwirl/FoamX/engineSwirl.cfg deleted file mode 100644 index d27431c298..0000000000 --- a/applications/utilities/preProcessing/engineSwirl/FoamX/engineSwirl.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// engineSwirl tool definition - -description "Generates a swirling flow for engine calulations"; - -engineSwirlDict -{ - type dictionary; - description "engineSwirl control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/foamCloneCase/FoamX/foamCloneCase.cfg b/applications/utilities/preProcessing/foamCloneCase/FoamX/foamCloneCase.cfg deleted file mode 100644 index c99ad5d991..0000000000 --- a/applications/utilities/preProcessing/foamCloneCase/FoamX/foamCloneCase.cfg +++ /dev/null @@ -1,59 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// foamCloneCase tool definition - -description "Clones case"; - -foamCloneCaseDict -{ - type dictionary; - description "foamCloneCase control dictionary"; - dictionaryPath "system"; - - entries - { - root - { - type rootDir; - description "Root directory for new case"; - default "target root directory"; - } - - case - { - type word; - description "Name of new case"; - default ; - } - - times - { - type word; - description "Times to clone"; - iconURL "/FoamX/icons/small/maths/stopAt.gif"; - helpURL "controlDict.html"; - default allTime; - valueList - ( - firstTime - latestTime - allTime - noTime - ); - } - - application - { - type word; - description "Foam Application Class"; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/mapFields/FoamX/mapFields.cfg b/applications/utilities/preProcessing/mapFields/FoamX/mapFields.cfg deleted file mode 100644 index 67017ced14..0000000000 --- a/applications/utilities/preProcessing/mapFields/FoamX/mapFields.cfg +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// mapFields tool definition - -description "Maps volume fields from one mesh to another"; - -mapFieldsDict -{ - type dictionary; - description "mapFields control dictionary"; - dictionaryPath "system"; - - types - { - include "patchMapping.cfg"; - } - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/rootAndCase.cfg"; - include "$FOAMX_CONFIG/entries/arguments/sourceRootAndCase.cfg"; - include "$FOAMX_CONFIG/entries/arguments/consistent.cfg"; - include "$FOAMX_CONFIG/entries/arguments/parallelSource.cfg"; - include "$FOAMX_CONFIG/entries/arguments/parallelTarget.cfg"; - } - } - - patchMap - { - type list; - description "list of pairs of source/target patches for mapping"; - elementType patchMapping; - } - - cuttingPatches - { - type list; - description "list of target patches cutting the source domain"; - elementType word; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/mapFields/FoamX/patchMapping.cfg b/applications/utilities/preProcessing/mapFields/FoamX/patchMapping.cfg deleted file mode 100644 index 4ebf2d219c..0000000000 --- a/applications/utilities/preProcessing/mapFields/FoamX/patchMapping.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchMapping -{ - type compound; - description "Source and target patch names for mapping"; - - entries - { - sourcePatch - { - description "Source patch"; - type word; - default ; - } - - targetPatch - { - description "Target patch"; - type word; - default ; - } - } -} - - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/setFields/FoamX/boxToCellFields.cfg b/applications/utilities/preProcessing/setFields/FoamX/boxToCellFields.cfg deleted file mode 100644 index 72a6a5d17d..0000000000 --- a/applications/utilities/preProcessing/setFields/FoamX/boxToCellFields.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boxToCell -{ - type - { - include "../../../mesh/manipulation/cellSet/FoamX/boxToCell.cfg"; - } - - entries - { - fieldValues - { - type fieldValues; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/preProcessing/setFields/FoamX/setFields.cfg b/applications/utilities/preProcessing/setFields/FoamX/setFields.cfg deleted file mode 100644 index ccfa280bfe..0000000000 --- a/applications/utilities/preProcessing/setFields/FoamX/setFields.cfg +++ /dev/null @@ -1,57 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// cellSet tool definition - -description "Initialise fields based on parameters specified in setFieldsDict"; - -setFieldsDict -{ - type dictionary; - description "cellSet control dictionary"; - dictionaryPath "system"; - - types - { - include "$FOAMX_CONFIG/entries/fieldValues/fieldValues.cfg"; - } - - entries - { - arguments - { - type rootCaseTimeArguments; - } - - defaultFieldValues - { - type fieldValues; - } - - regions - { - type list; - description "list of regions"; - - elementType - { - regionType - { - type selection; - - entries - { - include "boxToCellFields.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/thermophysical/adiabaticFlameT/FoamX/adiabaticFlameT.cfg b/applications/utilities/thermophysical/adiabaticFlameT/FoamX/adiabaticFlameT.cfg deleted file mode 100644 index 6ada063a00..0000000000 --- a/applications/utilities/thermophysical/adiabaticFlameT/FoamX/adiabaticFlameT.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// adiabaticFlameT tool definition - -description "Calculates adiabatic flame temperature for a fuel from input paramaters"; - -adiabaticFlameTDict -{ - type dictionary; - description "adiabaticFlameT control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/controlFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/thermophysical/chemkinToFoam/FoamX/chemkinToFoam.cfg b/applications/utilities/thermophysical/chemkinToFoam/FoamX/chemkinToFoam.cfg deleted file mode 100644 index d218cc82d8..0000000000 --- a/applications/utilities/thermophysical/chemkinToFoam/FoamX/chemkinToFoam.cfg +++ /dev/null @@ -1,51 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// chemkinToFoam tool definition - -description "Converts CHEMKINIII thermodynamics and reaction data files into OpenFOAM format"; - -chemkinToFoamDict -{ - type dictionary; - description "chemkinToFoam control dictionary"; - dictionaryPath "system"; - - entries - { - type compound; - optional 1; - entries - { - chemkinFile - { - type word; - description "Chemkin file"; - } - - chemkinThermodynamicsFile - { - type word; - description "Chemkin thermodynamics file"; - } - - foamChemistryFile - { - type word; - description "OpenFOAM chemistry file"; - } - - foamThermodynamicsFile - { - type word; - description "OpenFOAM thermodynamics file"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/thermophysical/equilibriumCO/FoamX/equilibriumCO.cfg b/applications/utilities/thermophysical/equilibriumCO/FoamX/equilibriumCO.cfg deleted file mode 100644 index f47d6cff16..0000000000 --- a/applications/utilities/thermophysical/equilibriumCO/FoamX/equilibriumCO.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// equilibriumCO tool definition - -description "Calculates equilibrium level of carbon monoxide"; - -equilibriumCODict -{ - type dictionary; - description "equilibriumCO control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type rootCaseArguments; - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/thermophysical/equilibriumFlameT/FoamX/equilibriumFlameT.cfg b/applications/utilities/thermophysical/equilibriumFlameT/FoamX/equilibriumFlameT.cfg deleted file mode 100644 index 8c128bc906..0000000000 --- a/applications/utilities/thermophysical/equilibriumFlameT/FoamX/equilibriumFlameT.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// equilibriumFlameT tool definition - -description "Calculates equilibrium flame temperature for a fuel from input parameters"; - -equilibriumFlameTDict -{ - type dictionary; - description "equilibriumFlameT control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/controlFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/applications/utilities/thermophysical/mixtureAdiabaticFlameT/FoamX/mixtureAdiabaticFlameT.cfg b/applications/utilities/thermophysical/mixtureAdiabaticFlameT/FoamX/mixtureAdiabaticFlameT.cfg deleted file mode 100644 index f395744a7b..0000000000 --- a/applications/utilities/thermophysical/mixtureAdiabaticFlameT/FoamX/mixtureAdiabaticFlameT.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.0 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// mixtureAdiabaticFlameT tool definition - -description "Calculate the adiabatic flame temperature for a given fuel mixture at a given temperature"; - -mixtureAdiabaticFlameTDict -{ - type dictionary; - description "mixtureAdiabaticFlameT control dictionary"; - dictionaryPath "system"; - - entries - { - arguments - { - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/controlFile.cfg"; - } - } - } -} - -// ************************************************************************* // diff --git a/bin/FoamX b/bin/FoamX deleted file mode 100755 index 4282b59eb1..0000000000 --- a/bin/FoamX +++ /dev/null @@ -1,240 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------ -# ========= | -# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox -# \\ / O peration | -# \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. -# \\/ M anipulation | -#------------------------------------------------------------------------------ -# License -# This file is part of OpenFOAM. -# -# OpenFOAM is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenFOAM; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -# Script -# runFoamX -# -# Description -# Loader for FoamX Java Client. -# -#------------------------------------------------------------------------------ - -Script=${0##*/} - -usage() { - while [ "$#" -ge 1 ]; do echo "$1"; shift; done - cat< /dev/null - fi -} - - -## isValid jobControlFile -#isValid() { -# grep 'startDate' $1 > /dev/null && \ -# grep 'startTime' $1 > /dev/null && \ -# grep 'userName' $1 > /dev/null && \ -# grep 'foamVersion' $1 > /dev/null && \ -# grep 'code' $1 > /dev/null && \ -# grep 'currentDir' $1 > /dev/null && \ -# grep 'argList' $1 > /dev/null -# -# return $? -#} - - -#------------------------- -# -# Main. -# -#------------------------- - -#if [ -z "$FOAM_JOB_DIR" ]; then -# echo "FOAM_JOB_DIR environment variable not set. This should point to the" -# echo "Foam jobControl directory." -# echo "" -# exit 1 -#fi - -# Make sure that the FoamX configuration directory is available. -if [ ! -d "$FOAMX_CONFIG" ] ; then - echo "Can't find FoamX configuration directory at $FOAMX_CONFIG." - exit 1 -fi - -# Make sure that the FoamX client configuration file is available. -if [ ! -r "$FOAMX_CONFIG/FoamXClient.cfg" ] ; then - echo "Can't find FoamX FoamXClient.cfg file in $FOAMX_CONFIG." - exit 1 -fi - -#- Get host and port from FoamX client client configuration file. -# -HOSTNAME=`getValue "$FOAMX_CONFIG/FoamXClient.cfg" 'org.omg.CORBA.ORBInitialHost'` -if [ $? -ne 0 ]; then - HOSTNAME=`uname -n` -fi -HOSTPORT=`getValue "$FOAMX_CONFIG/FoamXClient.cfg" 'org.omg.CORBA.ORBInitialPort'` -if [ $? -ne 0 ]; then - HOSTPORT=1234 -fi - -#- Parse arguments. -argPort="" -argHost="" -args="" -while [ "$#" -gt 0 ] -do - case "$1" in - -h | -help) - usage - ;; - -host) - argHost=$2 - shift 2 - ;; - -port) - argPort=$2 - shift 2 - ;; - *) - args="$args $1" - shift - ;; - esac -done - - -# Install handler for interrupts -XHB_PID='' -trap cleanup 0 2 3 15 - - -#- Use STARTUP flag to determine whether or not to run runFoamXHB -if [ "$argPort" -o "$argHost" ]; then - echo "Connecting to server running on $argHost , port $argPort" - HOSTNAME=${argHost:-$HOSTNAME} - HOSTPORT=${argPort:-$HOSTPORT} -elif [ -r $FOAMX_CONFIG/ns.ref ]; then - echo "Warning: a server already seems to be running." - echo "(Detected server reference $FOAMX_CONFIG/ns.ref)" - echo "Do you want to kill this server ? (n)" - read answ - answ=${answ:-n} - if [ "$answ" = 'y' ]; then - killFoamX - runFoamXHB < /dev/null& - XHB_PID=$! - fi -else - killFoamX > /dev/null - runFoamXHB < /dev/null& - XHB_PID=$! -fi - - -##- Remove any invalid entries in finishedJobs -## (upset ProcessEditor) -#( -# cd $FOAM_JOB_DIR -# if [ "`ls finishedJobs`" ]; then -# for f in finishedJobs/* -# do -# isValid $f -# if [ $? -ne 0 ]; then -# echo "Removing invalid job file $f" -# rm -f $f -# fi -# done -# echo "" -# fi -#) - -if [ "$XHB_PID" ]; then - #- Wait for nsd to have started - while [ ! -f $FOAMX_CONFIG/ns.ref ] - do - sleep 1 - done - - #- Wait for runFoamXHB to have started - while [ ! -f $FOAMX_CONFIG/HostBrowserLog.xml ] - do - sleep 1 - done -fi - -#- For mico > 2.3.7 : force to use 1.0 -#orbArgs="-ORBDefaultInitRef corbaloc:iiop:1.0:$HOSTNAME:$HOSTPORT" -orbArgs="-ORBDefaultInitRef corbaloc:iiop:1.0:$HOSTNAME:$HOSTPORT -ORBInitialPort $HOSTPORT -ORBInitialHost $HOSTNAME" -#echo "Starting Java with ORB arguments : $orbArgs" - -# Set Language to English -oldLang=$LANG -export LANG=en_EN -echo "Setting LANG to $LANG" - -#------------------------------------------------------------------------------ -# Run FoamX via jar file. -jars='.' -for f in $FOAMX_PATH/lib/*.jar -do - echo "Using jar $f" - jars="${jars}:${f}" -done -java \ - -cp "$jars" \ - -DFoamX.SystemPath=$WM_PROJECT_DIR \ - -DFoamX.SystemConfigPath=$FOAMX_CONFIG \ - -DFoamX.UserConfigPath=$FOAMX_CONFIG \ - FoamX.App $orbArgs $args - -#------------------------------------------------------------------------------ - -# Reset Language to original -export LANG=$oldLang diff --git a/bin/foamCheckJobs b/bin/foamCheckJobs index 8aca63233f..807e624f05 100755 --- a/bin/foamCheckJobs +++ b/bin/foamCheckJobs @@ -156,8 +156,7 @@ information on the machine the process ran on and release the lock if the program is no longer running. Requirements: the environment variable FOAM_JOB_DIR needs to point to the -license directory and all machines have to be reachable using rsh/ssh. -(as set in \$FOAMX_CONFIG/FoamX.cfg) +license directory and all machines have to be reachable using ssh. The output from checking all running jobs is collected in an optional file. @@ -205,12 +204,7 @@ else fi #- obtain rsh method -RSH='rsh' -if [ -f $FOAMX_CONFIG/FoamX.cfg ]; then - if grep 'remoteShell' $FOAMX_CONFIG/FoamX.cfg >/dev/null; then - RSH=`getEntry $FOAMX_CONFIG/FoamX.cfg remoteShell` - fi -fi +RSH='ssh' echo "Using remote shell type : $RSH" echo "" diff --git a/bin/foamInstallationTest b/bin/foamInstallationTest index bfcf841eac..49329c11ca 100755 --- a/bin/foamInstallationTest +++ b/bin/foamInstallationTest @@ -27,7 +27,7 @@ # foamInstallationTest # # Description -# Checks the machine system, the installation of FOAM, and the user's +# Checks the machine system, the installation of FOAM, and the user's # personal configuration for running FOAM. # #------------------------------------------------------------------------------ @@ -158,7 +158,7 @@ reportEnv () { else echo "`fixlen "$1" 21` --------- env variable not set --------- $3" fi - + ERROR="false" if [ "$EXISTS" = "no" ] || [ "$ON_PATH" = "no" ]; then ERROR="true" @@ -168,7 +168,7 @@ reportEnv () { echo "WARNING: CRITICAL ERROR" echo fi - + } findExec() { @@ -184,7 +184,7 @@ findExec() { return 0 fi ;; - *) + *) if [ ! -d "$d/$2" -a -x "$d/$2" ]; then IFS=$OLD_IFS echo "$d/$2" @@ -205,9 +205,9 @@ reportExecutable () { echo "`fixlen "$1" 9`" "*** not installed ***" VERSION="" case $1 in - icoFoam) echo " CRITICAL ERROR" + icoFoam) echo " CRITICAL ERROR" CRITICALERROR=`expr $CRITICALERROR + 1` ;; - gcc) echo " CRITICAL ERROR" + gcc) echo " CRITICAL ERROR" CRITICALERROR=`expr $CRITICALERROR + 1`;; gtar) ;; gzip) ;; @@ -238,9 +238,9 @@ reportExecutable () { echo " foam settings: $APP_SPEC" echo " current path : $APP_PATH" case $1 in - icoFoam) echo " CRITICAL ERROR" + icoFoam) echo " CRITICAL ERROR" CRITICALERROR=`expr $CRITICALERROR + 1` ;; - gcc) echo " CRITICAL ERROR" + gcc) echo " CRITICAL ERROR" CRITICALERROR=`expr $CRITICALERROR + 1`;; gtar) ;; gzip) ;; @@ -316,7 +316,7 @@ case $OS in elif [ "`echo $PINGTEST | grep "unknown host"`" != "" ] ; then RESULT="No_entry_for_\"$1\"_in_/etc/hosts" else - RESULT="Networking_cannot_reach_$1" + RESULT="Networking_cannot_reach_$1" fi ;; *) @@ -326,7 +326,7 @@ case $OS in elif [ "`echo $PINGTEST | grep "unknown host"`" != "" ] ; then RESULT="No_entry_for_\"$1\"_in_/etc/hosts" else - RESULT="Networking_cannot_reach_$1" + RESULT="Networking_cannot_reach_$1" fi ;; esac @@ -349,7 +349,7 @@ EOF } checkTelnetPort () { -if [ -x "/usr/bin/telnet" ] || [ -x "/bin/telnet" ] ; then +if [ -x "/usr/bin/telnet" ] || [ -x "/bin/telnet" ] ; then RESULT=`telnetPortTest $1 $2 2>&1 | egrep "onnect.* [t|r]"` if [ "`echo $RESULT | grep 'Connected to'`" ] ; then RESULT='Successful' @@ -404,11 +404,11 @@ if [ `length $USER_NAME` -eq 0 ] ; then fi # case $USER_SHELL in - csh | tcsh) + csh | tcsh) USER_CONFIG_TYPE="cshrc" echo "`fixlen "Shell:" $WIDTH` ${USER_SHELL}" ;; - bash | ksh) + bash | ksh) USER_CONFIG_TYPE="bashrc" echo "`fixlen "Shell:" $WIDTH` ${USER_SHELL}" ;; @@ -445,7 +445,7 @@ fi # if [ `length $USER_NAME` -eq 0 ]; then echo "`fixlen "User:" $WIDTH` ${USER_NAME}" - echo "FATAL ERROR: Cannot stat user name ${USER_NAME}." + echo "FATAL ERROR: Cannot stat user name ${USER_NAME}." echo "" echo " Contact your system administrator, " echo " Foam${FOAM_VERSION} needs a valid " @@ -529,7 +529,6 @@ echo "" reportEnv '$FOAM_USER_APPBIN' '$PATH' "no" reportEnv '$FOAM_APPBIN' '$PATH' "yes" reportEnv '$WM_DIR' '$PATH' "yes" -reportEnv '$FOAMX_PATH' '$PATH' "yes" reportEnv '$CEI_HOME' '$PATH' "no" echo "" reportEnv '$JAVA_PATH' '$PATH' "no" @@ -562,7 +561,7 @@ reportExecutable gzip if [ "$OS" = "Linux" ] ; then reportExecutable tar else - reportExecutable gtar + reportExecutable gtar fi reportExecutable icoFoam "${FOAM_APPBIN}/icoFoam" hline #-------------------- @@ -606,12 +605,12 @@ hline #-------------------- echo "" if [ $FATALERROR -gt 0 ] ; then echo "The system test has evoked $FATALERROR fatal error(s)." -else +else echo "Base configuration ok." fi echo "" if [ $CRITICALERROR -gt 0 ]; then - echo "The foam installation contains $CRITICALERROR critical error(s)." + echo "The foam installation contains $CRITICALERROR critical error(s)." else echo "Critical systems ok." fi diff --git a/bin/foamSystemCheck b/bin/foamSystemCheck index b2f4aef209..21eb19f3fd 100755 --- a/bin/foamSystemCheck +++ b/bin/foamSystemCheck @@ -27,7 +27,7 @@ # foamSystemCheck # # Description -# Checks the machine system and the user's +# Checks the machine system and the user's # personal configuration for running FOAM. # #------------------------------------------------------------------------------ @@ -101,7 +101,7 @@ checkSsh pingTest () { case $OS in - SunOS) + SunOS) if [ -x '/usr/sbin/ping' ] ; then PINGTEST=`/usr/sbin/ping $1 2>&1` if [ -n "`echo $PINGTEST | grep 'alive'`" ] ; then @@ -109,13 +109,13 @@ case $OS in elif [ -n "`echo $PINGTEST | grep 'unknown host'`" ] ; then RESULT="Unknown_host" else - RESULT="Networking_not_set" + RESULT="Networking_not_set" fi else RESULT="Ping_not_installed_in_usual_path" fi ;; - *) + *) if [ -x '/bin/ping' ] ; then PINGTEST=`/bin/ping -w 3 -c 1 $1 2>&1` if [ -n "`echo $PINGTEST | grep '1 received'`" ] ; then @@ -145,19 +145,19 @@ EOF } checkTelnetPort () { -if [ -x "/usr/bin/telnet" ] || [ -x "/bin/telnet" ] ; then - RESULT=`telnetPortTest $1 $2 2>&1 | egrep "onnect.* [t|r]"` - if [ "`echo $RESULT | grep 'Connected to'`" ] ; then - RESULT='Successful' +if [ -x "/usr/bin/telnet" ] || [ -x "/bin/telnet" ] ; then + RESULT=`telnetPortTest $1 $2 2>&1 | egrep "onnect.* [t|r]"` + if [ "`echo $RESULT | grep 'Connected to'`" ] ; then + RESULT='Successful' elif [ "`echo $RESULT | grep 'Connection refused'`" ] ; - then - RESULT='Unsuccessful, connection refused*' - else - RESULT="Not active*" - fi -else - RESULT='No_telnet_running:_cannot_check*' -fi + then + RESULT='Unsuccessful, connection refused*' + else + RESULT="Not active*" + fi +else + RESULT='No_telnet_running:_cannot_check*' +fi } checkRsh () { @@ -234,7 +234,7 @@ fi # if [ `length $USER_NAME` -eq 0 ]; then echo "`fixlen "User:" $WIDTH` ${USER_NAME}" - echo "FATALERROR: Cannot stat user name ${USER_NAME}." + echo "FATALERROR: Cannot stat user name ${USER_NAME}." echo " Foam${FOAM_VERSION} needs a valid user name." echo " Contact your system administrator. " echo "" @@ -244,20 +244,6 @@ else fi # -heading "Checking networking..." -checkNetworking -if [ $SSHRSHOK -eq 1 ]; then - echo "(*) Only one of rsh or ssh is required and only by FoamX." -elif [ $SSHRSHOK -gt 1 ]; then - echo "FATALERROR: No remote shell available." - echo " FoamX requires passwordless " - echo " 'ssh' and/or 'rsh' to the current host." - echo " Contact your system administrator if you intend " - echo " to run FoamX." - echo - FATALERROR=`expr $FATALERROR + 1` -fi - echo "" echo "" if [ $FATALERROR -gt 0 ]; then diff --git a/bin/killFoamX b/bin/killFoamX deleted file mode 100755 index 5363e0e0d0..0000000000 --- a/bin/killFoamX +++ /dev/null @@ -1,161 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------ -# ========= | -# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox -# \\ / O peration | -# \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. -# \\/ M anipulation | -#------------------------------------------------------------------------------ -# License -# This file is part of OpenFOAM. -# -# OpenFOAM is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenFOAM; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -# Script -# killFoamX -# -# Description -# Kill script for the FoamX client/server -# -#------------------------------------------------------------------------------ -Script=${0##*/} - - -#- Set some system specifics -case `uname -s` in - HP-UX*) - UNIX95=a; export UNIX95 - ;; - IRIX*) - _XPG=1; export _XPG - ;; -esac -COLUMNS=200 -export COLUMNS - -usage() { - while [ "$#" -ge 1 ]; do echo "$1"; shift; done - cat</dev/null || usage "directory does not exist: '$caseDir'" - ;; - *) - usage "unknown option/argument: '$*'" - ;; - esac -fi - - -# Install handler for interrupts -XHB_PID='' -trap cleanup 0 2 3 15 - - -#- Use STARTUP flag to determine whether or not to run runFoamXHB -pid=`getPID 'runPatchToolServer'` -echo "runPatchToolServer : pid:$pid" - -if [ "$pid" ]; then - echo "Using running runPatchToolServer (pid $pid) ..." -else - $ScriptDir/runPatchToolServer < /dev/null& - XHB_PID=$! -fi - - -#- For mico > 2.3.7 : force to use 1.0 -orbArgs="-ORBDefaultInitRef corbaloc:iiop:1.0:$HOSTNAME:$HOSTPORT" - -#------------------------------------------------------------------------------ -# Run PatchTool via jar file. -PATCHTOOL_PATH=$FOAM_UTILITIES/mesh/manipulation/patchTool -jars='.' -for f in $PATCHTOOL_PATH/lib/*.jar -do - echo "Using jar $f" - jars="${jars}:${f}" -done -set -x -$jdkhome/bin/java \ - -cp "$jars" \ - -DFoamX.SystemPath=$WM_PROJECT_DIR \ - -DFoamX.SystemConfigPath=$FOAMX_CONFIG \ - -DFoamX.UserConfigPath=$FOAMX_CONFIG \ - -DFoamX.PatchToolPath=$PATCHTOOL_PATH \ - PatchTool/PatchTool $orbArgs $args - -#------------------------------------------------------------------------------ diff --git a/bin/runFoamXHB b/bin/runFoamXHB deleted file mode 100755 index 14faf43a79..0000000000 --- a/bin/runFoamXHB +++ /dev/null @@ -1,149 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------ -# ========= | -# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox -# \\ / O peration | -# \\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd. -# \\/ M anipulation | -#------------------------------------------------------------------------------ -# License -# This file is part of OpenFOAM. -# -# OpenFOAM is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenFOAM; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -# Script -# runFoamXHB -# -# Description -# Loader for FoamX host browser. -# -#------------------------------------------------------------------------------ - -#- Set some system specifics -case `uname -s` in - HP-UX*) - UNIX95=a; export UNIX95 - ;; - IRIX*) - _XPG=1; export _XPG - ;; -esac -COLUMNS=200 -export COLUMNS - - -# getValue file var -# Prints value of 'var=value' in file. -getValue() { - val=`grep "^[ \t]*$2[ \t]*=" $1 | sed -e "s/^[ \t]*$2[ \t]*=//" | head -1` - if [ -z "$val" ]; then - return 1 - fi - echo "$val" - return 0 -} - -# getPID processName -# Prints pid of named process (looks at users processes only) -getPID() { - ps -u $LOGNAME -o 'pid,args' | fgrep " $1" | fgrep -v fgrep | head -1 | awk '{ print $1 }' -} - -# cleanup -# removes all excess processes and files. Used in signal handler -cleanup() { - echo "runFoamXHB : cleanup" - - #- reset traps - trap 0 2 3 15 - - NAMESERV_THREADS=`ps -u $LOGNAME -o 'pid,args' | fgrep " nsd" | fgrep "$myIOP" | fgrep -v fgrep | head -1 | awk '{ print $1 }'` - # Kill the MICO nameserver if it is running - if [ "$NAMESERV_THREADS" ]; then - echo "`basename $0`: Killing name server nsd(pid $NAMESERV_THREADS)." - kill -9 $NAMESERV_THREADS - else - echo "`basename $0`: Name server is not running." - fi - - #- Clean up files - rm -f $FOAMX_CONFIG/HostBrowserLog.xml - - #- nsd should already be done by nsd subshell but just to make sure. - rm -f $FOAMX_CONFIG/ns.ref -} - -#------------------------- -# -# Main. -# -#------------------------- - -# Make sure that the FoamX configuration directory is available. -if [ ! -d "$FOAMX_CONFIG" ] ; then - echo "Can't find FoamX configuration directory at $FOAMX_CONFIG." - exit 1 -fi - -# Make sure that the FoamX client configuration file is available. -if [ ! -r "$FOAMX_CONFIG/FoamXClient.cfg" ] ; then - echo "Can't find FoamX FoamXClient.cfg file in $FOAMX_CONFIG." - exit 1 -fi - -# Get host and port from FoamX client client configuration file. -HOSTNAME=`getValue "$FOAMX_CONFIG/FoamXClient.cfg" 'org.omg.CORBA.ORBInitialHost'` -if [ $? -ne 0 ]; then - HOSTNAME=`uname -n` -fi -HOSTPORT=`getValue "$FOAMX_CONFIG/FoamXClient.cfg" 'org.omg.CORBA.ORBInitialPort'` -if [ $? -ne 0 ]; then - HOSTPORT=1234 -fi - -if [ "$HOSTNAME" = 'localhost' ]; then - echo 'Your hostname is set to localhost. This tends to give problems in FoamX.' - echo 'Either change your hostname or specify a fully resolved ip address in' - echo 'the ORBInitialHost setting in the $FOAMX_CONFIG/FoamXClient.cfg' - exit 1 -fi - -myIOP="inet:$HOSTNAME:$HOSTPORT" - -#- Cleanup processes started by me -trap cleanup 0 2 3 15 - -rm -f $FOAMX_CONFIG/ns.ref -echo "Starting NameServer with $myIOP ..." -nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref /dev/null || usage "directory does not exist: '$caseDir'" - ;; - *) - usage "unknown option/argument: '$*'" - ;; - esac -fi - -#- Cleanup processes started by me -NSD_PID='' -trap cleanup 0 2 3 15 - -if [ -r $FOAMX_CONFIG/ns2.ref ]; then - echo "Using server reference $FOAMX_CONFIG/ns2.ref" -else - echo "Starting NameServer (nsd) with $myIOP ..." - - nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns2.ref " - exit 1 -fi - -FILE=$FOAMX_CONFIG/entries/arguments/$1.cfg -if [ -e $FILE ] ; then - echo "File $FILE already exists" - exit 1 -fi - -echo "Creating file $FILE" -writeFile $1 > $FILE diff --git a/etc/apps/FoamX/createFlagWithArgument b/etc/apps/FoamX/createFlagWithArgument deleted file mode 100644 index af4c8d1441..0000000000 --- a/etc/apps/FoamX/createFlagWithArgument +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------ -# ========= | -# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox -# \\ / O peration | -# \\ / A nd | Copyright (C) 1991-2005 OpenCFD Ltd. -# \\/ M anipulation | -#------------------------------------------------------------------------------ -# License -# This file is part of OpenFOAM. -# -# OpenFOAM is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or (at your -# option) any later version. -# -# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenFOAM; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Script -# createFlagWithArgument -# -# Description -# Creates a FoamX configuration file for a command line flag with argument, -# e.g. -scale 0.1, in the $FOAMX_CONFIG/entries/arguments directory. -# The argument entry must be edited, e.g. to specify the type. -#------------------------------------------------------------------------------ - -writeFile () { -cat < " - exit 1 -fi - -FILE=$FOAMX_CONFIG/entries/arguments/$1.cfg -if [ -e $FILE ] ; then - echo "File $FILE exists" - exit 1 -fi - -echo "Creating file $FILE" -writeFile $1 $2 > $FILE - -echo "YOU MUST EDIT SOME ENTRIES (****) IN FILE:" -echo " $FILE" diff --git a/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesCombustion b/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesCombustion deleted file mode 100644 index 8fd0ad1794..0000000000 --- a/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesCombustion +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ""; - case ""; - instance ""; - local ""; - - class dictionary; - object thermophysicalProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -thermoType hhuMixtureThermo>>>>; - -stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 15.675; - -fuel fuel 1 44.0962 200 5000 1000 7.53414 0.0188722 -6.27185e-06 9.14756e-10 -4.78381e-14 -16467.5 -17.8923 0.933554 0.0264246 6.10597e-06 -2.19775e-08 9.51493e-12 -13958.5 19.2017 1.67212e-06 170.672; - -oxidant oxidant 1 28.8504 200 6000 1000 3.10205 0.00123963 -4.17512e-07 6.60292e-11 -3.87448e-15 -985.517 5.35187 3.58378 -0.0007269 1.66985e-06 -1.08452e-10 -4.31951e-13 -1050.53 3.11223 1.67212e-06 170.672; - -reactants reactants 24.8095 29.4649 200 5000 1000 3.28069 0.00195035 -6.53483e-07 1.00239e-10 -5.64653e-15 -1609.55 4.41496 3.47696 0.000367499 1.84866e-06 -9.8993e-10 -3.10214e-14 -1570.81 3.76075 1.67212e-06 170.672; - -products products 1 28.3233 200 5000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; - -burntProducts burntProducts 25.8095 28.3233 200 6000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesMixture b/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesMixture deleted file mode 100644 index 7dc3303f37..0000000000 --- a/etc/apps/FoamX/defaults/constant/thermophysicalPropertiesMixture +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ".OpenFOAM-1.2/apps/FoamX"; - case "defaults"; - instance "constant"; - local ""; - - class dictionary; - object thermophysicalProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// Thermophysical model -thermoType hThermo>>>>; - -mixture air 1 28.9 1007 0 1.84e-05 0.7; - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/defaults/system/controlDict b/etc/apps/FoamX/defaults/system/controlDict deleted file mode 100644 index 58ed480f87..0000000000 --- a/etc/apps/FoamX/defaults/system/controlDict +++ /dev/null @@ -1,56 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ".OpenFOAM-1.2/apps/FoamX"; - case "defaults"; - instance "system"; - local ""; - - class dictionary; - object controlDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -startFrom startTime; - -startTime 0; - -stopAt endTime; - -endTime 0; - -deltaT 0; - -writeControl timeStep; - -writeInterval 1; - -purgeWrite 0; - -writeFormat ascii; - -writePrecision 6; - -writeCompression uncompressed; - -timeFormat general; - -timePrecision 6; - -graphFormat raw; - -runTimeModifiable yes; - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/defaults/system/controlDictAdjustTimeStep b/etc/apps/FoamX/defaults/system/controlDictAdjustTimeStep deleted file mode 100644 index b191bac447..0000000000 --- a/etc/apps/FoamX/defaults/system/controlDictAdjustTimeStep +++ /dev/null @@ -1,62 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ".OpenFOAM-1.2/apps/FoamX"; - case "defaults"; - instance "system"; - local ""; - - class dictionary; - object controlDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -startFrom startTime; - -startTime 0; - -stopAt endTime; - -endTime 0; - -deltaT 0; - -writeControl timeStep; - -writeInterval 1; - -purgeWrite 0; - -writeFormat ascii; - -writePrecision 6; - -writeCompression uncompressed; - -timeFormat general; - -timePrecision 6; - -graphFormat raw; - -runTimeModifiable yes; - -adjustTimeStep no; - -maxCo 0.5; - -maxDeltaT 0; - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/defaults/system/controlDictSteady b/etc/apps/FoamX/defaults/system/controlDictSteady deleted file mode 100644 index e752534fe8..0000000000 --- a/etc/apps/FoamX/defaults/system/controlDictSteady +++ /dev/null @@ -1,56 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - - root ".OpenFOAM-1.2/apps/FoamX"; - case "defaults"; - instance "system"; - local ""; - - class dictionary; - object controlDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -startFrom startTime; - -startTime 0; - -stopAt endTime; - -endTime 0; - -deltaT 1; - -writeControl timeStep; - -writeInterval 1; - -purgeWrite 0; - -writeFormat ascii; - -writePrecision 6; - -writeCompression uncompressed; - -timeFormat general; - -timePrecision 6; - -graphFormat raw; - -runTimeModifiable yes; - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DebugSwitches.cfg b/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DebugSwitches.cfg deleted file mode 100644 index 9ee3fc2693..0000000000 --- a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DebugSwitches.cfg +++ /dev/null @@ -1,668 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DebugSwitches -{ - type dictionary; - - entries - { - aC11H10 debugSwitch; - addCell debugSwitch; - addFace debugSwitch; - addPoint debugSwitch; - algebraicPair debugSwitch; - amgCoupledInterface debugSwitch; - amgInterfaceField debugSwitch; - anisotropic debugSwitch; - APIdiffCoefFunc debugSwitch; - Ar debugSwitch; - areaScalarField debugSwitch; - areaTensorField debugSwitch; - areaVectorField debugSwitch; - atomizationModel debugSwitch; - attachDetach debugSwitch; - backward debugSwitch; - basePatch debugSwitch; - basicMesh debugSwitch; - basicMixture debugSwitch; - basicThermo debugSwitch; - bC11H10 debugSwitch; - BDCG debugSwitch; - BICCG debugSwitch; - BirdCarreau debugSwitch; - blended debugSwitch; - blobsSheetAtomization debugSwitch; - blobsSwirlInjector debugSwitch; - booleanSurface debugSwitch; - boundaryCutter debugSwitch; - boundaryMesh debugSwitch; - boundaryToFace debugSwitch; - bounded debugSwitch; - boundedBackward debugSwitch; - boxToCell debugSwitch; - boxToFace debugSwitch; - boxToPoint debugSwitch; - breakupModel debugSwitch; - C10H22 debugSwitch; - C12H26 debugSwitch; - C13H28 debugSwitch; - C14H30 debugSwitch; - C16H34 debugSwitch; - C2H5OH debugSwitch; - C2H6 debugSwitch; - C2H6O debugSwitch; - C3H6O debugSwitch; - C3H8 debugSwitch; - C4H10O debugSwitch; - C6H14 debugSwitch; - C6H6 debugSwitch; - C7H16 debugSwitch; - C7H8 debugSwitch; - C8H10 debugSwitch; - C8H18 debugSwitch; - C9H20 debugSwitch; - calculated debugSwitch; - CallbackRegistry debugSwitch; - Cartesian debugSwitch; - cell debugSwitch; - cellClassification debugSwitch; - cellCuts debugSwitch; - cellDistFuncs debugSwitch; - cellLimited debugSwitch; - cellList debugSwitch; - cellLooper debugSwitch; - cellMDLimited debugSwitch; - cellModeller debugSwitch; - cellPoint debugSwitch; - cellPointFace debugSwitch; - cellSet debugSwitch; - cellToCell debugSwitch; - cellToFace debugSwitch; - cellToPoint debugSwitch; - cellZone debugSwitch; - CH3OH debugSwitch; - chemistryReader debugSwitch; - chemkinReader debugSwitch; - ChomiakInjector debugSwitch; - clippedLinear debugSwitch; - Cloud debugSwitch; - CoEuler debugSwitch; - CoGamma2 debugSwitch; - collisionModel debugSwitch; - commonRailInjector debugSwitch; - commSchedule debugSwitch; - componentMixed debugSwitch; - compound debugSwitch; - const debugSwitch; - constant debugSwitch; - constInjector debugSwitch; - coordinateSystem debugSwitch; - corrected debugSwitch; - coupled debugSwitch; - CrankNicholson debugSwitch; - CrossPowerLaw debugSwitch; - cubeRootVol debugSwitch; - cubic debugSwitch; - cubicCorrection debugSwitch; - cyclic debugSwitch; - cyclicLduCoupledInterface debugSwitch; - cyclicLduInterface debugSwitch; - cyclicLduInterfaceField debugSwitch; - cylindrical debugSwitch; - database debugSwitch; - dataSchedule debugSwitch; - DCG debugSwitch; - DeardorffDiffStress debugSwitch; - default debugSwitch; - definedHollowConeInjector debugSwitch; - definedInjector debugSwitch; - definedPressureSwirlInjector debugSwitch; - deformationEnergy debugSwitch; - diagonal debugSwitch; - diagonalSolver debugSwitch; - diagTensorField debugSwitch; - DIC debugSwitch; - DICGaussSeidel debugSwitch; - dictionary debugSwitch; - DILU debugSwitch; - dimensionedTypes debugSwitch; - dimensionSet debugSwitch; - directCombineFaces debugSwitch; - directDuplicatePoints debugSwitch; - directHexRef8 debugSwitch; - directionMixed debugSwitch; - directMappedPatch debugSwitch; - directMeshCutAndRemove debugSwitch; - directPolyTopoChange debugSwitch; - directRemoveCells debugSwitch; - directRemoveFaces debugSwitch; - directRemovePoints debugSwitch; - disallowDefaultFvPatchField debugSwitch; - dispersionLESModel debugSwitch; - dispersionModel debugSwitch; - dispersionRASModel debugSwitch; - distortionEnergy debugSwitch; - downwind debugSwitch; - dragModel debugSwitch; - dynMixedSmagorinsky debugSwitch; - dynOneEqEddy debugSwitch; - dynSmagorinsky debugSwitch; - edgeInterpolation debugSwitch; - edgeIntersections debugSwitch; - edgeList debugSwitch; - edgeScalarField debugSwitch; - edgeSurface debugSwitch; - edgeTensorField debugSwitch; - edgeVectorField debugSwitch; - elementScalarField debugSwitch; - elementTensorField debugSwitch; - elementVectorField debugSwitch; - empty debugSwitch; - engineMesh debugSwitch; - enrichedPatch debugSwitch; - entry debugSwitch; - ETAB debugSwitch; - Euler debugSwitch; - evaporationModel debugSwitch; - exponential debugSwitch; - extendedLeastSquares debugSwitch; - extendedLeastSquaresVectors debugSwitch; - fa debugSwitch; - faBoundaryMesh debugSwitch; - faceAreaPair debugSwitch; - FaceCellWave debugSwitch; - faceCoupleInfo debugSwitch; - faceLimited debugSwitch; - faceList debugSwitch; - faceMDLimited debugSwitch; - faceSet debugSwitch; - faceToCell debugSwitch; - faceToFace debugSwitch; - faceToPoint debugSwitch; - faceZone debugSwitch; - faMesh debugSwitch; - faPatchField debugSwitch; - faScalarMatrix debugSwitch; - faSchemes debugSwitch; - fastLduTriLookup debugSwitch; - faTensorMatrix debugSwitch; - faVectorMatrix debugSwitch; - FDIC debugSwitch; - featureEdgeMesh debugSwitch; - features debugSwitch; - fields debugSwitch; - fieldToCell debugSwitch; - file debugSwitch; - fileName debugSwitch; - finiteVolume debugSwitch; - fixedEnthalpy debugSwitch; - fixedFluxBuoyantPressure debugSwitch; - fixedFluxPressure debugSwitch; - fixedGradient debugSwitch; - fixedNormalSlip debugSwitch; - fixedUnburntEnthalpy debugSwitch; - fixedValue debugSwitch; - fixedValueOutflow debugSwitch; - fluxCorrectedVelocity debugSwitch; - foamChemistryReader debugSwitch; - FoamX debugSwitch; - FoamXError debugSwitch; - fourth debugSwitch; - freestream debugSwitch; - freestreamPressure debugSwitch; - fv debugSwitch; - fvMatrix debugSwitch; - fvMesh debugSwitch; - fvMeshDistribute debugSwitch; - fvMotionSolver debugSwitch; - fvPatchField debugSwitch; - fvScalarMatrix debugSwitch; - fvSchemes debugSwitch; - fvSolution debugSwitch; - fvSphericalTensorMatrix debugSwitch; - fvSymmTensorMatrix debugSwitch; - fvTensorMatrix debugSwitch; - fvVectorMatrix debugSwitch; - GAMG debugSwitch; - gamgAgglomeration debugSwitch; - gamgInterface debugSwitch; - gamgInterfaceField debugSwitch; - Gamma debugSwitch; - Gamma01 debugSwitch; - Gamma2 debugSwitch; - Gamma201 debugSwitch; - Gamma2Limit debugSwitch; - Gamma2V debugSwitch; - GammaLimit debugSwitch; - GammaV debugSwitch; - Gauss debugSwitch; - GaussSeidel debugSwitch; - general debugSwitch; - geomCellLooper debugSwitch; - geometricFields debugSwitch; - geometricSurfacePatch debugSwitch; - global debugSwitch; - globalMeshData debugSwitch; - globalPoints debugSwitch; - globalProcessor debugSwitch; - gnuplot debugSwitch; - gradientDispersionRAS debugSwitch; - gradientEnthalpy debugSwitch; - gradientUnburntEnthalpy debugSwitch; - Gulders debugSwitch; - GuldersEGR debugSwitch; - H2O debugSwitch; - harmonic debugSwitch; - hashTable debugSwitch; - HashTable debugSwitch; - hCombustionThermo debugSwitch; - heatTransferModel debugSwitch; - hexCellLooper debugSwitch; - hexRef8 debugSwitch; - hhuCombustionThermo debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hhuMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo debugSwitch; - hMixtureThermo>>>> debugSwitch; - hMixtureThermo>>>> debugSwitch; - hollowConeInjector debugSwitch; - hThermo>>>> debugSwitch; - hThermo>>>> debugSwitch; - hThermo>>>> debugSwitch; - IC8H18 debugSwitch; - ICCG debugSwitch; - IDEA debugSwitch; - IFstream debugSwitch; - indexedOctree debugSwitch; - indexedParticle debugSwitch; - injectorModel debugSwitch; - injectorType debugSwitch; - inletOutlet debugSwitch; - interpolations debugSwitch; - intersectedSurface debugSwitch; - inverseLinear debugSwitch; - IOobject debugSwitch; - IOptrList debugSwitch; - IOPtrList debugSwitch; - IOPtrList debugSwitch; - IOPtrList debugSwitch; - jplot debugSwitch; - kEpsilon debugSwitch; - kOmegaSST debugSwitch; - KRR4 debugSwitch; - labelField debugSwitch; - labelList debugSwitch; - labelListList debugSwitch; - labelToCell debugSwitch; - labelToFace debugSwitch; - labelToPoint debugSwitch; - LamBremhorstKE debugSwitch; - laminar debugSwitch; - laminarFlameSpeed debugSwitch; - laplace debugSwitch; - LaunderGibsonRSTM debugSwitch; - LaunderSharmaKE debugSwitch; - layerAdditionRemoval debugSwitch; - layered debugSwitch; - lduCoupledInterface debugSwitch; - lduInterface debugSwitch; - lduInterfaceField debugSwitch; - lduMatrix debugSwitch; - lduMesh debugSwitch; - leastSquares debugSwitch; - leastSquaresVectors debugSwitch; - LESdelta debugSwitch; - LESfilter debugSwitch; - LESmodel debugSwitch; - level debugSwitch; - licence debugSwitch; - LienCubicKE debugSwitch; - LienCubicKELowRe debugSwitch; - LienLeschzinerLowRe debugSwitch; - limited debugSwitch; - limitedCubic debugSwitch; - limitedCubic01 debugSwitch; - limitedCubicV debugSwitch; - limitedGamma debugSwitch; - limitedLimitedCubic debugSwitch; - limitedLimitedLinear debugSwitch; - limitedLinear debugSwitch; - limitedLinear01 debugSwitch; - limitedLinearV debugSwitch; - limitedMUSCL debugSwitch; - LimitedMUSCL debugSwitch; - limitedSuperBee debugSwitch; - limitedSurfaceInterpolationScheme debugSwitch; - limitedVanLeer debugSwitch; - linear debugSwitch; - linearUpwind debugSwitch; - linearUpwindV debugSwitch; - liquid debugSwitch; - LISA debugSwitch; - localBlended debugSwitch; - localMax debugSwitch; - localMin debugSwitch; - localPointRegion debugSwitch; - locDynOneEqEddy debugSwitch; - lowReOneEqEddy debugSwitch; - LRR debugSwitch; - LRRDiffStress debugSwitch; - MB debugSwitch; - mesh debugSwitch; - meshCutAndRemove debugSwitch; - meshCutter debugSwitch; - meshModifier debugSwitch; - meshMorphEngine debugSwitch; - meshSearch debugSwitch; - meshToMesh debugSwitch; - meshWave debugSwitch; - MeshWave debugSwitch; - midPoint debugSwitch; - minMod debugSwitch; - mixed debugSwitch; - mixedEnthalpy debugSwitch; - mixedSmagorinsky debugSwitch; - mixedUnburntEnthalpy debugSwitch; - modifyCell debugSwitch; - modifyFace debugSwitch; - modifyPoint debugSwitch; - motionDiff debugSwitch; - motionSmoother debugSwitch; - motionSolver debugSwitch; - movingWallVelocity debugSwitch; - multiDirRefinement debugSwitch; - multivariateSelection debugSwitch; - MUSCL debugSwitch; - MUSCL01 debugSwitch; - muSgsWallFunction debugSwitch; - N2 debugSwitch; - nbrToCell debugSwitch; - nearestToCell debugSwitch; - Newtonian debugSwitch; - noDragModel debugSwitch; - none debugSwitch; - NonlinearKEShih debugSwitch; - normal debugSwitch; - normalToFace debugSwitch; - NSRDSfunc0 debugSwitch; - NSRDSfunc1 debugSwitch; - NSRDSfunc14 debugSwitch; - NSRDSfunc2 debugSwitch; - NSRDSfunc3 debugSwitch; - NSRDSfunc4 debugSwitch; - NSRDSfunc5 debugSwitch; - NSRDSfunc6 debugSwitch; - NSRDSfunc7 debugSwitch; - nuSgsWallFunction debugSwitch; - nutStandardRoughWallFunction debugSwitch; - nutStandardWallFunction debugSwitch; - nutWallFunction debugSwitch; - objectRegistry debugSwitch; - octree debugSwitch; - octreeDataEdges debugSwitch; - octreeDataFace debugSwitch; - octreeDataFaceList debugSwitch; - octreeDataTriSurface debugSwitch; - ODESolver debugSwitch; - off debugSwitch; - OFstream debugSwitch; - oneEqEddy debugSwitch; - orientedSurface debugSwitch; - ORourke debugSwitch; - oscillatingFixedValue debugSwitch; - outletInlet debugSwitch; - outletStabilised debugSwitch; - PackedList debugSwitch; - pair debugSwitch; - parabolicCylindrical debugSwitch; - parallelInfo debugSwitch; - parcel debugSwitch; - ParSortableList debugSwitch; - partialSlip debugSwitch; - passiveParticle debugSwitch; - patch debugSwitch; - patchEnhanced debugSwitch; - patchFields debugSwitch; - patchToFace debugSwitch; - PatchToPatchInterpolation debugSwitch; - patchZones debugSwitch; - PBiCG debugSwitch; - PCG debugSwitch; - pdf debugSwitch; - perfectInterface debugSwitch; - Phi debugSwitch; - PointEdgeWave debugSwitch; - pointIndexHitList debugSwitch; - PointPatchField debugSwitch; - pointPatchInterpolation debugSwitch; - pointScalarField debugSwitch; - pointScalarField::DimensionedInternalField debugSwitch; - pointSet debugSwitch; - pointSphericalTensorField debugSwitch; - pointSphericalTensorField::DimensionedInternalField debugSwitch; - pointSymmTensorField debugSwitch; - pointSymmTensorField::DimensionedInternalField debugSwitch; - pointTensorField debugSwitch; - pointTensorField::DimensionedInternalField debugSwitch; - pointToCell debugSwitch; - pointToFace debugSwitch; - pointToPoint debugSwitch; - pointVectorField debugSwitch; - pointVectorField::DimensionedInternalField debugSwitch; - pointZone debugSwitch; - polyBoundaryMesh debugSwitch; - polyMesh debugSwitch; - polyMeshMorphEngine debugSwitch; - polyTopoChange debugSwitch; - polyTopoChanger debugSwitch; - Prandtl debugSwitch; - pressureDirectedInletOutletVelocity debugSwitch; - pressureDirectedInletVelocity debugSwitch; - pressureInletOutletVelocity debugSwitch; - pressureInletUniformVelocity debugSwitch; - pressureInletVelocity debugSwitch; - pressureSwirlInjector debugSwitch; - pressureTransmissive debugSwitch; - primitiveMesh debugSwitch; - PrimitivePatch debugSwitch; - probes debugSwitch; - processor debugSwitch; - processorLduCoupledInterface debugSwitch; - processorLduInterface debugSwitch; - processorLduInterfaceField debugSwitch; - pseudoSolid debugSwitch; - Pstream debugSwitch; - pureMixture>>> debugSwitch; - pureMixture>>> debugSwitch; - pureMixture>>> debugSwitch; - quadratic debugSwitch; - QUICK debugSwitch; - QZeta debugSwitch; - RanzMarshall debugSwitch; - raw debugSwitch; - reaction debugSwitch; - realizableKE debugSwitch; - refinementHistory debugSwitch; - refinementIterator debugSwitch; - reflect debugSwitch; - regionSplit debugSwitch; - regIOobject debugSwitch; - ReitzDiwakar debugSwitch; - ReitzKHRT debugSwitch; - remove debugSwitch; - removeCell debugSwitch; - removeCells debugSwitch; - removeFace debugSwitch; - removeFaces debugSwitch; - removePoint debugSwitch; - repatchPolyMesh debugSwitch; - reverseLinear debugSwitch; - rhoMUSCL debugSwitch; - RK debugSwitch; - RNGkEpsilon debugSwitch; - RosinRammler debugSwitch; - rotatedBoxToCell debugSwitch; - rotatingPressureInletOutletVelocity debugSwitch; - rotatingTotalPressure debugSwitch; - RutlandFlashBoil debugSwitch; - saturateEvaporationModel debugSwitch; - scalarField debugSwitch; - scaleSimilarity debugSwitch; - setUpdater debugSwitch; - SFCD debugSwitch; - SFCDV debugSwitch; - shapeList debugSwitch; - shapeToCell debugSwitch; - SHF debugSwitch; - SIBS debugSwitch; - simple debugSwitch; - skewCorrected debugSwitch; - skewCorrectionVectors debugSwitch; - skewLinear debugSwitch; - sliced debugSwitch; - slidingInterface debugSwitch; - slip debugSwitch; - Smagorinsky debugSwitch; - Smagorinsky2 debugSwitch; - smooth debugSwitch; - smoothSolver debugSwitch; - solution debugSwitch; - SpalartAllmaras debugSwitch; - spectEddyVisc debugSwitch; - spherical debugSwitch; - sphericalTensorField debugSwitch; - standardDragModel debugSwitch; - standardEvaporationModel debugSwitch; - static debugSwitch; - StaticHashTable debugSwitch; - steadyState debugSwitch; - stochasticDispersionRAS debugSwitch; - string debugSwitch; - SuperBee debugSwitch; - SuperBee01 debugSwitch; - supersonicFreestream debugSwitch; - surfaceFeatures debugSwitch; - surfaceInterpolation debugSwitch; - surfaceInterpolationScheme debugSwitch; - surfaceIntersection debugSwitch; - surfaceNormalFixedValue debugSwitch; - surfacePatch debugSwitch; - surfacePatchIOList debugSwitch; - surfaceScalarField debugSwitch; - surfaceScalarField::DimensionedInternalField debugSwitch; - surfaceSnap debugSwitch; - surfaceSphericalTensorField debugSwitch; - surfaceSphericalTensorField::DimensionedInternalField debugSwitch; - surfaceSymmTensorField debugSwitch; - surfaceSymmTensorField::DimensionedInternalField debugSwitch; - surfaceTensorField debugSwitch; - surfaceTensorField::DimensionedInternalField debugSwitch; - surfaceToCell debugSwitch; - surfaceToPoint debugSwitch; - surfaceVectorField debugSwitch; - surfaceVectorField::DimensionedInternalField debugSwitch; - swirlInjector debugSwitch; - symmetryPlane debugSwitch; - symmTensorField debugSwitch; - syringePressure debugSwitch; - TAB debugSwitch; - tensorField debugSwitch; - tetFemMatrix debugSwitch; - tetFemScalarMatrix debugSwitch; - tetFemTensorMatrix debugSwitch; - tetFemVectorMatrix debugSwitch; - tetPointScalarField debugSwitch; - tetPointTensorField debugSwitch; - tetPointVectorField debugSwitch; - tetPolyMesh debugSwitch; - tetPolyPatchFields debugSwitch; - thermo debugSwitch; - thermophysicalFunction debugSwitch; - time debugSwitch; - timer debugSwitch; - timeVaryingMappedFixedValue debugSwitch; - timeVaryingUniformFixedValue debugSwitch; - topoAction debugSwitch; - topoCellLooper debugSwitch; - topoSet debugSwitch; - topoSetSource debugSwitch; - toroidal debugSwitch; - totalPressure debugSwitch; - totalTemperature debugSwitch; - trajectory debugSwitch; - transform debugSwitch; - transportModel debugSwitch; - treeDataTriSurface debugSwitch; - treeLeaf debugSwitch; - treeNode debugSwitch; - triSurface debugSwitch; - turbulenceModel debugSwitch; - turbulentInlet debugSwitch; - UMIST debugSwitch; - uncorrected debugSwitch; - undoableMeshCutter debugSwitch; - uniform debugSwitch; - uniformFixedValue debugSwitch; - unitInjector debugSwitch; - unix debugSwitch; - Unix debugSwitch; - upwind debugSwitch; - value debugSwitch; - valueStored debugSwitch; - vanDriest debugSwitch; - vanLeer debugSwitch; - vanLeer01 debugSwitch; - vanLeerV debugSwitch; - vector debugSwitch; - vector2DField debugSwitch; - vectorField debugSwitch; - viscosityModel debugSwitch; - volPointInterpolation debugSwitch; - volScalarField debugSwitch; - volScalarField::DimensionedInternalField debugSwitch; - volSphericalTensorField debugSwitch; - volSphericalTensorField::DimensionedInternalField debugSwitch; - volSymmTensorField debugSwitch; - volSymmTensorField::DimensionedInternalField debugSwitch; - volTensorField debugSwitch; - volTensorField::DimensionedInternalField debugSwitch; - volVectorField debugSwitch; - volVectorField::DimensionedInternalField debugSwitch; - walkPatch debugSwitch; - wall debugSwitch; - wallBuoyantPressure debugSwitch; - wallHeatTransfer debugSwitch; - wallLayerCells debugSwitch; - wallModel debugSwitch; - waveTransmissive debugSwitch; - wedge debugSwitch; - weighted debugSwitch; - word debugSwitch; - writer debugSwitch; - xmgr debugSwitch; - zeroGradient debugSwitch; - zoneToCell debugSwitch; - zoneToFace debugSwitch; - zoneToPoint debugSwitch; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DimensionedConstants.cfg b/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DimensionedConstants.cfg deleted file mode 100644 index 5ea33c30f2..0000000000 --- a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/DimensionedConstants.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DimensionedConstants -{ - type dictionary; - - entries - { - R - { - type scalar; - description "Universal gas constant"; - default 8314.51; - } - - Pstd - { - type scalar; - description "Standard pressure"; - default 1.0e5; - } - - Tstd - { - type scalar; - description "Standard temperature"; - default 298.15; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/InfoSwitches.cfg b/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/InfoSwitches.cfg deleted file mode 100644 index 5376884da8..0000000000 --- a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/InfoSwitches.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -InfoSwitches -{ - type dictionary; - - entries - { - writePrecision - { - type label; - description "Writes to the specified precision"; - } - - writeJobInfo - { - type label; - description "Write the job information files used by the process editor"; - } - - FoamXwriteComments - { - type label; - description "Write FoamX descriptions as comments above case dictionary entries"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/OptimisationSwitches.cfg b/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/OptimisationSwitches.cfg deleted file mode 100644 index 74b2e1fdf5..0000000000 --- a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/OptimisationSwitches.cfg +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -OptimisationSwitches -{ - type dictionary; - - entries - { - fileModificationSkew - { - type label; - description "Time delay of automatic re-reading of case files to compensate for time difference between networked machines"; - } - - scheduledTransfer - { - type label; - description "Use data scheduling during processor-processor transfers rather than asynchronous buffered transfers"; - } - - floatTransfer - { - type label; - description "Convert doubles into floats for processor-processor field transfer to reduce bandwidth (transfers the mean value as a double and renormalises)"; - } - - nProcsSimpleSum - { - type label; - description "Number of processors at the global-sum method changes from flat to hierachical"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/controlDict.cfg b/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/controlDict.cfg deleted file mode 100644 index 566140f345..0000000000 --- a/etc/apps/FoamX/dictionaries/OpenFOAMControlDict/controlDict.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "OpenFOAM control dictionary"; -helpURL "controlDict.html"; -dictionaryPath "$FOAMX_CONFIG/../.."; - -entries -{ - hosts - { - type list; - elementType word; - } - - caseRoots - { - type list; - elementType string; - } - - include "DebugSwitches.cfg"; - include "InfoSwitches.cfg"; - include "OptimisationSwitches.cfg"; - include "DimensionedConstants.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs.cfg deleted file mode 100644 index 194cb35e21..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GuldersCoeffs -{ - type dictionary; - description "Fuel specific Gulders flame speed model constants"; - entries - { - include "GuldersCoeffs/Methane.cfg"; - include "GuldersCoeffs/Propane.cfg"; - include "GuldersCoeffs/IsoOctane.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/GuldersCoeffsEntries.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/GuldersCoeffsEntries.cfg deleted file mode 100644 index d4f5d7a316..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/GuldersCoeffsEntries.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/dimensionedScalar/W.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/eta.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/xi.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/alpha.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/beta.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/f.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/IsoOctane.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/IsoOctane.cfg deleted file mode 100644 index c552a9c22e..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/IsoOctane.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -IsoOctane -{ - type dictionary; - description "Coefficients for isoOctane"; - - entries - { - include "GuldersCoeffsEntries.cfg"; - } - - include "defaults/IsoOctane.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Methane.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Methane.cfg deleted file mode 100644 index 956c224305..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Methane.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Methane -{ - type dictionary; - description "Coefficients for methane"; - - entries - { - include "GuldersCoeffsEntries.cfg"; - } - - include "defaults/Methane.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Propane.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Propane.cfg deleted file mode 100644 index 3c606864b2..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/Propane.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Propane -{ - type dictionary; - description "Coefficients for propane"; - - entries - { - include "GuldersCoeffsEntries.cfg"; - } - - include "defaults/Propane.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/IsoOctane.def b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/IsoOctane.def deleted file mode 100644 index 7715314792..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/IsoOctane.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - W W [0 0 0 0 0 0 0] 0.4658; - eta eta [0 0 0 0 0 0 0] -0.326; - xi xi [0 0 0 0 0 0 0] 4.48; - alpha alpha [0 0 0 0 0 0 0] 1.56; - beta beta [0 0 0 0 0 0 0] -0.22; - f f [0 0 0 0 0 0 0] 2.3; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Methane.def b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Methane.def deleted file mode 100644 index f82111017c..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Methane.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - W W [0 0 0 0 0 0 0] 0.422; - eta eta [0 0 0 0 0 0 0] 0.15; - xi xi [0 0 0 0 0 0 0] 5.18; - alpha alpha [0 0 0 0 0 0 0] 2.0; - beta beta [0 0 0 0 0 0 0] -0.5; - f f [0 0 0 0 0 0 0] 2.3; -}; diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Propane.def b/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Propane.def deleted file mode 100644 index 16863bf953..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/GuldersCoeffs/defaults/Propane.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - W W [0 0 0 0 0 0 0] 0.446; - eta eta [0 0 0 0 0 0 0] 0.12; - xi xi [0 0 0 0 0 0 0] 4.95; - alpha alpha [0 0 0 0 0 0 0] 1.77; - beta beta [0 0 0 0 0 0 0] -0.2; - f f [0 0 0 0 0 0 0] 2.3; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs.cfg deleted file mode 100644 index 7bfd871761..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -MKCoeffs -{ - type dictionary; - description "MK Fuel specific model constants"; - entries - { - include "MKCoeffs/Propane.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/MKCoeffsEntries.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/MKCoeffsEntries.cfg deleted file mode 100644 index 6d033d0c0a..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/MKCoeffsEntries.cfg +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/dimensionedScalar/Bm.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/B2.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/phim.cfg"; -include "$FOAMX_CONFIG/entries/dimensionedScalar/f.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/Propane.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/Propane.cfg deleted file mode 100644 index 4539563369..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/Propane.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Propane -{ - type dictionary; - description "Coefficients for propane"; - - entries - { - include "MKCoeffsEntries.cfg"; - } - - include "defaults/Propane.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/defaults/Propane.def b/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/defaults/Propane.def deleted file mode 100644 index 55062af395..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/MKCoeffs/defaults/Propane.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - Bm Bm [0 0 0 0 0 0 0] 0.3422; - B2 B2 [0 0 0 0 0 0 0] -1.3865; - phim phim [0 0 0 0 0 0 0] 1.08; - f f [0 0 0 0 0 0 0] 2.1; -} diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/StCorr.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/StCorr.cfg deleted file mode 100644 index df8d752978..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/StCorr.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ignitionSphereFraction -{ - type scalar; - description "For 3D the fraction of a sphere the ignition kernel assumes"; - iconURL "/FoamX/icons/small/maths/ignitionSphereFraction.gif"; - minValue 0; - maxValue 1; -} - -ignitionThickness -{ - type dimensionedScalar; - description "For 2D the ignition kernel thickness"; - iconURL "/FoamX/icons/small/maths/ignitionThickness.gif"; -} - - -ignitionCircleFraction -{ - type scalar; - description "For 2D the fraction of a circle the ignition kernel assumes"; - iconURL "/FoamX/icons/small/maths/ignitionCircleFraction.gif"; - minValue 0; - maxValue 1; -} - -ignitionKernelArea -{ - type dimensionedScalar; - description "For 1D the ignition kernel area"; - iconURL "/FoamX/icons/small/maths/ignitionKernelArea.gif"; -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/SuModel.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/SuModel.cfg deleted file mode 100644 index fbf774d72e..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/SuModel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SuModel -{ - type model; - description "Strained laminar flame speed model"; - default unstrained; - valueList - ( - unstrained - equilibrium - transport - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/XiModel.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/XiModel.cfg deleted file mode 100644 index 970a4af592..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/XiModel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -XiModel -{ - type model; - description "Flame wrinkling model"; - default transport; - valueList - ( - fixed - algebraic - transport - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/combustionProperties.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/combustionProperties.cfg deleted file mode 100644 index 1ce5d00cb2..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/combustionProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of combustion properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/fuel.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/fuel.cfg deleted file mode 100644 index 895cace61f..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/fuel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fuel -{ - type model; - description "fuel"; - default Propane; - valueList - ( - Methane - Propane - IsoOctane - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSite.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSite.cfg deleted file mode 100644 index b8f4979987..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSite.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ignitionSite -{ - type dictionary; - iconURL "/FoamX/icons/small/maths/ignitionSite.gif"; - entries - { - include "$FOAMX_CONFIG/entries/vector/location.cfg"; - - diameter - { - type scalar0Inf; - description "Ignition kernel diameter"; - } - - start - { - type scalar; - description "Start of ignition"; - } - - duration - { - type scalar0Inf; - description "Duration of ignition"; - } - - strength - { - type scalar; - description "Strength of ignition"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSites.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSites.cfg deleted file mode 100644 index 40f889e795..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/ignitionSites.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ignitionSites -{ - type list; - iconURL "/FoamX/icons/small/maths/ignition.gif"; - - types - { - include "ignitionSite.cfg"; - } - - elementType ignitionSite; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/combustionProperties/laminarFlameSpeedCorrelation.cfg b/etc/apps/FoamX/dictionaries/combustionProperties/laminarFlameSpeedCorrelation.cfg deleted file mode 100644 index c03000d261..0000000000 --- a/etc/apps/FoamX/dictionaries/combustionProperties/laminarFlameSpeedCorrelation.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laminarFlameSpeedCorrelation -{ - type model; - description "Laminar flame speed correlation model"; - default Gulders; - valueList - ( - const - Gulders - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/adjustTimeStep.cfg b/etc/apps/FoamX/dictionaries/controlDict/adjustTimeStep.cfg deleted file mode 100644 index c2b258a328..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/adjustTimeStep.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -adjustTimeStep -{ - type Switch; - description "Automatic adjustment of time step?"; - helpURL "controlDict.html"; - default yes; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/controlDict.cfg b/etc/apps/FoamX/dictionaries/controlDict/controlDict.cfg deleted file mode 100644 index 3616383790..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/controlDict.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -controlDict -{ - type dictionary; - description "Control dictionary"; - helpURL "controlDict.html"; - dictionaryPath "system"; - - entries - { - include "standardEntries.cfg"; - } - - default - { - include "../../defaults/system/controlDict"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/controlDictAdjustTimeStep.cfg b/etc/apps/FoamX/dictionaries/controlDict/controlDictAdjustTimeStep.cfg deleted file mode 100644 index 4b6d036409..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/controlDictAdjustTimeStep.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -controlDict -{ - type dictionary; - description "Control dictionary"; - helpURL "controlDict.html"; - dictionaryPath "system"; - - entries - { - include "standardEntries.cfg"; - include "adjustTimeStep.cfg"; - include "maxCo.cfg"; - include "maxDeltaT.cfg"; - } - - default - { - include "../../defaults/system/controlDictAdjustTimeStep"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/controlDictSteady.cfg b/etc/apps/FoamX/dictionaries/controlDict/controlDictSteady.cfg deleted file mode 100644 index d2502121c5..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/controlDictSteady.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -controlDict -{ - type dictionary; - description "Control dictionary"; - helpURL "controlDict.html"; - dictionaryPath "system"; - - entries - { - include "standardEntries.cfg"; - } - - default - { - include "../../defaults/system/controlDictSteady"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/maxCo.cfg b/etc/apps/FoamX/dictionaries/controlDict/maxCo.cfg deleted file mode 100644 index 15750d832e..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/maxCo.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -maxCo -{ - type scalar01; - description "maxCo"; - iconURL "/FoamX/icons/small/maths/maxCo.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/maxDeltaT.cfg b/etc/apps/FoamX/dictionaries/controlDict/maxDeltaT.cfg deleted file mode 100644 index 533c2bffa6..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/maxDeltaT.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -maxDeltaT -{ - type scalar; - description "maxDeltaT"; - iconURL "/FoamX/icons/small/maths/maxDeltaT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/controlDict/standardEntries.cfg b/etc/apps/FoamX/dictionaries/controlDict/standardEntries.cfg deleted file mode 100644 index 7f5b141a74..0000000000 --- a/etc/apps/FoamX/dictionaries/controlDict/standardEntries.cfg +++ /dev/null @@ -1,217 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -application -{ - type word; - description "Foam Application"; - helpURL "controlDict.html"; - iconURL "/FoamX/icons/small/maths/application.gif"; - optional 1; - editable 0; -} - -startFrom -{ - type word; - description "Start point of run"; - helpURL "controlDict.html"; - iconURL "/FoamX/icons/small/maths/startFrom.gif"; - default startTime; - valueList - ( - firstTime - startTime - latestTime - ); -} - -startTime -{ - type scalar; - description "Calculation start time"; - iconURL "/FoamX/icons/small/maths/startTime.gif"; - helpURL "controlDict.html"; - default 0.0; -} - -stopAt -{ - type word; - description "End point of run"; - iconURL "/FoamX/icons/small/maths/stopAt.gif"; - helpURL "controlDict.html"; - default endTime; - valueList - ( - endTime - writeNow - noWriteNow - nextWrite - ); -} - -endTime -{ - type scalar; - description "Calculation end time"; - iconURL "/FoamX/icons/small/maths/endTime.gif"; - helpURL "controlDict.html"; - default 0.0; -} - -deltaT -{ - type scalar0Inf; - description "Calculation time step"; - iconURL "/FoamX/icons/small/maths/deltaT.gif"; - helpURL "controlDict.html"; - default 0.0; -} - -writeControl -{ - type word; - description "Type of write output control"; - iconURL "/FoamX/icons/small/maths/writeControl.gif"; - helpURL "controlDict.html"; - default timeStep; - valueList - ( - timeStep - runTime - adjustableRunTime - cpuTime - clockTime - ); -} - -writeInterval -{ - type scalar0Inf; - description "Interval with which the results are output"; - iconURL "/FoamX/icons/small/maths/writeInterval.gif"; - helpURL "controlDict.html"; - default 1; -} - -purgeWrite -{ - type label; - description "Keep given number of output time, delete previous"; - iconURL "/FoamX/icons/small/maths/purgeWrite.gif"; - helpURL "controlDict.html"; - minValue 0; - maxValue 99; - default 0; - optional 1; -} - -writeFormat -{ - type word; - description "Write Format"; - iconURL "/FoamX/icons/small/maths/writeFormat.gif"; - helpURL "controlDict.html"; - default ascii; - valueList - ( - ascii - binary - ); -} - -writePrecision -{ - type label; - description "Significant figures of written ASCII data"; - iconURL "/FoamX/icons/small/maths/timePrecision.gif"; - helpURL "controlDict.html"; - optional 1; - minValue 0; - maxValue 99; - default 6; -} - -writeCompression -{ - type word; - description "Write Compression"; - iconURL "/FoamX/icons/small/maths/writeCompression.gif"; - helpURL "controlDict.html"; - optional 1; - default uncompressed; - valueList - ( - uncompressed - compressed - ); -} - -timeFormat -{ - type word; - description "Time directories name format"; - iconURL "/FoamX/icons/small/maths/timeFormat.gif"; - helpURL "controlDict.html"; - default general; - valueList - ( - general - fixed - scientific - ); -} - -timePrecision -{ - type label; - description "Decimal precision of time directory names"; - iconURL "/FoamX/icons/small/maths/timePrecision.gif"; - helpURL "controlDict.html"; - minValue 0; - maxValue 99; - default 6; -} - -graphFormat -{ - type word; - description "Output format for graphs"; - helpURL "controlDict.html"; - optional 1; - default raw; - valueList - ( - raw - gnuplot - xmgr - jplot - ); -} - -runTimeModifiable -{ - type Switch; - description "Can parameters be modified during run time?"; - helpURL "controlDict.html"; - default yes; -} - -functions -{ - type list; - optional 1; - types - { - include "$FOAMX_CONFIG/types/functionObjects/probe.cfg"; - } - elementType probe; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/diffusion.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/diffusion.cfg deleted file mode 100644 index e5c291e5ca..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/diffusion.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -diffusion -{ - type word; - description "Mesh motion diffusion"; - helpURL "controlDict.html"; - iconURL "/FoamX/icons/small/maths/diffusion.gif"; - default linear; - valueList - ( - linear - exponential - quadratic - nonOrthogonality - skewness - mixedQuality - patchEnhanced - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/distancePatches.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/distancePatches.cfg deleted file mode 100644 index 7bb456ab25..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/distancePatches.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -distancePatches -{ - type list; - description "list of patches from which non-uniform diffusion is calculated"; - elementType word; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/dynamicMeshDict.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/dynamicMeshDict.cfg deleted file mode 100644 index 883529e572..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/dynamicMeshDict.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynamicMeshDict -{ - type dictionary; - description "Dictionary of motion properties"; - dictionaryPath "constant"; - - entries - { - include "$FOAMX_CONFIG/dictionaries/dynamicMeshDict/staticFvMesh.cfg"; - } -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/frozenDiffusion.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/frozenDiffusion.cfg deleted file mode 100644 index 18b8016b62..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/frozenDiffusion.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -frozenDiffusion -{ - type SwitchOnOff; - description "Calculates diffusion once at beginning of run"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default off; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingFvMesh.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingFvMesh.cfg deleted file mode 100644 index 00396d26d3..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingFvMesh.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -movingFvMesh -{ - type word; - description "Mesh motion options"; - helpURL "controlDict.html"; - iconURL "/FoamX/icons/small/maths/movingFvMesh.gif"; - default staticFvMesh; - valueList - ( - staticFvMesh - movingPinFvMesh - movingInkJetFvMesh - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingInkJetFvMeshCoeffs.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingInkJetFvMeshCoeffs.cfg deleted file mode 100644 index 7d016bb749..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/movingInkJetFvMeshCoeffs.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -movingInkJetFvMeshCoeffs -{ - type dictionary; - description "Coefficients for moving ink jet"; - visible 1; - entries - { - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/solver.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/solver.cfg deleted file mode 100644 index ffb1c17fc5..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/solver.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -solver -{ - type word; - description "Mesh motion solver"; - helpURL "controlDict.html"; - //iconURL "/FoamX/icons/small/maths/diffusion.gif"; - default laplace; - valueList - ( - displacementLaplacian - displacementComponentLaplacian - displacementSBRStress - velocityLaplacian - velocityComponentLaplacian - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/dynamicMeshDict/staticFvMesh.cfg b/etc/apps/FoamX/dictionaries/dynamicMeshDict/staticFvMesh.cfg deleted file mode 100644 index 7e53ac493b..0000000000 --- a/etc/apps/FoamX/dictionaries/dynamicMeshDict/staticFvMesh.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynamicFvMesh -{ - type word; - description "No mesh motion"; - helpURL "controlDict.html"; - iconURL "/FoamX/icons/small/maths/movingFvMesh.gif"; - editable 0; - default staticFvMesh; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/environmentalProperties/environmentalPropertiesg.cfg b/etc/apps/FoamX/dictionaries/environmentalProperties/environmentalPropertiesg.cfg deleted file mode 100644 index e8cd2cf8b7..0000000000 --- a/etc/apps/FoamX/dictionaries/environmentalProperties/environmentalPropertiesg.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -environmentalProperties -{ - type dictionary; - description "Environmental properties"; - dictionaryPath "constant"; - - entries - { - include "$FOAMX_CONFIG/entries/dimensionedVector/g.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/allSchemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/allSchemes.cfg deleted file mode 100644 index 8707a76d24..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/allSchemes.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -d2dt2Schemes -{ - include "schemes.cfg"; - entries - { - default - { - type word; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/ddt.gif"; - default Euler; - valueList - ( - steadyState - Euler - ); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/schemes.cfg deleted file mode 100644 index 0902b66598..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/d2dt2/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Second time derivative discretisation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/allSchemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/ddt/allSchemes.cfg deleted file mode 100644 index 5e4783aa7f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/allSchemes.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ddtSchemes -{ - include "schemes.cfg"; - entries - { - default - { - type word; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/ddt.gif"; - default Euler; - valueList - ( - steadyState - Euler - CrankNicholson - backward - ); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/ddt/schemes.cfg deleted file mode 100644 index ec186882a5..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Time derivative discretisation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/steady.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/ddt/steady.cfg deleted file mode 100644 index b90ba6e31e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/steady.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ddtSchemes -{ - include "schemes.cfg"; - entries - { - default - { - type word; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/ddt.gif"; - default steadyState; - editable 0; - valueList - ( - steadyState - ); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/transient.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/ddt/transient.cfg deleted file mode 100644 index d3b17b9395..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/ddt/transient.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ddtSchemes -{ - include "schemes.cfg"; - entries - { - default - { - type word; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/ddt.gif"; - default Euler; - valueList - ( - Euler - CrankNicholson - backward - ); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/B.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/B.cfg deleted file mode 100644 index f77d75e103..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/B.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(B) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/R.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/R.cfg deleted file mode 100644 index f10d96158f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/R.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(R) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/Rca.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/Rca.cfg deleted file mode 100644 index 2097a4611d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/Rca.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(Rca) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divStar.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/Rcb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/Rcb.cfg deleted file mode 100644 index 19ea4441b1..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/Rcb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(Rcb) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divStar.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/SuGradb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/SuGradb.cfg deleted file mode 100644 index 3ed0749aa4..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/SuGradb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((Su*grad(b))) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divSuGradb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/U.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/U.cfg deleted file mode 100644 index e679c65507..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/U.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(U) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/USuXiGradb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/USuXiGradb.cfg deleted file mode 100644 index b80b5f95a7..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/USuXiGradb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((U+((Su*Xi)*grad(b)))) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divStar.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/centered.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/centered.cfg deleted file mode 100644 index 84c056a10d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/centered.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/centered.cfg"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/default.cfg deleted file mode 100644 index 799780b864..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/default.cfg +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - type selection; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/div.gif"; - entries - { - include "none.cfg"; - - Gauss - { - type selection; - entries - { - include "interpolation/default.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/default.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/defaultOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/defaultOnly.cfg deleted file mode 100644 index 289cdcb8ba..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/defaultOnly.cfg +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "schemes.cfg"; - entries - { - default - { - type compound; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/div.gif"; - entries - { - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/default.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/default.cfg"; - } - } - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/discretisationScheme.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/discretisationScheme.cfg deleted file mode 100644 index 830d73fb6d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/discretisationScheme.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -discretisationScheme -{ - type word; - default Gauss; - editable 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/all.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/all.cfg deleted file mode 100644 index f24b4929ce..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/all.cfg +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/blended.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/downwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2V.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/interfaceCompression.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/GammaV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/harmonic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/inverseLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubicV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedGamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLimitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLimitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinearV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedMUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedSuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedVanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linearUpwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Phi.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/QUICK.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCD.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCDV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/skewLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/UMIST.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeerV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/centered.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/centered.cfg deleted file mode 100644 index 730cadaa9a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/centered.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/harmonic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/inverseLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/default.cfg deleted file mode 100644 index 23bb507b0e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/default.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/QUICK.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCD.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/UMIST.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/blended.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linearUpwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/skewLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar.cfg deleted file mode 100644 index f17340f515..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/QUICK.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCD.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/UMIST.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/blended.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/downwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/harmonic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/inverseLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linearUpwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/skewLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedGamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLimitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLimitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedMUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedSuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedVanLeer.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar01.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar01.cfg deleted file mode 100644 index db34828c46..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalar01.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee01.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/interfaceCompression.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalarMULES.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalarMULES.cfg deleted file mode 100644 index 083b14e76d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/scalarMULES.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SuperBee.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/interfaceCompression.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/tensor.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/tensor.cfg deleted file mode 100644 index abeef555fe..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/tensor.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Phi.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/QUICK.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCD.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/UMIST.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/blended.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linearUpwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/skewLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/vector.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/vector.cfg deleted file mode 100644 index f355a1220c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/interpolation/vector.cfg +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/interpolations/unselected.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/upwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedLinearV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeer.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/vanLeerV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Gamma.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/GammaV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/Phi.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/limitedCubicV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/MUSCL.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/QUICK.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCD.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/SFCDV.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/UMIST.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/blended.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubic.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/linearUpwind.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/filteredLinear2V.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/skewLinear.cfg"; -include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/muEffGradUT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/muEffGradUT.cfg deleted file mode 100644 index 34108e47ce..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/muEffGradUT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((muEff*dev2(grad(U).T()))) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divStar.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/multivariateSelection.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/multivariateSelection.cfg deleted file mode 100644 index e485707a4d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/multivariateSelection.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -schemeType -{ - type word; - default multivariateSelection; - editable 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/none.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/none.cfg deleted file mode 100644 index 1c7fa41438..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/none.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -none -{ - type compound; - description "No default discretisation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/noneOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/noneOnly.cfg deleted file mode 100644 index e43851ad42..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/noneOnly.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -divSchemes -{ - include "schemes.cfg"; - entries - { - default - { - type word; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/div.gif"; - default none; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffGradUT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffGradUT.cfg deleted file mode 100644 index e2c1c03ffd..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffGradUT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((nuEff*dev(grad(U).T()))) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divStar.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffaGradUaT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffaGradUaT.cfg deleted file mode 100644 index 71f4fc9d8b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffaGradUaT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((-nuEffa*grad(Ua).T())) -{ - include "tensor.cfg"; - iconURL "/FoamX/icons/small/maths/divNuEffaUaT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffbGradUbT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffbGradUbT.cfg deleted file mode 100644 index 12eda52da7..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/nuEffbGradUbT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((-nuEffb*grad(Ub).T())) -{ - include "tensor.cfg"; - iconURL "/FoamX/icons/small/maths/divNuEffbUbT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlpha.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlpha.cfg deleted file mode 100644 index 1b19e1827d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlpha.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,alpha) -{ - include "scalar01.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiAlpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlphaAlpha.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlphaAlpha.cfg deleted file mode 100644 index 8e09eee335..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiAlphaAlpha.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiAlpha,Alpha) -{ - include "scalar01.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiAlphaAlpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB.cfg deleted file mode 100644 index 5e2c629f08..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,B) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB2DBUB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB2DBUB.cfg deleted file mode 100644 index c0754dc97b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiB2DBUB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiB,((2*DBU)*B)) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiB2DBUB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBT.cfg deleted file mode 100644 index eeb170f378..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,B) -{ - include "tensor.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiBT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBU.cfg deleted file mode 100644 index bbbbce093b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiBU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiB,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiBU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiEpsilon.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiEpsilon.cfg deleted file mode 100644 index 438443691c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiEpsilon.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,epsilon) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiEpsilon.gif"; -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiGamma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiGamma.cfg deleted file mode 100644 index 875be3e3bf..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiGamma.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,gamma) -{ - include "scalarMULES.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiGamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiMuTilda.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiMuTilda.cfg deleted file mode 100644 index 45b501921a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiMuTilda.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,muTilda) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiMuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiNuTilda.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiNuTilda.cfg deleted file mode 100644 index 9568823e7f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiNuTilda.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,nuTilda) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiNuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiR.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiR.cfg deleted file mode 100644 index 0708c04b80..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiR.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,R) -{ - include "tensor.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiStb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiStb.cfg deleted file mode 100644 index 3a7eba53d3..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiStb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiSt,b) -{ - include "scalar01.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiStb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiT.cfg deleted file mode 100644 index 236fb3bb46..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,T) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiU.cfg deleted file mode 100644 index 66d8c96951..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiUp.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiUp.cfg deleted file mode 100644 index 0b37ca2922..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiUp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiU,p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiUp.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiV.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiV.cfg deleted file mode 100644 index b9966ee74e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiV.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,V) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiV.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiVdjVdj.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiVdjVdj.cfg deleted file mode 100644 index 61067e1257..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiVdjVdj.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiVdj,Vdj) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiVdjVdj.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiSu.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiSu.cfg deleted file mode 100644 index f9b36a1e50..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiSu.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiXi,Su) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiXiSu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiXi.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiXi.cfg deleted file mode 100644 index dbd79e3dae..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiXiXi.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiXi,Xi) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiXiXi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiaUa.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiaUa.cfg deleted file mode 100644 index 7a515a4dcc..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiaUa.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phia,Ua) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiaUa.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibEpsilon.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phibEpsilon.cfg deleted file mode 100644 index c5627acb6e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibEpsilon.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phib,epsilon) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiEpsilon.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibUb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phibUb.cfg deleted file mode 100644 index 3785261eb2..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibUb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phib,Ub) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divPhibUb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibk.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phibk.cfg deleted file mode 100644 index 58ded8e7cc..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phibk.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phib,k) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/div/scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhik.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phidp.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phidp.cfg deleted file mode 100644 index f5b39c74bf..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phidp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phid,p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhidP.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phie.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phie.cfg deleted file mode 100644 index 435355935b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phie.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,e) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiE.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phift_b_h_hu.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phift_b_h_hu.cfg deleted file mode 100644 index 9103fee53d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phift_b_h_hu.cfg +++ /dev/null @@ -1,71 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,ft_b_h_hu) -{ - type compound; - iconURL "/FoamX/icons/small/maths/divPhiStar.gif"; - entries - { - include "discretisationScheme.cfg"; - include "multivariateSelection.cfg"; - multivariateSelection - { - type dictionary; - entries - { - fu - { - type selection; - entries - { - include "interpolation/scalar01.cfg"; - } - } - - ft - { - type selection; - entries - { - include "interpolation/scalar01.cfg"; - } - } - - b - { - type selection; - entries - { - include "interpolation/scalar01.cfg"; - } - } - - h - { - type selection; - entries - { - include "interpolation/scalar.cfg"; - } - } - - hu - { - type selection; - entries - { - include "interpolation/scalar.cfg"; - } - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phih.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phih.cfg deleted file mode 100644 index b63341ec59..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phih.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,h) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhih.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phik.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phik.cfg deleted file mode 100644 index 62c8716039..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phik.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phi,k) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhik.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phirAlpha.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phirAlpha.cfg deleted file mode 100644 index a6ea09c89e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phirAlpha.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phir,alpha) -{ - include "scalar01.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiAlpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phirbGamma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phirbGamma.cfg deleted file mode 100644 index 1f4e33e327..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phirbGamma.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phirb,gamma) -{ - include "scalarMULES.cfg"; - iconURL "/FoamX/icons/small/maths/divPhirbGamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiv2p.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phiv2p.cfg deleted file mode 100644 index db41131543..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phiv2p.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiv2,p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhiv2p.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRho.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRho.cfg deleted file mode 100644 index 5cc212fda4..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRho.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiv,rho) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhivRho.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoE.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoE.cfg deleted file mode 100644 index 7624ea64a7..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoE.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiv,rhoE) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/divPhivRhoE.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoU.cfg deleted file mode 100644 index 98d99b2597..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/phivRhoU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(phiv,rhoU) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divRhivRhoU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoPhiU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoPhiU.cfg deleted file mode 100644 index 0479c2b0cd..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoPhiU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(rho*phi,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divRhoPhiU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoR.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoR.cfg deleted file mode 100644 index ef91834802..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/rhoR.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div((rho*R)) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/divRhoR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar.cfg deleted file mode 100644 index e354cc0e9a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/scalar.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/scalar.cfg"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar01.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar01.cfg deleted file mode 100644 index ea750792ee..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalar01.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/scalar01.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/scalar01.cfg"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalarMULES.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/scalarMULES.cfg deleted file mode 100644 index 61e2614eaf..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/scalarMULES.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/scalarMULES.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/scalarMULES.cfg"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/schemes.cfg deleted file mode 100644 index 3db9d6b98a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Convection discretisation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/sigma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/sigma.cfg deleted file mode 100644 index 8d8db8623d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/sigma.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(sigma) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divSigma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/sigmaD.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/sigmaD.cfg deleted file mode 100644 index f9110b83ca..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/sigmaD.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -div(sigmaD) -{ - include "centered.cfg"; - iconURL "/FoamX/icons/small/maths/divSigma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/tensor.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/tensor.cfg deleted file mode 100644 index fc1cf31cce..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/tensor.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/tensor.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/tensor.cfg"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/div/vector.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/div/vector.cfg deleted file mode 100644 index 5d80c1662a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/div/vector.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - type selection; - entries - { - include "interpolation/vector.cfg"; - outletStabilised - { - type selection; - entries - { - include "interpolation/vector.cfg"; - } - } - } - } -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/DT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/DT.cfg deleted file mode 100644 index add3e0b7e5..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/DT.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/D.cfg"; - include "variables/T.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/T.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/T.cfg deleted file mode 100644 index c3487dc5bb..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/T.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/T.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/U.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/U.cfg deleted file mode 100644 index a4c50e4456..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/U.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/U.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/UT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/UT.cfg deleted file mode 100644 index 80033b9dd2..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/UT.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/U.cfg"; - include "variables/T.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/fluxRequired.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/fluxRequired.cfg deleted file mode 100644 index d6f1b3a325..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/fluxRequired.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Calculation of flux"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/p.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/p.cfg deleted file mode 100644 index c10f68f007..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/p.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/p.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPB.cfg deleted file mode 100644 index cdaf54aef9..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPB.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/p.cfg"; - include "variables/pB.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPcorr.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPcorr.cfg deleted file mode 100644 index 4916ba207b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pPcorr.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/p.cfg"; - include "variables/pcorr.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pd.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/pd.cfg deleted file mode 100644 index f6c7f66131..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pd.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/pd.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorr.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorr.cfg deleted file mode 100644 index fd8d417d33..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorr.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/pd.cfg"; - include "variables/pcorr.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg deleted file mode 100644 index afd231acea..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/pdPcorrGamma.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/pd.cfg"; - include "variables/pcorr.cfg"; - include "variables/gamma.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/phi.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/phi.cfg deleted file mode 100644 index 2f390bfaec..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/phi.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fluxRequired -{ - include "fluxRequired.cfg"; - entries - { - include "variables/default.cfg"; - include "variables/phi.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/B.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/B.cfg deleted file mode 100644 index d0bdc9ee2f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/B.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/vecB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/D.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/D.cfg deleted file mode 100644 index 27ba437c97..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/D.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -D -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/D.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/T.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/T.cfg deleted file mode 100644 index fda86dea3c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/T.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/T.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/U.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/U.cfg deleted file mode 100644 index efeaa0755c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/U.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/U.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/default.cfg deleted file mode 100644 index 199e737b75..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/default.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - type Switch; - description "Create storage for flux for all solved variables?"; - helpURL "fvSchemes.html"; - default no; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/gamma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/gamma.cfg deleted file mode 100644 index 1af80fc035..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/gamma.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gamma -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/gamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/p.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/p.cfg deleted file mode 100644 index 2d48c9cda0..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/p.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/p.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pB.cfg deleted file mode 100644 index 696e2a8509..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pB.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pB -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/pB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pcorr.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pcorr.cfg deleted file mode 100644 index 1c27a9a585..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pcorr.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pcorr -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/pcorr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pd.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pd.cfg deleted file mode 100644 index 298f58b4c6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/pd.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pd -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/pd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/phi.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/phi.cfg deleted file mode 100644 index ed72a9e0c6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/flux/variables/phi.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phi -{ - type compound; - editable 0; - iconURL "/FoamX/icons/small/maths/phi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/fvSchemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/fvSchemes.cfg deleted file mode 100644 index 522718cac1..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/fvSchemes.cfg +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Finite volume discretisation schemes dictionary"; -helpURL "fvSchemes.html"; -dictionaryPath "system"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/D.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/D.cfg deleted file mode 100644 index c7023a3289..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/D.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(D) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradD.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/DBUmagsqrB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/DBUmagsqrB.cfg deleted file mode 100644 index 4324cbfc34..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/DBUmagsqrB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad((DBU*magSqr(B))) -{ - include "$FOAMX_CONFIG/dictionaries/fvSchemes/grad/standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradDBUmagsqrB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/Gauss.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/Gauss.cfg deleted file mode 100644 index b3992b7a6a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/Gauss.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Gauss -{ - include "../interpolation/interpolationScheme.cfg" - description "Gauss discretisation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/T.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/T.cfg deleted file mode 100644 index 7896c2ac32..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/T.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(T) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/U.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/U.cfg deleted file mode 100644 index bafeb004cc..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/U.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(U) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/V.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/V.cfg deleted file mode 100644 index c189e0fa33..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/V.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(V) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradV.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/default.cfg deleted file mode 100644 index 2392ae230e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/default.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - include "standard.cfg"; - description "Default gradient scheme"; - iconURL "/FoamX/icons/small/maths/grad.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/defaultOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/defaultOnly.cfg deleted file mode 100644 index 2c99ee5ebe..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/defaultOnly.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradSchemes -{ - include "schemes.cfg"; - entries - { - include "default.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/fourth.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/fourth.cfg deleted file mode 100644 index 9e59b28ac5..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/fourth.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fourth -{ - type compound; - description "Fourth order discretisation scheme"; -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/gamma.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/gamma.cfg deleted file mode 100644 index 65ff6ae866..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/gamma.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(gamma) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradGamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/leastSquares.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/leastSquares.cfg deleted file mode 100644 index ed98f3966c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/leastSquares.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -leastSquares -{ - type compound; - description "Least squares discretisation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/none.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/none.cfg deleted file mode 100644 index 1c7fa41438..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/none.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -none -{ - type compound; - description "No default discretisation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/p.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/p.cfg deleted file mode 100644 index ea592d3ac1..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/p.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -grad(p) -{ - include "standard.cfg"; - iconURL "/FoamX/icons/small/maths/gradP.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/schemes.cfg deleted file mode 100644 index e6b699ee5f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Gradient discretisation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/grad/standard.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/grad/standard.cfg deleted file mode 100644 index 40c29abef1..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/grad/standard.cfg +++ /dev/null @@ -1,107 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "Gauss.cfg"; - include "leastSquares.cfg"; - include "fourth.cfg"; - - cellMDLimited - { - type compound; - entries - { - scheme - { - type selection; - entries - { - include "Gauss.cfg"; - include "leastSquares.cfg"; - include "fourth.cfg"; - } - } - coefficient - { - type scalar01; - default 1.0; - } - } - } - faceMDLimited - { - type compound; - entries - { - scheme - { - type selection; - entries - { - include "Gauss.cfg"; - include "leastSquares.cfg"; - include "fourth.cfg"; - } - } - coefficient - { - type scalar01; - default 1.0; - } - } - } - cellLimited - { - type compound; - entries - { - scheme - { - type selection; - entries - { - include "Gauss.cfg"; - include "leastSquares.cfg"; - include "fourth.cfg"; - } - } - coefficient - { - type scalar01; - default 1.0; - } - } - } - faceLimited - { - type compound; - entries - { - scheme - { - type selection; - entries - { - include "Gauss.cfg"; - include "leastSquares.cfg"; - include "fourth.cfg"; - } - } - coefficient - { - type scalar01; - default 1.0; - } - } - } -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/1A.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/1A.cfg deleted file mode 100644 index f4ad8afe0c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/1A.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolate((1|A)) -{ - include "interpolationScheme.cfg"; - iconURL "/FoamX/icons/small/maths/interpolate1A.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/B.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/B.cfg deleted file mode 100644 index ba2ccc6985..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/B.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolate(B) -{ - include "interpolationScheme.cfg"; - iconURL "/FoamX/icons/small/maths/interpolateB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/HbyA.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/HbyA.cfg deleted file mode 100644 index 29e41512dd..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/HbyA.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolate(HbyA) -{ - include "interpolationScheme.cfg"; - iconURL "/FoamX/icons/small/maths/interpolateHbyA.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/U.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/U.cfg deleted file mode 100644 index 49a0fafd83..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/U.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolate(U) -{ - include "interpolationScheme.cfg"; - iconURL "/FoamX/icons/small/maths/interpolateU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/default.cfg deleted file mode 100644 index f297955d8c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/default.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/interpolationScheme.gif"; - include "interpolationScheme.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/defaultOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/defaultOnly.cfg deleted file mode 100644 index a34e006859..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/defaultOnly.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - include "schemes.cfg"; - entries - { - include "default.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/interpolationScheme.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/interpolationScheme.cfg deleted file mode 100644 index 6d330e1fe7..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/interpolationScheme.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "$FOAMX_CONFIG/entries/interpolations/linear.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/cubicCorrection.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/harmonic.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/inverseLinear.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/midPoint.cfg"; - include "$FOAMX_CONFIG/entries/interpolations/weighted.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/schemes.cfg deleted file mode 100644 index 98eb45244c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/interpolation/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Interpolation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ABpB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ABpB.cfg deleted file mode 100644 index f53e04c0f4..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ABpB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((1|A(B)),pB) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian1ABpB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1AUp.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1AUp.cfg deleted file mode 100644 index dcdfd36d11..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1AUp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((1|A(U)),p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian1AUp.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1Ap.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1Ap.cfg deleted file mode 100644 index be468cf8d0..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1Ap.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((1|A),p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian1AUp.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ArhoUp.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ArhoUp.cfg deleted file mode 100644 index c6d5a15e10..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1ArhoUp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((1|A(rhoU)),p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian1ArhoUp.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1p.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1p.cfg deleted file mode 100644 index 4993f2a421..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/1p.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(1,p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianP.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBB.cfg deleted file mode 100644 index 12052b7f02..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DB,B) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDBB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBEffB.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBEffB.cfg deleted file mode 100644 index 923b4173d3..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DBEffB.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DBEff,B) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDBEffB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DDD.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DDD.cfg deleted file mode 100644 index 09e6b5513d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DDD.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DD,D) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDDD.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DREffR.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DREffR.cfg deleted file mode 100644 index 07a9e47d66..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DREffR.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DREff,R) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDREffR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DTT.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DTT.cfg deleted file mode 100644 index 7ed9cf5720..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DTT.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DT,T) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDTT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DUU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DUU.cfg deleted file mode 100644 index 6ccefb5cd6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DUU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DU,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDUU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DVV.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DVV.cfg deleted file mode 100644 index 689733a80b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DVV.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DV,V) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDVV.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg deleted file mode 100644 index f64c02aeaf..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DepsilonEffEpsilon.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DepsilonEff,epsilon) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDepsilonEffEpsilon.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DkEffk.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DkEffk.cfg deleted file mode 100644 index 2df3e8733b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DkEffk.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DkEff,k) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDkEffk.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DmuTildaEffMuTilda.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DmuTildaEffMuTilda.cfg deleted file mode 100644 index 726b0a1308..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DmuTildaEffMuTilda.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DmuTildaEff,muTilda) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDmuTildaEffMuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DnuTildaEffNuTilda.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DnuTildaEffNuTilda.cfg deleted file mode 100644 index 4d971ef6c2..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/DnuTildaEffNuTilda.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(DnuTildaEff,nuTilda) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDnuTildaEffNuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/Dphi.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/Dphi.cfg deleted file mode 100644 index 110f7ac4c6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/Dphi.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(D,phi) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianDphi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffh.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffh.cfg deleted file mode 100644 index 960b55d364..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffh.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(alphaEff,h) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianAlphaEffh.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffhu.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffhu.cfg deleted file mode 100644 index 8fc107c28c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/alphaEffhu.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(alphaEff,hu) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianAlphaEffhu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/default.cfg deleted file mode 100644 index f6eda7fe67..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/default.cfg +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - type selection; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/laplacian.gif"; - entries - { - include "none.cfg"; - - Gauss - { - type compound; - entries - { - interpolationScheme - { - include "../interpolation/interpolationScheme.cfg"; - } - - snGradScheme - { - include "../snGrad/snGradSchemeVector.cfg"; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/defaultOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/defaultOnly.cfg deleted file mode 100644 index 87a5e1e27d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/defaultOnly.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacianSchemes -{ - include "schemes.cfg"; - entries - { - default - { - include "vector.cfg"; - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/laplacian.gif"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/discretisationScheme.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/discretisationScheme.cfg deleted file mode 100644 index 830d73fb6d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/discretisationScheme.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -discretisationScheme -{ - type word; - default Gauss; - editable 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffFt.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffFt.cfg deleted file mode 100644 index 4f5b4b036e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffFt.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(muEff,ft) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuEffFt.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffU.cfg deleted file mode 100644 index d444d5e649..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(muEff,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuEffU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffb.cfg deleted file mode 100644 index 32ebd0d6de..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(muEff,b) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuEffb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffft.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffft.cfg deleted file mode 100644 index d444d5e649..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muEffft.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(muEff,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuEffU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muU.cfg deleted file mode 100644 index ce6b641857..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/muU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(mu,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mue.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mue.cfg deleted file mode 100644 index b8c7943765..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mue.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(mu,e) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMuE.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutAlpha.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutAlpha.cfg deleted file mode 100644 index 1c68b0a563..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutAlpha.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(mut,Alpha) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMutAlpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutU.cfg deleted file mode 100644 index 306720a54d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/mutU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(mut,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianMutU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/none.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/none.cfg deleted file mode 100644 index 1c7fa41438..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/none.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -none -{ - type compound; - description "No default discretisation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffU.cfg deleted file mode 100644 index a20cef86b9..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(nuEff,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianNuEffU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffaUa.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffaUa.cfg deleted file mode 100644 index 397863fa3a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffaUa.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(nuEffa,Ua) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianNuEffaUa.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffbUb.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffbUb.cfg deleted file mode 100644 index e6834b0939..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuEffbUb.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(nuEffb,Ub) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianNuEffbUb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuU.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuU.cfg deleted file mode 100644 index f2fb2247da..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/nuU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(nu,U) -{ - include "vector.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianNuU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/phi.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/phi.cfg deleted file mode 100644 index 6c6f572322..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/phi.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian(phi) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacian1phi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUp.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUp.cfg deleted file mode 100644 index 8ad1ef561f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((rho*(1|A(U))),p) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianRhoAUp.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUpd.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUpd.cfg deleted file mode 100644 index 66042a0a6e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/rhoAUpd.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laplacian((rho*(1|A(U))),pd) -{ - include "scalar.cfg"; - iconURL "/FoamX/icons/small/maths/laplacianRhoAUpd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/scalar.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/scalar.cfg deleted file mode 100644 index 56aaf1b409..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/scalar.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - include "../interpolation/interpolationScheme.cfg"; - } - - snGradScheme - { - include "../snGrad/snGradSchemeScalar.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/schemes.cfg deleted file mode 100644 index b369f691f8..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Laplacian discretisation schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/vector.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/vector.cfg deleted file mode 100644 index 7dfb29530c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/laplacian/vector.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type compound; -entries -{ - include "discretisationScheme.cfg"; - - interpolationScheme - { - include "../interpolation/interpolationScheme.cfg"; - } - - snGradScheme - { - include "../snGrad/snGradSchemeVector.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/default.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/default.cfg deleted file mode 100644 index 9faa469938..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/default.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -default -{ - description "Default scheme"; - iconURL "/FoamX/icons/small/maths/snGradScheme.gif"; - include "snGradSchemeVector.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/defaultOnly.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/defaultOnly.cfg deleted file mode 100644 index 871e144e94..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/defaultOnly.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -snGradSchemes -{ - include "schemes.cfg"; - - entries - { - include "default.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/schemes.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/schemes.cfg deleted file mode 100644 index 8a1063be61..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/schemes.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Surface normal gradient schemes"; -helpURL "fvSchemes.html"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeScalar.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeScalar.cfg deleted file mode 100644 index cc5137d83e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeScalar.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "$FOAMX_CONFIG/entries/snGradSchemes/corrected.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/uncorrected.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/bounded.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/fourth.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/limited.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeVector.cfg b/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeVector.cfg deleted file mode 100644 index fc52e9ddce..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSchemes/snGrad/snGradSchemeVector.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "$FOAMX_CONFIG/entries/snGradSchemes/corrected.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/uncorrected.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/fourth.cfg"; - include "$FOAMX_CONFIG/entries/snGradSchemes/limited.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/PISO.cfg b/etc/apps/FoamX/dictionaries/fvSolution/PISO.cfg deleted file mode 100644 index b24c59f47a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/PISO.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -PISO -{ - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/Switch/momentumPredictor.cfg"; - include "$FOAMX_CONFIG/entries/label/nCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/ref/pRef.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/SIMPLE.cfg b/etc/apps/FoamX/dictionaries/fvSolution/SIMPLE.cfg deleted file mode 100644 index 75d9e3a270..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/SIMPLE.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SIMPLE -{ - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/label/nNonOrthogonalCorrectors.cfg"; - include "$FOAMX_CONFIG/entries/ref/pRef.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/contactPatch.cfg b/etc/apps/FoamX/dictionaries/fvSolution/contactPatch.cfg deleted file mode 100644 index 9104a0825f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/contactPatch.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -contactPatch -{ - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/scalar01/contactUnderrelaxation.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/touchTolerance.cfg"; - include "$FOAMX_CONFIG/entries/label/gradPatchID.cfg"; - include "$FOAMX_CONFIG/entries/label/dirPatchID.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/fvSolution.cfg b/etc/apps/FoamX/dictionaries/fvSolution/fvSolution.cfg deleted file mode 100644 index 6521a6cd63..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/fvSolution.cfg +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Finite volume solution dictionary"; -helpURL "fvSolution.html"; -dictionaryPath "system"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Alpha.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Alpha.cfg deleted file mode 100644 index 876853132a..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Alpha.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Alpha -{ - include "asymmetricSparse.cfg"; - description "Solver for the Alpha equation"; - iconURL "/FoamX/icons/small/maths/Alpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/B.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/B.cfg deleted file mode 100644 index b0451a6d31..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/B.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - include "asymmetricSparse.cfg"; - description "Solver for the B equation"; - iconURL "/FoamX/icons/small/maths/B.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/D.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/D.cfg deleted file mode 100644 index 339566704b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/D.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -D -{ - include "symmetricSparse.cfg"; - description "Solver for the D equation"; - iconURL "/FoamX/icons/small/maths/D.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/R.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/R.cfg deleted file mode 100644 index 9a68e5a8b2..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/R.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -R -{ - include "asymmetricSparse.cfg"; - description "Solver for the R equation"; - iconURL "/FoamX/icons/small/maths/R.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Su.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Su.cfg deleted file mode 100644 index ff1875ca7b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Su.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Su -{ - include "asymmetricSparse.cfg"; - description "Solver for the Su equation"; - iconURL "/FoamX/icons/small/maths/Su.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/T.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/T.cfg deleted file mode 100644 index 29eb18824e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/T.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - include "asymmetricSparse.cfg"; - description "Solver for the T equation"; - iconURL "/FoamX/icons/small/maths/T.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Tsymm.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Tsymm.cfg deleted file mode 100644 index c829ace44d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Tsymm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - include "symmetricSparse.cfg"; - description "Solver for the T equation"; - iconURL "/FoamX/icons/small/maths/T.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/U.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/U.cfg deleted file mode 100644 index 09901e0694..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/U.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - include "asymmetricSparse.cfg"; - description "Solver for the U equation"; - iconURL "/FoamX/icons/small/maths/U.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ua.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ua.cfg deleted file mode 100644 index edb57905a8..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ua.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ua -{ - include "asymmetricSparse.cfg"; - description "Solver for the Ua equation"; - iconURL "/FoamX/icons/small/maths/Ua.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ub.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ub.cfg deleted file mode 100644 index 36f735f425..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Ub.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ub -{ - include "asymmetricSparse.cfg"; - description "Solver for the Ub equation"; - iconURL "/FoamX/icons/small/maths/Ub.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Usymm.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Usymm.cfg deleted file mode 100644 index 3ceae6664c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Usymm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - include "symmetricSparse.cfg"; - description "Solver for the U equation"; - iconURL "/FoamX/icons/small/maths/U.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Vfinancial.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Vfinancial.cfg deleted file mode 100644 index eb1e5c9bcc..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Vfinancial.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -V -{ - include "asymmetricSparse.cfg"; - description "Solver for the V equation"; - iconURL "/FoamX/icons/small/maths/V.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Xi.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/Xi.cfg deleted file mode 100644 index 47ebcb7209..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/Xi.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Xi -{ - include "asymmetricSparse.cfg"; - description "Solver for the Xi equation"; - iconURL "/FoamX/icons/small/maths/Xi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/alpha.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/alpha.cfg deleted file mode 100644 index 71ab995180..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/alpha.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alpha -{ - include "asymmetricSparse.cfg"; - description "Solver for the alpha equation"; - iconURL "/FoamX/icons/small/maths/alpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/asymmetricSparse.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/asymmetricSparse.cfg deleted file mode 100644 index b1c0027705..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/asymmetricSparse.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "$FOAMX_CONFIG/entries/solvers/PBiCG.cfg"; - include "$FOAMX_CONFIG/entries/solvers/smoothSolver.cfg"; - include "$FOAMX_CONFIG/entries/solvers/GAMG.cfg"; - include "$FOAMX_CONFIG/entries/solvers/BICCG.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/b.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/b.cfg deleted file mode 100644 index 04fbeb12e5..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/b.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -b -{ - include "asymmetricSparse.cfg"; - description "Solver for the b equation"; - iconURL "/FoamX/icons/small/maths/b.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/beta.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/beta.cfg deleted file mode 100644 index da98bca9db..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/beta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -beta -{ - include "asymmetricSparse.cfg"; - description "Solver for the beta equation"; - iconURL "/FoamX/icons/small/maths/beta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/e.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/e.cfg deleted file mode 100644 index 83286005c3..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/e.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -e -{ - include "asymmetricSparse.cfg"; - description "Solver for the e equation"; - iconURL "/FoamX/icons/small/maths/e.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/epsilon.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/epsilon.cfg deleted file mode 100644 index 15384c71a3..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/epsilon.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -epsilon -{ - include "asymmetricSparse.cfg"; - description "Solver for the epsilon equation"; - iconURL "/FoamX/icons/small/maths/epsilon.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/ft.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/ft.cfg deleted file mode 100644 index 2a943f2ce7..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/ft.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ft -{ - include "asymmetricSparse.cfg"; - description "Solver for the ft equation"; - iconURL "/FoamX/icons/small/maths/ft.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/fu.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/fu.cfg deleted file mode 100644 index f5b298f5be..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/fu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fu -{ - include "asymmetricSparse.cfg"; - description "Solver for the fu equation"; - iconURL "/FoamX/icons/small/maths/fu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/gamma.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/gamma.cfg deleted file mode 100644 index 1de51acc53..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/gamma.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gamma -{ - include "asymmetricSparse.cfg"; - description "Solver for the gamma equation"; - iconURL "/FoamX/icons/small/maths/gamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/h.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/h.cfg deleted file mode 100644 index 7c0109ac73..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/h.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -h -{ - include "asymmetricSparse.cfg"; - description "Solver for the h equation"; - iconURL "/FoamX/icons/small/maths/h.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/hu.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/hu.cfg deleted file mode 100644 index 87eec94756..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/hu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -hu -{ - include "asymmetricSparse.cfg"; - description "Solver for the hu equation"; - iconURL "/FoamX/icons/small/maths/hu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/k.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/k.cfg deleted file mode 100644 index afbcee39f0..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/k.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - include "asymmetricSparse.cfg"; - description "Solver for the k equation"; - iconURL "/FoamX/icons/small/maths/k.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/motionU.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/motionU.cfg deleted file mode 100644 index 8de6e47c66..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/motionU.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -motionU -{ - include "symmetricSparse.cfg"; - description "Solver for the motionU equation"; - iconURL "/FoamX/icons/small/maths/U.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/nuTilda.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/nuTilda.cfg deleted file mode 100644 index 7a14e3d2f8..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/nuTilda.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nuTilda -{ - include "asymmetricSparse.cfg"; - description "Solver for the nuTilda equation"; - iconURL "/FoamX/icons/small/maths/nuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pAsymm.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pAsymm.cfg deleted file mode 100644 index e5e9d81897..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pAsymm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - include "asymmetricSparse.cfg"; - description "Solver for the p equation"; - iconURL "/FoamX/icons/small/maths/p.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pB.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pB.cfg deleted file mode 100644 index aa82500da6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pB.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pB -{ - include "symmetricSparse.cfg"; - description "Solver for the pB equation"; - iconURL "/FoamX/icons/small/maths/pB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pFinal.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pFinal.cfg deleted file mode 100644 index d00e49d90b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pFinal.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pFinal -{ - include "symmetricSparse.cfg"; - description "Solver for the pFinal equation"; - iconURL "/FoamX/icons/small/maths/pd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pSymm.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pSymm.cfg deleted file mode 100644 index 58f8d7c2c6..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pSymm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - include "symmetricSparse.cfg"; - description "Solver for the p equation"; - iconURL "/FoamX/icons/small/maths/p.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pcorr.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pcorr.cfg deleted file mode 100644 index 0ea4ed503c..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pcorr.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pcorr -{ - include "symmetricSparse.cfg"; - description "Solver for the pcorr equation"; - iconURL "/FoamX/icons/small/maths/pcorr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pd.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pd.cfg deleted file mode 100644 index edba98e45b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pd.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pd -{ - include "symmetricSparse.cfg"; - description "Solver for the pd equation"; - iconURL "/FoamX/icons/small/maths/pd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pdFinal.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/pdFinal.cfg deleted file mode 100644 index 3016a6738e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/pdFinal.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pdFinal -{ - include "symmetricSparse.cfg"; - description "Solver for the pdFinal equation"; - iconURL "/FoamX/icons/small/maths/pd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/phiEP.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/phiEP.cfg deleted file mode 100644 index a29afe1fe0..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/phiEP.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phi -{ - include "symmetricSparse.cfg"; - description "Solver for the phi equation"; - iconURL "/FoamX/icons/small/maths/phi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rho.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/rho.cfg deleted file mode 100644 index 9b45e69664..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rho.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - include "symmetricSparse.cfg"; - description "Solver for the rho equation"; - iconURL "/FoamX/icons/small/maths/rho.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoCD.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoCD.cfg deleted file mode 100644 index 9dee5f623b..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoCD.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - include "asymmetricSparse.cfg"; - description "Solver for the rho equation"; - iconURL "/FoamX/icons/small/maths/rho.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoE.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoE.cfg deleted file mode 100644 index 0401777d07..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoE.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhoE -{ - include "asymmetricSparse.cfg"; - description "Solver for the rhoE equation"; - iconURL "/FoamX/icons/small/maths/rhoE.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoU.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoU.cfg deleted file mode 100644 index 742f3e248e..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/rhoU.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhoU -{ - include "asymmetricSparse.cfg"; - description "Solver for the rhoU equation"; - iconURL "/FoamX/icons/small/maths/rhoU.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/symmetricSparse.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/symmetricSparse.cfg deleted file mode 100644 index a237f2ac7d..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/symmetricSparse.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type selection; -entries -{ - include "$FOAMX_CONFIG/entries/solvers/PCG.cfg"; - include "$FOAMX_CONFIG/entries/solvers/smoothSolverSymm.cfg"; - include "$FOAMX_CONFIG/entries/solvers/GAMG.cfg"; - include "$FOAMX_CONFIG/entries/solvers/ICCG.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/solvers/theta.cfg b/etc/apps/FoamX/dictionaries/fvSolution/solvers/theta.cfg deleted file mode 100644 index 8f2d4581c5..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/solvers/theta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -theta -{ - include "asymmetricSparse.cfg"; - description "Solver for the theta equation"; - iconURL "/FoamX/icons/small/maths/theta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvSolution/stressAnalysis.cfg b/etc/apps/FoamX/dictionaries/fvSolution/stressAnalysis.cfg deleted file mode 100644 index 944b0434c3..0000000000 --- a/etc/apps/FoamX/dictionaries/fvSolution/stressAnalysis.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -stressAnalysis -{ - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/Switch/compactNormalStress.cfg"; - include "$FOAMX_CONFIG/entries/label/nOuterIterations.cfg"; - include "$FOAMX_CONFIG/entries/scalar01/D.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvTolerances/fvTolerances.cfg b/etc/apps/FoamX/dictionaries/fvTolerances/fvTolerances.cfg deleted file mode 100644 index 42ddde418f..0000000000 --- a/etc/apps/FoamX/dictionaries/fvTolerances/fvTolerances.cfg +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -displayName "Solution tolerances"; -description "Solution tolerances"; -dictionaryPath "system"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetAll.cfg b/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetAll.cfg deleted file mode 100644 index ac2c4b8f11..0000000000 --- a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetAll.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -toleranceSet -{ - type word; - displayName "toleranceSet"; - description "Set of tolerances"; - iconURL "/FoamX/icons/small/maths/toleranceSet.gif"; - default transient; - valueList - ( - transient - steadyState - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteady.cfg b/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteady.cfg deleted file mode 100644 index 1f0ad71878..0000000000 --- a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteady.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -toleranceSet -{ - type word; - displayName "toleranceSet"; - description "Set of tolerances"; - iconURL "/FoamX/icons/small/maths/toleranceSet.gif"; - default steadyState; - valueList - ( - steadyState - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteadyTight.cfg b/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteadyTight.cfg deleted file mode 100644 index ae98754796..0000000000 --- a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetSteadyTight.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -toleranceSet -{ - type word; - displayName "toleranceSet"; - description "Set of tolerances"; - iconURL "/FoamX/icons/small/maths/toleranceSet.gif"; - default steadyState; - valueList - ( - steadyState - tightSteadyState - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetTransient.cfg b/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetTransient.cfg deleted file mode 100644 index 7fd017e798..0000000000 --- a/etc/apps/FoamX/dictionaries/fvTolerances/toleranceSetTransient.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -toleranceSet -{ - type word; - displayName "toleranceSet"; - description "Set of tolerances"; - iconURL "/FoamX/icons/small/maths/toleranceSet.gif"; - default transient; - valueList - ( - transient - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/injectorProperties/injector.cfg b/etc/apps/FoamX/dictionaries/injectorProperties/injector.cfg deleted file mode 100644 index 6d7ed4a5ab..0000000000 --- a/etc/apps/FoamX/dictionaries/injectorProperties/injector.cfg +++ /dev/null @@ -1,62 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -injector -{ - type dictionary; - entries - { - include "$FOAMX_CONFIG/entries/vector/position.cfg"; - include "$FOAMX_CONFIG/entries/vector/direction.cfg"; - - diameter - { - type scalar0Inf; - description "Diameter of nozzle"; - } - - dischargeCoeff - { - type scalar; - description "Effective area/nozzle area"; - } - - mass - { - type scalar0Inf; - description "Injected mass (kg)"; - } - - temperature - { - type scalar0Inf; - description "Initial liquid temperature"; - } - - nParcels - { - type label; - description "Number of injected parcels"; - } - - injectionProfile - { - type list; - description "mass injection profile, (first timevalue = soi, last timevalue = eoi)"; - - types - { - include "timeDistance.cfg"; - } - - elementType timeDistance; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/injectorProperties/injectorProperties.cfg b/etc/apps/FoamX/dictionaries/injectorProperties/injectorProperties.cfg deleted file mode 100644 index e3ed2d14c7..0000000000 --- a/etc/apps/FoamX/dictionaries/injectorProperties/injectorProperties.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -injectorProperties -{ - type compound; - description "Dictionary of the injector properties"; - dictionaryPath "constant"; - - entries - { - injectors - { - type list; - iconURL "/FoamX/icons/small/maths/injector.gif"; - - types - { - include "injector.cfg"; - } - - elementType injector; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/injectorProperties/timeDistance.cfg b/etc/apps/FoamX/dictionaries/injectorProperties/timeDistance.cfg deleted file mode 100644 index c1292412aa..0000000000 --- a/etc/apps/FoamX/dictionaries/injectorProperties/timeDistance.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -timeDistance -{ - description "Time - distance"; - type fixedList; - elementType scalar; - numElements 2; - elementLabels (time distance); -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/physicalProperties/physicalProperties.cfg b/etc/apps/FoamX/dictionaries/physicalProperties/physicalProperties.cfg deleted file mode 100644 index d4052e9a7f..0000000000 --- a/etc/apps/FoamX/dictionaries/physicalProperties/physicalProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of physical properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/RanzMarshallCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/RanzMarshallCoeffs.cfg deleted file mode 100644 index 588cc33f4e..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/RanzMarshallCoeffs.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -RanzMarshallCoeffs -{ - type dictionary; - description "Ranz-Marshall model coeffs"; - entries - { - include "coefficients/preRePrFactor.cfg"; - include "coefficients/ReExponent.cfg"; - include "coefficients/PrExponent.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/ReitzDiwakarCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/ReitzDiwakarCoeffs.cfg deleted file mode 100644 index 65123e5726..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/ReitzDiwakarCoeffs.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ReitzDiwakarCoeffs -{ - type dictionary; - description "Reitz-Diwakar model coeffs"; - entries - { - include "coefficients/Cbag.cfg"; - include "coefficients/Cb.cfg"; - include "coefficients/Cstrip.cfg"; - include "coefficients/Cs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/ReitzKHRTCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/ReitzKHRTCoeffs.cfg deleted file mode 100644 index 6333fff95a..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/ReitzKHRTCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ReitzKHRTCoeffs -{ - type dictionary; - description "Reitz KHRT model coeffs"; - entries - { - include "coefficients/B0.cfg"; - include "coefficients/B1.cfg"; - include "coefficients/Ctau.cfg"; - include "coefficients/CRT.cfg"; - include "coefficients/strippedMassLimit.cfg"; - include "coefficients/WeberLimit.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/atomizationModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/atomizationModel.cfg deleted file mode 100644 index bb1518faea..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/atomizationModel.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -atomizationModel -{ - type model; - description "Atomization model"; - default specConstAtomization; - valueList - ( - off - specConstAtomization - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/breakupModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/breakupModel.cfg deleted file mode 100644 index 252c696465..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/breakupModel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -breakupModel -{ - type model; - description "Breakup model"; - default ReitzDiwakar; - valueList - ( - off - ReitzDiwakar - ReitzKHRT - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B0.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B0.cfg deleted file mode 100644 index 375aff3a4d..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B0.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B0 -{ - type scalar; - description "B0"; - iconURL "/FoamX/icons/small/maths/B0.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B1.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B1.cfg deleted file mode 100644 index 8c64a9b61c..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/B1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B1 -{ - type scalar; - description "B1"; - iconURL "/FoamX/icons/small/maths/B1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CRT.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CRT.cfg deleted file mode 100644 index d897654bd2..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CRT.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -CRT -{ - type scalar; - description "CRT"; - iconURL "/FoamX/icons/small/maths/CRT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cb.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cb.cfg deleted file mode 100644 index 7b7b6113be..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cb.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cb -{ - type scalar; - description "Cb"; - iconURL "/FoamX/icons/small/maths/Cb.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cbag.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cbag.cfg deleted file mode 100644 index d0068c315a..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cbag.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cbag -{ - type scalar; - description "Cbag"; - iconURL "/FoamX/icons/small/maths/Cbag.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CdLimiter.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CdLimiter.cfg deleted file mode 100644 index 3a91d17e83..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/CdLimiter.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -CdLimiter -{ - type scalar; - description "CdLimiter"; - iconURL "/FoamX/icons/small/maths/CdLimit.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cdistort.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cdistort.cfg deleted file mode 100644 index ab67314c36..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cdistort.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cdistort -{ - type scalar; - description "Cdistort"; - iconURL "/FoamX/icons/small/maths/Cdistort.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cs.cfg deleted file mode 100644 index e88282ddb6..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cs.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cs -{ - type scalar; - description "Cs"; - iconURL "/FoamX/icons/small/maths/Cs.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cstrip.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cstrip.cfg deleted file mode 100644 index d27bbcc668..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Cstrip.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cstrip -{ - type scalar; - description "Cstrip"; - iconURL "/FoamX/icons/small/maths/Cstrip.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Ctau.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Ctau.cfg deleted file mode 100644 index f8a8de2965..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/Ctau.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ctau -{ - type scalar; - description "Ctau"; - iconURL "/FoamX/icons/small/maths/Ctau.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/PrExponent.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/PrExponent.cfg deleted file mode 100644 index 6a20bbf534..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/PrExponent.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -PrExponent -{ - type scalar; - description "PrExponent"; - iconURL "/FoamX/icons/small/maths/Pr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReExponent.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReExponent.cfg deleted file mode 100644 index 9045753a84..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReExponent.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ReExponent -{ - type scalar; - description "ReExponent"; - iconURL "/FoamX/icons/small/maths/Re.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReLimiter.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReLimiter.cfg deleted file mode 100644 index 952317007d..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ReLimiter.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ReLimiter -{ - type scalar; - description "ReLimiter"; - iconURL "/FoamX/icons/small/maths/ReLimit.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ScExponent.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ScExponent.cfg deleted file mode 100644 index 3a9a79a369..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/ScExponent.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ScExponent -{ - type scalar; - description "ScExponent"; - iconURL "/FoamX/icons/small/maths/Sc.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/WeberLimit.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/WeberLimit.cfg deleted file mode 100644 index 17ad60b856..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/WeberLimit.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -WeberLimit -{ - type scalar; - description "WeberLimit"; - iconURL "/FoamX/icons/small/maths/WeberLimit.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cSpace.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cSpace.cfg deleted file mode 100644 index a38fb34843..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cSpace.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cSpace -{ - type scalar; - description "cSpace"; - iconURL "/FoamX/icons/small/maths/cSpace.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cTime.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cTime.cfg deleted file mode 100644 index d6798e992b..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/cTime.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cTime -{ - type scalar; - description "cTime"; - iconURL "/FoamX/icons/small/maths/cTime.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/createCoefficient b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/createCoefficient deleted file mode 100644 index e29373b40c..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/createCoefficient +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar01 " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type scalar;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/elasticity.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/elasticity.cfg deleted file mode 100644 index 4ba856cbe0..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/elasticity.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -elasticity -{ - type scalar; - description "elasticity"; - iconURL "/FoamX/icons/small/maths/E.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReFactor.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReFactor.cfg deleted file mode 100644 index 68e8a7083d..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReFactor.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preReFactor -{ - type scalar; - description "preReFactor"; - iconURL "/FoamX/icons/small/maths/Re.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preRePrFactor.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preRePrFactor.cfg deleted file mode 100644 index a24dd9c6dc..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preRePrFactor.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preRePrFactor -{ - type scalar; - description "preRePrFactor"; - iconURL "/FoamX/icons/small/maths/RePr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReScFactor.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReScFactor.cfg deleted file mode 100644 index 412c4eeb80..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/preReScFactor.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preReScFactor -{ - type scalar; - description "preReScFactor"; - iconURL "/FoamX/icons/small/maths/ReSc.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/strippedMassLimit.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/strippedMassLimit.cfg deleted file mode 100644 index 3d9c61ec0a..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/coefficients/strippedMassLimit.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -strippedMassLimit -{ - type scalar; - description "strippedMassLimit"; - iconURL "/FoamX/icons/small/maths/mmax.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/collisionModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/collisionModel.cfg deleted file mode 100644 index 3e623338c9..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/collisionModel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -collisionModel -{ - type model; - description "Collision model"; - default off; - valueList - ( - off - ORourke - trajectory - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/dispersionModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/dispersionModel.cfg deleted file mode 100644 index b53457154c..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/dispersionModel.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dispersionModel -{ - type model; - description "Dispersion model"; - default off; - valueList - ( - off - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/dragModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/dragModel.cfg deleted file mode 100644 index dde236ea0f..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/dragModel.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dragModel -{ - type model; - description "Drag model"; - default standardDragModel; - valueList - ( - standardDragModel - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/evaporationModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/evaporationModel.cfg deleted file mode 100644 index 158e0e32cd..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/evaporationModel.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -evaporationModel -{ - type model; - description "Evaporation model"; - default standardEvaporationModel; - valueList - ( - off - standardEvaporationModel - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/heatTransferModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/heatTransferModel.cfg deleted file mode 100644 index 579f0f287d..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/heatTransferModel.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -heatTransferModel -{ - type model; - description "Heat transfer model"; - default RanzMarshall; - valueList - ( - off - RanzMarshall - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes.cfg deleted file mode 100644 index 8fca6ba686..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interpolationSchemes -{ - type dictionary; - description "Interpolation schemes"; - entries - { - include "interpolationSchemes/U.cfg"; - include "interpolationSchemes/rho.cfg"; - include "interpolationSchemes/p.cfg"; - include "interpolationSchemes/T.cfg"; - include "interpolationSchemes/ft.cfg"; - include "interpolationSchemes/fu.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/T.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/T.cfg deleted file mode 100644 index c3309fb3dd..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/T.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - type word; - description "T interpolation scheme"; - iconURL "/FoamX/icons/small/maths/T.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/U.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/U.cfg deleted file mode 100644 index d11a99dabd..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/U.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - type word; - description "U interpolation scheme"; - iconURL "/FoamX/icons/small/maths/U.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/createInterpolationScheme b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/createInterpolationScheme deleted file mode 100644 index c348d83172..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/createInterpolationScheme +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar01 " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type word;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1' interpolation scheme";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo ' valueList' >> $file -echo ' (' >> $file -echo ' cell' >> $file -echo ' cellPoint' >> $file -echo ' cellPointFace' >> $file -echo ' );' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/ft.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/ft.cfg deleted file mode 100644 index 0b7c6f8c62..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/ft.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ft -{ - type word; - description "ft interpolation scheme"; - iconURL "/FoamX/icons/small/maths/ft.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/fu.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/fu.cfg deleted file mode 100644 index 1839702b32..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/fu.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fu -{ - type word; - displayName "fu"; - description "fu interpolation scheme"; - iconURL "/FoamX/icons/small/maths/fu.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/p.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/p.cfg deleted file mode 100644 index 215f86dd39..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/p.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - type word; - description "p interpolation scheme"; - iconURL "/FoamX/icons/small/maths/p.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/rho.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/rho.cfg deleted file mode 100644 index 989e4fd79f..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/interpolationSchemes/rho.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - type word; - description "rho interpolation scheme"; - iconURL "/FoamX/icons/small/maths/rho.gif"; - valueList - ( - cell - cellPoint - cellPointFace - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/reflectCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/reflectCoeffs.cfg deleted file mode 100644 index eb25975efa..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/reflectCoeffs.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -reflectCoeffs -{ - type dictionary; - description "Reflection model coefficients"; - entries - { - include "coefficients/elasticity.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/specConstAtomizationCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/specConstAtomizationCoeffs.cfg deleted file mode 100644 index 2820ed5eb7..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/specConstAtomizationCoeffs.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -specConstAtomizationCoeffs -{ - type dictionary; - description "Specific constant atomization model coefficents"; - entries - { - dropletNozzleDiameterRatio - { - type list; - iconURL "/FoamX/icons/small/maths/dropletDiameterRatio.gif"; - elementType scalar; - } - - sprayAngle - { - type list; - iconURL "/FoamX/icons/small/maths/angle.gif"; - elementType scalar; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/sprayProperties.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/sprayProperties.cfg deleted file mode 100644 index c1f2c80c0b..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/sprayProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of spray properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/standardDragModelCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/standardDragModelCoeffs.cfg deleted file mode 100644 index d27e9382a0..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/standardDragModelCoeffs.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -standardDragModelCoeffs -{ - type dictionary; - description "Standard drag model coefficients"; - entries - { - include "coefficients/preReFactor.cfg"; - include "coefficients/ReExponent.cfg"; - include "coefficients/ReLimiter.cfg"; - include "coefficients/CdLimiter.cfg"; - include "coefficients/Cdistort.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/standardEvaporationModelCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/standardEvaporationModelCoeffs.cfg deleted file mode 100644 index 41a86d7a14..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/standardEvaporationModelCoeffs.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -standardEvaporationModelCoeffs -{ - type dictionary; - description "Standard evaporation model coefficients"; - entries - { - evaporationScheme - { - type model; - default explicit; - valueList - ( - explicit - ); - } - - include "coefficients/preReScFactor.cfg"; - include "coefficients/ReExponent.cfg"; - include "coefficients/ScExponent.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/subCycles.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/subCycles.cfg deleted file mode 100644 index 2244dbaf59..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/subCycles.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -subCycles -{ - type label; - description "Lagrangian temporal sub cycling"; - iconURL "/FoamX/icons/small/maths/purgeWrite.gif"; - helpURL "controlDict.html"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/trajectoryCoeffs.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/trajectoryCoeffs.cfg deleted file mode 100644 index 824797693a..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/trajectoryCoeffs.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -trajectoryCoeffs -{ - type dictionary; - description "Trajectory coeffs"; - entries - { - include "coefficients/cSpace.cfg"; - include "coefficients/cTime.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/sprayProperties/wallModel.cfg b/etc/apps/FoamX/dictionaries/sprayProperties/wallModel.cfg deleted file mode 100644 index 9ecf92a7f2..0000000000 --- a/etc/apps/FoamX/dictionaries/sprayProperties/wallModel.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallModel -{ - type model; - description "Wall model"; - default reflect; - valueList - ( - remove - reflect - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicProperties.cfg b/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicProperties.cfg deleted file mode 100644 index f831f42a35..0000000000 --- a/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of thermodynamic properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicPropertiesConst.cfg b/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicPropertiesConst.cfg deleted file mode 100644 index e8f6c8dd6b..0000000000 --- a/etc/apps/FoamX/dictionaries/thermodynamicProperties/thermodynamicPropertiesConst.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thermodynamicProperties -{ - include "thermodynamicProperties.cfg"; - - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cv.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/R.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Cp.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Cp.cfg deleted file mode 100644 index c1107a8f75..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Cp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cp -{ - type scalar; - description "Cp"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Hf.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Hf.cfg deleted file mode 100644 index 16ddaf97b1..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Hf.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -deltaH -{ - type scalar; - description "deltaH"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Pr.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Pr.cfg deleted file mode 100644 index f4a5d6cc62..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Pr.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Pr -{ - type scalar; - description "Pr"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tcommon.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tcommon.cfg deleted file mode 100644 index 6ecace3384..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tcommon.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ttransition -{ - type scalar; - description "Ttransition"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Thigh.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Thigh.cfg deleted file mode 100644 index c1b7378a07..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Thigh.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Thigh -{ - type scalar; - description "Thigh"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tlow.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tlow.cfg deleted file mode 100644 index 24891e84e2..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/Tlow.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Tlow -{ - type scalar; - description "Tlow"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/createCoefficient b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/createCoefficient deleted file mode 100644 index 607dae605b..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/createCoefficient +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar01 " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type scalar;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff1.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff1.cfg deleted file mode 100644 index b5e5881391..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff1.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTCpCoeff1 -{ - type scalar; - description "highTCpCoeff1"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff2.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff2.cfg deleted file mode 100644 index 9c439a3d00..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff2.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTCpCoeff2 -{ - type scalar; - description "highTCpCoeff2"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff3.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff3.cfg deleted file mode 100644 index 5f0dbd79af..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff3.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTCpCoeff3 -{ - type scalar; - description "highTCpCoeff3"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff4.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff4.cfg deleted file mode 100644 index 9e58af7846..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff4.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTCpCoeff4 -{ - type scalar; - description "highTCpCoeff4"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff5.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff5.cfg deleted file mode 100644 index 96ae5b009a..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTCpCoeff5.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTCpCoeff5 -{ - type scalar; - description "highTCpCoeff5"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highThOffset.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highThOffset.cfg deleted file mode 100644 index b2fa832ebf..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highThOffset.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highThOffset -{ - type scalar; - description "highThOffset"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTsOffset.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTsOffset.cfg deleted file mode 100644 index f41762a07f..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/highTsOffset.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -highTsOffset -{ - type scalar; - description "highTsOffset"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff1.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff1.cfg deleted file mode 100644 index b61aa564d8..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff1.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTCpCoeff1 -{ - type scalar; - description "lowTCpCoeff1"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff2.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff2.cfg deleted file mode 100644 index f65a4e9db3..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff2.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTCpCoeff2 -{ - type scalar; - description "lowTCpCoeff2"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff3.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff3.cfg deleted file mode 100644 index 867a884223..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff3.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTCpCoeff3 -{ - type scalar; - description "lowTCpCoeff3"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff4.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff4.cfg deleted file mode 100644 index 7f0c0fefdc..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff4.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTCpCoeff4 -{ - type scalar; - description "lowTCpCoeff4"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff5.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff5.cfg deleted file mode 100644 index 95360fcb4c..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTCpCoeff5.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTCpCoeff5 -{ - type scalar; - description "lowTCpCoeff5"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowThOffset.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowThOffset.cfg deleted file mode 100644 index c2edf9fc4e..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowThOffset.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowThOffset -{ - type scalar; - description "lowThOffset"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTsOffset.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTsOffset.cfg deleted file mode 100644 index 48dd4921a3..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/lowTsOffset.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowTsOffset -{ - type scalar; - description "lowTsOffset"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/molecularWeight.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/molecularWeight.cfg deleted file mode 100644 index 139082ae6a..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/molecularWeight.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -molecularWeight -{ - type scalar; - description "molecularWeight"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/nMoles.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/nMoles.cfg deleted file mode 100644 index 37a0f2d33c..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/nMoles.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nMoles -{ - type scalar; - description "nMoles"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandA.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandA.cfg deleted file mode 100644 index d7ae7b4f4f..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandA.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sutherlandA -{ - type scalar; - description "sutherlandA"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandTemp.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandTemp.cfg deleted file mode 100644 index 4c31f6fc2b..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/sutherlandTemp.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sutherlandTemp -{ - type scalar; - description "sutherlandTemp"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/viscosity.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/viscosity.cfg deleted file mode 100644 index 3a89153d8c..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/coefficients/viscosity.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -viscosity -{ - type scalar; - displayName "viscosity"; - description "viscosity"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficients.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficients.cfg deleted file mode 100644 index 78e0b8417f..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficients.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "specieCoeffs.cfg"; -include "janafThermoCoeffs.cfg"; -include "sutherlandTransportCoeffs.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsHconst.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsHconst.cfg deleted file mode 100644 index 9e81a00b94..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsHconst.cfg +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -reactants -{ - type compound; - iconURL "/FoamX/icons/small/maths/reactants.gif"; - entries - { - reactantsName - { - type word; - } - include "specieCoeffs.cfg"; - include "hConstThermoCoeffs.cfg"; - include "constTransportCoeffs.cfg"; - } -} - -products -{ - type compound; - iconURL "/FoamX/icons/small/maths/products.gif"; - entries - { - productsName - { - type word; - } - include "specieCoeffs.cfg"; - include "hConstThermoCoeffs.cfg"; - include "constTransportCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsJanaf.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsJanaf.cfg deleted file mode 100644 index 8aa48b01f0..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/combustionCoefficientsJanaf.cfg +++ /dev/null @@ -1,84 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fuel -{ - type compound; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - optional 1; - entries - { - fuelName - { - type word; - } - include "combustionCoefficients.cfg"; - } -} - -oxidant -{ - type compound; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - optional 1; - entries - { - oxidant - { - type word; - } - include "combustionCoefficients.cfg"; - } -} - -reactants -{ - type compound; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - optional 1; - entries - { - reactants - { - type word; - } - include "combustionCoefficients.cfg"; - } -} - -products -{ - type compound; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - optional 1; - entries - { - products - { - type word; - } - include "combustionCoefficients.cfg"; - } -} - -burntProducts -{ - type compound; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - optional 1; - entries - { - burntProducts - { - type word; - } - include "combustionCoefficients.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/constTransportCoeffs.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/constTransportCoeffs.cfg deleted file mode 100644 index 196886398e..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/constTransportCoeffs.cfg +++ /dev/null @@ -1,12 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "coefficients/viscosity.cfg"; -include "coefficients/Pr.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/hConstThermoCoeffs.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/hConstThermoCoeffs.cfg deleted file mode 100644 index cbfc129e4d..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/hConstThermoCoeffs.cfg +++ /dev/null @@ -1,12 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "coefficients/Cp.cfg"; -include "coefficients/Hf.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/janafThermoCoeffs.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/janafThermoCoeffs.cfg deleted file mode 100644 index f5589579aa..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/janafThermoCoeffs.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "coefficients/Tlow.cfg"; -include "coefficients/Thigh.cfg"; -include "coefficients/Tcommon.cfg"; -include "coefficients/highTCpCoeff1.cfg"; -include "coefficients/highTCpCoeff2.cfg"; -include "coefficients/highTCpCoeff3.cfg"; -include "coefficients/highTCpCoeff4.cfg"; -include "coefficients/highTCpCoeff5.cfg"; -include "coefficients/highThOffset.cfg"; -include "coefficients/highTsOffset.cfg"; -include "coefficients/lowTCpCoeff1.cfg"; -include "coefficients/lowTCpCoeff2.cfg"; -include "coefficients/lowTCpCoeff3.cfg"; -include "coefficients/lowTCpCoeff4.cfg"; -include "coefficients/lowTCpCoeff5.cfg"; -include "coefficients/lowThOffset.cfg"; -include "coefficients/lowTsOffset.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/liquidFuel.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/liquidFuel.cfg deleted file mode 100644 index 1b17457568..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/liquidFuel.cfg +++ /dev/null @@ -1,45 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -liquidFuel -{ - type compound; - description "Type of liquid fuel"; - iconURL "/FoamX/icons/small/maths/fuel.gif"; - entries - { - fuel - { - type word; - default nHeptane; - valueList - ( - nHeptane - nDodecane - isoOctane - nDecane - nOctane - water - diMethylEther - diEthylEther - ); - } - - properties - { - type word; - default defaultCoeffs; - valueList - ( - defaultCoeffs - ); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/specieCoeffs.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/specieCoeffs.cfg deleted file mode 100644 index 7205e30121..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/specieCoeffs.cfg +++ /dev/null @@ -1,12 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "coefficients/nMoles.cfg"; -include "coefficients/molecularWeight.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/standardMixtureCoefficients.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/standardMixtureCoefficients.cfg deleted file mode 100644 index 8a908d1b77..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/standardMixtureCoefficients.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mixture -{ - type compound; - iconURL "/FoamX/icons/small/maths/mixture.gif"; - optional 1; - entries - { - mixtureName - { - type word; - } - include "specieCoeffs.cfg"; - include "hConstThermoCoeffs.cfg"; - include "constTransportCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/sutherlandTransportCoeffs.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/sutherlandTransportCoeffs.cfg deleted file mode 100644 index e086ba09d8..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/sutherlandTransportCoeffs.cfg +++ /dev/null @@ -1,12 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "coefficients/sutherlandA.cfg"; -include "coefficients/sutherlandTemp.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermoType.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermoType.cfg deleted file mode 100644 index 87961a4647..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermoType.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thermoType -{ - type model; - description "Thermophysical model"; - default hThermo>>>>; - - valueList - ( - hThermo>>>> - hMixtureThermo>>>> - hhuMixtureThermo>>>> - hhuMixtureThermo>>>> - hhuMixtureThermo>>>> - hhuMixtureThermo>>>> - hhuMixtureThermo>>>> - hhuMixtureThermo>>>> - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalProperties.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalProperties.cfg deleted file mode 100644 index 20f284fb76..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of thermophysical properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg deleted file mode 100644 index dfc0f99ff6..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesCombustion.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thermophysicalProperties -{ - include "thermophysicalProperties.cfg"; - - entries - { - include "thermoType.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/stoichiometricAirFuelMassRatio.cfg"; - include "combustionCoefficientsJanaf.cfg"; - } - - default - { - include "../../defaults/constant/thermophysicalPropertiesCombustion"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg b/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg deleted file mode 100644 index a977e984ba..0000000000 --- a/etc/apps/FoamX/dictionaries/thermophysicalProperties/thermophysicalPropertiesMixture.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thermophysicalProperties -{ - include "thermophysicalProperties.cfg"; - - entries - { - include "thermoType.cfg"; - include "standardMixtureCoefficients.cfg"; - } - - default - { - include "../../defaults/constant/thermophysicalPropertiesMixture"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/BirdCarreauCoeffs.cfg b/etc/apps/FoamX/dictionaries/transportProperties/BirdCarreauCoeffs.cfg deleted file mode 100644 index 07e31638ad..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/BirdCarreauCoeffs.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -BirdCarreauCoeffs -{ - type dictionary; - description "Coefficients for Bird-Carreau Law"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/nu0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nuInf.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/k.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/n.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/CrossPowerLawCoeffs.cfg b/etc/apps/FoamX/dictionaries/transportProperties/CrossPowerLawCoeffs.cfg deleted file mode 100644 index 365e5307fa..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/CrossPowerLawCoeffs.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -CrossPowerLawCoeffs -{ - type dictionary; - description "Coefficients for Cross's Power Law"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/nu0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/nuInf.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/m.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/n.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/NewtonianSinglePhaseTransportProperties.cfg b/etc/apps/FoamX/dictionaries/transportProperties/NewtonianSinglePhaseTransportProperties.cfg deleted file mode 100644 index a73418fedc..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/NewtonianSinglePhaseTransportProperties.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -transportProperties -{ - include "transportProperties.cfg"; - - entries - { - include "NewtonianViscosity.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/NewtonianViscosity.cfg b/etc/apps/FoamX/dictionaries/transportProperties/NewtonianViscosity.cfg deleted file mode 100644 index 9b6c822579..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/NewtonianViscosity.cfg +++ /dev/null @@ -1,11 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "$FOAMX_CONFIG/entries/dimensionedScalar/nu.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/contactAngle.cfg b/etc/apps/FoamX/dictionaries/transportProperties/contactAngle.cfg deleted file mode 100644 index 2717b72628..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/contactAngle.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Contact angle properties"; -entries -{ - include "$FOAMX_CONFIG/entries/dimensionedScalar/theta0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/thetaA.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/thetaR.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/uTheta.cfg"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/incompressibleTransportModel.cfg b/etc/apps/FoamX/dictionaries/transportProperties/incompressibleTransportModel.cfg deleted file mode 100644 index 256ed9adce..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/incompressibleTransportModel.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -transportModel -{ - type model; - description "Laminar incompressible transport model"; - default Newtonian; - valueList - ( - Newtonian - CrossPowerLaw - BirdCarreau - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/singlePhaseTransportProperties.cfg b/etc/apps/FoamX/dictionaries/transportProperties/singlePhaseTransportProperties.cfg deleted file mode 100644 index a59b9cef63..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/singlePhaseTransportProperties.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -transportProperties -{ - include "transportProperties.cfg"; - - entries - { - include "incompressibleTransportModel.cfg"; - include "NewtonianViscosity.cfg"; - include "CrossPowerLawCoeffs.cfg"; - include "BirdCarreauCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/transportProperties.cfg b/etc/apps/FoamX/dictionaries/transportProperties/transportProperties.cfg deleted file mode 100644 index f817ed1761..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/transportProperties.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -type dictionary; -description "Dictionary of transport properties"; -dictionaryPath "constant"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/transportProperties/twoPhaseTransportProperties.cfg b/etc/apps/FoamX/dictionaries/transportProperties/twoPhaseTransportProperties.cfg deleted file mode 100644 index b88ab56378..0000000000 --- a/etc/apps/FoamX/dictionaries/transportProperties/twoPhaseTransportProperties.cfg +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -transportProperties -{ - include "transportProperties.cfg"; - - entries - { - phase1 - { - type dictionary; - displayName "phase1"; - description "Phase 1 properties"; - entries - { - include "incompressibleTransportModel.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "NewtonianViscosity.cfg"; - include "CrossPowerLawCoeffs.cfg"; - include "BirdCarreauCoeffs.cfg"; - } - } - - phase2 - { - type dictionary; - displayName "phase2"; - description "Phase 2 properties"; - entries - { - include "incompressibleTransportModel.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/rho.cfg"; - include "NewtonianViscosity.cfg"; - include "CrossPowerLawCoeffs.cfg"; - include "BirdCarreauCoeffs.cfg"; - } - } - - include "$FOAMX_CONFIG/entries/dimensionedScalar/sigma.cfg"; - } -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsCompressible.cfg b/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsCompressible.cfg deleted file mode 100644 index 1c2f14ddf3..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsCompressible.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceProperties -{ - type dictionary; - description "Turbulence properties"; - dictionaryPath "constant"; - entries - { - include "$FOAMX_CONFIG/entries/LESmodels/compressible/LESmodel.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/LESdeltaTop.cfg"; - - include "laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/oneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/dynOneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/lowReOneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/SmagorinskyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/DeardorffDiffStressCoeffs.cfg"; - - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/cubeRootVolCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/PrandtlCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/vanDriestCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/smoothCoeffs.cfg"; - - include "$FOAMX_CONFIG/entries/LESmodels/kappa.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/compressible/wallFunctionCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg b/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg deleted file mode 100644 index 111dab75fc..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/LESmodelsIncompressible.cfg +++ /dev/null @@ -1,46 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceProperties -{ - type dictionary; - description "Turbulence properties"; - dictionaryPath "constant"; - entries - { - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/LESmodel.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/LESdeltaTop.cfg"; - - include "laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/oneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/dynOneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/locDynOneEqEddyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/SmagorinskyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/Smagorinsky2Coeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/spectEddyViscCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/dynSmagorinskyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/mixedSmagorinskyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/dynMixedSmagorinskyCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/LRRDiffStressCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/DeardorffDiffStressCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/SpalartAllmarasCoeffs.cfg"; - - //include "$FOAMX_CONFIG/entries/LESmodels/incompressible/isoScaleSimilarityCoeffs.cfg"; - - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/cubeRootVolCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/PrandtlCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/vanDriestCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/LESmodels/LESdeltas/smoothCoeffs.cfg"; - - include "$FOAMX_CONFIG/entries/LESmodels/kappa.cfg"; - - include "$FOAMX_CONFIG/entries/LESmodels/incompressible/wallFunctionCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/checkCoeffs b/etc/apps/FoamX/dictionaries/turbulenceProperties/checkCoeffs deleted file mode 100644 index 5e4375a4ff..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/checkCoeffs +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -for f in `find . -name "*Coeffs.cfg" -type f` -do - temp=`cat $f | head -1` - withCoeffs=`echo $temp | grep Coeffs` - if [ "$withCoeffs" == "" ] ; then - echo "$f is missing Coeffs" - fi -done diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/laminarCoeffs.cfg b/etc/apps/FoamX/dictionaries/turbulenceProperties/laminarCoeffs.cfg deleted file mode 100644 index bba982cfc7..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/laminarCoeffs.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -laminarCoeffs -{ - type dictionary; - optional 1; - description "Laminar model coefficients"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg b/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg deleted file mode 100644 index 9ab4ee8f45..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsCompressible.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceProperties -{ - type dictionary; - description "Turbulence properties"; - dictionaryPath "constant"; - - entries - { - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/turbulenceModel.cfg"; - include "$FOAMX_CONFIG/entries/Switch/turbulence.cfg"; - include "laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/kEpsilonCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/RNGkEpsilonCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/LaunderSharmaKECoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/LRRCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/LaunderGibsonRSTMCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/compressible/wallFunctionCoeffs.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg b/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg deleted file mode 100644 index 27a0e05617..0000000000 --- a/etc/apps/FoamX/dictionaries/turbulenceProperties/turbulenceModelsIncompressible.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceProperties -{ - type dictionary; - description "Turbulence properties"; - dictionaryPath "constant"; - - entries - { - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/turbulenceModel.cfg"; - include "$FOAMX_CONFIG/entries/Switch/turbulence.cfg"; - include "laminarCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/kEpsilonCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/RNGkEpsilonCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/NonlinearKEShihCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LienCubicKECoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/QZetaCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LaunderSharmaKECoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LamBremhorstKECoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LienCubicKELowReCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LienLeschzinerLowReCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LRRCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/LaunderGibsonRSTMCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/SpalartAllmarasCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/kOmegaSSTCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg"; - } -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaBottom.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaBottom.cfg deleted file mode 100644 index e07bb4c42c..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaBottom.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -delta -{ - type model; - description "Filtering scale"; - default cubeRootVol; - valueList - ( - cubeRootVol - smooth - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaTop.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaTop.cfg deleted file mode 100644 index 35f1ac0ad7..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/LESdeltaTop.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -delta -{ - type model; - description "Filtering scale"; - default cubeRootVol; - valueList - ( - cubeRootVol - Prandtl - vanDriest - smooth - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/PrandtlCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/PrandtlCoeffs.cfg deleted file mode 100644 index 381c9d3c73..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/PrandtlCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -PrandtlCoeffs -{ - type dictionary; - description "Prandtl wall function coefficients"; - entries - { - include "LESdeltaBottom.cfg"; - include "cubeRootVolCoeffs.cfg"; - include "smoothCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cdelta.cfg"; - } - - include "defaults/PrandtlCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/cubeRootVolCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/cubeRootVolCoeffs.cfg deleted file mode 100644 index 0e5b2caf0c..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/cubeRootVolCoeffs.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cubeRootVolCoeffs -{ - type dictionary; - description "Cube root of volume coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/scalar0Inf/deltaCoeff.cfg"; - } - - include "defaults/cubeRootVolCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/PrandtlCoeffs.def b/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/PrandtlCoeffs.def deleted file mode 100644 index 28a9b205f9..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/PrandtlCoeffs.def +++ /dev/null @@ -1,21 +0,0 @@ -default -{ - delta cubeRootVol; - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - maxDeltaRatio 1.1; - } - - Cdelta Cdelta [0 0 0 0 0 0 0] 0.158; -} diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/cubeRootVolCoeffs.def b/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/cubeRootVolCoeffs.def deleted file mode 100644 index 44c5ec677a..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/cubeRootVolCoeffs.def +++ /dev/null @@ -1,4 +0,0 @@ -default -{ - deltaCoeff 1; -} diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/smoothCoeffs.def b/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/smoothCoeffs.def deleted file mode 100644 index 5fe3f37bab..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/smoothCoeffs.def +++ /dev/null @@ -1,11 +0,0 @@ -default -{ - delta cubeRootVol; - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; -} diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/vanDriestCoeffs.def b/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/vanDriestCoeffs.def deleted file mode 100644 index 15466e38f3..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/defaults/vanDriestCoeffs.def +++ /dev/null @@ -1,22 +0,0 @@ -default -{ - delta cubeRootVol; - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - maxDeltaRatio 1.1; - } - - Aplus Aplus [0 0 0 0 0 0 0] 26; - Cdelta Cdelta [0 0 0 0 0 0 0] 0.158; -} diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/smoothCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/smoothCoeffs.cfg deleted file mode 100644 index cef9126e6c..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/smoothCoeffs.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -smoothCoeffs -{ - type dictionary; - description "Smooth wall function coefficients"; - entries - { - delta - { - type model; - description "Filtering scale"; - default cubeRootVol; - editable 0; - } - - include "cubeRootVolCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/scalar/maxDeltaRatio.cfg"; - } - - include "defaults/smoothCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESdeltas/vanDriestCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/LESdeltas/vanDriestCoeffs.cfg deleted file mode 100644 index 14b7408edb..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESdeltas/vanDriestCoeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanDriestCoeffs -{ - type dictionary; - description "van Driest wall function coefficients"; - entries - { - include "LESdeltaBottom.cfg"; - include "cubeRootVolCoeffs.cfg"; - include "smoothCoeffs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Aplus.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cdelta.cfg"; - } - - include "defaults/vanDriestCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/LESfilters.cfg b/etc/apps/FoamX/entries/LESmodels/LESfilters.cfg deleted file mode 100644 index 857e0075f9..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/LESfilters.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filter -{ - type model; - description "LES filter type"; - default simple; - valueList - ( - simple - laplace - anisotropic - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/DeardorffDiffStressCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/DeardorffDiffStressCoeffs.cfg deleted file mode 100644 index 91b808f230..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/DeardorffDiffStressCoeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DeardorffDiffStressCoeffs -{ - type dictionary; - description "Standard anisochoric Deardorff differential stress model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cm.cfg"; - } - - include "defaults/DeardorffDiffStressCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/LESmodel.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/LESmodel.cfg deleted file mode 100644 index e69078fcae..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/LESmodel.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LESmodel -{ - type model; - description "Anisochoric LES model selection"; - default oneEqEddy; - valueList - ( - laminar - oneEqEddy - dynOneEqEddy - lowReOneEqEddy - Smagorinsky - DeardorffDiffStress - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/SmagorinskyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/SmagorinskyCoeffs.cfg deleted file mode 100644 index 0d16dad734..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/SmagorinskyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SmagorinskyCoeffs -{ - type dictionary; - description "Standard anisoichoric Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - } - - include "defaults/SmagorinskyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/DeardorffDiffStressCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/DeardorffDiffStressCoeffs.def deleted file mode 100644 index fa7fa4fc49..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/DeardorffDiffStressCoeffs.def +++ /dev/null @@ -1,8 +0,0 @@ -default -{ - - ck ck [ 0 0 0 0 0 0 0 ] 0.094 ; - ce ce [ 0 0 0 0 0 0 0 ] 1.048 ; - cm cm [ 0 0 0 0 0 0 0 ] 4.13; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/SmagorinskyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/SmagorinskyCoeffs.def deleted file mode 100644 index 1605212d61..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/SmagorinskyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ck ck [ 0 0 0 0 0 0 0 ] 0.020 ; - ce ce [ 0 0 0 0 0 0 0 ] 0.202 ; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/dynOneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/dynOneEqEddyCoeffs.def deleted file mode 100644 index 5405272eeb..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/dynOneEqEddyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - filter simple; - -}; diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/lowReOneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/lowReOneEqEddyCoeffs.def deleted file mode 100644 index 4da49eeee8..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/lowReOneEqEddyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ck ck [ 0 0 0 0 0 0 0 ] 0.07 ; - ce ce [ 0 0 0 0 0 0 0 ] 1.05 ; - beta beta [ 0 0 0 0 0 0 0 ] 0.01 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/oneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/oneEqEddyCoeffs.def deleted file mode 100644 index 323c226506..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/oneEqEddyCoeffs.def +++ /dev/null @@ -1,5 +0,0 @@ -default -{ - ck ck [ 0 0 0 0 0 0 0 ] 0.094 ; - ce ce [ 0 0 0 0 0 0 0 ] 1.048 ; -}; diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/wallFunctionCoeffs.def b/etc/apps/FoamX/entries/LESmodels/compressible/defaults/wallFunctionCoeffs.def deleted file mode 100644 index d29187899c..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/defaults/wallFunctionCoeffs.def +++ /dev/null @@ -1,4 +0,0 @@ -default -{ - E E [ 0 0 0 0 0 0 0 ] 9.0 ; -}; diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/dynOneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/dynOneEqEddyCoeffs.cfg deleted file mode 100644 index 4ce3b71bd0..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/dynOneEqEddyCoeffs.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynOneEqEddyCoeffs -{ - type dictionary; - description "Standard anisochoric dynamic 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/dynOneEqEddyCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/lowReOneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/lowReOneEqEddyCoeffs.cfg deleted file mode 100644 index 329548fd63..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/lowReOneEqEddyCoeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -lowReOneEqEddyCoeffs -{ - type dictionary; - description "Standard anisochoric low-Re 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/beta.cfg"; - } - - include "defaults/lowReOneEqEddyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/oneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/oneEqEddyCoeffs.cfg deleted file mode 100644 index 8bd77ef8d2..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/oneEqEddyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -oneEqEddyCoeffs -{ - type dictionary; - description "Standard anisochoric 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - } - - include "defaults/oneEqEddyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/compressible/wallFunctionCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/compressible/wallFunctionCoeffs.cfg deleted file mode 100644 index f6c1802cfc..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/compressible/wallFunctionCoeffs.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallFunctionCoeffs -{ - type dictionary; - description "Wall function coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/E.cfg"; - } - - include "defaults/wallFunctionCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/DeardorffDiffStressCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/DeardorffDiffStressCoeffs.cfg deleted file mode 100644 index 7079738aaa..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/DeardorffDiffStressCoeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DeardorffDiffStressCoeffs -{ - type dictionary; - description "Standard isochoric Deardorff differential stress model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cm.cfg"; - } - - include "defaults/DeardorffDiffStressCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/LESmodel.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/LESmodel.cfg deleted file mode 100644 index 944d8183e2..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/LESmodel.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LESmodel -{ - type model; - description "Isochoric LES model selection"; - default oneEqEddy; - valueList - ( - laminar - oneEqEddy - dynOneEqEddy - locDynOneEqEddy - Smagorinsky - Smagorinsky2 - spectEddyVisc - dynSmagorinsky - mixedSmagorinsky - dynMixedSmagorinsky - LRRDiffStress - DeardorffDiffStress - SpalartAllmaras - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/LRRDiffStressCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/LRRDiffStressCoeffs.cfg deleted file mode 100644 index d7aa737ed4..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/LRRDiffStressCoeffs.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LRRDiffStressCoeffs -{ - type dictionary; - description "Standard isochoric Launder-Reese-Rodi differential stress model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/c1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/c2.cfg"; - } - - include "defaults/LRRDiffStressCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/Smagorinsky2Coeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/Smagorinsky2Coeffs.cfg deleted file mode 100644 index 9b7eb23023..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/Smagorinsky2Coeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Smagorinsky2Coeffs -{ - type dictionary; - description "Standard isochoric 3D Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cD2.cfg"; - } - - include "defaults/Smagorinsky2Coeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/SmagorinskyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/SmagorinskyCoeffs.cfg deleted file mode 100644 index f100b0f086..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/SmagorinskyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SmagorinskyCoeffs -{ - type dictionary; - description "Standard isochoric Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - } - - include "defaults/SmagorinskyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/SpalartAllmarasCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/SpalartAllmarasCoeffs.cfg deleted file mode 100644 index 397c544a61..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/SpalartAllmarasCoeffs.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SpalartAllmarasCoeffs -{ - type dictionary; - description "Standard isochoric Spalart-Allmaras model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaNut.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cb1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cb2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cw2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cw3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cv1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cv2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/CDES.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - } - - include "defaults/SpalartAllmarasCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/DeardorffDiffStressCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/DeardorffDiffStressCoeffs.def deleted file mode 100644 index 27528ef43a..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/DeardorffDiffStressCoeffs.def +++ /dev/null @@ -1,8 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05; - ck ck [ 0 0 0 0 0 0 0 ] 0.09; - cm cm [ 0 0 0 0 0 0 0 ] 4.13; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/LRRDiffStressCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/LRRDiffStressCoeffs.def deleted file mode 100644 index 05bf0a8fa0..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/LRRDiffStressCoeffs.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05; - ck ck [ 0 0 0 0 0 0 0 ] 0.09; - c1 c1 [ 0 0 0 0 0 0 0 ] 1.8; - c2 c2 [ 0 0 0 0 0 0 0 ] 0.6; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/Smagorinsky2Coeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/Smagorinsky2Coeffs.def deleted file mode 100644 index 4c92b73a84..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/Smagorinsky2Coeffs.def +++ /dev/null @@ -1,8 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05; - ck ck [ 0 0 0 0 0 0 0 ] 0.07; - cD2 cD2 [ 0 1 0 0 0 0 0 ] 0.02; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SmagorinskyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SmagorinskyCoeffs.def deleted file mode 100644 index b89680613a..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SmagorinskyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - ck ck [0 0 0 0 0 0 0] 0.07; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SpalartAllmarasCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SpalartAllmarasCoeffs.def deleted file mode 100644 index 66a245894f..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/SpalartAllmarasCoeffs.def +++ /dev/null @@ -1,12 +0,0 @@ -default -{ - alphaNut alphaNut [ 0 0 0 0 0 0 0 ] 1.5; - Cb1 Cb1 [ 0 0 0 0 0 0 0 ] 0.1355; - Cb2 Cb2 [ 0 0 0 0 0 0 0 ] 0.622; - Cw2 Cw2 [ 0 0 0 0 0 0 0 ] 0.3; - Cw3 Cw3 [ 0 0 0 0 0 0 0 ] 2; - Cv1 Cv1 [ 0 0 0 0 0 0 0 ] 7.1; - Cv2 Cv2 [ 0 0 0 0 0 0 0 ] 5.0; - CDES CDES [ 0 0 0 0 0 0 0 ] 0.65; - ck ck [ 0 0 0 0 0 0 0 ] 0.07; -}; diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynMixedSmagorinskyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynMixedSmagorinskyCoeffs.def deleted file mode 100644 index d41f708372..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynMixedSmagorinskyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - filter simple; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynOneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynOneEqEddyCoeffs.def deleted file mode 100644 index d41f708372..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynOneEqEddyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - filter simple; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynSmagorinskyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynSmagorinskyCoeffs.def deleted file mode 100644 index d41f708372..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/dynSmagorinskyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - filter simple; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/locDynOneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/locDynOneEqEddyCoeffs.def deleted file mode 100644 index d41f708372..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/locDynOneEqEddyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [0 0 0 0 0 0 0] 1.05; - filter simple; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/mixedSmagorinskyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/mixedSmagorinskyCoeffs.def deleted file mode 100644 index fb645a3073..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/mixedSmagorinskyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05 ; - ck ck [ 0 0 0 0 0 0 0 ] 0.07 ; - filter simple; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/oneEqEddyCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/oneEqEddyCoeffs.def deleted file mode 100644 index 6b335cf759..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/oneEqEddyCoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05 ; - ck ck [ 0 0 0 0 0 0 0 ] 0.07 ; - -}; diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/scaleSimilarityCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/scaleSimilarityCoeffs.def deleted file mode 100644 index ca7b293142..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/scaleSimilarityCoeffs.def +++ /dev/null @@ -1,6 +0,0 @@ -default -{ - - filterType simpleFilter; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/spectEddyViscCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/spectEddyViscCoeffs.def deleted file mode 100644 index 5d670a1c35..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/spectEddyViscCoeffs.def +++ /dev/null @@ -1,11 +0,0 @@ -default -{ - - ce ce [ 0 0 0 0 0 0 0 ] 1.05 ; - cB cB [ 0 0 0 0 0 0 0 ] 8.22 ; - cK1 cK1 [ 0 0 0 0 0 0 0 ] 0.83 ; - cK2 cK2 [ 0 0 0 0 0 0 0 ] 1.03 ; - cK3 cK3 [ 0 0 0 0 0 0 0 ] 4.75 ; - cK4 cK4 [ 0 0 0 0 0 0 0 ] 2.55 ; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/wallFunctionCoeffs.def b/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/wallFunctionCoeffs.def deleted file mode 100644 index d29187899c..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/defaults/wallFunctionCoeffs.def +++ /dev/null @@ -1,4 +0,0 @@ -default -{ - E E [ 0 0 0 0 0 0 0 ] 9.0 ; -}; diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/dynMixedSmagorinskyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/dynMixedSmagorinskyCoeffs.cfg deleted file mode 100644 index 5c93b62ef8..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/dynMixedSmagorinskyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynMixedSmagorinskyCoeffs -{ - type dictionary; - description "Standard isochoric dynamic mixed Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/dynMixedSmagorinskyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/dynOneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/dynOneEqEddyCoeffs.cfg deleted file mode 100644 index 96c694aae6..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/dynOneEqEddyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynOneEqEddyCoeffs -{ - type dictionary; - description "Standard isochoric dynamic 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/dynOneEqEddyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/dynSmagorinskyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/dynSmagorinskyCoeffs.cfg deleted file mode 100644 index dd0acf14c7..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/dynSmagorinskyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dynSmagorinskyCoeffs -{ - type dictionary; - description "Standard isochoric dynamic Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/dynSmagorinskyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/locDynOneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/locDynOneEqEddyCoeffs.cfg deleted file mode 100644 index de5a1110cf..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/locDynOneEqEddyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -locDynOneEqEddyCoeffs -{ - type dictionary; - description "Standard isochoric local dynamic 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/locDynOneEqEddyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/mixedSmagorinskyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/mixedSmagorinskyCoeffs.cfg deleted file mode 100644 index be4a834025..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/mixedSmagorinskyCoeffs.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mixedSmagorinskyCoeffs -{ - type dictionary; - description "Standard isochoric mixed Smagorinsky model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "../LESfilters.cfg"; - } - - include "defaults/mixedSmagorinskyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/oneEqEddyCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/oneEqEddyCoeffs.cfg deleted file mode 100644 index a60dc7f4b5..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/oneEqEddyCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -oneEqEddyCoeffs -{ - type dictionary; - description "Standard isochoric 1-equation eddy model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ck.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - } - - include "defaults/oneEqEddyCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/scaleSimilarityCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/scaleSimilarityCoeffs.cfg deleted file mode 100644 index 2d616a0cd1..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/scaleSimilarityCoeffs.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scaleSimilarityCoeffs -{ - type dictionary; - description "Standard isochoric scale similarity model coefficients"; - entries - { - include "../LESfilters.cfg"; - } - - include "defaults/scaleSimilarityCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/spectEddyViscCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/spectEddyViscCoeffs.cfg deleted file mode 100644 index b540e91e79..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/spectEddyViscCoeffs.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -spectEddyViscCoeffs -{ - type dictionary; - description "Standard isochoric spectral eddy viscosity model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/ce.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cB.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cK1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cK2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cK3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/cK4.cfg"; - } - - include "defaults/spectEddyViscCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/incompressible/wallFunctionCoeffs.cfg b/etc/apps/FoamX/entries/LESmodels/incompressible/wallFunctionCoeffs.cfg deleted file mode 100644 index f6c1802cfc..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/incompressible/wallFunctionCoeffs.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallFunctionCoeffs -{ - type dictionary; - description "Wall function coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/E.cfg"; - } - - include "defaults/wallFunctionCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/LESmodels/kappa.cfg b/etc/apps/FoamX/entries/LESmodels/kappa.cfg deleted file mode 100644 index 703cb063be..0000000000 --- a/etc/apps/FoamX/entries/LESmodels/kappa.cfg +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kappa -{ - type compound; - description "kappa"; - entries - { - name - { - type word; - editable 0; - default kappa; - } - - dimensions - { - type dimensionSet; - editable 0; - - } - - value - { - type scalar; - default 0.4187; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/BinghamPlastic.cfg b/etc/apps/FoamX/entries/Switch/BinghamPlastic.cfg deleted file mode 100644 index 0d94619aa1..0000000000 --- a/etc/apps/FoamX/entries/Switch/BinghamPlastic.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -BinghamPlastic -{ - type SwitchOnOff; - description "BinghamPlastic?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/addCellNeighbours.cfg b/etc/apps/FoamX/entries/Switch/addCellNeighbours.cfg deleted file mode 100644 index a54272a13d..0000000000 --- a/etc/apps/FoamX/entries/Switch/addCellNeighbours.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -addCellNeighbours -{ - type Switch; - description "addCellNeighbours?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default no; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/anisotropic.cfg b/etc/apps/FoamX/entries/Switch/anisotropic.cfg deleted file mode 100644 index c135aa4cde..0000000000 --- a/etc/apps/FoamX/entries/Switch/anisotropic.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -anisotropic -{ - type Switch; - description "anisotropic?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/compactNormalStress.cfg b/etc/apps/FoamX/entries/Switch/compactNormalStress.cfg deleted file mode 100644 index efb5196cd2..0000000000 --- a/etc/apps/FoamX/entries/Switch/compactNormalStress.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -compactNormalStress -{ - type Switch; - description "Compact normal stress laplacian?"; - default yes; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/correctAlpha.cfg b/etc/apps/FoamX/entries/Switch/correctAlpha.cfg deleted file mode 100644 index e6ca6d514f..0000000000 --- a/etc/apps/FoamX/entries/Switch/correctAlpha.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -correctAlpha -{ - type Switch; - description "correct alpha in the PISO loop?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default no; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/createSwitch b/etc/apps/FoamX/entries/Switch/createSwitch deleted file mode 100644 index 494f81f3a2..0000000000 --- a/etc/apps/FoamX/entries/Switch/createSwitch +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/csh - -if ( $#argv != 2 ) then - echo "Usage: createSwitch " - exit 1 -endif - -if !( $1 == "Switch" | $1 == "SwitchOnOff" ) then - echo "$1 must be Switch or SwitchOnOff" - exit 1 -endif - -set file = $2.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $2 >> $file -echo '{' >> $file -echo ' type '$1';' >> $file -echo ' description "'$2'?";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/Switch.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/Switch/geometricCut.cfg b/etc/apps/FoamX/entries/Switch/geometricCut.cfg deleted file mode 100644 index 31f3bb74bf..0000000000 --- a/etc/apps/FoamX/entries/Switch/geometricCut.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -geometricCut -{ - type Switch; - description "geometricCut?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/ignite.cfg b/etc/apps/FoamX/entries/Switch/ignite.cfg deleted file mode 100644 index 1af13dce18..0000000000 --- a/etc/apps/FoamX/entries/Switch/ignite.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ignite -{ - type Switch; - description "ignite?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/layeredMesh.cfg b/etc/apps/FoamX/entries/Switch/layeredMesh.cfg deleted file mode 100644 index 4ea682884a..0000000000 --- a/etc/apps/FoamX/entries/Switch/layeredMesh.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -layeredMesh -{ - type Switch; - description "layeredMesh?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/mappingPlane.cfg b/etc/apps/FoamX/entries/Switch/mappingPlane.cfg deleted file mode 100644 index ff2b2bc8f7..0000000000 --- a/etc/apps/FoamX/entries/Switch/mappingPlane.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mappingPlane -{ - type Switch; - description "mappingPlane?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/momentumPredictor.cfg b/etc/apps/FoamX/entries/Switch/momentumPredictor.cfg deleted file mode 100644 index d1df4821cc..0000000000 --- a/etc/apps/FoamX/entries/Switch/momentumPredictor.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -momentumPredictor -{ - type Switch; - description "momentumPredictor?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default yes; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/planeStress.cfg b/etc/apps/FoamX/entries/Switch/planeStress.cfg deleted file mode 100644 index 62ac0c07b3..0000000000 --- a/etc/apps/FoamX/entries/Switch/planeStress.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -planeStress -{ - type Switch; - description "Is the problem plane stress (otherwise plane strain)"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default yes; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/problemD.cfg b/etc/apps/FoamX/entries/Switch/problemD.cfg deleted file mode 100644 index 25cf6e5b7d..0000000000 --- a/etc/apps/FoamX/entries/Switch/problemD.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -problemD -{ - type word; - description "Problem dimension (2D/3D)"; - iconURL "/FoamX/icons/small/maths/problemD.gif"; - default 2; - valueList - ( - 2 - 3 - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/thermalStress.cfg b/etc/apps/FoamX/entries/Switch/thermalStress.cfg deleted file mode 100644 index 80f61c2cd8..0000000000 --- a/etc/apps/FoamX/entries/Switch/thermalStress.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thermalStress -{ - type Switch; - description "Shall we solve for energy?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default no; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/turbulence.cfg b/etc/apps/FoamX/entries/Switch/turbulence.cfg deleted file mode 100644 index b5d36a996f..0000000000 --- a/etc/apps/FoamX/entries/Switch/turbulence.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulence -{ - type SwitchOnOff; - description "Do you wish to calculate turbulence?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default on; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/twoDMotion.cfg b/etc/apps/FoamX/entries/Switch/twoDMotion.cfg deleted file mode 100644 index a986f78068..0000000000 --- a/etc/apps/FoamX/entries/Switch/twoDMotion.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -twoDMotion -{ - type Switch; - description "twoDMotion?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/useHexTopology.cfg b/etc/apps/FoamX/entries/Switch/useHexTopology.cfg deleted file mode 100644 index e28451f2bf..0000000000 --- a/etc/apps/FoamX/entries/Switch/useHexTopology.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -useHexTopology -{ - type Switch; - description "useHexTopology?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/vanDriest.cfg b/etc/apps/FoamX/entries/Switch/vanDriest.cfg deleted file mode 100644 index ccfced77ba..0000000000 --- a/etc/apps/FoamX/entries/Switch/vanDriest.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanDriest -{ - type SwitchOnOff; - description "vanDriest?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - default off; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/Switch/writeMesh.cfg b/etc/apps/FoamX/entries/Switch/writeMesh.cfg deleted file mode 100644 index baac71228b..0000000000 --- a/etc/apps/FoamX/entries/Switch/writeMesh.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -writeMesh -{ - type Switch; - description "writeMesh?"; - iconURL "/FoamX/icons/small/maths/Switch.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/allowConcaveFaces.cfg b/etc/apps/FoamX/entries/arguments/allowConcaveFaces.cfg deleted file mode 100644 index bb5994c745..0000000000 --- a/etc/apps/FoamX/entries/arguments/allowConcaveFaces.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -allowConcaveFaces -{ - type selection; - displayName "[allowConcaveFaces]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-allowConcaveFaces"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/ascii.cfg b/etc/apps/FoamX/entries/arguments/ascii.cfg deleted file mode 100644 index a16b4b2e26..0000000000 --- a/etc/apps/FoamX/entries/arguments/ascii.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ascii -{ - type selection; - displayName "[ascii]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-ascii"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/cell.cfg b/etc/apps/FoamX/entries/arguments/cell.cfg deleted file mode 100644 index 906ef1da7b..0000000000 --- a/etc/apps/FoamX/entries/arguments/cell.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cell -{ - type selection; - displayName "[cell]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - cell - { - type string; - default "-cell"; - editable 0; - } - - cellI - { - type label; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/cellDist.cfg b/etc/apps/FoamX/entries/arguments/cellDist.cfg deleted file mode 100644 index 24b92cdecd..0000000000 --- a/etc/apps/FoamX/entries/arguments/cellDist.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellDist -{ - type selection; - displayName "[cellDist]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-cellDist"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/cellSet.cfg b/etc/apps/FoamX/entries/arguments/cellSet.cfg deleted file mode 100644 index 782f0fa8c2..0000000000 --- a/etc/apps/FoamX/entries/arguments/cellSet.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cellSet -{ - type selection; - displayName "[cellSet]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - cellSet - { - type string; - default "-cellSet"; - editable 0; - } - - setName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/consistent.cfg b/etc/apps/FoamX/entries/arguments/consistent.cfg deleted file mode 100644 index c3f5171a53..0000000000 --- a/etc/apps/FoamX/entries/arguments/consistent.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -consistent -{ - type selection; - displayName "[consistent]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-consistent"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/constant.cfg b/etc/apps/FoamX/entries/arguments/constant.cfg deleted file mode 100644 index 140252d4ac..0000000000 --- a/etc/apps/FoamX/entries/arguments/constant.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -constant -{ - type selection; - displayName "[constant]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-constant"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/controlFile.cfg b/etc/apps/FoamX/entries/arguments/controlFile.cfg deleted file mode 100644 index bd70cd89f6..0000000000 --- a/etc/apps/FoamX/entries/arguments/controlFile.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -controlFile -{ - type string; - displayName ""; - description "Full path of control file with input parameters"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/dataFile.cfg b/etc/apps/FoamX/entries/arguments/dataFile.cfg deleted file mode 100644 index 53ab3e9b04..0000000000 --- a/etc/apps/FoamX/entries/arguments/dataFile.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dataFile -{ - type string; - displayName ""; - description "Full path of data file to be converted"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/dict.cfg b/etc/apps/FoamX/entries/arguments/dict.cfg deleted file mode 100644 index 3c6d5d794b..0000000000 --- a/etc/apps/FoamX/entries/arguments/dict.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dict -{ - type selection; - displayName "[dict]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-dict"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/dictionary.cfg b/etc/apps/FoamX/entries/arguments/dictionary.cfg deleted file mode 100644 index 9f2e91a345..0000000000 --- a/etc/apps/FoamX/entries/arguments/dictionary.cfg +++ /dev/null @@ -1,103 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dictionary -{ - type selection; - displayName "[dictionary]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - dictionary - { - type string; - default "-dictionary"; - editable 0; - } - - dictionaryName - { - type word; - default "system/controlDict"; - } - - keywordsOrEntry - { - type selection; - displayName "keywordsOrEntry"; - entries - { - keywords - { - type selection; - displayName "[keywords]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-keywords"; - editable 0; - } - } - } - - entry - { - type selection; - displayName "[entry]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - entryOption - { - type string; - default "-entry"; - editable 0; - } - - entryValue - { - type word; - } - } - } - } - } - } - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/edgeLength.cfg b/etc/apps/FoamX/entries/arguments/edgeLength.cfg deleted file mode 100644 index 3492f2f865..0000000000 --- a/etc/apps/FoamX/entries/arguments/edgeLength.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -edgeLength -{ - type scalar0Inf; - displayName ""; - description "Edge length tolerance (m) for collapse operation"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/face.cfg b/etc/apps/FoamX/entries/arguments/face.cfg deleted file mode 100644 index 24980348f4..0000000000 --- a/etc/apps/FoamX/entries/arguments/face.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -face -{ - type selection; - displayName "[face]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - face - { - type string; - default "-face"; - editable 0; - } - - faceI - { - type label; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/faceSet.cfg b/etc/apps/FoamX/entries/arguments/faceSet.cfg deleted file mode 100644 index 37b03fccf7..0000000000 --- a/etc/apps/FoamX/entries/arguments/faceSet.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -faceSet -{ - type selection; - displayName "[faceSet]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - faceSet - { - type string; - default "-faceSet"; - editable 0; - } - - setName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/featureAngle.cfg b/etc/apps/FoamX/entries/arguments/featureAngle.cfg deleted file mode 100644 index 68698c1d83..0000000000 --- a/etc/apps/FoamX/entries/arguments/featureAngle.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -featureAngle -{ - type angle0180; - displayName ""; - description "Feature-angle"; - default 45; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/fields.cfg b/etc/apps/FoamX/entries/arguments/fields.cfg deleted file mode 100644 index 99bbfb6ff5..0000000000 --- a/etc/apps/FoamX/entries/arguments/fields.cfg +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fields -{ - type selection; - displayName "[fields]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - fields - { - type string; - default "-fields"; - editable 0; - } - - fieldsList - { - type list; - elementType word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/fieldsOnly.cfg b/etc/apps/FoamX/entries/arguments/fieldsOnly.cfg deleted file mode 100644 index d0bed6847e..0000000000 --- a/etc/apps/FoamX/entries/arguments/fieldsOnly.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fieldsOnly -{ - type selection; - displayName "[fields]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-fields"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/file.cfg b/etc/apps/FoamX/entries/arguments/file.cfg deleted file mode 100644 index b17fa540e7..0000000000 --- a/etc/apps/FoamX/entries/arguments/file.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fileOption -{ - type selection; - displayName "[file]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - kivaFile - { - type string; - default "-file"; - editable 0; - } - - fileName - { - type string; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/hex.cfg b/etc/apps/FoamX/entries/arguments/hex.cfg deleted file mode 100644 index 71b9b039ba..0000000000 --- a/etc/apps/FoamX/entries/arguments/hex.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -hex -{ - type selection; - displayName "[hex]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-hex"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/inputFile.cfg b/etc/apps/FoamX/entries/arguments/inputFile.cfg deleted file mode 100644 index 2683a7874f..0000000000 --- a/etc/apps/FoamX/entries/arguments/inputFile.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -inputFile -{ - type selection; - displayName "[inputFile]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - inputFile - { - type string; - default "-inputFile"; - editable 0; - } - - fileName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/invertHex.cfg b/etc/apps/FoamX/entries/arguments/invertHex.cfg deleted file mode 100644 index 13b1c48ff4..0000000000 --- a/etc/apps/FoamX/entries/arguments/invertHex.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -invertHex -{ - type selection; - displayName "[invertHex]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-invertHex"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/invertPrism.cfg b/etc/apps/FoamX/entries/arguments/invertPrism.cfg deleted file mode 100644 index 5c631a8bf9..0000000000 --- a/etc/apps/FoamX/entries/arguments/invertPrism.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -invertPrism -{ - type selection; - displayName "[invertPrism]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-invertPrism"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/kivaVersion.cfg b/etc/apps/FoamX/entries/arguments/kivaVersion.cfg deleted file mode 100644 index f1331698dd..0000000000 --- a/etc/apps/FoamX/entries/arguments/kivaVersion.cfg +++ /dev/null @@ -1,48 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -version -{ - type selection; - displayName "[version]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - version - { - type string; - default "-version"; - editable 0; - } - - versionName - { - type string; - default "kiva3v"; - valueList - ( - "kiva3v" - "kiva3" - ); - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/latestTime.cfg b/etc/apps/FoamX/entries/arguments/latestTime.cfg deleted file mode 100644 index 71d91bfe48..0000000000 --- a/etc/apps/FoamX/entries/arguments/latestTime.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -latestTime -{ - type selection; - displayName "[latestTime]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-latestTime"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/masterPatch.cfg b/etc/apps/FoamX/entries/arguments/masterPatch.cfg deleted file mode 100644 index 8ef3247413..0000000000 --- a/etc/apps/FoamX/entries/arguments/masterPatch.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -masterPatch -{ - type word; - description "Name of master patch to be stitched"; -} diff --git a/etc/apps/FoamX/entries/arguments/mergeAngle.cfg b/etc/apps/FoamX/entries/arguments/mergeAngle.cfg deleted file mode 100644 index 8e7c9c3fe4..0000000000 --- a/etc/apps/FoamX/entries/arguments/mergeAngle.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mergeAngle -{ - type scalar0Inf; - displayName ""; - description "Merge angle (degrees) "; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/mesh.cfg b/etc/apps/FoamX/entries/arguments/mesh.cfg deleted file mode 100644 index 7c7822f02e..0000000000 --- a/etc/apps/FoamX/entries/arguments/mesh.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mesh -{ - type selection; - displayName "[mesh]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - mesh - { - type string; - default "-mesh"; - editable 0; - } - - meshName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/meshFile.cfg b/etc/apps/FoamX/entries/arguments/meshFile.cfg deleted file mode 100644 index 99f4c5cd26..0000000000 --- a/etc/apps/FoamX/entries/arguments/meshFile.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -meshFile -{ - type string; - displayName ""; - description "Full path of mesh file to be converted"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/meshFilePrefix.cfg b/etc/apps/FoamX/entries/arguments/meshFilePrefix.cfg deleted file mode 100644 index 6f2129b7e0..0000000000 --- a/etc/apps/FoamX/entries/arguments/meshFilePrefix.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -meshFilePrefix -{ - type string; - displayName ""; - description "Full path of mesh files without file extension"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/minAngle.cfg b/etc/apps/FoamX/entries/arguments/minAngle.cfg deleted file mode 100644 index 5c5504aaf1..0000000000 --- a/etc/apps/FoamX/entries/arguments/minAngle.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -minAngle -{ - type scalar0Inf; - displayName ""; - description "Min angle (degrees)"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/minArea.cfg b/etc/apps/FoamX/entries/arguments/minArea.cfg deleted file mode 100644 index c3ae355610..0000000000 --- a/etc/apps/FoamX/entries/arguments/minArea.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -minArea -{ - type scalar0Inf; - displayName ""; - description "Min area (degrees)"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/nearCellValue.cfg b/etc/apps/FoamX/entries/arguments/nearCellValue.cfg deleted file mode 100644 index e85b0e2f74..0000000000 --- a/etc/apps/FoamX/entries/arguments/nearCellValue.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nearCellValue -{ - type selection; - displayName "[nearCellValue]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-nearCellValue"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/network.cfg b/etc/apps/FoamX/entries/arguments/network.cfg deleted file mode 100644 index 41d0ffebd0..0000000000 --- a/etc/apps/FoamX/entries/arguments/network.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -network -{ - type string; - displayName ""; - description "Post-processor network file"; - default "postFoam"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/noBlank.cfg b/etc/apps/FoamX/entries/arguments/noBlank.cfg deleted file mode 100644 index f44b2bd97a..0000000000 --- a/etc/apps/FoamX/entries/arguments/noBlank.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -noBlank -{ - type selection; - displayName "[noBlank]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-noBlank"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/noCoords.cfg b/etc/apps/FoamX/entries/arguments/noCoords.cfg deleted file mode 100644 index 766b28be02..0000000000 --- a/etc/apps/FoamX/entries/arguments/noCoords.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -noCoords -{ - type selection; - displayName "[noCoords]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-noCoords"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/noFaceFile.cfg b/etc/apps/FoamX/entries/arguments/noFaceFile.cfg deleted file mode 100644 index a3b7942a73..0000000000 --- a/etc/apps/FoamX/entries/arguments/noFaceFile.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -noFaceFile -{ - type selection; - displayName "[noFaceFile]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-noFaceFile"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/noInternal.cfg b/etc/apps/FoamX/entries/arguments/noInternal.cfg deleted file mode 100644 index 8175e7f551..0000000000 --- a/etc/apps/FoamX/entries/arguments/noInternal.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -noInternal -{ - type selection; - displayName "[noInternal]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-noInternal"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/noWall.cfg b/etc/apps/FoamX/entries/arguments/noWall.cfg deleted file mode 100644 index 172c21821b..0000000000 --- a/etc/apps/FoamX/entries/arguments/noWall.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -noWall -{ - type selection; - displayName "[noWall]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-noWall"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/outputFile.cfg b/etc/apps/FoamX/entries/arguments/outputFile.cfg deleted file mode 100644 index 732ec5be76..0000000000 --- a/etc/apps/FoamX/entries/arguments/outputFile.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -outputFile -{ - type selection; - displayName "[outputFile]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - outputFile - { - type string; - default "-outputFile"; - editable 0; - } - - fileName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/parallelSource.cfg b/etc/apps/FoamX/entries/arguments/parallelSource.cfg deleted file mode 100644 index 3521409694..0000000000 --- a/etc/apps/FoamX/entries/arguments/parallelSource.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -parallelSource -{ - type selection; - displayName "[parallelSource]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-parallelSource"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/parallelTarget.cfg b/etc/apps/FoamX/entries/arguments/parallelTarget.cfg deleted file mode 100644 index b4b51e24ef..0000000000 --- a/etc/apps/FoamX/entries/arguments/parallelTarget.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -parallelTarget -{ - type selection; - displayName "[parallelTarget]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-parallelTarget"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/partial.cfg b/etc/apps/FoamX/entries/arguments/partial.cfg deleted file mode 100644 index cc7570ebd6..0000000000 --- a/etc/apps/FoamX/entries/arguments/partial.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -partial -{ - type selection; - displayName "[partial]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-partial"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/patch.cfg b/etc/apps/FoamX/entries/arguments/patch.cfg deleted file mode 100644 index b07c9ca1fc..0000000000 --- a/etc/apps/FoamX/entries/arguments/patch.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patch -{ - type selection; - displayName "[patch]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - patch - { - type string; - default "-patch"; - editable 0; - } - - patchName - { - type word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/patchFaces.cfg b/etc/apps/FoamX/entries/arguments/patchFaces.cfg deleted file mode 100644 index e1fd55239f..0000000000 --- a/etc/apps/FoamX/entries/arguments/patchFaces.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchFaces -{ - type selection; - displayName "[patchFaces]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-patchFaces"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/patches.cfg b/etc/apps/FoamX/entries/arguments/patches.cfg deleted file mode 100644 index 7a11664d89..0000000000 --- a/etc/apps/FoamX/entries/arguments/patches.cfg +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patches -{ - type selection; - displayName "[patches]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - patches - { - type string; - default "-patches"; - editable 0; - } - - patchList - { - type list; - elementType word; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/perfect.cfg b/etc/apps/FoamX/entries/arguments/perfect.cfg deleted file mode 100644 index 7bacd900cd..0000000000 --- a/etc/apps/FoamX/entries/arguments/perfect.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -perfect -{ - type selection; - displayName "[perfect]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-perfect"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/point.cfg b/etc/apps/FoamX/entries/arguments/point.cfg deleted file mode 100644 index 0b779f0b14..0000000000 --- a/etc/apps/FoamX/entries/arguments/point.cfg +++ /dev/null @@ -1,40 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -point -{ - type selection; - displayName "[point]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - point - { - type string; - default "-point"; - editable 0; - } - - pointI - { - type label; - } - } - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/readLevel.cfg b/etc/apps/FoamX/entries/arguments/readLevel.cfg deleted file mode 100644 index 294c24554a..0000000000 --- a/etc/apps/FoamX/entries/arguments/readLevel.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -readLevel -{ - type selection; - displayName "[readLevel]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-readLevel"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/rootAndCase.cfg b/etc/apps/FoamX/entries/arguments/rootAndCase.cfg deleted file mode 100644 index 0d3cd19151..0000000000 --- a/etc/apps/FoamX/entries/arguments/rootAndCase.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rootCase -{ - type rootAndCase; - displayName ""; - description "Case directory with complete path"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/rotate.cfg b/etc/apps/FoamX/entries/arguments/rotate.cfg deleted file mode 100644 index c008367dae..0000000000 --- a/etc/apps/FoamX/entries/arguments/rotate.cfg +++ /dev/null @@ -1,49 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rotate -{ - type selection; - displayName "[rotate]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - rotate - { - type string; - default "-rotate"; - editable 0; - } - - n1 - { - type vector; - default (1 0 0); - } - - n2 - { - type vector; - default (0 1 0); - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/rotationVectors.cfg b/etc/apps/FoamX/entries/arguments/rotationVectors.cfg deleted file mode 100644 index 444a1a8a99..0000000000 --- a/etc/apps/FoamX/entries/arguments/rotationVectors.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rotationVectors -{ - type compound; - displayName " "; - description "Rotation vectors"; - entries - { - n1 - { - type vector; - default (1 0 0); - } - - n2 - { - type vector; - default (0 1 0); - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/scale.cfg b/etc/apps/FoamX/entries/arguments/scale.cfg deleted file mode 100644 index a45198d16a..0000000000 --- a/etc/apps/FoamX/entries/arguments/scale.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scale -{ - type selection; - displayName "[scale]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - scale - { - type string; - default "-scale"; - editable 0; - } - - scaleFactor - { - type scalar0Inf; - default 1; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/scalingFactor.cfg b/etc/apps/FoamX/entries/arguments/scalingFactor.cfg deleted file mode 100644 index 2a659f5b15..0000000000 --- a/etc/apps/FoamX/entries/arguments/scalingFactor.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scalingFactor -{ - type scalar; - displayName ""; - description "Scaling factor used for the deformation"; - default 1.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/shapeMesh.cfg b/etc/apps/FoamX/entries/arguments/shapeMesh.cfg deleted file mode 100644 index 6bb3a46f4a..0000000000 --- a/etc/apps/FoamX/entries/arguments/shapeMesh.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -shapeMesh -{ - type selection; - displayName "[shapeMesh]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-shapeMesh"; - editable 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/singleBlock.cfg b/etc/apps/FoamX/entries/arguments/singleBlock.cfg deleted file mode 100644 index b71cde0946..0000000000 --- a/etc/apps/FoamX/entries/arguments/singleBlock.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -singleBlock -{ - type selection; - displayName "[singleBlock]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-singleBlock"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/slavePatch.cfg b/etc/apps/FoamX/entries/arguments/slavePatch.cfg deleted file mode 100644 index 27684a485a..0000000000 --- a/etc/apps/FoamX/entries/arguments/slavePatch.cfg +++ /dev/null @@ -1,13 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -slavePatch -{ - type word; - description "Name of slave patch to be stitched"; -} diff --git a/etc/apps/FoamX/entries/arguments/sourceCase.cfg b/etc/apps/FoamX/entries/arguments/sourceCase.cfg deleted file mode 100644 index afe222f1d9..0000000000 --- a/etc/apps/FoamX/entries/arguments/sourceCase.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourceCase -{ - type string; - displayName ""; - description "Name of case directory from which data is read"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/sourceRoot.cfg b/etc/apps/FoamX/entries/arguments/sourceRoot.cfg deleted file mode 100644 index 5d49543907..0000000000 --- a/etc/apps/FoamX/entries/arguments/sourceRoot.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourceRoot -{ - type string; - displayName ""; - description "Path to case directory from which data is read"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/sourceRootAndCase.cfg b/etc/apps/FoamX/entries/arguments/sourceRootAndCase.cfg deleted file mode 100644 index d9a7e0dbcb..0000000000 --- a/etc/apps/FoamX/entries/arguments/sourceRootAndCase.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sourceRootCase -{ - type compound; - displayName ""; - description "Case directory with complete path from which data is read"; - - entries - { - sourceOption - { - type string; - default "-source"; - editable 0; - } - - sourceCasePath - { - type string; - default "sourceCasePath"; - editable 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/startAt0.cfg b/etc/apps/FoamX/entries/arguments/startAt0.cfg deleted file mode 100644 index b1b3def6bb..0000000000 --- a/etc/apps/FoamX/entries/arguments/startAt0.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -startAt0 -{ - type selection; - displayName "[startAt0]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-startAt0"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/surfaceFields.cfg b/etc/apps/FoamX/entries/arguments/surfaceFields.cfg deleted file mode 100644 index 92b9b70f4d..0000000000 --- a/etc/apps/FoamX/entries/arguments/surfaceFields.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -surfaceFields -{ - type selection; - displayName "[surfaceFields]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-surfaceFields"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/time.cfg b/etc/apps/FoamX/entries/arguments/time.cfg deleted file mode 100644 index 457970d3e7..0000000000 --- a/etc/apps/FoamX/entries/arguments/time.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -timeOption -{ - type selection; - displayName "[time]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - timeOption - { - type string; - default "-time"; - editable 0; - } - - timeValue - { - type scalar; - default 0; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/times.cfg b/etc/apps/FoamX/entries/arguments/times.cfg deleted file mode 100644 index 6e36f4e38b..0000000000 --- a/etc/apps/FoamX/entries/arguments/times.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -times -{ - type selection; - displayName "[times]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type string; - default "-times"; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/arguments/translate.cfg b/etc/apps/FoamX/entries/arguments/translate.cfg deleted file mode 100644 index 3caee9e909..0000000000 --- a/etc/apps/FoamX/entries/arguments/translate.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -translate -{ - type selection; - displayName "[translate]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - translate - { - type string; - default "-translate"; - editable 0; - } - - translateBy - { - type vector; - default (0 0 0); - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/vectorScale.cfg b/etc/apps/FoamX/entries/arguments/vectorScale.cfg deleted file mode 100644 index f4a7cd1729..0000000000 --- a/etc/apps/FoamX/entries/arguments/vectorScale.cfg +++ /dev/null @@ -1,43 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vectorScale -{ - type selection; - displayName "[scale]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - vectorScale - { - type string; - default "-scale"; - editable 0; - } - - vectorScaleFactor - { - type vector; - default (1 1 1); - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/arguments/zHeadMin.cfg b/etc/apps/FoamX/entries/arguments/zHeadMin.cfg deleted file mode 100644 index b996568605..0000000000 --- a/etc/apps/FoamX/entries/arguments/zHeadMin.cfg +++ /dev/null @@ -1,42 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -zHeadMin -{ - type selection; - displayName "[zHeadMin]"; - entries - { - off - { - type compound; - entries {} - } - - on - { - type compound; - entries - { - zHeadMin - { - type string; - default "-zHeadMin"; - editable 0; - } - - zHeadMinFactor - { - type scalar0Inf; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/A.cfg b/etc/apps/FoamX/entries/dimensionedScalar/A.cfg deleted file mode 100644 index 3a9157f837..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/A.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -A -{ - type dimensionedScalar; - description "A"; - iconURL "/FoamX/icons/small/maths/A.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/A1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/A1.cfg deleted file mode 100644 index c7215344bf..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/A1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -A1 -{ - type dimensionedScalar; - description "A1"; - iconURL "/FoamX/icons/small/maths/A1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/A2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/A2.cfg deleted file mode 100644 index 78f571ebe9..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/A2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -A2 -{ - type dimensionedScalar; - description "A2"; - iconURL "/FoamX/icons/small/maths/A2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Aepsilon.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Aepsilon.cfg deleted file mode 100644 index ea0df0f54d..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Aepsilon.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Aepsilon -{ - type dimensionedScalar; - description "Aepsilon"; - iconURL "/FoamX/icons/small/maths/Aepsilon.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Am.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Am.cfg deleted file mode 100644 index 15ea4cc4b5..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Am.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Am -{ - type dimensionedScalar; - description "Am"; - iconURL "/FoamX/icons/small/maths/Am.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Amu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Amu.cfg deleted file mode 100644 index a5882c73d0..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Amu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Amu -{ - type dimensionedScalar; - description "Amu"; - iconURL "/FoamX/icons/small/maths/Amu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Aplus.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Aplus.cfg deleted file mode 100644 index baf82c5695..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Aplus.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Aplus -{ - type dimensionedScalar; - description "Aplus"; - iconURL "/FoamX/icons/small/maths/Aplus.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/B.cfg b/etc/apps/FoamX/entries/dimensionedScalar/B.cfg deleted file mode 100644 index b0ce4eae6e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/B.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - type dimensionedScalar; - description "B"; - iconURL "/FoamX/icons/small/maths/B.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/B2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/B2.cfg deleted file mode 100644 index a2e6273ab4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/B2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B2 -{ - type dimensionedScalar; - description "B2"; - iconURL "/FoamX/icons/small/maths/B2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Bm.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Bm.cfg deleted file mode 100644 index 272a6a0e81..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Bm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Bm -{ - type dimensionedScalar; - description "Bm"; - iconURL "/FoamX/icons/small/maths/Bm.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C.cfg deleted file mode 100644 index 698d066550..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C -{ - type dimensionedScalar; - description "C"; - iconURL "/FoamX/icons/small/maths/C.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C1.cfg deleted file mode 100644 index ab50c2efb0..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C1 -{ - type dimensionedScalar; - description "C1"; - iconURL "/FoamX/icons/small/maths/C1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C1Ref.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C1Ref.cfg deleted file mode 100644 index c0d7664b7e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C1Ref.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C1Ref -{ - type dimensionedScalar; - description "C1Ref"; - iconURL "/FoamX/icons/small/maths/C1Ref.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C2.cfg deleted file mode 100644 index cfbf79457e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C2 -{ - type dimensionedScalar; - description "C2"; - iconURL "/FoamX/icons/small/maths/C2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C2Ref.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C2Ref.cfg deleted file mode 100644 index 6e4ff12c66..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C2Ref.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C2Ref -{ - type dimensionedScalar; - description "C2Ref"; - iconURL "/FoamX/icons/small/maths/C2Ref.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/C3.cfg b/etc/apps/FoamX/entries/dimensionedScalar/C3.cfg deleted file mode 100644 index 1629fc8180..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/C3.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C3 -{ - type dimensionedScalar; - description "C3"; - iconURL "/FoamX/icons/small/maths/C3.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/CDES.cfg b/etc/apps/FoamX/entries/dimensionedScalar/CDES.cfg deleted file mode 100644 index a1a698690a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/CDES.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -CDES -{ - type dimensionedScalar; - description "CDES"; - iconURL "/FoamX/icons/small/maths/CDES.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cb1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cb1.cfg deleted file mode 100644 index 847eb3166b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cb1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cb1 -{ - type dimensionedScalar; - description "Cb1"; - iconURL "/FoamX/icons/small/maths/Cb1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cb2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cb2.cfg deleted file mode 100644 index cb004f10a2..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cb2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cb2 -{ - type dimensionedScalar; - description "Cb2"; - iconURL "/FoamX/icons/small/maths/Cb2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cdelta.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cdelta.cfg deleted file mode 100644 index 2f398024ad..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cdelta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cdelta -{ - type dimensionedScalar; - description "Cdelta"; - iconURL "/FoamX/icons/small/maths/Cdelta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Ceps.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Ceps.cfg deleted file mode 100644 index c3aecb61be..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Ceps.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ceps -{ - type dimensionedScalar; - description "Ceps"; - iconURL "/FoamX/icons/small/maths/Ceps.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cl.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cl.cfg deleted file mode 100644 index 5a345b7394..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cl.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cl -{ - type dimensionedScalar; - description "Cl"; - iconURL "/FoamX/icons/small/maths/Cl.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Clg1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Clg1.cfg deleted file mode 100644 index e13d461f22..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Clg1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Clg1 -{ - type dimensionedScalar; - description "Clg1"; - iconURL "/FoamX/icons/small/maths/Clg1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Clg2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Clg2.cfg deleted file mode 100644 index a87219df5f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Clg2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Clg2 -{ - type dimensionedScalar; - description "Clg2"; - iconURL "/FoamX/icons/small/maths/Clg2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Clrr1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Clrr1.cfg deleted file mode 100644 index 3a2486997f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Clrr1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Clrr1 -{ - type dimensionedScalar; - description "Clrr1"; - iconURL "/FoamX/icons/small/maths/Clrr1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Clrr2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Clrr2.cfg deleted file mode 100644 index df88da0cbe..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Clrr2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Clrr2 -{ - type dimensionedScalar; - description "Clrr2"; - iconURL "/FoamX/icons/small/maths/Clrr2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cmu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cmu.cfg deleted file mode 100644 index 29eece9f05..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cmu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cmu -{ - type dimensionedScalar; - description "Cmu"; - iconURL "/FoamX/icons/small/maths/Cmu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cs.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cs.cfg deleted file mode 100644 index 132cee65f0..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cs.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cs -{ - type dimensionedScalar; - description "Cs"; - iconURL "/FoamX/icons/small/maths/Cs.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Ct.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Ct.cfg deleted file mode 100644 index cbaaef0112..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Ct.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ct -{ - type dimensionedScalar; - description "Ct"; - iconURL "/FoamX/icons/small/maths/Ct.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Ctau1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Ctau1.cfg deleted file mode 100644 index 5f007cda68..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Ctau1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ctau1 -{ - type dimensionedScalar; - description "Ctau1"; - iconURL "/FoamX/icons/small/maths/Ctau1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Ctau2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Ctau2.cfg deleted file mode 100644 index 7a29b9d8a7..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Ctau2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ctau2 -{ - type dimensionedScalar; - description "Ctau2"; - iconURL "/FoamX/icons/small/maths/Ctau2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Ctau3.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Ctau3.cfg deleted file mode 100644 index c183daf1f6..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Ctau3.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ctau3 -{ - type dimensionedScalar; - description "Ctau3"; - iconURL "/FoamX/icons/small/maths/Ctau3.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cv.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cv.cfg deleted file mode 100644 index 2ae3a8153b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cv.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cv -{ - type dimensionedScalar; - description "Cv"; - iconURL "/FoamX/icons/small/maths/Cv.gif"; - default Cv [0 2 -2 -1 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cv1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cv1.cfg deleted file mode 100644 index f8b58d3183..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cv1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cv1 -{ - type dimensionedScalar; - description "Cv1"; - iconURL "/FoamX/icons/small/maths/Cv1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cv2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cv2.cfg deleted file mode 100644 index 1a93ac422f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cv2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cv2 -{ - type dimensionedScalar; - description "Cv2"; - iconURL "/FoamX/icons/small/maths/Cv2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cvm.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cvm.cfg deleted file mode 100644 index 41a2e4e341..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cvm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cvm -{ - type dimensionedScalar; - description "Cvm"; - iconURL "/FoamX/icons/small/maths/Cvm.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cw1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cw1.cfg deleted file mode 100644 index 7de016429c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cw1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cw1 -{ - type dimensionedScalar; - description "Cw1"; - iconURL "/FoamX/icons/small/maths/Cw1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cw2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cw2.cfg deleted file mode 100644 index 2ecd2dca14..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cw2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cw2 -{ - type dimensionedScalar; - description "Cw2"; - iconURL "/FoamX/icons/small/maths/Cw2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Cw3.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Cw3.cfg deleted file mode 100644 index f054cd2fe2..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Cw3.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Cw3 -{ - type dimensionedScalar; - description "Cw3"; - iconURL "/FoamX/icons/small/maths/Cw3.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/D.cfg b/etc/apps/FoamX/entries/dimensionedScalar/D.cfg deleted file mode 100644 index c47cc8bd18..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/D.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -D -{ - type dimensionedScalar; - description "D"; - iconURL "/FoamX/icons/small/maths/D.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/DT.cfg b/etc/apps/FoamX/entries/dimensionedScalar/DT.cfg deleted file mode 100644 index d77c2ac2ba..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/DT.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DT -{ - type dimensionedScalar; - description "DT"; - iconURL "/FoamX/icons/small/maths/DT.gif"; - default DT [0 2 -1 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/E.cfg b/etc/apps/FoamX/entries/dimensionedScalar/E.cfg deleted file mode 100644 index 874a55beb5..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/E.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -E -{ - type dimensionedScalar; - description "E"; - iconURL "/FoamX/icons/small/maths/E.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Kappa.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Kappa.cfg deleted file mode 100644 index 093d968732..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Kappa.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Kappa -{ - type dimensionedScalar; - description "Kappa"; - iconURL "/FoamX/icons/small/maths/Kappa.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/R.cfg b/etc/apps/FoamX/entries/dimensionedScalar/R.cfg deleted file mode 100644 index 755984406e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/R.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -R -{ - type dimensionedScalar; - description "R"; - iconURL "/FoamX/icons/small/maths/R.gif"; - default R [0 2 -2 -1 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/Su.cfg b/etc/apps/FoamX/entries/dimensionedScalar/Su.cfg deleted file mode 100644 index 5147fd5ca1..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/Su.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Su -{ - type dimensionedScalar; - description "Su"; - iconURL "/FoamX/icons/small/maths/Su.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/W.cfg b/etc/apps/FoamX/entries/dimensionedScalar/W.cfg deleted file mode 100644 index 294bae9d1b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/W.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -W -{ - type dimensionedScalar; - description "W"; - iconURL "/FoamX/icons/small/maths/W.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/XiCoef.cfg b/etc/apps/FoamX/entries/dimensionedScalar/XiCoef.cfg deleted file mode 100644 index c9979ca1a0..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/XiCoef.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -XiCoef -{ - type dimensionedScalar; - description "XiCoef"; - iconURL "/FoamX/icons/small/maths/XiCoef.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/XiShapeCoef.cfg b/etc/apps/FoamX/entries/dimensionedScalar/XiShapeCoef.cfg deleted file mode 100644 index 983f4bcbab..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/XiShapeCoef.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -XiShapeCoef -{ - type dimensionedScalar; - description "XiShapeCoef"; - iconURL "/FoamX/icons/small/maths/XiShapeCoef.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/a.cfg b/etc/apps/FoamX/entries/dimensionedScalar/a.cfg deleted file mode 100644 index 22e4a69386..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/a.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -a -{ - type dimensionedScalar; - description "a"; - iconURL "/FoamX/icons/small/maths/a.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/a1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/a1.cfg deleted file mode 100644 index 52db440c3d..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/a1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -a1 -{ - type dimensionedScalar; - description "a1"; - iconURL "/FoamX/icons/small/maths/a1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alpha.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alpha.cfg deleted file mode 100644 index fd7e4ec4fe..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alpha.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alpha -{ - type dimensionedScalar; - description "alpha"; - iconURL "/FoamX/icons/small/maths/alpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaEps.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaEps.cfg deleted file mode 100644 index 79c4544cf7..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaEps.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaEps -{ - type dimensionedScalar; - description "alphaEps"; - iconURL "/FoamX/icons/small/maths/alphaEps.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaK1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaK1.cfg deleted file mode 100644 index 0e846894e6..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaK1.cfg +++ /dev/null @@ -1,6 +0,0 @@ -alphaK1 -{ - type dimensionedScalar; - description "alphaK1"; - iconURL "/FoamX/icons/small/maths/alphaK1.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaK2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaK2.cfg deleted file mode 100644 index 9608cfd6d9..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaK2.cfg +++ /dev/null @@ -1,6 +0,0 @@ -alphaK2 -{ - type dimensionedScalar; - description "alphaK2"; - iconURL "/FoamX/icons/small/maths/alphaK2.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaKsi.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaKsi.cfg deleted file mode 100644 index 9ac6f48614..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaKsi.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaKsi -{ - type dimensionedScalar; - description "alphaKsi"; - iconURL "/FoamX/icons/small/maths/alphaKsi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaMin.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaMin.cfg deleted file mode 100644 index d36d73d015..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaMin.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaMin -{ - type dimensionedScalar; - description "alphaMin"; - iconURL "/FoamX/icons/small/maths/alphaMin.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaNut.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaNut.cfg deleted file mode 100644 index c9decdedca..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaNut.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaNut -{ - type dimensionedScalar; - description "alphaNut"; - iconURL "/FoamX/icons/small/maths/alphaNut.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega1.cfg deleted file mode 100644 index e512e5c993..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega1.cfg +++ /dev/null @@ -1,6 +0,0 @@ -alphaOmega1 -{ - type dimensionedScalar; - description "alphaOmega1"; - iconURL "/FoamX/icons/small/maths/alphaOmega1.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega2.cfg deleted file mode 100644 index 5b7308ef81..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaOmega2.cfg +++ /dev/null @@ -1,6 +0,0 @@ -alphaOmega2 -{ - type dimensionedScalar; - description "alphaOmega2"; - iconURL "/FoamX/icons/small/maths/alphaOmega2.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaR.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaR.cfg deleted file mode 100644 index a4883f5be5..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaR.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaR -{ - type dimensionedScalar; - description "alphaR"; - iconURL "/FoamX/icons/small/maths/alphaR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphaZeta.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphaZeta.cfg deleted file mode 100644 index 57da732c93..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphaZeta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphaZeta -{ - type dimensionedScalar; - description "alphaZeta"; - iconURL "/FoamX/icons/small/maths/alphaZeta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphah.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphah.cfg deleted file mode 100644 index 5fd36e65dc..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphah.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphah -{ - type dimensionedScalar; - description "alphah"; - iconURL "/FoamX/icons/small/maths/alphah.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/alphak.cfg b/etc/apps/FoamX/entries/dimensionedScalar/alphak.cfg deleted file mode 100644 index d351831f9e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/alphak.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alphak -{ - type dimensionedScalar; - description "alphak"; - iconURL "/FoamX/icons/small/maths/alphak.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/beta.cfg b/etc/apps/FoamX/entries/dimensionedScalar/beta.cfg deleted file mode 100644 index 59ec082e10..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/beta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -beta -{ - type dimensionedScalar; - description "beta"; - iconURL "/FoamX/icons/small/maths/beta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/beta1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/beta1.cfg deleted file mode 100644 index 65e7a9bf10..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/beta1.cfg +++ /dev/null @@ -1,6 +0,0 @@ -beta1 -{ - type dimensionedScalar; - description "beta1"; - iconURL "/FoamX/icons/small/maths/beta1.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/beta2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/beta2.cfg deleted file mode 100644 index bbbfb4dd87..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/beta2.cfg +++ /dev/null @@ -1,6 +0,0 @@ -beta2 -{ - type dimensionedScalar; - description "beta2"; - iconURL "/FoamX/icons/small/maths/beta2.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/betaStar.cfg b/etc/apps/FoamX/entries/dimensionedScalar/betaStar.cfg deleted file mode 100644 index cd754240c4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/betaStar.cfg +++ /dev/null @@ -1,6 +0,0 @@ -betaStar -{ - type dimensionedScalar; - description "betaStar"; - iconURL "/FoamX/icons/small/maths/betaStar.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/bore.cfg b/etc/apps/FoamX/entries/dimensionedScalar/bore.cfg deleted file mode 100644 index 4efa1b6196..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/bore.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -bore -{ - type dimensionedScalar; - description "bore"; - iconURL "/FoamX/icons/small/maths/bore.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/c1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/c1.cfg deleted file mode 100644 index 04c5e29ff2..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/c1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -c1 -{ - type dimensionedScalar; - description "c1"; - iconURL "/FoamX/icons/small/maths/c1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/c2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/c2.cfg deleted file mode 100644 index 0ca2127f55..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/c2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -c2 -{ - type dimensionedScalar; - description "c2"; - iconURL "/FoamX/icons/small/maths/c2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cB.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cB.cfg deleted file mode 100644 index 0808083b5d..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cB.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cB -{ - type dimensionedScalar; - description "cB"; - iconURL "/FoamX/icons/small/maths/cB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cD.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cD.cfg deleted file mode 100644 index 7e2c175658..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cD.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cD -{ - type dimensionedScalar; - description "cD"; - iconURL "/FoamX/icons/small/maths/cD.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cD2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cD2.cfg deleted file mode 100644 index ac1e73d0ae..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cD2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cD2 -{ - type dimensionedScalar; - description "cD2"; - iconURL "/FoamX/icons/small/maths/cD2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cI.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cI.cfg deleted file mode 100644 index c71ec28c22..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cI.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cI -{ - type dimensionedScalar; - description "cI"; - iconURL "/FoamX/icons/small/maths/cI.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cK1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cK1.cfg deleted file mode 100644 index d08ec4eb4c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cK1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cK1 -{ - type dimensionedScalar; - description "cK1"; - iconURL "/FoamX/icons/small/maths/cK1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cK2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cK2.cfg deleted file mode 100644 index c4e4a67d94..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cK2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cK2 -{ - type dimensionedScalar; - description "cK2"; - iconURL "/FoamX/icons/small/maths/cK2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cK3.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cK3.cfg deleted file mode 100644 index 64cb6bd891..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cK3.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cK3 -{ - type dimensionedScalar; - description "cK3"; - iconURL "/FoamX/icons/small/maths/cK3.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cK4.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cK4.cfg deleted file mode 100644 index 0d404aef6e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cK4.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cK4 -{ - type dimensionedScalar; - description "cK4"; - iconURL "/FoamX/icons/small/maths/cK4.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/ce.cfg b/etc/apps/FoamX/entries/dimensionedScalar/ce.cfg deleted file mode 100644 index 6971b6c979..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/ce.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ce -{ - type dimensionedScalar; - description "ce"; - iconURL "/FoamX/icons/small/maths/ce.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/ck.cfg b/etc/apps/FoamX/entries/dimensionedScalar/ck.cfg deleted file mode 100644 index 9ee40af8de..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/ck.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ck -{ - type dimensionedScalar; - description "ck"; - iconURL "/FoamX/icons/small/maths/ck.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/clearance.cfg b/etc/apps/FoamX/entries/dimensionedScalar/clearance.cfg deleted file mode 100644 index fbe4358bd1..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/clearance.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -clearance -{ - type dimensionedScalar; - description "clearance"; - iconURL "/FoamX/icons/small/maths/clearance.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/cm.cfg b/etc/apps/FoamX/entries/dimensionedScalar/cm.cfg deleted file mode 100644 index 8fb300340c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/cm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cm -{ - type dimensionedScalar; - description "cm"; - iconURL "/FoamX/icons/small/maths/cm.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/conRodLength.cfg b/etc/apps/FoamX/entries/dimensionedScalar/conRodLength.cfg deleted file mode 100644 index b9eea57dc1..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/conRodLength.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -conRodLength -{ - type dimensionedScalar; - description "conRodLength"; - iconURL "/FoamX/icons/small/maths/conRodLength.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/createDimensionedScalar b/etc/apps/FoamX/entries/dimensionedScalar/createDimensionedScalar deleted file mode 100644 index 437cfc73ad..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/createDimensionedScalar +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createDimensionedScalar " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type dimensionedScalar;' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/dimensionedScalar/da.cfg b/etc/apps/FoamX/entries/dimensionedScalar/da.cfg deleted file mode 100644 index 1e529c03f7..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/da.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -da -{ - type dimensionedScalar; - description "da"; - iconURL "/FoamX/icons/small/maths/da.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/db.cfg b/etc/apps/FoamX/entries/dimensionedScalar/db.cfg deleted file mode 100644 index cfb472a69b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/db.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -db -{ - type dimensionedScalar; - description "db"; - iconURL "/FoamX/icons/small/maths/db.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/e.cfg b/etc/apps/FoamX/entries/dimensionedScalar/e.cfg deleted file mode 100644 index 0e6814a95b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/e.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -e -{ - type dimensionedScalar; - description "e"; - iconURL "/FoamX/icons/small/maths/e.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/epsilon0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/epsilon0.cfg deleted file mode 100644 index 4de895b4d3..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/epsilon0.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -epsilon0 -{ - type dimensionedScalar; - description "epsilon0"; - iconURL "/FoamX/icons/small/maths/epsilon0.gif"; - default epsilon0 [-1 -3 4 0 0 2 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/k.cfg b/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/k.cfg deleted file mode 100644 index bd9c5ecc5b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/k.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - type dimensionedScalar; - description "k"; - iconURL "/FoamX/icons/small/maths/k.gif"; - default k [-1 0 2 0 0 1 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/mu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/mu.cfg deleted file mode 100644 index 096283f852..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/mu.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mu -{ - type dimensionedScalar; - description "mu"; - iconURL "/FoamX/icons/small/maths/mu.gif"; - default mu [1 1 -2 0 0 -2 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/sigma.cfg b/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/sigma.cfg deleted file mode 100644 index a364ad4a94..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/electromagnetics/sigma.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sigma -{ - type dimensionedScalar; - description "sigma"; - iconURL "/FoamX/icons/small/maths/sigma.gif"; - default sigma [-1 -3 3 0 0 2 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/equivalenceRatio.cfg b/etc/apps/FoamX/entries/dimensionedScalar/equivalenceRatio.cfg deleted file mode 100644 index 1895be2316..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/equivalenceRatio.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -equivalenceRatio -{ - type dimensionedScalar; - description "equivalenceRatio"; - iconURL "/FoamX/icons/small/maths/ratio.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/eta.cfg b/etc/apps/FoamX/entries/dimensionedScalar/eta.cfg deleted file mode 100644 index 770a01df07..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/eta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -eta -{ - type dimensionedScalar; - description "eta"; - iconURL "/FoamX/icons/small/maths/eta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/eta0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/eta0.cfg deleted file mode 100644 index db31b3d0a3..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/eta0.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -eta0 -{ - type dimensionedScalar; - description "eta0"; - iconURL "/FoamX/icons/small/maths/eta0.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/f.cfg b/etc/apps/FoamX/entries/dimensionedScalar/f.cfg deleted file mode 100644 index 9e45640a0a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/f.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -f -{ - type dimensionedScalar; - description "f"; - iconURL "/FoamX/icons/small/maths/f.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/gamma.cfg b/etc/apps/FoamX/entries/dimensionedScalar/gamma.cfg deleted file mode 100644 index 8bce26325a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/gamma.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gamma -{ - type dimensionedScalar; - description "gamma"; - iconURL "/FoamX/icons/small/maths/gamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/gamma1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/gamma1.cfg deleted file mode 100644 index b38946a2bc..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/gamma1.cfg +++ /dev/null @@ -1,6 +0,0 @@ -gamma1 -{ - type dimensionedScalar; - description "gamma1"; - iconURL "/FoamX/icons/small/maths/gamma1.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/gamma2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/gamma2.cfg deleted file mode 100644 index 22a6bed129..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/gamma2.cfg +++ /dev/null @@ -1,6 +0,0 @@ -gamma2 -{ - type dimensionedScalar; - description "gamma2"; - iconURL "/FoamX/icons/small/maths/gamma2.gif"; -} diff --git a/etc/apps/FoamX/entries/dimensionedScalar/k.cfg b/etc/apps/FoamX/entries/dimensionedScalar/k.cfg deleted file mode 100644 index ccd384a9a8..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/k.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - type dimensionedScalar; - description "k"; - iconURL "/FoamX/icons/small/maths/k.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/kappa.cfg b/etc/apps/FoamX/entries/dimensionedScalar/kappa.cfg deleted file mode 100644 index b85c05c87f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/kappa.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kappa -{ - type dimensionedScalar; - description "kappa"; - iconURL "/FoamX/icons/small/maths/kappa.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/m.cfg b/etc/apps/FoamX/entries/dimensionedScalar/m.cfg deleted file mode 100644 index 6d98a9b00c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/m.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -m -{ - type dimensionedScalar; - description "m"; - iconURL "/FoamX/icons/small/maths/m.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/mgbsCoef.cfg b/etc/apps/FoamX/entries/dimensionedScalar/mgbsCoef.cfg deleted file mode 100644 index f6c2fd6db0..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/mgbsCoef.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mgbsCoef -{ - type dimensionedScalar; - description "mgbsCoef"; - iconURL "/FoamX/icons/small/maths/mgbsCoef.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/mu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/mu.cfg deleted file mode 100644 index 3e3aaf11a9..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/mu.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mu -{ - type dimensionedScalar; - description "mu"; - iconURL "/FoamX/icons/small/maths/mu.gif"; - default mu [1 -1 -1 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/mu1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/mu1.cfg deleted file mode 100644 index 78a75bf81e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/mu1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mu1 -{ - type dimensionedScalar; - description "mu1"; - iconURL "/FoamX/icons/small/maths/mu1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/mu2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/mu2.cfg deleted file mode 100644 index 3c7f583842..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/mu2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mu2 -{ - type dimensionedScalar; - description "mu2"; - iconURL "/FoamX/icons/small/maths/mu2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/muc.cfg b/etc/apps/FoamX/entries/dimensionedScalar/muc.cfg deleted file mode 100644 index 66400a92c4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/muc.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -muc -{ - type dimensionedScalar; - description "muc"; - iconURL "/FoamX/icons/small/maths/muc.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/n.cfg b/etc/apps/FoamX/entries/dimensionedScalar/n.cfg deleted file mode 100644 index c6afc71b0f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/n.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -n -{ - type dimensionedScalar; - description "n"; - iconURL "/FoamX/icons/small/maths/n.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/nu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/nu.cfg deleted file mode 100644 index 60a6bafa94..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/nu.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nu -{ - type dimensionedScalar; - description "nu"; - iconURL "/FoamX/icons/small/maths/nu.gif"; - default nu [0 2 -1 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/nu0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/nu0.cfg deleted file mode 100644 index 577d33bb29..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/nu0.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nu0 -{ - type dimensionedScalar; - description "nu0"; - iconURL "/FoamX/icons/small/maths/nu0.gif"; - default nu0 [0 2 -1 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/nuInf.cfg b/etc/apps/FoamX/entries/dimensionedScalar/nuInf.cfg deleted file mode 100644 index 5b92e6fb2d..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/nuInf.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nuInf -{ - type dimensionedScalar; - description "nuInf"; - iconURL "/FoamX/icons/small/maths/nuInf.gif"; - default nuInf [0 2 -1 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/nua.cfg b/etc/apps/FoamX/entries/dimensionedScalar/nua.cfg deleted file mode 100644 index ef9d25b50e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/nua.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nua -{ - type dimensionedScalar; - description "nua"; - iconURL "/FoamX/icons/small/maths/nua.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/nub.cfg b/etc/apps/FoamX/entries/dimensionedScalar/nub.cfg deleted file mode 100644 index 17a85e3bea..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/nub.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nub -{ - type dimensionedScalar; - description "nub"; - iconURL "/FoamX/icons/small/maths/nub.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/p0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/p0.cfg deleted file mode 100644 index bbc0759568..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/p0.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p0 -{ - type dimensionedScalar; - description "p0"; - iconURL "/FoamX/icons/small/maths/p0.gif"; - default p0 [ 1 -1 -2 0 0 0 0 ] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/phim.cfg b/etc/apps/FoamX/entries/dimensionedScalar/phim.cfg deleted file mode 100644 index 21a80b1349..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/phim.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phim -{ - type dimensionedScalar; - description "phim"; - iconURL "/FoamX/icons/small/maths/phim.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityCoeff.cfg b/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityCoeff.cfg deleted file mode 100644 index ac9631b3b4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityCoeff.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -plasticViscosityCoeff -{ - type dimensionedScalar; - description "plasticViscosityCoeff"; - iconURL "/FoamX/icons/small/maths/plasticViscosityCoeff.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityExponent.cfg b/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityExponent.cfg deleted file mode 100644 index 451d6a810c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/plasticViscosityExponent.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -plasticViscosityExponent -{ - type dimensionedScalar; - description "plasticViscosityExponent"; - iconURL "/FoamX/icons/small/maths/plasticViscosityExponent.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/psi.cfg b/etc/apps/FoamX/entries/dimensionedScalar/psi.cfg deleted file mode 100644 index abdbf5a640..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/psi.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -psi -{ - type dimensionedScalar; - description "psi"; - iconURL "/FoamX/icons/small/maths/psi.gif"; - default psi [ 0 -2 2 0 0 0 0 ] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/r.cfg b/etc/apps/FoamX/entries/dimensionedScalar/r.cfg deleted file mode 100644 index 6a987c5bb2..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/r.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -r -{ - type dimensionedScalar; - description "r"; - iconURL "/FoamX/icons/small/maths/r.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rho.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rho.cfg deleted file mode 100644 index 77801cf774..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rho.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - type dimensionedScalar; - description "rho"; - iconURL "/FoamX/icons/small/maths/rho.gif"; - default rho [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rho0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rho0.cfg deleted file mode 100644 index dfbadb4635..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rho0.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho0 -{ - type dimensionedScalar; - description "rho0"; - iconURL "/FoamX/icons/small/maths/rho0.gif"; - default rho0 [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rho1.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rho1.cfg deleted file mode 100644 index 5dd3854695..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rho1.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho1 -{ - type dimensionedScalar; - description "rho1"; - iconURL "/FoamX/icons/small/maths/rho1.gif"; - default rho1 [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rho2.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rho2.cfg deleted file mode 100644 index 804d94c5df..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rho2.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho2 -{ - type dimensionedScalar; - description "rho2"; - iconURL "/FoamX/icons/small/maths/rho2.gif"; - default rho [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rhoa.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rhoa.cfg deleted file mode 100644 index 1c5c4c3df5..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rhoa.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhoa -{ - type dimensionedScalar; - description "rhoa"; - iconURL "/FoamX/icons/small/maths/rhoa.gif"; - default rho [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rhob.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rhob.cfg deleted file mode 100644 index bbe2f7dca4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rhob.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhob -{ - type dimensionedScalar; - description "rhob"; - iconURL "/FoamX/icons/small/maths/rhob.gif"; - default rho [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rhoc.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rhoc.cfg deleted file mode 100644 index 90c6b80772..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rhoc.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhoc -{ - type dimensionedScalar; - description "rhoc"; - iconURL "/FoamX/icons/small/maths/rhoc.gif"; - default rhoc [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rhod.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rhod.cfg deleted file mode 100644 index 7b1166b7f5..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rhod.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhod -{ - type dimensionedScalar; - description "rhod"; - iconURL "/FoamX/icons/small/maths/rhod.gif"; - default rhod [1 -3 0 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/rpm.cfg b/etc/apps/FoamX/entries/dimensionedScalar/rpm.cfg deleted file mode 100644 index 052d1079ae..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/rpm.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rpm -{ - type dimensionedScalar; - description "rpm"; - iconURL "/FoamX/icons/small/maths/rpm.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/s.cfg b/etc/apps/FoamX/entries/dimensionedScalar/s.cfg deleted file mode 100644 index 266564a0c4..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/s.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -s -{ - type dimensionedScalar; - description "s"; - iconURL "/FoamX/icons/small/maths/s.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/sigma.cfg b/etc/apps/FoamX/entries/dimensionedScalar/sigma.cfg deleted file mode 100644 index 492a27214b..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/sigma.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sigma -{ - type dimensionedScalar; - description "sigma"; - iconURL "/FoamX/icons/small/maths/sigma.gif"; - default sigma [1 0 -2 0 0 0 0] 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/sigmaExt.cfg b/etc/apps/FoamX/entries/dimensionedScalar/sigmaExt.cfg deleted file mode 100644 index 82aff811c3..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/sigmaExt.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -sigmaExt -{ - type dimensionedScalar; - description "sigmaExt"; - iconURL "/FoamX/icons/small/maths/sigmaExt.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stoichiometricAirFuelMassRatio.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stoichiometricAirFuelMassRatio.cfg deleted file mode 100644 index d2893f84ea..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stoichiometricAirFuelMassRatio.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -stoichiometricAirFuelMassRatio -{ - type dimensionedScalar; - description "stoichiometricAirFuelMassRatio"; - iconURL "/FoamX/icons/small/maths/alpha.gif"; - options - { - value - { - minValue 0; - maxValue 10000; - } - } - default stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stress/C.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stress/C.cfg deleted file mode 100644 index 3a6f36c640..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stress/C.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -C -{ - type dimensionedScalar; - description "C"; - iconURL "/FoamX/icons/small/maths/C.gif"; - default C [0 2 -2 -1 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stress/E.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stress/E.cfg deleted file mode 100644 index 1080af407a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stress/E.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -E -{ - type dimensionedScalar; - description "E"; - iconURL "/FoamX/icons/small/maths/E.gif"; - default E [1 -1 -2 0 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stress/alpha.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stress/alpha.cfg deleted file mode 100644 index 3b23aa2073..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stress/alpha.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alpha -{ - type dimensionedScalar; - description "alpha"; - iconURL "/FoamX/icons/small/maths/alpha.gif"; - default alpha [0 0 0 -1 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stress/k.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stress/k.cfg deleted file mode 100644 index 99ed33a7ab..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stress/k.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - type dimensionedScalar; - description "k"; - iconURL "/FoamX/icons/small/maths/k.gif"; - default k [1 1 -3 -1 0 0 0] 0.0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stress/nu.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stress/nu.cfg deleted file mode 100644 index 25f71f7a4c..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stress/nu.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nu -{ - type dimensionedScalar; - description "nu"; - iconURL "/FoamX/icons/small/maths/nu.gif"; - default nu [0 0 0 0 0 0 0] 0.3; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/strike.cfg b/etc/apps/FoamX/entries/dimensionedScalar/strike.cfg deleted file mode 100644 index 793916bebb..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/strike.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -strike -{ - type dimensionedScalar; - description "strike"; - iconURL "/FoamX/icons/small/maths/strike.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/stroke.cfg b/etc/apps/FoamX/entries/dimensionedScalar/stroke.cfg deleted file mode 100644 index e1c0997768..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/stroke.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -stroke -{ - type dimensionedScalar; - description "stroke"; - iconURL "/FoamX/icons/small/maths/stroke.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/theta0.cfg b/etc/apps/FoamX/entries/dimensionedScalar/theta0.cfg deleted file mode 100644 index 0800b64ddc..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/theta0.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -theta0 -{ - type dimensionedScalar; - description "theta0"; - iconURL "/FoamX/icons/small/maths/theta0.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/thetaA.cfg b/etc/apps/FoamX/entries/dimensionedScalar/thetaA.cfg deleted file mode 100644 index 36aa9be93e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/thetaA.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thetaA -{ - type dimensionedScalar; - description "thetaA"; - iconURL "/FoamX/icons/small/maths/thetaA.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/thetaR.cfg b/etc/apps/FoamX/entries/dimensionedScalar/thetaR.cfg deleted file mode 100644 index 00928b211e..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/thetaR.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -thetaR -{ - type dimensionedScalar; - description "thetaR"; - iconURL "/FoamX/icons/small/maths/thetaR.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/uPrimeCoef.cfg b/etc/apps/FoamX/entries/dimensionedScalar/uPrimeCoef.cfg deleted file mode 100644 index f11138b182..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/uPrimeCoef.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -uPrimeCoef -{ - type dimensionedScalar; - description "uPrimeCoef"; - iconURL "/FoamX/icons/small/maths/uPrimeCoef.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/uTheta.cfg b/etc/apps/FoamX/entries/dimensionedScalar/uTheta.cfg deleted file mode 100644 index 02de2869ed..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/uTheta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -uTheta -{ - type dimensionedScalar; - description "uTheta"; - iconURL "/FoamX/icons/small/maths/uTheta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/xi.cfg b/etc/apps/FoamX/entries/dimensionedScalar/xi.cfg deleted file mode 100644 index 84f729696a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/xi.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -xi -{ - type dimensionedScalar; - description "xi"; - iconURL "/FoamX/icons/small/maths/xi.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressCoeff.cfg b/etc/apps/FoamX/entries/dimensionedScalar/yieldStressCoeff.cfg deleted file mode 100644 index ab56322ccc..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressCoeff.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -yieldStressCoeff -{ - type dimensionedScalar; - description "yieldStressCoeff"; - iconURL "/FoamX/icons/small/maths/yieldStressCoeff.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressExponent.cfg b/etc/apps/FoamX/entries/dimensionedScalar/yieldStressExponent.cfg deleted file mode 100644 index 050361b28d..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressExponent.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -yieldStressExponent -{ - type dimensionedScalar; - description "yieldStressExponent"; - iconURL "/FoamX/icons/small/maths/yieldStressExponent.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressOffset.cfg b/etc/apps/FoamX/entries/dimensionedScalar/yieldStressOffset.cfg deleted file mode 100644 index 4e0ecc1507..0000000000 --- a/etc/apps/FoamX/entries/dimensionedScalar/yieldStressOffset.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -yieldStressOffset -{ - type dimensionedScalar; - description "yieldStressOffset"; - iconURL "/FoamX/icons/small/maths/yieldStressOffset.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedVector/Ubar.cfg b/etc/apps/FoamX/entries/dimensionedVector/Ubar.cfg deleted file mode 100644 index bbe8d6732a..0000000000 --- a/etc/apps/FoamX/entries/dimensionedVector/Ubar.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ubar -{ - type dimensionedVector; - description "Ubar"; - iconURL "/FoamX/icons/small/maths/Ubar.gif"; - default Ubar [0 1 -1 0 0 0 0] (0 0 0); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedVector/V0.cfg b/etc/apps/FoamX/entries/dimensionedVector/V0.cfg deleted file mode 100644 index 13c7b9a434..0000000000 --- a/etc/apps/FoamX/entries/dimensionedVector/V0.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -V0 -{ - type dimensionedVector; - description "V0"; - iconURL "/FoamX/icons/small/maths/V0.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/dimensionedVector/createDimensionedVector b/etc/apps/FoamX/entries/dimensionedVector/createDimensionedVector deleted file mode 100644 index e2fac290fb..0000000000 --- a/etc/apps/FoamX/entries/dimensionedVector/createDimensionedVector +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createDimensionedVector " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type dimensionedVector;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/dimensionedVector/g.cfg b/etc/apps/FoamX/entries/dimensionedVector/g.cfg deleted file mode 100644 index 95b579a52f..0000000000 --- a/etc/apps/FoamX/entries/dimensionedVector/g.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -g -{ - type dimensionedVector; - description "g"; - iconURL "/FoamX/icons/small/maths/g.gif"; - default g [0 1 -2 0 0 0 0] (0 0 0); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/engineMesh/engineMesh.cfg b/etc/apps/FoamX/entries/engineMesh/engineMesh.cfg deleted file mode 100644 index 133fda9d16..0000000000 --- a/etc/apps/FoamX/entries/engineMesh/engineMesh.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -engineMesh -{ - type model; - description "Engine mesh selection"; - default layered; - valueList - ( - static - layered - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/fieldValues/fieldValue.cfg b/etc/apps/FoamX/entries/fieldValues/fieldValue.cfg deleted file mode 100644 index a852305a26..0000000000 --- a/etc/apps/FoamX/entries/fieldValues/fieldValue.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fieldValue -{ - type selection; - description "field value"; - entries - { - include "volScalarFieldValue.cfg"; - include "volVectorFieldValue.cfg"; - include "volTensorFieldValue.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/fieldValues/fieldValues.cfg b/etc/apps/FoamX/entries/fieldValues/fieldValues.cfg deleted file mode 100644 index e6e2ef0092..0000000000 --- a/etc/apps/FoamX/entries/fieldValues/fieldValues.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fieldValues -{ - type list; - description "list of field values"; - elementType - { - include "fieldValue.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/fieldValues/volScalarFieldValue.cfg b/etc/apps/FoamX/entries/fieldValues/volScalarFieldValue.cfg deleted file mode 100644 index 7f8c9eb342..0000000000 --- a/etc/apps/FoamX/entries/fieldValues/volScalarFieldValue.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -volScalarFieldValue -{ - type compound; - entries - { - fieldName - { - type word; - } - - value - { - type scalar; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/fieldValues/volTensorFieldValue.cfg b/etc/apps/FoamX/entries/fieldValues/volTensorFieldValue.cfg deleted file mode 100644 index 949b511f59..0000000000 --- a/etc/apps/FoamX/entries/fieldValues/volTensorFieldValue.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -volTensorFieldValue -{ - type compound; - entries - { - fieldName - { - type word; - } - - value - { - type tensor; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/fieldValues/volVectorFieldValue.cfg b/etc/apps/FoamX/entries/fieldValues/volVectorFieldValue.cfg deleted file mode 100644 index e6b38f6679..0000000000 --- a/etc/apps/FoamX/entries/fieldValues/volVectorFieldValue.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -volVectorFieldValue -{ - type compound; - entries - { - fieldName - { - type word; - } - - value - { - type vector; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Bdynamic.cfg b/etc/apps/FoamX/entries/geometricFields/Bdynamic.cfg deleted file mode 100644 index c8184cfd54..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Bdynamic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - description "Dynamic SGS stress"; - fieldType tensor; - iconURL "/FoamX/icons/small/maths/B.gif"; - geometryType vol; - dimensions [1 -1 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Bkinematic.cfg b/etc/apps/FoamX/entries/geometricFields/Bkinematic.cfg deleted file mode 100644 index 62924c519b..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Bkinematic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - description "Kinematic SGS stress"; - fieldType tensor; - iconURL "/FoamX/icons/small/maths/B.gif"; - geometryType vol; - dimensions [0 2 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Bsgs.cfg b/etc/apps/FoamX/entries/geometricFields/Bsgs.cfg deleted file mode 100644 index 56eb3229a6..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Bsgs.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - description "SGS stress"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/B.gif"; - geometryType vol; - dimensions [1 -1 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Rdynamic.cfg b/etc/apps/FoamX/entries/geometricFields/Rdynamic.cfg deleted file mode 100644 index 432fd5ad1c..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Rdynamic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -R -{ - description "Dynamic Reynolds stress tensor (for RSTMs)"; - fieldType tensor; - iconURL "/FoamX/icons/small/maths/R.gif"; - geometryType vol; - dimensions [1 -1 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Rkinematic.cfg b/etc/apps/FoamX/entries/geometricFields/Rkinematic.cfg deleted file mode 100644 index 9d4c24bab4..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Rkinematic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -R -{ - description "Kinematic Reynolds stress tensor (for RSTMs)"; - fieldType tensor; - iconURL "/FoamX/icons/small/maths/R.gif"; - geometryType vol; - dimensions [0 2 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Su.cfg b/etc/apps/FoamX/entries/geometricFields/Su.cfg deleted file mode 100644 index 5d492b7b9b..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Su.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Su -{ - description "Flame Speed"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/Su.gif"; - geometryType vol; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/T.cfg b/etc/apps/FoamX/entries/geometricFields/T.cfg deleted file mode 100644 index c7db167ad8..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/T.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - description "Temperature Field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/T.gif"; - geometryType vol; - dimensions [ 0 0 0 1 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Tdimless.cfg b/etc/apps/FoamX/entries/geometricFields/Tdimless.cfg deleted file mode 100644 index a14e826d9d..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Tdimless.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - description "Temperature Field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/T.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Tu.cfg b/etc/apps/FoamX/entries/geometricFields/Tu.cfg deleted file mode 100644 index 2f115356b3..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Tu.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Tu -{ - description "Unburnt mixture temperature field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/Tu.gif"; - geometryType vol; - dimensions [ 0 0 0 1 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/U.cfg b/etc/apps/FoamX/entries/geometricFields/U.cfg deleted file mode 100644 index 1987a13255..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/U.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - description "Velocity Field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/U.gif"; - geometryType vol; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Ua.cfg b/etc/apps/FoamX/entries/geometricFields/Ua.cfg deleted file mode 100644 index 31ed41bac2..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Ua.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ua -{ - description "Velocity Field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/Ua.gif"; - geometryType vol; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Ub.cfg b/etc/apps/FoamX/entries/geometricFields/Ub.cfg deleted file mode 100644 index 124997ba4b..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Ub.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ub -{ - description "Velocity Field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/Ub.gif"; - geometryType vol; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Vfinancial.cfg b/etc/apps/FoamX/entries/geometricFields/Vfinancial.cfg deleted file mode 100644 index ea5b3e7065..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Vfinancial.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -V -{ - description "Value"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/V.gif"; - geometryType vol; - dimensions [ 0 1 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/Xi.cfg b/etc/apps/FoamX/entries/geometricFields/Xi.cfg deleted file mode 100644 index 7952e40368..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/Xi.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Xi -{ - description "Xi field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/Xi.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/alpha.cfg b/etc/apps/FoamX/entries/geometricFields/alpha.cfg deleted file mode 100644 index a89d3a5515..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/alpha.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alpha -{ - description "Discrete phase fraction"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/alpha.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/b.cfg b/etc/apps/FoamX/entries/geometricFields/b.cfg deleted file mode 100644 index 188bfd4bc8..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/b.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -b -{ - description "b field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/b.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/displacement.cfg b/etc/apps/FoamX/entries/geometricFields/displacement.cfg deleted file mode 100644 index 1be2e4d4ae..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/displacement.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -D -{ - description "Displacement Field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/D.gif"; - geometryType vol; - dimensions [0 1 0 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/electromagnetics/B.cfg b/etc/apps/FoamX/entries/geometricFields/electromagnetics/B.cfg deleted file mode 100644 index df64d95f6e..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/electromagnetics/B.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - description "Magnetic flux density field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/B.gif"; - geometryType vol; - dimensions [1 0 -2 0 0 -1 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/electromagnetics/pB.cfg b/etc/apps/FoamX/entries/geometricFields/electromagnetics/pB.cfg deleted file mode 100644 index 344470a491..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/electromagnetics/pB.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pB -{ - description "Ficticious magnetic pressure field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/pB.gif"; - geometryType vol; - dimensions [1 1 -3 0 0 -1 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/epsilon.cfg b/etc/apps/FoamX/entries/geometricFields/epsilon.cfg deleted file mode 100644 index 03b124fde7..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/epsilon.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -epsilon -{ - description "Dissipation Rate Field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/epsilon.gif"; - geometryType vol; - dimensions [ 0 2 -3 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/ft.cfg b/etc/apps/FoamX/entries/geometricFields/ft.cfg deleted file mode 100644 index 70ad6bc07f..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/ft.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ft -{ - description "Fuel mass fraction field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/ft.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/fu.cfg b/etc/apps/FoamX/entries/geometricFields/fu.cfg deleted file mode 100644 index 99b22852af..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/fu.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fu -{ - description "Unburnt fuel mass fraction field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/fu.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/gamma.cfg b/etc/apps/FoamX/entries/geometricFields/gamma.cfg deleted file mode 100644 index 0beba4bc37..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/gamma.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gamma -{ - description "Volume fraction field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/gamma.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/k.cfg b/etc/apps/FoamX/entries/geometricFields/k.cfg deleted file mode 100644 index f1dc9f444b..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/k.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - description "Turbulent Kinetic Energy Field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/k.gif"; - geometryType vol; - dimensions [ 0 2 -2 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/motionU.cfg b/etc/apps/FoamX/entries/geometricFields/motionU.cfg deleted file mode 100644 index 2f43e05514..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/motionU.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -motionU -{ - description "Geometry motion velocity"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/U.gif"; - geometryType point; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/muSgs.cfg b/etc/apps/FoamX/entries/geometricFields/muSgs.cfg deleted file mode 100644 index 61f56ef48b..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/muSgs.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -muSgs -{ - description "Sub-grid scale dynamic viscosity"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/muSgs.gif"; - geometryType vol; - dimensions [ 1 -1 -1 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/muTilda.cfg b/etc/apps/FoamX/entries/geometricFields/muTilda.cfg deleted file mode 100644 index cf2ba24192..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/muTilda.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -muTilda -{ - description "**** dynamic viscosity "; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/muTilda.gif"; - geometryType vol; - dimensions [1 -1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/nuSgs.cfg b/etc/apps/FoamX/entries/geometricFields/nuSgs.cfg deleted file mode 100644 index 3aac6ad474..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/nuSgs.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nuSgs -{ - description "Sub-grid scale kinematic viscosity"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/nuSgs.gif"; - geometryType vol; - dimensions [ 0 2 -1 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/nuTilda.cfg b/etc/apps/FoamX/entries/geometricFields/nuTilda.cfg deleted file mode 100644 index 4cd4d9e1f2..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/nuTilda.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nuTilda -{ - description "**** kinematic viscosity (for Spalart Allmaras turbulence model)"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/nuTilda.gif"; - geometryType vol; - dimensions [ 0 2 -1 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/pDynamic.cfg b/etc/apps/FoamX/entries/geometricFields/pDynamic.cfg deleted file mode 100644 index c4107872f4..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/pDynamic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - description "DYNAMIC pressure field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/p.gif"; - geometryType vol; - dimensions [1 -1 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/pKinematic.cfg b/etc/apps/FoamX/entries/geometricFields/pKinematic.cfg deleted file mode 100644 index f9bf3a438c..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/pKinematic.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - description "KINEMATIC pressure field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/p.gif"; - geometryType vol; - dimensions [0 2 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/pd.cfg b/etc/apps/FoamX/entries/geometricFields/pd.cfg deleted file mode 100644 index 3889ee2378..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/pd.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pd -{ - description "DYNAMIC pressure field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/pd.gif"; - geometryType vol; - dimensions [1 -1 -2 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/phiEP.cfg b/etc/apps/FoamX/entries/geometricFields/phiEP.cfg deleted file mode 100644 index 2f4435d3f0..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/phiEP.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -phi -{ - description "Electric potential"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/phi.gif"; - geometryType vol; - dimensions [ 1 2 -3 0 0 -1 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/pointU.cfg b/etc/apps/FoamX/entries/geometricFields/pointU.cfg deleted file mode 100644 index 6dc83bcbd9..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/pointU.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pointU -{ - description "Motion Velocity Field"; - fieldType vector; - iconURL "/FoamX/icons/small/maths/U.gif"; - geometryType point; - dimensions [0 1 -1 0 0 0 0]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/rXi.cfg b/etc/apps/FoamX/entries/geometricFields/rXi.cfg deleted file mode 100644 index faaf8dd1d5..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/rXi.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rXi -{ - description "rXi field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/rXi.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/rhoCD.cfg b/etc/apps/FoamX/entries/geometricFields/rhoCD.cfg deleted file mode 100644 index c55e05ae7e..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/rhoCD.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - description "Charge density"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/rho.gif"; - geometryType vol; - dimensions [ 0 -3 1 0 0 1 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/geometricFields/theta.cfg b/etc/apps/FoamX/entries/geometricFields/theta.cfg deleted file mode 100644 index ef05b8fd73..0000000000 --- a/etc/apps/FoamX/entries/geometricFields/theta.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -theta -{ - description "Transported scalar field"; - fieldType scalar; - iconURL "/FoamX/icons/small/maths/theta.gif"; - geometryType vol; - dimensions [ 0 0 0 0 0 0 0 ]; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/Gamma.cfg b/etc/apps/FoamX/entries/interpolations/Gamma.cfg deleted file mode 100644 index 0335378db2..0000000000 --- a/etc/apps/FoamX/entries/interpolations/Gamma.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Gamma -{ - type compound; - description "Gamma interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/Gamma01.cfg b/etc/apps/FoamX/entries/interpolations/Gamma01.cfg deleted file mode 100644 index 66c760c11a..0000000000 --- a/etc/apps/FoamX/entries/interpolations/Gamma01.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Gamma01 -{ - type compound; - description "Gamma01 interpolation scheme for scalars bounded 0-1"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/GammaV.cfg b/etc/apps/FoamX/entries/interpolations/GammaV.cfg deleted file mode 100644 index 31de216bdd..0000000000 --- a/etc/apps/FoamX/entries/interpolations/GammaV.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GammaV -{ - type compound; - description "GammaV (Gamma for vectors) interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/MUSCL.cfg b/etc/apps/FoamX/entries/interpolations/MUSCL.cfg deleted file mode 100644 index 8b6b6be46a..0000000000 --- a/etc/apps/FoamX/entries/interpolations/MUSCL.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -MUSCL -{ - type compound; - description "van Leer MUSCL interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/MUSCL01.cfg b/etc/apps/FoamX/entries/interpolations/MUSCL01.cfg deleted file mode 100644 index 3de5779d25..0000000000 --- a/etc/apps/FoamX/entries/interpolations/MUSCL01.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -MUSCL01 -{ - type compound; - description "MUSCL01 interpolation scheme for scalars bounded 0-1"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/Phi.cfg b/etc/apps/FoamX/entries/interpolations/Phi.cfg deleted file mode 100644 index 5726a69ce5..0000000000 --- a/etc/apps/FoamX/entries/interpolations/Phi.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Phi -{ - type compound; - description "Phi interpolation scheme for velocity"; - entries - { - coefficient - { - type scalar01; - default 1.0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/QUICK.cfg b/etc/apps/FoamX/entries/interpolations/QUICK.cfg deleted file mode 100644 index f41867ccca..0000000000 --- a/etc/apps/FoamX/entries/interpolations/QUICK.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -QUICK -{ - type compound; - description "Quadratic upwind interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/SFCD.cfg b/etc/apps/FoamX/entries/interpolations/SFCD.cfg deleted file mode 100644 index 9b6083674f..0000000000 --- a/etc/apps/FoamX/entries/interpolations/SFCD.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SFCD -{ - type compound; - description "Self-filtered central differencing scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/SFCDV.cfg b/etc/apps/FoamX/entries/interpolations/SFCDV.cfg deleted file mode 100644 index 5e3028d84a..0000000000 --- a/etc/apps/FoamX/entries/interpolations/SFCDV.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SFCDV -{ - type compound; - description "SFCDV (SFCD for vectors) interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/SuperBee.cfg b/etc/apps/FoamX/entries/interpolations/SuperBee.cfg deleted file mode 100644 index c6a80a04cd..0000000000 --- a/etc/apps/FoamX/entries/interpolations/SuperBee.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SuperBee -{ - type compound; - description "SuperBee interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/SuperBee01.cfg b/etc/apps/FoamX/entries/interpolations/SuperBee01.cfg deleted file mode 100644 index 0c8703d90a..0000000000 --- a/etc/apps/FoamX/entries/interpolations/SuperBee01.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SuperBee01 -{ - type compound; - description "SuperBee01 interpolation scheme for scalars bounded 0-1"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/UMIST.cfg b/etc/apps/FoamX/entries/interpolations/UMIST.cfg deleted file mode 100644 index 8d60d5bedc..0000000000 --- a/etc/apps/FoamX/entries/interpolations/UMIST.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -UMIST -{ - type compound; - description "UMIST interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/blended.cfg b/etc/apps/FoamX/entries/interpolations/blended.cfg deleted file mode 100644 index 57b9b16f0f..0000000000 --- a/etc/apps/FoamX/entries/interpolations/blended.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -blended -{ - type compound; - description "Blended upwind (=0) and linear (=1) interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 0.5; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/Gamma.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/Gamma.cfg deleted file mode 100644 index fa8ec5f6e7..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/Gamma.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Gamma -{ - type Gamma; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/Gamma01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/Gamma01.cfg deleted file mode 100644 index deb1a0e6c5..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/Gamma01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Gamma01 -{ - type Gamma01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/GammaV.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/GammaV.cfg deleted file mode 100644 index 86f7274d38..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/GammaV.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GammaV -{ - type GammaV; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL.cfg deleted file mode 100644 index 6db7cf32cf..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -MUSCL -{ - type MUSCL; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL01.cfg deleted file mode 100644 index 930d989b54..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/MUSCL01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -MUSCL01 -{ - type MUSCL01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/Phi.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/Phi.cfg deleted file mode 100644 index c558f04437..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/Phi.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Phi -{ - type Phi; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/QUICK.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/QUICK.cfg deleted file mode 100644 index 96b6ffbde3..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/QUICK.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -QUICK -{ - type QUICK; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/SFCD.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/SFCD.cfg deleted file mode 100644 index aa98e23e89..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/SFCD.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SFCD -{ - type SFCD; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/SFCDV.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/SFCDV.cfg deleted file mode 100644 index 7d54ae18de..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/SFCDV.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SFCDV -{ - type SFCDV; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee.cfg deleted file mode 100644 index 1d09efd14c..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SuperBee -{ - type SuperBee; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee01.cfg deleted file mode 100644 index d243667ab3..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/SuperBee01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SuperBee01 -{ - type SuperBee01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/UMIST.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/UMIST.cfg deleted file mode 100644 index 8654915556..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/UMIST.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -UMIST -{ - type UMIST; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/blended.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/blended.cfg deleted file mode 100644 index ff5c6a0e2c..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/blended.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -blended -{ - type blended; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/createAllInterpolationByPhi b/etc/apps/FoamX/entries/interpolations/byPhi/createAllInterpolationByPhi deleted file mode 100755 index 3efbd8d051..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/createAllInterpolationByPhi +++ /dev/null @@ -1,36 +0,0 @@ -./createInterpolationByPhi blended -./createInterpolationByPhi downwind -./createInterpolationByPhi Gamma01 -./createInterpolationByPhi Gamma -./createInterpolationByPhi GammaV -./createInterpolationByPhi limitedCubic01 -./createInterpolationByPhi limitedCubic -./createInterpolationByPhi limitedGamma -./createInterpolationByPhi limitedLimitedCubic -./createInterpolationByPhi limitedLimitedLinear -./createInterpolationByPhi limitedLinear -./createInterpolationByPhi limitedLinear01 -./createInterpolationByPhi limitedMUSCL -./createInterpolationByPhi limitedSuperBee -./createInterpolationByPhi limitedVanLeer -./createInterpolationByPhi linearUpwind -./createInterpolationByPhi filteredLinear -./createInterpolationByPhi filteredLinear2 -./createInterpolationByPhi filteredLinear2V -./createInterpolationByPhi MUSCL01 -./createInterpolationByPhi MUSCL -./createInterpolationByPhi Phi -./createInterpolationByPhi QUICK -./createInterpolationByPhi SFCD -./createInterpolationByPhi skewLinear -./createInterpolationByPhi SuperBee01 -./createInterpolationByPhi SuperBee -./createInterpolationByPhi UMIST -./createInterpolationByPhi upwind -./createInterpolationByPhi vanLeer01 -./createInterpolationByPhi vanLeer -./createInterpolationByPhi interfaceCompression -./createInterpolationByPhi limitedCubicV -./createInterpolationByPhi limitedLinearV -./createInterpolationByPhi SFCDV -./createInterpolationByPhi vanLeerV diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/createInterpolationByPhi b/etc/apps/FoamX/entries/interpolations/byPhi/createInterpolationByPhi deleted file mode 100755 index 91e279a1ac..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/createInterpolationByPhi +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -writeFile () { -cat <" - exit 1 -fi - -file=$1.cfg -if [ -e $file ] ; then - echo "Removing existing file $file" - rm $file -fi - -echo "Creating file $file" -writeFile $1 > $file diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/downwind.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/downwind.cfg deleted file mode 100644 index e8d07b4e56..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/downwind.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -downwind -{ - type downwind; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear.cfg deleted file mode 100644 index d4bbfe75e0..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear -{ - type filteredLinear; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2.cfg deleted file mode 100644 index b3dd4d308d..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear2 -{ - type filteredLinear2; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2V.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2V.cfg deleted file mode 100644 index b7abb1b870..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/filteredLinear2V.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear2V -{ - type filteredLinear2V; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/gammaCompression.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/gammaCompression.cfg deleted file mode 100644 index dff7166cb1..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/gammaCompression.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gammaCompression -{ - type gammaCompression; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/interfaceCompression.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/interfaceCompression.cfg deleted file mode 100644 index 63f8840a63..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/interfaceCompression.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interfaceCompression -{ - type interfaceCompression; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic.cfg deleted file mode 100644 index 8e5bcf29ad..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubic -{ - type limitedCubic; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic01.cfg deleted file mode 100644 index f07f579906..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubic01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubic01 -{ - type limitedCubic01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubicV.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubicV.cfg deleted file mode 100644 index 0b2cabaace..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedCubicV.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubicV -{ - type limitedCubicV; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedGamma.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedGamma.cfg deleted file mode 100644 index fb63708e38..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedGamma.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedGamma -{ - type limitedGamma; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedCubic.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedCubic.cfg deleted file mode 100644 index bab01ebb40..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedCubic.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLimitedCubic -{ - type limitedLimitedCubic; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedLinear.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedLinear.cfg deleted file mode 100644 index 5444480659..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLimitedLinear.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLimitedLinear -{ - type limitedLimitedLinear; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear.cfg deleted file mode 100644 index df27e6c822..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinear -{ - type limitedLinear; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear01.cfg deleted file mode 100644 index 6a2038f664..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinear01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinear01 -{ - type limitedLinear01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinearV.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinearV.cfg deleted file mode 100644 index 0be4b27a5e..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedLinearV.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinearV -{ - type limitedLinearV; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedMUSCL.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedMUSCL.cfg deleted file mode 100644 index bf0c1421c4..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedMUSCL.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedMUSCL -{ - type limitedMUSCL; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedSuperBee.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedSuperBee.cfg deleted file mode 100644 index 518bd33e82..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedSuperBee.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedSuperBee -{ - type limitedSuperBee; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/limitedVanLeer.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/limitedVanLeer.cfg deleted file mode 100644 index 6fc721e13e..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/limitedVanLeer.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedVanLeer -{ - type limitedVanLeer; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/linearUpwind.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/linearUpwind.cfg deleted file mode 100644 index fa0fb98e31..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/linearUpwind.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -linearUpwind -{ - type linearUpwind; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/skewLinear.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/skewLinear.cfg deleted file mode 100644 index 7bf441aa31..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/skewLinear.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -skewLinear -{ - type skewLinear; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/upwind.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/upwind.cfg deleted file mode 100644 index 8eade52dcf..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/upwind.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -upwind -{ - type upwind; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer.cfg deleted file mode 100644 index 6c7738fd10..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeer -{ - type vanLeer; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer01.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer01.cfg deleted file mode 100644 index d11230d630..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeer01.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeer01 -{ - type vanLeer01; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeerV.cfg b/etc/apps/FoamX/entries/interpolations/byPhi/vanLeerV.cfg deleted file mode 100644 index ed38c0057d..0000000000 --- a/etc/apps/FoamX/entries/interpolations/byPhi/vanLeerV.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4.1 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeerV -{ - type vanLeerV; - entries - { - interpolateField - { - type word; - default phi; - editable 0; - } - } -} diff --git a/etc/apps/FoamX/entries/interpolations/cubic.cfg b/etc/apps/FoamX/entries/interpolations/cubic.cfg deleted file mode 100644 index e096ba6f14..0000000000 --- a/etc/apps/FoamX/entries/interpolations/cubic.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cubic -{ - type compound; - description "Fourth order interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/cubicCorrection.cfg b/etc/apps/FoamX/entries/interpolations/cubicCorrection.cfg deleted file mode 100644 index 03d20ff709..0000000000 --- a/etc/apps/FoamX/entries/interpolations/cubicCorrection.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cubicCorrection -{ - type compound; - description "Cubic-correction interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/downwind.cfg b/etc/apps/FoamX/entries/interpolations/downwind.cfg deleted file mode 100644 index f470b0fe89..0000000000 --- a/etc/apps/FoamX/entries/interpolations/downwind.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -downwind -{ - type compound; - description "Downwind interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/filteredLinear.cfg b/etc/apps/FoamX/entries/interpolations/filteredLinear.cfg deleted file mode 100644 index 7652917872..0000000000 --- a/etc/apps/FoamX/entries/interpolations/filteredLinear.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear -{ - type compound; - description "Filtered linear interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/filteredLinear2.cfg b/etc/apps/FoamX/entries/interpolations/filteredLinear2.cfg deleted file mode 100644 index 232c2980ed..0000000000 --- a/etc/apps/FoamX/entries/interpolations/filteredLinear2.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear2 -{ - type compound; - description "Filtered-linear-2 interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 0.2; - } - allowedUnboundedness - { - type scalar01; - default 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/filteredLinear2V.cfg b/etc/apps/FoamX/entries/interpolations/filteredLinear2V.cfg deleted file mode 100644 index 9228c6a9c5..0000000000 --- a/etc/apps/FoamX/entries/interpolations/filteredLinear2V.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -filteredLinear2V -{ - type compound; - description "Filtered-linear-2-V (filteredLinear2 for vectors) interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 0.2; - } - allowedUnboundedness - { - type scalar01; - default 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/harmonic.cfg b/etc/apps/FoamX/entries/interpolations/harmonic.cfg deleted file mode 100644 index d75d4a84cf..0000000000 --- a/etc/apps/FoamX/entries/interpolations/harmonic.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -harmonic -{ - type compound; - description "Harmonic interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/interfaceCompression.cfg b/etc/apps/FoamX/entries/interpolations/interfaceCompression.cfg deleted file mode 100644 index d76ead45a6..0000000000 --- a/etc/apps/FoamX/entries/interpolations/interfaceCompression.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -interfaceCompression -{ - type compound; - description "interfaceCompression interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/inverseLinear.cfg b/etc/apps/FoamX/entries/interpolations/inverseLinear.cfg deleted file mode 100644 index 3ec9883db3..0000000000 --- a/etc/apps/FoamX/entries/interpolations/inverseLinear.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -inversLinear -{ - type compound; - description "InversLinear interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedCubic.cfg b/etc/apps/FoamX/entries/interpolations/limitedCubic.cfg deleted file mode 100644 index d6cb09bb16..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedCubic.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubic -{ - type compound; - description "limitedCubic interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedCubic01.cfg b/etc/apps/FoamX/entries/interpolations/limitedCubic01.cfg deleted file mode 100644 index 5afe79e42d..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedCubic01.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubic01 -{ - type compound; - description "limitedCubic01 interpolation scheme for scalars bounded 0-1"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedCubicV.cfg b/etc/apps/FoamX/entries/interpolations/limitedCubicV.cfg deleted file mode 100644 index 2ca9faa9d8..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedCubicV.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedCubicV -{ - type compound; - description "limitedCubicV (limitedCubic for vectors) interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedGamma.cfg b/etc/apps/FoamX/entries/interpolations/limitedGamma.cfg deleted file mode 100644 index 3d0e5f8ec9..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedGamma.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedGamma -{ - type compound; - description "limitedGamma interpolation scheme"; - entries - { - coefficient - { - type scalar01; - description "Blending coefficient (1 = TVD)"; - default 1; - } - - lowerBound - { - type scalar; - description "Lower bound"; - default 0; - } - - upperBound - { - type scalar; - description "Upper bound"; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedLimitedCubic.cfg b/etc/apps/FoamX/entries/interpolations/limitedLimitedCubic.cfg deleted file mode 100644 index f3fcf86065..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedLimitedCubic.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLimitedCubic -{ - type compound; - description "limitedLimitedCubic interpolation scheme"; - entries - { - coefficient - { - type scalar01; - description "Blending coefficient"; - default 1; - } - - lowerBound - { - type scalar; - description "Lower bound"; - default 0; - } - - upperBound - { - type scalar; - description "Upper bound"; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedLimitedLinear.cfg b/etc/apps/FoamX/entries/interpolations/limitedLimitedLinear.cfg deleted file mode 100644 index 8d72a93fe8..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedLimitedLinear.cfg +++ /dev/null @@ -1,38 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLimitedLinear -{ - type compound; - description "limitedLimitedLinear interpolation scheme"; - entries - { - coefficient - { - type scalar01; - description "Blending coefficient"; - default 1; - } - - lowerBound - { - type scalar; - description "Lower bound"; - default 0; - } - - upperBound - { - type scalar; - description "Upper bound"; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedLinear.cfg b/etc/apps/FoamX/entries/interpolations/limitedLinear.cfg deleted file mode 100644 index 0ddee16aea..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedLinear.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinear -{ - type compound; - description "limitedLinear interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedLinear01.cfg b/etc/apps/FoamX/entries/interpolations/limitedLinear01.cfg deleted file mode 100644 index c362349d09..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedLinear01.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinear01 -{ - type compound; - description "limitedLinear01 interpolation scheme for scalars bounded 0-1"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedLinearV.cfg b/etc/apps/FoamX/entries/interpolations/limitedLinearV.cfg deleted file mode 100644 index 03441b06ba..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedLinearV.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedLinearV -{ - type compound; - description "limitedLinearV (limitedLinear for vectors) interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedMUSCL.cfg b/etc/apps/FoamX/entries/interpolations/limitedMUSCL.cfg deleted file mode 100644 index 6da76391dc..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedMUSCL.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedMUSCL -{ - type compound; - description "limitedMUSCL interpolation scheme"; - entries - { - lowerBound - { - type scalar; - description "Lower bound"; - default 0; - } - - upperBound - { - type scalar; - description "Upper bound"; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedSuperBee.cfg b/etc/apps/FoamX/entries/interpolations/limitedSuperBee.cfg deleted file mode 100644 index 88f88055a8..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedSuperBee.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedSuperBee -{ - type compound; - description "limitedSuperBee interpolation scheme"; - entries - { - coefficient - { - type scalar01; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/limitedVanLeer.cfg b/etc/apps/FoamX/entries/interpolations/limitedVanLeer.cfg deleted file mode 100644 index 8e603dd785..0000000000 --- a/etc/apps/FoamX/entries/interpolations/limitedVanLeer.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limitedVanLeer -{ - type compound; - description "limitedVanLeer interpolation scheme"; - entries - { - lowerBound - { - type scalar; - description "Lower bound"; - default 0; - } - - upperBound - { - type scalar; - description "Upper bound"; - default 1; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/linear.cfg b/etc/apps/FoamX/entries/interpolations/linear.cfg deleted file mode 100644 index c8358607af..0000000000 --- a/etc/apps/FoamX/entries/interpolations/linear.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -linear -{ - type compound; - description "Linear interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/linearUpwind.cfg b/etc/apps/FoamX/entries/interpolations/linearUpwind.cfg deleted file mode 100644 index 13247471ec..0000000000 --- a/etc/apps/FoamX/entries/interpolations/linearUpwind.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -linearUpwind -{ - type compound; - description "Linear upwind interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/midPoint.cfg b/etc/apps/FoamX/entries/interpolations/midPoint.cfg deleted file mode 100644 index ac214fd5db..0000000000 --- a/etc/apps/FoamX/entries/interpolations/midPoint.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -midPoint -{ - type compound; - description "MidPoint interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/skewLinear.cfg b/etc/apps/FoamX/entries/interpolations/skewLinear.cfg deleted file mode 100644 index 41de19cbc1..0000000000 --- a/etc/apps/FoamX/entries/interpolations/skewLinear.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -skewLinear -{ - type compound; - description "Linear interpolation scheme with skewness correction"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/unselected.cfg b/etc/apps/FoamX/entries/interpolations/unselected.cfg deleted file mode 100644 index a065418847..0000000000 --- a/etc/apps/FoamX/entries/interpolations/unselected.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -<> -{ - type compound; - description "Select interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/upwind.cfg b/etc/apps/FoamX/entries/interpolations/upwind.cfg deleted file mode 100644 index c248594b59..0000000000 --- a/etc/apps/FoamX/entries/interpolations/upwind.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -upwind -{ - type compound; - description "Upwind interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/vanLeer.cfg b/etc/apps/FoamX/entries/interpolations/vanLeer.cfg deleted file mode 100644 index 1ec0d1e8b0..0000000000 --- a/etc/apps/FoamX/entries/interpolations/vanLeer.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeer -{ - type compound; - description "van Leer interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/vanLeer01.cfg b/etc/apps/FoamX/entries/interpolations/vanLeer01.cfg deleted file mode 100644 index 5646a94951..0000000000 --- a/etc/apps/FoamX/entries/interpolations/vanLeer01.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeer01 -{ - type compound; - description "vanLeer01 interpolation scheme for scalars bounded 0-1"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/vanLeerV.cfg b/etc/apps/FoamX/entries/interpolations/vanLeerV.cfg deleted file mode 100644 index efaf8a645a..0000000000 --- a/etc/apps/FoamX/entries/interpolations/vanLeerV.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vanLeerV -{ - type compound; - description "vanLeerV (vanLeer for vectors) interpolation scheme"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/interpolations/weighted.cfg b/etc/apps/FoamX/entries/interpolations/weighted.cfg deleted file mode 100644 index 75cacca815..0000000000 --- a/etc/apps/FoamX/entries/interpolations/weighted.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -weighted -{ - type compound; - description "weighted interpolation scheme"; - entries - { - value - { - type word; - description "Name of weights surfaceScalarField"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/Nx.cfg b/etc/apps/FoamX/entries/label/Nx.cfg deleted file mode 100644 index c5fb87762d..0000000000 --- a/etc/apps/FoamX/entries/label/Nx.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Nx -{ - type label; - description "Nx"; - iconURL "/FoamX/icons/small/maths/Nx.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/Ny.cfg b/etc/apps/FoamX/entries/label/Ny.cfg deleted file mode 100644 index d8b39c0d62..0000000000 --- a/etc/apps/FoamX/entries/label/Ny.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ny -{ - type label; - description "Ny"; - iconURL "/FoamX/icons/small/maths/Ny.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/Nz.cfg b/etc/apps/FoamX/entries/label/Nz.cfg deleted file mode 100644 index f9e820214e..0000000000 --- a/etc/apps/FoamX/entries/label/Nz.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Nz -{ - type label; - description "Nz"; - iconURL "/FoamX/icons/small/maths/Nz.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/createLabel b/etc/apps/FoamX/entries/label/createLabel deleted file mode 100644 index 9c92fc749c..0000000000 --- a/etc/apps/FoamX/entries/label/createLabel +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createLabel " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type label;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/label/dirPatchID.cfg b/etc/apps/FoamX/entries/label/dirPatchID.cfg deleted file mode 100644 index e26c081043..0000000000 --- a/etc/apps/FoamX/entries/label/dirPatchID.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dirPatchID -{ - type label; - displayName "dirPatchID"; - description "dirPatchID"; - iconURL "/FoamX/icons/small/maths/dirPatchID.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/gradPatchID.cfg b/etc/apps/FoamX/entries/label/gradPatchID.cfg deleted file mode 100644 index bd73ffa473..0000000000 --- a/etc/apps/FoamX/entries/label/gradPatchID.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gradPatchID -{ - type label; - displayName "gradPatchID"; - description "gradPatchID"; - iconURL "/FoamX/icons/small/maths/gradPatchID.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nAlphaCorr.cfg b/etc/apps/FoamX/entries/label/nAlphaCorr.cfg deleted file mode 100644 index e5917734da..0000000000 --- a/etc/apps/FoamX/entries/label/nAlphaCorr.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nAlphaCorr -{ - type label; - description "Number of alpha equation correctors"; - iconURL "/FoamX/icons/small/maths/nCorrectors.gif"; - helpURL "fvSolution.html"; - minValue 0; - maxValue 4; - default 2; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nBcorrectors.cfg b/etc/apps/FoamX/entries/label/nBcorrectors.cfg deleted file mode 100644 index 0049463e97..0000000000 --- a/etc/apps/FoamX/entries/label/nBcorrectors.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nBcorrectors -{ - type label; - description "Number of PISO correctors on magnetic flux equation"; - iconURL "/FoamX/icons/small/maths/nCorrectors.gif"; - helpURL "controlDict.html"; - minValue 0; - maxValue 4; - default 2; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nCorrectors.cfg b/etc/apps/FoamX/entries/label/nCorrectors.cfg deleted file mode 100644 index ca95530b63..0000000000 --- a/etc/apps/FoamX/entries/label/nCorrectors.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nCorrectors -{ - type label; - description "Number of PISO correctors"; - iconURL "/FoamX/icons/small/maths/nCorrectors.gif"; - helpURL "fvSolution.html"; - minValue 0; - maxValue 10; - default 2; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nGammaCorr.cfg b/etc/apps/FoamX/entries/label/nGammaCorr.cfg deleted file mode 100644 index e8414fd98c..0000000000 --- a/etc/apps/FoamX/entries/label/nGammaCorr.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nGammaCorr -{ - type label; - description "Number of gamma correctors"; - iconURL "/FoamX/icons/small/maths/nGammaCorr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nGammaSubCycles.cfg b/etc/apps/FoamX/entries/label/nGammaSubCycles.cfg deleted file mode 100644 index d6384b247a..0000000000 --- a/etc/apps/FoamX/entries/label/nGammaSubCycles.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nGammaSubCycles -{ - type label; - description "Number of subcycles per timestep in the gamma eqn"; - iconURL "/FoamX/icons/small/maths/nGammaSubCycles.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nGammaSubCyclesFixed.cfg b/etc/apps/FoamX/entries/label/nGammaSubCyclesFixed.cfg deleted file mode 100644 index c9017246c9..0000000000 --- a/etc/apps/FoamX/entries/label/nGammaSubCyclesFixed.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nGammaSubCycles -{ - type label; - editable 0; - default 1; - description "Number of subcycles per timestep in the gamma eqn"; - iconURL "/FoamX/icons/small/maths/nGammaSubCycles.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nNonOrthogonalCorrectors.cfg b/etc/apps/FoamX/entries/label/nNonOrthogonalCorrectors.cfg deleted file mode 100644 index c8669b9e79..0000000000 --- a/etc/apps/FoamX/entries/label/nNonOrthogonalCorrectors.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nNonOrthogonalCorrectors -{ - type label; - description "Number of non-orthogonal correctors"; - iconURL "/FoamX/icons/small/maths/nNonOrthogonalCorrectors.gif"; - helpURL "fvSolution.html"; - minValue 0; - maxValue 20; - default 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/label/nOuterIterations.cfg b/etc/apps/FoamX/entries/label/nOuterIterations.cfg deleted file mode 100644 index 5acd49ed62..0000000000 --- a/etc/apps/FoamX/entries/label/nOuterIterations.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nCorrectors -{ - type label; - description "Outer iterations"; - iconURL "/FoamX/icons/small/maths/nCorrectors.gif"; - helpURL "controlDict.html"; - minValue 0; - maxValue 100; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/U.cfg deleted file mode 100644 index 3315f59c20..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/U.cfg +++ /dev/null @@ -1 +0,0 @@ -supersonicFreestream supersonicFreestream; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/p.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/p.cfg deleted file mode 100644 index c4f49c0202..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/p.cfg +++ /dev/null @@ -1,3 +0,0 @@ -supersonicInlet fixedValue; -pressureTransmissiveOutlet waveTransmissive; -supersonicFreestream zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/patches.cfg deleted file mode 100644 index 78365ba831..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/sonic/patches.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -supersonicInlet -{ - description "Supersonic free stream boundary condition"; - parentType inlet; -} - -pressureTransmissiveOutlet -{ - description "Pressure transmissive outlet boundary condition"; - parentType inletOutlet; -} - -supersonicFreestream -{ - description "Supersonic free stream boundary condition"; - parentType inletOutlet; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/B.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/B.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/B.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/R.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/R.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/R.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/U.cfg deleted file mode 100644 index 0d21b868d7..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/U.cfg +++ /dev/null @@ -1,8 +0,0 @@ -slip slip; -wall fixedValue; -inlet fixedValue; -pressureInlet pressureInletVelocity; -outlet zeroGradient; -fixedVelocityOutlet fixedValue; -inletOutlet inletOutlet; -atmosphere pressureInletOutletVelocity; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/Y.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/Y.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/Y.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/alpha.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/alpha.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/alpha.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/B.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/B.cfg deleted file mode 100644 index 0f52f7e6cb..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/B.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall fixedValue; -movingWall fixedValue; -inlet zeroGradient; -outlet zeroGradient; -inletOutlet zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/pB.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/pB.cfg deleted file mode 100644 index f006378c51..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/electromagnetics/pB.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet fixedValue; -inletOutlet fixedValue; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/epsilon.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/epsilon.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/epsilon.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/gamma.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/gamma.cfg deleted file mode 100644 index 158246900a..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/gamma.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/k.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/k.cfg deleted file mode 100644 index 09082007e1..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/k.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall fixedValue; -movingWall fixedValue; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/U.cfg deleted file mode 100644 index cb06c279ac..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/U.cfg +++ /dev/null @@ -1 +0,0 @@ -movingWall movingWallVelocity; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/patches.cfg deleted file mode 100644 index 393bf65b32..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/meshMotion/patches.cfg +++ /dev/null @@ -1,5 +0,0 @@ -movingWall -{ - description "Moving-wall boundary condition"; - parentType wall; -} diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/motionU.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/motionU.cfg deleted file mode 100644 index 43446ef650..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/motionU.cfg +++ /dev/null @@ -1,8 +0,0 @@ -slip slip; -wall fixedValue; -movingWall fixedValue; -inlet fixedValue; -pressureInlet fixedValue; -outlet fixedValue; -inletOutlet fixedValue; -atmosphere fixedValue; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muSgs.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muSgs.cfg deleted file mode 100644 index cf66c4cdf2..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muSgs.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet zeroGradient; -outlet zeroGradient; -inletOutlet zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muTilda.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muTilda.cfg deleted file mode 100644 index 09082007e1..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/muTilda.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall fixedValue; -movingWall fixedValue; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuSgs.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuSgs.cfg deleted file mode 100644 index cf66c4cdf2..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuSgs.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet zeroGradient; -outlet zeroGradient; -inletOutlet zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuTilda.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuTilda.cfg deleted file mode 100644 index 09082007e1..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/nuTilda.cfg +++ /dev/null @@ -1,6 +0,0 @@ -slip slip; -wall fixedValue; -movingWall fixedValue; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/p.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/p.cfg deleted file mode 100644 index 4e729d5d47..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/p.cfg +++ /dev/null @@ -1,11 +0,0 @@ -slip slip; -wall zeroGradient; -inlet zeroGradient; -pressureInlet fixedValue; -outlet fixedValue; -inletOutlet fixedValue; -extrapolatedOutlet zeroGradient; -extrapolatedInletOutlet zeroGradient; -fixedVelocityOutlet zeroGradient; -atmosphere totalPressure; -freestream zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/patches.cfg deleted file mode 100644 index 02f4fd2ff1..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/patches.cfg +++ /dev/null @@ -1,83 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -slip -{ - description "Slip"; -} - -wall -{ - description "Wall boundary condition"; - patchType wall; -} - -inlet -{ - description "Inlet"; -} - -pressureInlet -{ - description "Pressure-inlet"; - parentType inlet; -} - -outlet -{ - description "Outlet"; -} - -inletOutlet -{ - description "Outlet with the posibility of reverse flow"; -} - -pressureOutlet -{ - description "Fixed-pressure outlet"; - parentType outlet; -} - -pressureInletOutlet -{ - description "Fixed-pressure outlet with the posibility of reverse flow"; - parentType inletOutlet; -} - -extrapolatedOutlet -{ - description "Extrapolated outlet"; - parentType outlet; -} - -fixedVelocityOutlet -{ - description "Fixed velocity outlet"; - parentType outlet; -} - -extrapolatedInletOutlet -{ - description "Extrapolated outlet with the posibility of reverse flow"; - parentType inletOutlet; -} - -atmosphere -{ - description "Atmosphere"; - parentType inletOutlet; -} - -freestream -{ - description "Freestream"; - parentType inletOutlet; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/pd.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/pd.cfg deleted file mode 100644 index 4e729d5d47..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/pd.cfg +++ /dev/null @@ -1,11 +0,0 @@ -slip slip; -wall zeroGradient; -inlet zeroGradient; -pressureInlet fixedValue; -outlet fixedValue; -inletOutlet fixedValue; -extrapolatedOutlet zeroGradient; -extrapolatedInletOutlet zeroGradient; -fixedVelocityOutlet zeroGradient; -atmosphere totalPressure; -freestream zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/T.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/T.cfg deleted file mode 100644 index 3d30fec43f..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/T.cfg +++ /dev/null @@ -1,8 +0,0 @@ -slip slip; -wall zeroGradient; -movingWall zeroGradient; -inlet fixedValue; -outlet zeroGradient; -inletOutlet inletOutlet; -adiabaticWall zeroGradient; -fixedTemperatureWall fixedValue; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/U.cfg deleted file mode 100644 index b6ce14de8c..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/U.cfg +++ /dev/null @@ -1,2 +0,0 @@ -adiabaticMovingWall movingWallVelocity; -fixedTemperatureMovingWall movingWallVelocity; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/patches.cfg deleted file mode 100644 index 976cf4e1de..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/meshMotion/patches.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -adiabaticMovingWall -{ - description "Adiabatic wall boundary condition"; - parentType adiabaticWall; -} - -fixedTemperatureMovingWall -{ - description "Fixed temperature wall boundary condition"; - parentType fixedTemperatureWall; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/patches.cfg deleted file mode 100644 index 048981ee94..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/standard/thermal/patches.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -adiabaticWall -{ - description "Adiabatic wall boundary condition"; - parentType wall; -} - -fixedTemperatureWall -{ - description "Fixed temperature wall boundary condition"; - parentType wall; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/B.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/B.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/B.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/R.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/R.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/R.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/epsilon.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/k.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/k.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/k.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/U.cfg deleted file mode 100644 index 8f1b12d4f4..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/U.cfg +++ /dev/null @@ -1 +0,0 @@ -movingWallFunctions movingWallVelocity; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/patches.cfg deleted file mode 100644 index d6e9faac15..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/meshMotion/patches.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -movingWallFunctions -{ - description "Moving-wall boundary condition"; - parentType wallFunctions; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muSgs.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muSgs.cfg deleted file mode 100644 index c9575d17f9..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muSgs.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions nuSgsWallFunction; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muTilda.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muTilda.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/muTilda.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg deleted file mode 100644 index c9575d17f9..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuSgs.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions nuSgsWallFunction; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg deleted file mode 100644 index df1e4c7323..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/nuTilda.cfg +++ /dev/null @@ -1 +0,0 @@ -wallFunctions zeroGradient; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/patches.cfg deleted file mode 100644 index b6a32da1a2..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/patches.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallFunctions -{ - description "Wall-functions boundary condition"; - parentType wall; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg deleted file mode 100644 index e4ec6ee3bf..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/T.cfg +++ /dev/null @@ -1,2 +0,0 @@ -adiabaticWallFunctions zeroGradient; -fixedTemperatureWallFunctions fixedValue; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/U.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/U.cfg deleted file mode 100644 index 3aed6a8213..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/U.cfg +++ /dev/null @@ -1,2 +0,0 @@ -adiabaticMovingWallFunctions movingWallVelocity; -fixedTemperatureMovingWallFunctions movingWallVelocity; diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/patches.cfg deleted file mode 100644 index 48a3f8e096..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/meshMotion/patches.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -adiabaticMovingWallFunctions -{ - description "Adiabatic wall functions boundary condition"; - parentType adiabaticWallFunctions; -} - -fixedTemperatureMovingWallFunctions -{ - description "Fixed temperature wall functions boundary condition"; - parentType fixedTemperatureWallFunctions; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg b/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg deleted file mode 100644 index 8be018aff4..0000000000 --- a/etc/apps/FoamX/entries/patchPhysicalTypes/wallFunctions/thermal/patches.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -adiabaticWallFunctions -{ - description "Adiabatic wall functions boundary condition"; - parentType wallFunctions; -} - -fixedTemperatureWallFunctions -{ - description "Fixed temperature wall functions boundary condition"; - parentType wallFunctions; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/ref/pRef.cfg b/etc/apps/FoamX/entries/ref/pRef.cfg deleted file mode 100644 index fc6f268b8b..0000000000 --- a/etc/apps/FoamX/entries/ref/pRef.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pRefCell -{ - type label; - description "Pressure reference cell"; - optional 1; - default 0; -} - -pRefValue -{ - type scalar; - description "Pressure reference value"; - optional 1; - default 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/ref/pdRef.cfg b/etc/apps/FoamX/entries/ref/pdRef.cfg deleted file mode 100644 index 1992c66f34..0000000000 --- a/etc/apps/FoamX/entries/ref/pdRef.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pdRefCell -{ - type label; - description "Dynamic pressure reference cell"; - optional 1; - default 0; -} - -pdRefValue -{ - type scalar; - description "Dynamic pressure reference value"; - optional 1; - default 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/removeDisplayName b/etc/apps/FoamX/entries/removeDisplayName deleted file mode 100644 index 9a0966269a..0000000000 --- a/etc/apps/FoamX/entries/removeDisplayName +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -sed '/displayName/ d' $1 > temp.$$ -mv temp.$$ $1 \ No newline at end of file diff --git a/etc/apps/FoamX/entries/scalar/cGamma.cfg b/etc/apps/FoamX/entries/scalar/cGamma.cfg deleted file mode 100644 index 5799ec17b2..0000000000 --- a/etc/apps/FoamX/entries/scalar/cGamma.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cGamma -{ - type scalar; - description "Interface compression factor (0.0 = no comp; 1.0 = conservative; >1 super compressed)"; - iconURL "/FoamX/icons/small/maths/cGamma.gif"; - minValue 0; - maxValue 2; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar/convertToMeters.cfg b/etc/apps/FoamX/entries/scalar/convertToMeters.cfg deleted file mode 100644 index df98fc5fc7..0000000000 --- a/etc/apps/FoamX/entries/scalar/convertToMeters.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -convertToMeters -{ - type scalar; - description "convertToMeters"; - iconURL "/FoamX/icons/small/maths/convertToMeters.gif"; - default 1; - minValue 1e-12; - maxValue 1e+12; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar/createScalar b/etc/apps/FoamX/entries/scalar/createScalar deleted file mode 100644 index bc4c695b81..0000000000 --- a/etc/apps/FoamX/entries/scalar/createScalar +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type scalar;' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/scalar/delta.cfg b/etc/apps/FoamX/entries/scalar/delta.cfg deleted file mode 100644 index 04f7da5e4a..0000000000 --- a/etc/apps/FoamX/entries/scalar/delta.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -delta -{ - type scalar; - description "delta"; - iconURL "/FoamX/icons/small/maths/delta.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar/max.cfg b/etc/apps/FoamX/entries/scalar/max.cfg deleted file mode 100644 index 55ed43d707..0000000000 --- a/etc/apps/FoamX/entries/scalar/max.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -max -{ - type scalar; - description "max"; - iconURL "/FoamX/icons/small/maths/max.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar/maxDeltaRatio.cfg b/etc/apps/FoamX/entries/scalar/maxDeltaRatio.cfg deleted file mode 100644 index 003ea9462d..0000000000 --- a/etc/apps/FoamX/entries/scalar/maxDeltaRatio.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -maxDeltaRatio -{ - type scalar; - description "maxDeltaRatio"; - iconURL "/FoamX/icons/small/maths/maxDeltaRatio.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar/min.cfg b/etc/apps/FoamX/entries/scalar/min.cfg deleted file mode 100644 index 89f2a1618a..0000000000 --- a/etc/apps/FoamX/entries/scalar/min.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -min -{ - type scalar; - description "min"; - iconURL "/FoamX/icons/small/maths/min.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/Alpha.cfg b/etc/apps/FoamX/entries/scalar01/Alpha.cfg deleted file mode 100644 index 41a885c1b2..0000000000 --- a/etc/apps/FoamX/entries/scalar01/Alpha.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Alpha -{ - type scalar01; - description "Alpha"; - iconURL "/FoamX/icons/small/maths/Alpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/B.cfg b/etc/apps/FoamX/entries/scalar01/B.cfg deleted file mode 100644 index 989217bfe6..0000000000 --- a/etc/apps/FoamX/entries/scalar01/B.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -B -{ - type scalar01; - description "B"; - iconURL "/FoamX/icons/small/maths/vecB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/D.cfg b/etc/apps/FoamX/entries/scalar01/D.cfg deleted file mode 100644 index 6632fcf63f..0000000000 --- a/etc/apps/FoamX/entries/scalar01/D.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -D -{ - type scalar01; - description "D"; - iconURL "/FoamX/icons/small/maths/D.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/R.cfg b/etc/apps/FoamX/entries/scalar01/R.cfg deleted file mode 100644 index 6d25f78cb0..0000000000 --- a/etc/apps/FoamX/entries/scalar01/R.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -R -{ - type scalar01; - description "R"; - iconURL "/FoamX/icons/small/maths/R.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/T.cfg b/etc/apps/FoamX/entries/scalar01/T.cfg deleted file mode 100644 index d8160dfa89..0000000000 --- a/etc/apps/FoamX/entries/scalar01/T.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -T -{ - type scalar01; - description "T"; - iconURL "/FoamX/icons/small/maths/T.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/TimeStep.cfg b/etc/apps/FoamX/entries/scalar01/TimeStep.cfg deleted file mode 100644 index e56af788d0..0000000000 --- a/etc/apps/FoamX/entries/scalar01/TimeStep.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -TimeStep -{ - type scalar01; - description "TimeStep"; - iconURL "/FoamX/icons/small/maths/deltaT.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/U.cfg b/etc/apps/FoamX/entries/scalar01/U.cfg deleted file mode 100644 index 25673c17e6..0000000000 --- a/etc/apps/FoamX/entries/scalar01/U.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -U -{ - type scalar01; - description "U"; - iconURL "/FoamX/icons/small/maths/U.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/Ua.cfg b/etc/apps/FoamX/entries/scalar01/Ua.cfg deleted file mode 100644 index ab0fd1cbf0..0000000000 --- a/etc/apps/FoamX/entries/scalar01/Ua.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ua -{ - type scalar01; - description "Ua"; - iconURL "/FoamX/icons/small/maths/Ua.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/Ub.cfg b/etc/apps/FoamX/entries/scalar01/Ub.cfg deleted file mode 100644 index 36893a81ae..0000000000 --- a/etc/apps/FoamX/entries/scalar01/Ub.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Ub -{ - type scalar01; - description "Ub"; - iconURL "/FoamX/icons/small/maths/Ub.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/X.cfg b/etc/apps/FoamX/entries/scalar01/X.cfg deleted file mode 100644 index ee7a5ea215..0000000000 --- a/etc/apps/FoamX/entries/scalar01/X.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -X -{ - type scalar01; - description "X"; - iconURL "/FoamX/icons/small/maths/X.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/alpha.cfg b/etc/apps/FoamX/entries/scalar01/alpha.cfg deleted file mode 100644 index 9946048169..0000000000 --- a/etc/apps/FoamX/entries/scalar01/alpha.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -alpha -{ - type scalar01; - description "alpha"; - iconURL "/FoamX/icons/small/maths/alpha.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/contactUnderrelaxation.cfg b/etc/apps/FoamX/entries/scalar01/contactUnderrelaxation.cfg deleted file mode 100644 index 08714f0347..0000000000 --- a/etc/apps/FoamX/entries/scalar01/contactUnderrelaxation.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -contactUnderrelaxation -{ - type scalar01; - displayName "contactUnderrelaxation"; - description "contactUnderrelaxation"; - iconURL "/FoamX/icons/small/maths/contactUnderrelaxation.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/createScalar01 b/etc/apps/FoamX/entries/scalar01/createScalar01 deleted file mode 100644 index 5162bf25dd..0000000000 --- a/etc/apps/FoamX/entries/scalar01/createScalar01 +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar01 " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type scalar01;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/scalar01/e.cfg b/etc/apps/FoamX/entries/scalar01/e.cfg deleted file mode 100644 index 0c02dd4147..0000000000 --- a/etc/apps/FoamX/entries/scalar01/e.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -e -{ - type scalar01; - description "e"; - iconURL "/FoamX/icons/small/maths/e.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/epsilon.cfg b/etc/apps/FoamX/entries/scalar01/epsilon.cfg deleted file mode 100644 index 706412b2c0..0000000000 --- a/etc/apps/FoamX/entries/scalar01/epsilon.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -epsilon -{ - type scalar01; - description "epsilon"; - iconURL "/FoamX/icons/small/maths/epsilon.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/ft.cfg b/etc/apps/FoamX/entries/scalar01/ft.cfg deleted file mode 100644 index d54ec3bb84..0000000000 --- a/etc/apps/FoamX/entries/scalar01/ft.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ft -{ - type scalar01; - description "ft"; - iconURL "/FoamX/icons/small/maths/ft.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/fu.cfg b/etc/apps/FoamX/entries/scalar01/fu.cfg deleted file mode 100644 index 1e84af1dcb..0000000000 --- a/etc/apps/FoamX/entries/scalar01/fu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fu -{ - type scalar01; - description "fu"; - iconURL "/FoamX/icons/small/maths/fu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/gamma.cfg b/etc/apps/FoamX/entries/scalar01/gamma.cfg deleted file mode 100644 index e595255441..0000000000 --- a/etc/apps/FoamX/entries/scalar01/gamma.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gamma -{ - type scalar01; - description "gamma"; - iconURL "/FoamX/icons/small/maths/gamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/gammaSmooth.cfg b/etc/apps/FoamX/entries/scalar01/gammaSmooth.cfg deleted file mode 100644 index c600ae3a52..0000000000 --- a/etc/apps/FoamX/entries/scalar01/gammaSmooth.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -gammaSmooth -{ - type scalar01; - description "gammaSmooth"; - iconURL "/FoamX/icons/small/maths/gamma.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/h.cfg b/etc/apps/FoamX/entries/scalar01/h.cfg deleted file mode 100644 index cca55697d9..0000000000 --- a/etc/apps/FoamX/entries/scalar01/h.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -h -{ - type scalar01; - description "h"; - iconURL "/FoamX/icons/small/maths/h.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/hu.cfg b/etc/apps/FoamX/entries/scalar01/hu.cfg deleted file mode 100644 index 7023e6a38a..0000000000 --- a/etc/apps/FoamX/entries/scalar01/hu.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -hu -{ - type scalar01; - description "hu"; - iconURL "/FoamX/icons/small/maths/hu.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/k.cfg b/etc/apps/FoamX/entries/scalar01/k.cfg deleted file mode 100644 index bd5e65ba2e..0000000000 --- a/etc/apps/FoamX/entries/scalar01/k.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -k -{ - type scalar01; - description "k"; - iconURL "/FoamX/icons/small/maths/k.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/nuTilda.cfg b/etc/apps/FoamX/entries/scalar01/nuTilda.cfg deleted file mode 100644 index eae5ed8414..0000000000 --- a/etc/apps/FoamX/entries/scalar01/nuTilda.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nuTilda -{ - type scalar01; - displayName "nuTilda"; - description "nuTilda"; - iconURL "/FoamX/icons/small/maths/nuTilda.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/p.cfg b/etc/apps/FoamX/entries/scalar01/p.cfg deleted file mode 100644 index 81203f23f2..0000000000 --- a/etc/apps/FoamX/entries/scalar01/p.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -p -{ - type scalar01; - description "p"; - iconURL "/FoamX/icons/small/maths/p.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/pB.cfg b/etc/apps/FoamX/entries/scalar01/pB.cfg deleted file mode 100644 index d256655009..0000000000 --- a/etc/apps/FoamX/entries/scalar01/pB.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pB -{ - type scalar01; - description "pB"; - iconURL "/FoamX/icons/small/maths/pB.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/pcorr.cfg b/etc/apps/FoamX/entries/scalar01/pcorr.cfg deleted file mode 100644 index a712e2defe..0000000000 --- a/etc/apps/FoamX/entries/scalar01/pcorr.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pcorr -{ - type scalar01; - description "pcorr"; - iconURL "/FoamX/icons/small/maths/pcorr.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/pd.cfg b/etc/apps/FoamX/entries/scalar01/pd.cfg deleted file mode 100644 index 9866d7a583..0000000000 --- a/etc/apps/FoamX/entries/scalar01/pd.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -pd -{ - type scalar01; - description "pd"; - iconURL "/FoamX/icons/small/maths/pd.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/rho.cfg b/etc/apps/FoamX/entries/scalar01/rho.cfg deleted file mode 100644 index 8225bf49b0..0000000000 --- a/etc/apps/FoamX/entries/scalar01/rho.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rho -{ - type scalar01; - description "rho"; - iconURL "/FoamX/icons/small/maths/rho.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/rhoS.cfg b/etc/apps/FoamX/entries/scalar01/rhoS.cfg deleted file mode 100644 index 714232cbf2..0000000000 --- a/etc/apps/FoamX/entries/scalar01/rhoS.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rhoS -{ - type scalar01; - description "rhoS"; - iconURL "/FoamX/icons/small/maths/rhoS.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/stress.cfg b/etc/apps/FoamX/entries/scalar01/stress.cfg deleted file mode 100644 index c557a7ed63..0000000000 --- a/etc/apps/FoamX/entries/scalar01/stress.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -stress -{ - type scalar01; - description "stress"; - iconURL "/FoamX/icons/small/maths/stress.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar01/touchTolerance.cfg b/etc/apps/FoamX/entries/scalar01/touchTolerance.cfg deleted file mode 100644 index d191346682..0000000000 --- a/etc/apps/FoamX/entries/scalar01/touchTolerance.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -touchTolerance -{ - type scalar01; - displayName "touchTolerance"; - description "touchTolerance"; - iconURL "/FoamX/icons/small/maths/touchTolerance.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/createScalar0Inf b/etc/apps/FoamX/entries/scalar0Inf/createScalar0Inf deleted file mode 100644 index 31ffd01dc7..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/createScalar0Inf +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createScalar0Inf " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type scalar0Inf;' >> $file -echo ' displayName "'$1'";' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/scalar0Inf/deltaCoeff.cfg b/etc/apps/FoamX/entries/scalar0Inf/deltaCoeff.cfg deleted file mode 100644 index 9ebf3c9f67..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/deltaCoeff.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -deltaCoeff -{ - type scalar0Inf; - displayName "deltaCoeff"; - description "deltaCoeff"; - iconURL "/FoamX/icons/small/maths/deltaCoeff.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/rpm.cfg b/etc/apps/FoamX/entries/scalar0Inf/rpm.cfg deleted file mode 100644 index 4871eaa908..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/rpm.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rpm -{ - type scalar0Inf; - displayName "rpm"; - description "rpm"; - iconURL "/FoamX/icons/small/maths/rpm.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/xMax.cfg b/etc/apps/FoamX/entries/scalar0Inf/xMax.cfg deleted file mode 100644 index 0be9916864..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/xMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -xMax -{ - type scalar0Inf; - description "xMax"; - iconURL "/FoamX/icons/small/maths/xMax.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/xMin.cfg b/etc/apps/FoamX/entries/scalar0Inf/xMin.cfg deleted file mode 100644 index dc0af183a3..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/xMin.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -xMin -{ - type scalar0Inf; - description "xMin"; - iconURL "/FoamX/icons/small/maths/xMin.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/yMax.cfg b/etc/apps/FoamX/entries/scalar0Inf/yMax.cfg deleted file mode 100644 index 2b5dd0e38f..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/yMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -yMax -{ - type scalar0Inf; - description "yMax"; - iconURL "/FoamX/icons/small/maths/yMax.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/yMin.cfg b/etc/apps/FoamX/entries/scalar0Inf/yMin.cfg deleted file mode 100644 index da11bec68f..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/yMin.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -yMin -{ - type scalar0Inf; - description "yMin"; - iconURL "/FoamX/icons/small/maths/yMin.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/zMax.cfg b/etc/apps/FoamX/entries/scalar0Inf/zMax.cfg deleted file mode 100644 index 07dc5d22d0..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/zMax.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -zMax -{ - type scalar0Inf; - description "zMax"; - iconURL "/FoamX/icons/small/maths/zMax.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/scalar0Inf/zMin.cfg b/etc/apps/FoamX/entries/scalar0Inf/zMin.cfg deleted file mode 100644 index 2c3bd38c56..0000000000 --- a/etc/apps/FoamX/entries/scalar0Inf/zMin.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -zMin -{ - type scalar0Inf; - description "zMin"; - iconURL "/FoamX/icons/small/maths/zMin.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/snGradSchemes/bounded.cfg b/etc/apps/FoamX/entries/snGradSchemes/bounded.cfg deleted file mode 100644 index 979f06e446..0000000000 --- a/etc/apps/FoamX/entries/snGradSchemes/bounded.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -bounded -{ - type compound; - description "Bounded interpolation for scalar fields"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/snGradSchemes/corrected.cfg b/etc/apps/FoamX/entries/snGradSchemes/corrected.cfg deleted file mode 100644 index b5c363defc..0000000000 --- a/etc/apps/FoamX/entries/snGradSchemes/corrected.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -corrected -{ - type compound; - description "Surface normal gradient interpolation with non-orthogonal correction"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/snGradSchemes/fourth.cfg b/etc/apps/FoamX/entries/snGradSchemes/fourth.cfg deleted file mode 100644 index cd11c7ae03..0000000000 --- a/etc/apps/FoamX/entries/snGradSchemes/fourth.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -fourth -{ - type compound; - description "Fourth order surface normal gradient interpolation"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/snGradSchemes/limited.cfg b/etc/apps/FoamX/entries/snGradSchemes/limited.cfg deleted file mode 100644 index 01ce5b1983..0000000000 --- a/etc/apps/FoamX/entries/snGradSchemes/limited.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -limited -{ - type compound; - description "Surface normal gradient interpolation, limited between uncorrected (=0) and corrected (=1)"; - entries - { - value - { - type scalar01; - default 0.5; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/snGradSchemes/uncorrected.cfg b/etc/apps/FoamX/entries/snGradSchemes/uncorrected.cfg deleted file mode 100644 index 3050f37b01..0000000000 --- a/etc/apps/FoamX/entries/snGradSchemes/uncorrected.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -uncorrected -{ - type compound; - description "Surface normal gradient interpolation with no non-orthogonal correction"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/BDCG.cfg b/etc/apps/FoamX/entries/solvers/BDCG.cfg deleted file mode 100644 index cf92f8541c..0000000000 --- a/etc/apps/FoamX/entries/solvers/BDCG.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -BDCG -{ - description "Biconjugate gradient solver with diagonal preconditioning"; - type compound; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/BICCG.cfg b/etc/apps/FoamX/entries/solvers/BICCG.cfg deleted file mode 100644 index b75baa422b..0000000000 --- a/etc/apps/FoamX/entries/solvers/BICCG.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -BICCG -{ - description "Biconjugate gradient solver with incomplete-Cholesky preconditioning"; - type compound; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/DCG.cfg b/etc/apps/FoamX/entries/solvers/DCG.cfg deleted file mode 100644 index 3dba1763c9..0000000000 --- a/etc/apps/FoamX/entries/solvers/DCG.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DCG -{ - description "Conjugate gradient solver with diagonal preconditioning"; - type compound; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/DIC.cfg b/etc/apps/FoamX/entries/solvers/DIC.cfg deleted file mode 100644 index 2709250285..0000000000 --- a/etc/apps/FoamX/entries/solvers/DIC.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DIC -{ - type compound; - description "DIC preconditioner"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/DILU.cfg b/etc/apps/FoamX/entries/solvers/DILU.cfg deleted file mode 100644 index 0c148823cf..0000000000 --- a/etc/apps/FoamX/entries/solvers/DILU.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -DILU -{ - type compound; - description "DILU preconditioner"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/FDIC.cfg b/etc/apps/FoamX/entries/solvers/FDIC.cfg deleted file mode 100644 index ac903c3a21..0000000000 --- a/etc/apps/FoamX/entries/solvers/FDIC.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -FDIC -{ - type compound; - description "FDIC preconditioner"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/GAMG.cfg b/etc/apps/FoamX/entries/solvers/GAMG.cfg deleted file mode 100644 index fad408a553..0000000000 --- a/etc/apps/FoamX/entries/solvers/GAMG.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GAMG -{ - type dictionary; - description "GAMG solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "smoother.cfg"; - include "nCellsInCoarsestLevel.cfg"; - include "mergeLevels.cfg"; - include "agglomerator.cfg"; - include "cacheAgglomeration.cfg"; - include "nPreSweeps.cfg"; - include "nPostSweeps.cfg"; - include "nFinestSweeps.cfg"; - include "scaleCorrection.cfg"; - include "directSolveCoarsest.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/GAMGsymm.cfg b/etc/apps/FoamX/entries/solvers/GAMGsymm.cfg deleted file mode 100644 index 531513c713..0000000000 --- a/etc/apps/FoamX/entries/solvers/GAMGsymm.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GAMG -{ - type dictionary; - description "GAMG solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "smootherSymm.cfg"; - include "nCellsInCoarsestLevel.cfg"; - include "mergeLevels.cfg"; - include "agglomeratorSymm.cfg"; - include "cacheAgglomeration.cfg"; - include "nPreSweeps.cfg"; - include "nPostSweeps.cfg"; - include "nFinestSweeps.cfg"; - include "scaleCorrection.cfg"; - include "directSolveCoarsest.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/GaussSeidel.cfg b/etc/apps/FoamX/entries/solvers/GaussSeidel.cfg deleted file mode 100644 index c08b06ad30..0000000000 --- a/etc/apps/FoamX/entries/solvers/GaussSeidel.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -GaussSeidel -{ - description "Gauss-Seidel solver"; - type compound; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "nSweeps.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/ICCG.cfg b/etc/apps/FoamX/entries/solvers/ICCG.cfg deleted file mode 100644 index 99c2f13155..0000000000 --- a/etc/apps/FoamX/entries/solvers/ICCG.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -ICCG -{ - description "Conjugate gradient solver with incomplete-Cholesky preconditioning"; - type compound; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/PBiCG.cfg b/etc/apps/FoamX/entries/solvers/PBiCG.cfg deleted file mode 100644 index 284e05df64..0000000000 --- a/etc/apps/FoamX/entries/solvers/PBiCG.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -PBiCG -{ - type dictionary; - description "PBiCG solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "preconditioner.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/PCG.cfg b/etc/apps/FoamX/entries/solvers/PCG.cfg deleted file mode 100644 index 426fe6de05..0000000000 --- a/etc/apps/FoamX/entries/solvers/PCG.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -PCG -{ - type dictionary; - description "PCG solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "preconditionerSymm.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/agglomerator.cfg b/etc/apps/FoamX/entries/solvers/agglomerator.cfg deleted file mode 100644 index 467a339857..0000000000 --- a/etc/apps/FoamX/entries/solvers/agglomerator.cfg +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -agglomerator -{ - type word; - description "Type of agglomeration"; - default faceAreaPair; - valueList - ( - faceAreaPair - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/agglomeratorSymm.cfg b/etc/apps/FoamX/entries/solvers/agglomeratorSymm.cfg deleted file mode 100644 index ef4345b07d..0000000000 --- a/etc/apps/FoamX/entries/solvers/agglomeratorSymm.cfg +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -agglomerator -{ - type word; - description "Type of agglomeration"; - default faceAreaPair; - valueList - ( - faceAreaPair - algebraicPair - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/cacheAgglomeration.cfg b/etc/apps/FoamX/entries/solvers/cacheAgglomeration.cfg deleted file mode 100644 index a5354b0736..0000000000 --- a/etc/apps/FoamX/entries/solvers/cacheAgglomeration.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -cacheAgglomeration -{ - type SwitchOnOff; - description "Cache the agglomeration?"; - default off; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/diagonal.cfg b/etc/apps/FoamX/entries/solvers/diagonal.cfg deleted file mode 100644 index 1312681f10..0000000000 --- a/etc/apps/FoamX/entries/solvers/diagonal.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -diagonal -{ - type compound; - description "Diagonal preconditioner"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/directSolveCoarsest.cfg b/etc/apps/FoamX/entries/solvers/directSolveCoarsest.cfg deleted file mode 100644 index 2467e66c3a..0000000000 --- a/etc/apps/FoamX/entries/solvers/directSolveCoarsest.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -directSolveCoarsest -{ - type Switch; - description "Direct-solve the coarsest matrix?"; - default no; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/mergeLevels.cfg b/etc/apps/FoamX/entries/solvers/mergeLevels.cfg deleted file mode 100644 index c5577da647..0000000000 --- a/etc/apps/FoamX/entries/solvers/mergeLevels.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -mergeLevels -{ - type label; - description "Make coarsening more rapid by merging groups of levels"; - default 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nCells.cfg b/etc/apps/FoamX/entries/solvers/nCells.cfg deleted file mode 100644 index 61cb0bc0e2..0000000000 --- a/etc/apps/FoamX/entries/solvers/nCells.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nCells -{ - type label; - description "Number of cells at the lowest miltigrid level"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nCellsInCoarsestLevel.cfg b/etc/apps/FoamX/entries/solvers/nCellsInCoarsestLevel.cfg deleted file mode 100644 index 2835dbe013..0000000000 --- a/etc/apps/FoamX/entries/solvers/nCellsInCoarsestLevel.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nCellsInCoarsestLevel -{ - type label; - description "Number of cells at the coarsest level"; - default 20; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nFinestSweeps.cfg b/etc/apps/FoamX/entries/solvers/nFinestSweeps.cfg deleted file mode 100644 index 28711b110a..0000000000 --- a/etc/apps/FoamX/entries/solvers/nFinestSweeps.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nFinestSweeps -{ - type label; - description "Number of sweeps at finest level"; - default 2; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nPostSweeps.cfg b/etc/apps/FoamX/entries/solvers/nPostSweeps.cfg deleted file mode 100644 index dde5bf57bf..0000000000 --- a/etc/apps/FoamX/entries/solvers/nPostSweeps.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nPostSweeps -{ - type label; - description "Number of post-sweeps"; - default 2; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nPreSweeps.cfg b/etc/apps/FoamX/entries/solvers/nPreSweeps.cfg deleted file mode 100644 index 9e0b54e125..0000000000 --- a/etc/apps/FoamX/entries/solvers/nPreSweeps.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nPreSweeps -{ - type label; - description "Number of pre-sweeps"; - default 0; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/nSweeps.cfg b/etc/apps/FoamX/entries/solvers/nSweeps.cfg deleted file mode 100644 index bbaa5b7bee..0000000000 --- a/etc/apps/FoamX/entries/solvers/nSweeps.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -nSweeps -{ - type label; - description "Number of sweeps before residual is recalculated"; - default 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/none.cfg b/etc/apps/FoamX/entries/solvers/none.cfg deleted file mode 100644 index ead44c678e..0000000000 --- a/etc/apps/FoamX/entries/solvers/none.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -none -{ - type compound; - description "No preconditioner"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/preconditioner.cfg b/etc/apps/FoamX/entries/solvers/preconditioner.cfg deleted file mode 100644 index f604d5228b..0000000000 --- a/etc/apps/FoamX/entries/solvers/preconditioner.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preconditioner -{ - type selection; - description "Type of preconditioner"; - entries - { - include "DILU.cfg"; - include "diagonal.cfg"; - include "none.cfg"; - include "GAMG.cfg"; - }; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/preconditionerSymm.cfg b/etc/apps/FoamX/entries/solvers/preconditionerSymm.cfg deleted file mode 100644 index 87af3b6e1e..0000000000 --- a/etc/apps/FoamX/entries/solvers/preconditionerSymm.cfg +++ /dev/null @@ -1,23 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -preconditioner -{ - type selection; - description "Type of preconditioner"; - entries - { - include "DIC.cfg"; - include "diagonal.cfg"; - include "FDIC.cfg"; - include "none.cfg"; - include "GAMGsymm.cfg"; - }; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/relTol.cfg b/etc/apps/FoamX/entries/solvers/relTol.cfg deleted file mode 100644 index f88b9cd6df..0000000000 --- a/etc/apps/FoamX/entries/solvers/relTol.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -relTol -{ - type scalar01; - description "Stops solving when final residual < relTol*initial residual"; - default 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/scaleCorrection.cfg b/etc/apps/FoamX/entries/solvers/scaleCorrection.cfg deleted file mode 100644 index d7b6ef6e6d..0000000000 --- a/etc/apps/FoamX/entries/solvers/scaleCorrection.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scaleCorrection -{ - type Switch; - description "Scale the corrections?"; - default yes; - optional 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/smoothSolver.cfg b/etc/apps/FoamX/entries/solvers/smoothSolver.cfg deleted file mode 100644 index 25d69ac253..0000000000 --- a/etc/apps/FoamX/entries/solvers/smoothSolver.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -smoothSolver -{ - type dictionary; - description "Smooth solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "smoother.cfg"; - include "nSweeps.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/smoothSolverSymm.cfg b/etc/apps/FoamX/entries/solvers/smoothSolverSymm.cfg deleted file mode 100644 index 0ead0e7ecb..0000000000 --- a/etc/apps/FoamX/entries/solvers/smoothSolverSymm.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -smoothSolver -{ - type dictionary; - description "Smooth solver"; - entries - { - include "tolerance.cfg"; - include "relTol.cfg"; - include "smootherSymm.cfg"; - include "nSweeps.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/smoother.cfg b/etc/apps/FoamX/entries/solvers/smoother.cfg deleted file mode 100644 index 60e3ddd3c7..0000000000 --- a/etc/apps/FoamX/entries/solvers/smoother.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -smoother -{ - type word; - description "Type of smoother"; - default GaussSeidel; - valueList - ( - GaussSeidel - DILU - DILUGaussSeidel - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/smootherSymm.cfg b/etc/apps/FoamX/entries/solvers/smootherSymm.cfg deleted file mode 100644 index 0f1d519036..0000000000 --- a/etc/apps/FoamX/entries/solvers/smootherSymm.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -smoother -{ - type word; - description "Type of smoother"; - default GaussSeidel; - valueList - ( - GaussSeidel - DIC - DICGaussSeidel - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/solvers/tolerance.cfg b/etc/apps/FoamX/entries/solvers/tolerance.cfg deleted file mode 100644 index 959140e505..0000000000 --- a/etc/apps/FoamX/entries/solvers/tolerance.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -tolerance -{ - type scalar01; - description "Stops solving when initial residual < tolerance"; - default 1e-06; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/LRRCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/LRRCoeffs.cfg deleted file mode 100644 index 11979dc3cb..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/LRRCoeffs.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LRRCoeffs -{ - type dictionary; - description "Launder-Reece-Rodi RSTM with wall functions model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clrr1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clrr2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ceps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphah.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaR.cfg"; - } - - include "defaults/LRRCoeffs.def"; -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderGibsonRSTMCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderGibsonRSTMCoeffs.cfg deleted file mode 100644 index 840c13ceea..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderGibsonRSTMCoeffs.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LaunderGibsonRSTMCoeffs -{ - type dictionary; - description "Launder-Gibson RSTM with wall reflection and wall functions model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clg1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clg2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1Ref.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2Ref.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ceps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphah.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaR.cfg"; - } - - include "defaults/LaunderGibsonRSTMCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderSharmaKECoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderSharmaKECoeffs.cfg deleted file mode 100644 index f91dffe0f1..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/LaunderSharmaKECoeffs.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LaunderSharmaKECoeffs -{ - type dictionary; - description "Launder-Sharma low Reynolds number k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphah.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/LaunderSharmaKECoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/RNGkEpsilonCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/RNGkEpsilonCoeffs.cfg deleted file mode 100644 index 99f4006586..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/RNGkEpsilonCoeffs.cfg +++ /dev/null @@ -1,31 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -RNGkEpsilonCoeffs -{ - type dictionary; - description "RNG k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphah.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/eta0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/beta.cfg"; - } - - include "defaults/RNGkEpsilonCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LRRCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LRRCoeffs.def deleted file mode 100644 index a676c0f263..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LRRCoeffs.def +++ /dev/null @@ -1,14 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - Clrr1 Clrr1 [ 0 0 0 0 0 0 0 ] 1.8 ; - Clrr2 Clrr2 [ 0 0 0 0 0 0 0 ] 0.6 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - Cs Cs [ 0 0 0 0 0 0 0 ] 0.25 ; - Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - alphaR alphaR [ 0 0 0 0 0 0 0 ] 1.22 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LamBremhorstKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LamBremhorstKECoeffs.def deleted file mode 100644 index 1bfcea2dea..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LamBremhorstKECoeffs.def +++ /dev/null @@ -1,10 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderGibsonRSTMCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderGibsonRSTMCoeffs.def deleted file mode 100644 index 5151d78b73..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderGibsonRSTMCoeffs.def +++ /dev/null @@ -1,16 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - Clg1 Clg1 [ 0 0 0 0 0 0 0 ] 1.8 ; - Clg2 Clg2 [ 0 0 0 0 0 0 0 ] 0.6 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - C1Ref C1Ref [ 0 0 0 0 0 0 0 ] 0.5 ; - C2Ref C2Ref [ 0 0 0 0 0 0 0 ] 0.3 ; - Cs Cs [ 0 0 0 0 0 0 0 ] 0.25 ; - Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - alphaR alphaR [ 0 0 0 0 0 0 0 ] 1.22 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderSharmaKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderSharmaKECoeffs.def deleted file mode 100644 index c1574e7cbe..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LaunderSharmaKECoeffs.def +++ /dev/null @@ -1,10 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKECoeffs.def deleted file mode 100644 index c42ff6445b..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKECoeffs.def +++ /dev/null @@ -1,15 +0,0 @@ -default -{ - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKELowReCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKELowReCoeffs.def deleted file mode 100644 index d45dc3a612..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienCubicKELowReCoeffs.def +++ /dev/null @@ -1,20 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; - Kappa Kappa [ 0 0 0 0 0 0 0 ] 0.4187 ; - Am Am [ 0 0 0 0 0 0 0 ] 0.016 ; - Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263 ; - Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienLeschzinerLowReCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienLeschzinerLowReCoeffs.def deleted file mode 100644 index 0176831861..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/LienLeschzinerLowReCoeffs.def +++ /dev/null @@ -1,14 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - Kappa Kappa [ 0 0 0 0 0 0 0 ] 0.4187 ; - Am Am [ 0 0 0 0 0 0 0 ] 0.016 ; - Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263 ; - Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/NonlinearKEShihCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/NonlinearKEShihCoeffs.def deleted file mode 100644 index 950559ac95..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/NonlinearKEShihCoeffs.def +++ /dev/null @@ -1,16 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76932 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/QZetaCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/QZetaCoeffs.def deleted file mode 100644 index bbf8e32ec6..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/QZetaCoeffs.def +++ /dev/null @@ -1,12 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - anisotropic no; -}; - diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/RNGkEpsilonCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/RNGkEpsilonCoeffs.def deleted file mode 100644 index 5ae1c433fe..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/RNGkEpsilonCoeffs.def +++ /dev/null @@ -1,12 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.0845 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.42 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.68 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphaK [ 0 0 0 0 0 0 0 ] 1.39 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 1.39 ; - eta0 eta0 [ 0 0 0 0 0 0 0 ] 4.38 ; - beta beta [ 0 0 0 0 0 0 0 ] 0.012 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/kEpsilonCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/kEpsilonCoeffs.def deleted file mode 100644 index 8c63942d17..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/kEpsilonCoeffs.def +++ /dev/null @@ -1,12 +0,0 @@ -default -{ - - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] -0.33 ; - alphah alphah [ 0 0 0 0 0 0 0 ] 1 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/wallFunctionCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/wallFunctionCoeffs.def deleted file mode 100644 index b4dad1b0de..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/defaults/wallFunctionCoeffs.def +++ /dev/null @@ -1,5 +0,0 @@ -default -{ - kappa kappa [ 0 0 0 0 0 0 0 ] 0.4187 ; - E E [ 0 0 0 0 0 0 0 ] 9 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/kEpsilonCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/kEpsilonCoeffs.cfg deleted file mode 100644 index 1caa273fe1..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/kEpsilonCoeffs.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kEpsilonCoeffs -{ - type dictionary; - description "Standard k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphah.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/kEpsilonCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/turbulenceModel.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/turbulenceModel.cfg deleted file mode 100644 index 0b8cfa324e..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/turbulenceModel.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceModel -{ - type model; - description "Turbulence model selection"; - default kEpsilon; - valueList - ( - laminar - kEpsilon - RNGkEpsilon - LaunderSharmaKE - LRR - LaunderGibsonRSTM - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/compressible/wallFunctionCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/compressible/wallFunctionCoeffs.cfg deleted file mode 100644 index 3359419075..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/compressible/wallFunctionCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallFunctionCoeffs -{ - type dictionary; - description "Wall function coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/kappa.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/E.cfg"; - } - - include "defaults/wallFunctionCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LRRCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LRRCoeffs.cfg deleted file mode 100644 index 46da8fe096..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LRRCoeffs.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LRRCoeffs -{ - type dictionary; - description "Launder-Reece-Rodi RSTM with wall functions model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clrr1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clrr2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ceps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/LRRCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LamBremhorstKECoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LamBremhorstKECoeffs.cfg deleted file mode 100644 index a75e99d9d1..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LamBremhorstKECoeffs.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LamBremhorstKECoeffs -{ - type dictionary; - description "Lam-Bremhorst low Reynolds number k-Epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/LamBremhorstKECoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderGibsonRSTMCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderGibsonRSTMCoeffs.cfg deleted file mode 100644 index 7fbe01a581..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderGibsonRSTMCoeffs.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LaunderGibsonRSTMCoeffs -{ - type dictionary; - description "Launder-Gibson RSTM with wall reflection and wall functions model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clg1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Clg2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1Ref.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2Ref.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cs.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ceps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaR.cfg"; - } - - include "defaults/LaunderGibsonRSTMCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderSharmaKECoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderSharmaKECoeffs.cfg deleted file mode 100644 index ef43cf0291..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LaunderSharmaKECoeffs.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LaunderSharmaKECoeffs -{ - type dictionary; - description "Launder-Sharma low Reynolds number k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/LaunderSharmaKECoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKECoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKECoeffs.cfg deleted file mode 100644 index 01374fc7c2..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKECoeffs.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LienCubicKECoeffs -{ - type dictionary; - description "Lien non-Linear cubic k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaKsi.cfg"; - } - - include "defaults/LienCubicKECoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKELowReCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKELowReCoeffs.cfg deleted file mode 100644 index b5096ed880..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienCubicKELowReCoeffs.cfg +++ /dev/null @@ -1,36 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LienCubicKELowReCoeffs -{ - type dictionary; - description "Lien-Leschziner low Reynolds number cubic k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaKsi.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Am.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Aepsilon.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Amu.cfg"; - } - - include "defaults/LienCubicKELowReCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienLeschzinerLowReCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienLeschzinerLowReCoeffs.cfg deleted file mode 100644 index 490b971d2b..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/LienLeschzinerLowReCoeffs.cfg +++ /dev/null @@ -1,30 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -LienLeschzinerLowReCoeffs -{ - type dictionary; - description "Lien-Leschziner low Reynolds number cubic k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Am.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Aepsilon.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Amu.cfg"; - } - - include "defaults/LienLeschzinerLowReCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/NonlinearKEShihCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/NonlinearKEShihCoeffs.cfg deleted file mode 100644 index b3f3674379..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/NonlinearKEShihCoeffs.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -NonlinearKEShihCoeffs -{ - type dictionary; - description "Shih non-Linear k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/A2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Ctau3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaKsi.cfg"; - } - - include "defaults/NonlinearKEShihCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/QZetaCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/QZetaCoeffs.cfg deleted file mode 100644 index 8bdd3cdf41..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/QZetaCoeffs.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -QZetaCoeffs -{ - type dictionary; - description "Gibson's q-zeta low Reynolds number k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaZeta.cfg"; - include "$FOAMX_CONFIG/entries/Switch/anisotropic.cfg"; - } - - include "defaults/QZetaCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/RNGkEpsilonCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/RNGkEpsilonCoeffs.cfg deleted file mode 100644 index 3d0edae370..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/RNGkEpsilonCoeffs.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -RNGkEpsilonCoeffs -{ - type dictionary; - description "RNG k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/eta0.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/beta.cfg"; - } - - include "defaults/RNGkEpsilonCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/SpalartAllmarasCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/SpalartAllmarasCoeffs.cfg deleted file mode 100644 index b294cbe27d..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/SpalartAllmarasCoeffs.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -SpalartAllmarasCoeffs -{ - type dictionary; - description "Standard Spalart-Allmaras model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaNut.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cb1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cb2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cw2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cw3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cv1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cv2.cfg"; - } - - include "defaults/SpalartAllmarasCoeffs.def"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LRRCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LRRCoeffs.def deleted file mode 100644 index 63680f988b..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LRRCoeffs.def +++ /dev/null @@ -1,11 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - Clrr1 Clrr1 [ 0 0 0 0 0 0 0 ] 1.8 ; - Clrr2 Clrr2 [ 0 0 0 0 0 0 0 ] 0.6 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - Cs Cs [ 0 0 0 0 0 0 0 ] 0.25 ; - Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LamBremhorstKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LamBremhorstKECoeffs.def deleted file mode 100644 index df6b9a0a90..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LamBremhorstKECoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderGibsonRSTMCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderGibsonRSTMCoeffs.def deleted file mode 100644 index 163944e444..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderGibsonRSTMCoeffs.def +++ /dev/null @@ -1,14 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - Clg1 Clg1 [ 0 0 0 0 0 0 0 ] 1.8 ; - Clg2 Clg2 [ 0 0 0 0 0 0 0 ] 0.6 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C1Ref C1Ref [ 0 0 0 0 0 0 0 ] 0.5 ; - C2Ref C2Ref [ 0 0 0 0 0 0 0 ] 0.3 ; - Cs Cs [ 0 0 0 0 0 0 0 ] 0.25 ; - Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - alphaR alphaR [ 0 0 0 0 0 0 0 ] 1.22 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderSharmaKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderSharmaKECoeffs.def deleted file mode 100644 index df6b9a0a90..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LaunderSharmaKECoeffs.def +++ /dev/null @@ -1,7 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKECoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKECoeffs.def deleted file mode 100644 index 1d3c3b14d2..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKECoeffs.def +++ /dev/null @@ -1,13 +0,0 @@ -default -{ - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKELowReCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKELowReCoeffs.def deleted file mode 100644 index 966b94f04d..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienCubicKELowReCoeffs.def +++ /dev/null @@ -1,17 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; - Am Am [ 0 0 0 0 0 0 0 ] 0.016 ; - Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263 ; - Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienLeschzinerLowReCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienLeschzinerLowReCoeffs.def deleted file mode 100644 index be108d10ca..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/LienLeschzinerLowReCoeffs.def +++ /dev/null @@ -1,11 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - Am Am [ 0 0 0 0 0 0 0 ] 0.016 ; - Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263 ; - Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/NonlinearKEShihCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/NonlinearKEShihCoeffs.def deleted file mode 100644 index ad0ad99f30..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/NonlinearKEShihCoeffs.def +++ /dev/null @@ -1,14 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76932 ; - A1 A1 [ 0 0 0 0 0 0 0 ] 1.25 ; - A2 A2 [ 0 0 0 0 0 0 0 ] 1000 ; - Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4 ; - Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13 ; - Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2 ; - alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/QZetaCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/QZetaCoeffs.def deleted file mode 100644 index bb8da12160..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/QZetaCoeffs.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphaZeta alphaZeta [ 0 0 0 0 0 0 0 ] 0.76923 ; - anisotropic no; -}; - diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/RNGkEpsilonCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/RNGkEpsilonCoeffs.def deleted file mode 100644 index 427c547013..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/RNGkEpsilonCoeffs.def +++ /dev/null @@ -1,10 +0,0 @@ -default -{ - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.0845 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.42 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.68 ; - alphak alphaK [ 0 0 0 0 0 0 0 ] 1.39 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 1.39 ; - eta0 eta0 [ 0 0 0 0 0 0 0 ] 4.38 ; - beta beta [ 0 0 0 0 0 0 0 ] 0.012 ; -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/SpalartAllmarasCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/SpalartAllmarasCoeffs.def deleted file mode 100644 index 79b469d8a8..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/SpalartAllmarasCoeffs.def +++ /dev/null @@ -1,10 +0,0 @@ -default -{ - alphaNut alphaNut [0 0 0 0 0 0 0] 1.5; - Cb1 Cb1 [0 0 0 0 0 0 0] 0.1355; - Cb2 Cb2 [0 0 0 0 0 0 0] 0.622; - Cw2 Cw2 [0 0 0 0 0 0 0] 0.3; - Cw3 Cw3 [0 0 0 0 0 0 0] 2.0; - Cv1 Cv1 [0 0 0 0 0 0 0] 7.1; - Cv2 Cv2 [0 0 0 0 0 0 0] 5.0; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffs.def deleted file mode 100644 index 3ceac6dab7..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffs.def +++ /dev/null @@ -1,9 +0,0 @@ -default -{ - - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithAlphak.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithAlphak.def deleted file mode 100644 index 23eaa33f8b..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithAlphak.def +++ /dev/null @@ -1,10 +0,0 @@ -default -{ - - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - alphak alphak [ 0 0 0 0 0 0 0 ] 1.0 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithC3.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithC3.def deleted file mode 100644 index 92f05ecd83..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kEpsilonCoeffsWithC3.def +++ /dev/null @@ -1,11 +0,0 @@ -default -{ - - Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09 ; - C1 C1 [ 0 0 0 0 0 0 0 ] 1.44 ; - C2 C2 [ 0 0 0 0 0 0 0 ] 1.92 ; - C3 C3 [ 0 0 0 0 0 0 0 ] 0.85; - alphak alphak [ 0 0 0 0 0 0 0 ] 1 ; - alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923 ; - -}; \ No newline at end of file diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kOmegaSSTCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kOmegaSSTCoeffs.def deleted file mode 100644 index e03b9ed434..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/kOmegaSSTCoeffs.def +++ /dev/null @@ -1,15 +0,0 @@ -default -{ - alphaK1 alphaK1 [0 0 0 0 0 0 0] 0.85034; - alphaK2 alphaK1 [0 0 0 0 0 0 0] 1.0; - alphaOmega1 alphaOmega1 [0 0 0 0 0 0 0] 0.5; - alphaOmega2 alphaOmega2 [0 0 0 0 0 0 0] 0.85616; - gamma1 gamma1 [0 0 0 0 0 0 0] 0.5532; - gamma2 gamma2 [0 0 0 0 0 0 0] 0.4403; - beta1 beta1 [0 0 0 0 0 0 0] 0.0750; - beta2 beta2 [0 0 0 0 0 0 0] 0.0828; - betaStar betaStar [0 0 0 0 0 0 0] 0.09; - a1 a1 [0 0 0 0 0 0 0] 0.31; - c1 c1 [0 0 0 0 0 0 0] 10; - Cmu Cmu [0 0 0 0 0 0 0] 0.09; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/wallFunctionCoeffs.def b/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/wallFunctionCoeffs.def deleted file mode 100644 index b4dad1b0de..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/defaults/wallFunctionCoeffs.def +++ /dev/null @@ -1,5 +0,0 @@ -default -{ - kappa kappa [ 0 0 0 0 0 0 0 ] 0.4187 ; - E E [ 0 0 0 0 0 0 0 ] 9 ; -}; diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffs.cfg deleted file mode 100644 index c0c6994dd7..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffs.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kEpsilonCoeffs -{ - type dictionary; - description "Standard k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/kEpsilonCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithAlphak.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithAlphak.cfg deleted file mode 100644 index 8eac38bebc..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithAlphak.cfg +++ /dev/null @@ -1,27 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kEpsilonCoeffs -{ - type dictionary; - description "Standard k-epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/kEpsilonCoeffsWithAlphak.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithC3.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithC3.cfg deleted file mode 100644 index f9b43b33d2..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kEpsilonCoeffsWithC3.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kEpsilonCoeffs -{ - type dictionary; - description "Standard k-Epsilon model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/C3.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphak.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaEps.cfg"; - } - - include "defaults/kEpsilonCoeffsWithC3.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kOmegaSSTCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/kOmegaSSTCoeffs.cfg deleted file mode 100644 index 82c81a2b93..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/kOmegaSSTCoeffs.cfg +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -kOmegaSSTCoeffs -{ - type dictionary; - description "k-omega SST model coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaK1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaK2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaOmega1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/alphaOmega2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/gamma1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/gamma2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/beta1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/beta2.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/betaStar.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/a1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/c1.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/Cmu.cfg"; - } - - include "defaults/kOmegaSSTCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/turbulenceModel.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/turbulenceModel.cfg deleted file mode 100644 index d885ee6a6a..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/turbulenceModel.cfg +++ /dev/null @@ -1,33 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -turbulenceModel -{ - type model; - description "Turbulence model selection"; - default kEpsilon; - valueList - ( - laminar - kEpsilon - RNGkEpsilon - NonlinearKEShih - LienCubicKE - QZeta - LaunderSharmaKE - LamBremhorstKE - LienCubicKELowRe - LienLeschzinerLowRe - LRR - LaunderGibsonRSTM - SpalartAllmaras - kOmegaSST - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg b/etc/apps/FoamX/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg deleted file mode 100644 index 3359419075..0000000000 --- a/etc/apps/FoamX/entries/turbulenceModels/incompressible/wallFunctionCoeffs.cfg +++ /dev/null @@ -1,24 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -wallFunctionCoeffs -{ - type dictionary; - description "Wall function coefficients"; - entries - { - include "$FOAMX_CONFIG/entries/dimensionedScalar/kappa.cfg"; - include "$FOAMX_CONFIG/entries/dimensionedScalar/E.cfg"; - } - - include "defaults/wallFunctionCoeffs.def"; -} - - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/basePoint.cfg b/etc/apps/FoamX/entries/vector/basePoint.cfg deleted file mode 100644 index f2cc5164c5..0000000000 --- a/etc/apps/FoamX/entries/vector/basePoint.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -basePoint -{ - type vector; - description "basePoint"; - iconURL "/FoamX/icons/small/maths/basePoint.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/createVector b/etc/apps/FoamX/entries/vector/createVector deleted file mode 100644 index 5f076f8819..0000000000 --- a/etc/apps/FoamX/entries/vector/createVector +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/csh - -if ( $#argv != 1 ) then - echo "Usage: createVector " - exit 1 -endif - -set file = $1.cfg -if ( -e $file ) then - echo "Removing existing file $file" - rm $file -endif - -echo "Creating file $file" -touch $file -echo $1 >> $file -echo '{' >> $file -echo ' type vector;' >> $file -echo ' description "'$1'";' >> $file -echo ' iconURL "/FoamX/icons/small/maths/'$1'.gif";' >> $file -echo '}' >> $file - diff --git a/etc/apps/FoamX/entries/vector/direction.cfg b/etc/apps/FoamX/entries/vector/direction.cfg deleted file mode 100644 index 12f592f552..0000000000 --- a/etc/apps/FoamX/entries/vector/direction.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -direction -{ - type vector; - description "Direction in global coordinate system"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/location.cfg b/etc/apps/FoamX/entries/vector/location.cfg deleted file mode 100644 index 4ded1600d2..0000000000 --- a/etc/apps/FoamX/entries/vector/location.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -location -{ - type vector; - description "Position in global coordinate system"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/max.cfg b/etc/apps/FoamX/entries/vector/max.cfg deleted file mode 100644 index 3a02364698..0000000000 --- a/etc/apps/FoamX/entries/vector/max.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -max -{ - type vector; - description "max"; - iconURL "/FoamX/icons/small/maths/max.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/min.cfg b/etc/apps/FoamX/entries/vector/min.cfg deleted file mode 100644 index d36ff54dda..0000000000 --- a/etc/apps/FoamX/entries/vector/min.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -min -{ - type vector; - description "min"; - iconURL "/FoamX/icons/small/maths/min.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/motionPlaneNormal.cfg b/etc/apps/FoamX/entries/vector/motionPlaneNormal.cfg deleted file mode 100644 index 6fea2f96e9..0000000000 --- a/etc/apps/FoamX/entries/vector/motionPlaneNormal.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -motionPlaneNormal -{ - type vector; - description "motionPlaneNormal"; - iconURL "/FoamX/icons/small/maths/normal.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/normalVector.cfg b/etc/apps/FoamX/entries/vector/normalVector.cfg deleted file mode 100644 index 14c88633bb..0000000000 --- a/etc/apps/FoamX/entries/vector/normalVector.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -normalVector -{ - type vector; - description "normalVector"; - iconURL "/FoamX/icons/small/maths/normalVector.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/position.cfg b/etc/apps/FoamX/entries/vector/position.cfg deleted file mode 100644 index 51984a9f2f..0000000000 --- a/etc/apps/FoamX/entries/vector/position.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -position -{ - type vector; - description "Position in global coordinate system"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/tan1.cfg b/etc/apps/FoamX/entries/vector/tan1.cfg deleted file mode 100644 index 2cf403cc78..0000000000 --- a/etc/apps/FoamX/entries/vector/tan1.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -tan1 -{ - type vector; - description "tan1"; - iconURL "/FoamX/icons/small/maths/tan1.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/entries/vector/tan2.cfg b/etc/apps/FoamX/entries/vector/tan2.cfg deleted file mode 100644 index 891b29416c..0000000000 --- a/etc/apps/FoamX/entries/vector/tan2.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -tan2 -{ - type vector; - description "tan2"; - iconURL "/FoamX/icons/small/maths/tan2.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/Switch.cfg b/etc/apps/FoamX/types/Switch.cfg deleted file mode 100644 index 29c889712a..0000000000 --- a/etc/apps/FoamX/types/Switch.cfg +++ /dev/null @@ -1,32 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -Switch -{ - type word; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - valueList - ( - yes - no - ); -} - -SwitchOnOff -{ - type word; - iconURL "/FoamX/icons/small/maths/Switch.gif"; - valueList - ( - on - off - ); -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/angle0180.cfg b/etc/apps/FoamX/types/angle0180.cfg deleted file mode 100644 index ddcd1aaf06..0000000000 --- a/etc/apps/FoamX/types/angle0180.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -angle0180 -{ - type scalar; - minValue 0; - maxValue 180; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/boolean.cfg b/etc/apps/FoamX/types/boolean.cfg deleted file mode 100644 index c360b3ed18..0000000000 --- a/etc/apps/FoamX/types/boolean.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boolean -{ - description "Boolean"; - type boolean; - minValue 0; - maxValue 1; - valueList - ( - 0 - 1 - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/debugSwitch.cfg b/etc/apps/FoamX/types/debugSwitch.cfg deleted file mode 100644 index 3b17a08e6a..0000000000 --- a/etc/apps/FoamX/types/debugSwitch.cfg +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -debugSwitch -{ - description "debugSwitch"; - type label; - optional 1; - default 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/dimensionedScalar.cfg b/etc/apps/FoamX/types/dimensionedScalar.cfg deleted file mode 100644 index 04b4843b4e..0000000000 --- a/etc/apps/FoamX/types/dimensionedScalar.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dimensionedScalar -{ - type compound; - description "Dimensioned Scalar"; - entries - { - name - { - type word; - editable 0; - } - - dimensions - { - type dimensionSet; - editable 0; - - } - - value - { - type scalar; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/dimensionedVector.cfg b/etc/apps/FoamX/types/dimensionedVector.cfg deleted file mode 100644 index f71a66f822..0000000000 --- a/etc/apps/FoamX/types/dimensionedVector.cfg +++ /dev/null @@ -1,35 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -dimensionedVector -{ - type compound; - description "Dimensioned Vector"; - entries - { - name - { - type word; - editable 0; - } - - dimensions - { - type dimensionSet; - editable 0; - - } - - value - { - type vector; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/fields.cfg b/etc/apps/FoamX/types/fields.cfg deleted file mode 100644 index 13622e4d5e..0000000000 --- a/etc/apps/FoamX/types/fields.cfg +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scalarField -{ - displayName "scalarField"; - description "Scalar Field"; - type selection; - entries - { - uniform - { - type scalar; - description "Uniform field selected"; - } - - nonuniform - { - type list; - elementType scalar; - description "Non-uniform field selected"; - } - } -} - -vectorField -{ - displayName "vectorField"; - description "Vector Field"; - type selection; - entries - { - uniform - { - type vector; - description "Uniform field selected"; - } - - nonuniform - { - type list; - elementType vector; - description "Non-uniform field selected"; - } - } -} - -tensorField -{ - displayName "tensorField"; - description "Tensor Field"; - type selection; - entries - { - uniform - { - type tensor; - description "Uniform field selected"; - } - - nonuniform - { - type list; - elementType tensor; - description "Non-uniform field selected"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/functionObjects/probe.cfg b/etc/apps/FoamX/types/functionObjects/probe.cfg deleted file mode 100644 index df4dbe4581..0000000000 --- a/etc/apps/FoamX/types/functionObjects/probe.cfg +++ /dev/null @@ -1,56 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -probe -{ - type compound; - entries - { - name - { - type word; - description "Name of probe"; - } - - dict - { - type dictionary; - entries - { - type - { - type word; - default probes; - editable 0; - } - - functionObjectLibs - { - type list; - elementType string; - default ("libsampling.so"); - } - - probeLocations - { - type list; - elementType vector; - } - - fields - { - type list; - description "List of fields to be sampled"; - elementType word; - } - } - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/geometries.cfg b/etc/apps/FoamX/types/geometries.cfg deleted file mode 100644 index 20a4b272cb..0000000000 --- a/etc/apps/FoamX/types/geometries.cfg +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Geometry type definitions. - -vol -{ - displayName "vol"; - description "Finite volume cells"; -} - -surface -{ - displayName "surface"; - description "Finite volume faces"; -} - -point -{ - displayName "point"; - description "Vertices"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/model.cfg b/etc/apps/FoamX/types/model.cfg deleted file mode 100644 index 21c6298949..0000000000 --- a/etc/apps/FoamX/types/model.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -model -{ - type word; - description "Model"; - iconURL "/FoamX/icons/small/maths/Model.gif"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchField.cfg b/etc/apps/FoamX/types/patchField.cfg deleted file mode 100644 index d792a80d13..0000000000 --- a/etc/apps/FoamX/types/patchField.cfg +++ /dev/null @@ -1,26 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -patchField -{ - displayName "Patch Field"; - description "Patch Field"; - type dictionary; - entries - { - type - { - type word; - default patchField; - editable 0; - visible 0; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchFields.cfg b/etc/apps/FoamX/types/patchFields.cfg deleted file mode 100644 index 2cceb8d0a2..0000000000 --- a/etc/apps/FoamX/types/patchFields.cfg +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -include "patchFields/geometric.cfg"; -include "patchFields/basic.cfg"; -include "patchFields/cfd.cfg"; -include "patchFields/meshMotion.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchFields/basic.cfg b/etc/apps/FoamX/types/patchFields/basic.cfg deleted file mode 100644 index 0f88fc443b..0000000000 --- a/etc/apps/FoamX/types/patchFields/basic.cfg +++ /dev/null @@ -1,219 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - - -fixedValue -{ - displayName "fixedValue"; - description "Fixed Value"; - type patchField; - options - { - type - { - default fixedValue; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -fixedGradient -{ - displayName "fixedGradient"; - description "Fixed Gradient"; - type patchField; - options - { - type - { - default fixedGradient; - } - } - - entries - { - gradient - { - type field; - displayName "gradient"; - description "Field Gradient"; - } - } -} - -zeroGradient -{ - displayName "zeroGradient"; - description "Zero Gradient"; - type patchField; - options - { - type - { - default zeroGradient; - } - } -} - -calculated -{ - displayName "calculated"; - description "Calculated"; - type patchField; - options - { - type - { - default calculated; - } - } -} - -mixed -{ - displayName "mixed"; - description "Mixed"; - - type patchField; - options - { - type - { - default mixed; - } - } - - entries - { - refValue - { - type field; - displayName "refValue"; - description "Reference value field"; - } - refGradient - { - type field; - displayName "refGradient"; - description "Reference gradient field"; - } - valueFraction - { - type scalarField; - displayName "valueFraction"; - description "Value fraction"; - } - } -} - -directionMixed -{ - displayName "directionMixed"; - description "Direction Mixed"; - type patchField; - options - { - type - { - default directionMixed; - } - } - - entries - { - refValue - { - type field; - displayName "refValue"; - description "Reference value field"; - } - refGradient - { - type field; - displayName "refGradient"; - description "Reference gradient field"; - } - valueFraction - { - type scalarField; - displayName "valueFraction"; - description "Value fraction"; - } - } -} - -expDirectionMixed -{ - displayName "expDirectionMixed"; - description "Explicit Direction Mixed"; - type patchField; - options - { - type - { - default expDirectionMixed; - } - } - - entries - { - refValue - { - type field; - displayName "refValue"; - description "Reference value field"; - } - refGradient - { - type field; - displayName "refGradient"; - description "Reference gradient field"; - } - valueFraction - { - type scalarField; - displayName "valueFraction"; - description "Value fraction"; - } - } -} - -surfaceNormalFixedValue -{ - displayName "surfaceNormalFixedValue"; - description "Fixed Value"; - type patchField; - options - { - type - { - default surfaceNormalFixedValue; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchFields/cfd.cfg b/etc/apps/FoamX/types/patchFields/cfd.cfg deleted file mode 100644 index 53b3d66352..0000000000 --- a/etc/apps/FoamX/types/patchFields/cfd.cfg +++ /dev/null @@ -1,755 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -inletOutlet -{ - displayName "inletOutlet"; - description "Inlet, switching to outlet if flow is outwards"; - type patchField; - options - { - type - { - default inletOutlet; - } - } - - entries - { - inletValue - { - type field; - displayName "inletValue"; - description "Specified inlet value"; - } - - value - { - type field; - displayName "value"; - description "Actual value at inlet/outlet"; - optional 1; - } - } -} - -outletInlet -{ - displayName "outletInlet"; - description "Outlet, switching to inlet if the flow is inwards"; - type patchField; - options - { - type - { - default outletInlet; - } - } - - entries - { - outletValue - { - type field; - displayName "outletValue"; - description "Specified outlet value"; - } - - value - { - type field; - displayName "value"; - description "Actual value at outlet/inlet"; - optional 1; - } - - } -} - -fluxCorrectedVelocity -{ - displayName "fluxCorrectedVelocity"; - description "Flux Corrected Velocity"; - type patchField; - options - { - type - { - default fluxCorrectedVelocity; - } - } -} - -pressureInletVelocity -{ - displayName "pressureInletVelocity"; - description "Pressure Inlet Velocity"; - type patchField; - options - { - type - { - default pressureInletVelocity; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -pressureDirectedInletVelocity -{ - displayName "pressureDirectedInletVelocity"; - description "Pressure Directed Inlet Velocity"; - type patchField; - options - { - type - { - default pressureDirectedInletVelocity; - } - } - - entries - { - inletDirection - { - type vector; - displayName "inletDirection"; - description "Inlet Direction"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -pressureInletOutletVelocity -{ - displayName "pressureInletOutletVelocity"; - description "Pressure Inlet Outlet Velocity"; - type patchField; - options - { - type - { - default pressureInletOutletVelocity; - } - } - - entries - { - phi - { - type word; - displayName "phi"; - description "Flux field name"; - default phi; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -pressureDirectedInletOutletVelocity -{ - displayName "pressureDirectedInletOutletVelocity"; - description "Pressure Directed Inlet Outlet Velocity"; - type patchField; - options - { - type - { - default pressureDirectedInletOutletVelocity; - } - } - - entries - { - inletDirection - { - type vector; - displayName "inletDirection"; - description "Inlet Direction"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -waveTransmissive -{ - displayName "waveTransmissive"; - description "Wave Transmissive"; - type patchField; - options - { - type - { - default waveTransmissive; - } - } - - entries - { - field - { - type word; - displayName "field"; - description "Transmitted field"; - default p; - } - - phi - { - type word; - displayName "phi"; - description "Flux field name"; - default phi; - } - - rho - { - type word; - displayName "rho"; - description "Mass density field name"; - default rho; - } - - psi - { - type word; - displayName "psi"; - description "Compressibility field name"; - default psi; - } - - gamma - { - type scalar; - displayName "gamma"; - description "Ratio of specific heats"; - default 1.4; - } - - fieldInf - { - type scalar; - displayName "fieldInf"; - description "Field Infinity"; - } - - lInf - { - type scalar; - displayName "lInf"; - description "Geometry length scale"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -supersonicFreestream -{ - displayName "supersonicFreestream"; - description "Supersonic Freestream"; - type patchField; - options - { - type - { - default supersonicFreestream; - } - } - - entries - { - pInf - { - type scalar; - displayName "pInf"; - description "Pressure at infinity"; - } - TInf - { - type scalar; - displayName "TInf"; - description "Temperature at infinity"; - } - UInf - { - type vector; - displayName "UInf"; - description "Velocity at infinity"; - } - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -totalPressure -{ - displayName "totalPressure"; - description "Total Pressure"; - type patchField; - options - { - type - { - default totalPressure; - } - } - - entries - { - p0 - { - type field; - displayName "p0"; - description "Reference pressure"; - } - - U - { - type word; - default U; - editable 0; - } - - phi - { - type word; - default phi; - editable 0; - } - - rho - { - type word; - default none; - editable 0; - } - - psi - { - type word; - default none; - editable 0; - } - - gamma - { - type scalar; - default 1.0; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -totalPressureVariableDensity -{ - displayName "totalPressure"; - description "Total Pressure"; - type patchField; - options - { - type - { - default totalPressure; - } - } - - entries - { - p0 - { - type field; - displayName "p0"; - description "Reference pressure"; - } - - U - { - type word; - default U; - editable 0; - } - - phi - { - type word; - default phi; - editable 0; - } - - rho - { - type word; - default rho; - editable 0; - } - - psi - { - type word; - default none; - editable 0; - } - - gamma - { - type scalar; - default 1.0; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -totalPressureCompressible -{ - displayName "totalPressure"; - description "Total Pressure"; - type patchField; - options - { - type - { - default totalPressure; - } - } - - entries - { - p0 - { - type field; - displayName "p0"; - description "Reference pressure"; - } - - U - { - type word; - default U; - editable 0; - } - - phi - { - type word; - default phi; - editable 0; - } - - rho - { - type word; - default none; - editable 0; - } - - psi - { - type word; - default psi; - editable 0; - } - - gamma - { - type scalar; - default 1.4; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -turbulentInlet -{ - displayName "turbulentInlet"; - description "Turbulent Inlet"; - type patchField; - options - { - type - { - default turbulentInlet; - } - } - - entries - { - referenceField - { - type field; - displayName "referenceField"; - description "Reference Field"; - } - fluctuationScale - { - type vector; - displayName "fluctuationScale"; - description "Fluctuation Scale"; - } - } -} - -slip -{ - displayName "slip"; - description "Slip boundary"; - type patchField; - options - { - type - { - default slip; - } - } -} - -fixedFluxBuoyantPressure -{ - displayName "fixedFluxBuoyantPressure"; - description "Wall Buoyant Pressure"; - type patchField; - options - { - type - { - default fixedFluxBuoyantPressure; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -nuSgsWallFunction -{ - displayName "nuSgsWallFunction"; - description "Wall functions for SGS viscosity for LES"; - type patchField; - options - { - type - { - default nuSgsWallFunction; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -gammaContactAngle -{ - displayName "gammaContactAngle"; - description "Contact at wall"; - type patchField; - options - { - type - { - default gammaContactAngle; - } - } - - entries - { - theta0 - { - type scalar; - displayName "theta0"; - description "Static contact angle"; - default 70; - } - uTheta - { - type scalar; - displayName "uTheta"; - description "Velocity scaling function for dynamic contact angle (=0 for static contact)"; - default 0; - } - thetaA - { - type scalar; - displayName "thetaA"; - description "Leading edge dynamic contact angle"; - default 70; - } - thetaR - { - type scalar; - displayName "thetaR"; - description "Trailing edge dynamic contact angle"; - default 70; - } - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -inkJetVelocity -{ - displayName "inkJetVelocity"; - description "Velocity of ink jet"; - type patchField; - options - { - type - { - default inkJetVelocity; - } - } - - entries - { - UBar - { - type vector; - displayName "UBar"; - description "Mean velocity"; - } - - UPrime - { - type vector; - displayName "UPrime"; - description "Velocity amplitude"; - } - - frequency - { - type scalar; - displayName "frequency"; - description "Frequency of oscillation"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -inkJetPressure -{ - displayName "inkJetPressure"; - description "Pressure of ink jet"; - type patchField; - options - { - type - { - default inkJetPressure; - } - } - - entries - { - pBar - { - type scalar; - displayName "pBar"; - description "Mean pressure"; - } - - pPrime - { - type scalar; - displayName "pPrime"; - description "Pressure amplitude"; - } - - frequency - { - type scalar; - displayName "frequency"; - description "Frequency of oscillation"; - } - - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchFields/geometric.cfg b/etc/apps/FoamX/types/patchFields/geometric.cfg deleted file mode 100644 index 0ed30b411e..0000000000 --- a/etc/apps/FoamX/types/patchFields/geometric.cfg +++ /dev/null @@ -1,79 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -symmetryPlane -{ - displayName "symmetryPlane"; - description "Symmetry Plane"; - type patchField; - options - { - type - { - default symmetryPlane; - } - } -} - -empty -{ - displayName "empty"; - description "Empty"; - type patchField; - options - { - type - { - default empty; - } - } -} - -wedge -{ - displayName "wedge"; - description "Wedge"; - type patchField; - options - { - type - { - default wedge; - } - } -} - -cyclic -{ - displayName "cyclic"; - description "Cyclic"; - type patchField; - options - { - type - { - default cyclic; - } - } -} - -processor -{ - displayName "processor"; - description "Processor"; - type patchField; - options - { - type - { - default processor; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patchFields/meshMotion.cfg b/etc/apps/FoamX/types/patchFields/meshMotion.cfg deleted file mode 100644 index 3a39674168..0000000000 --- a/etc/apps/FoamX/types/patchFields/meshMotion.cfg +++ /dev/null @@ -1,86 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - - -motionZeroGradient -{ - displayName "motionZeroGradient"; - description "Motion Zero Gradient"; - type patchField; - options - { - type - { - default motionZeroGradient; - } - } -} - -motionFixedValue -{ - displayName "motionFixedValue"; - description "Motion Fixed Value"; - type patchField; - options - { - type - { - default motionFixedValue; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -movingWallVelocity -{ - displayName "movingWallVelocity"; - description "Moving Wall Velocity"; - type patchField; - options - { - type - { - default movingWallVelocity; - } - } - - entries - { - value - { - type field; - displayName "value"; - description "Field Value"; - } - } -} - -motionSlip -{ - displayName "motionSlip"; - description "Motion Slip"; - type patchField; - options - { - type - { - default motionSlip; - } - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/patches.cfg b/etc/apps/FoamX/types/patches.cfg deleted file mode 100644 index 32396dabba..0000000000 --- a/etc/apps/FoamX/types/patches.cfg +++ /dev/null @@ -1,53 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Patch type definitions. - -patch -{ - displayName "patch"; - description "Generic patch type"; -} - -wall -{ - displayName "wall"; - description "Wall patch type"; -} - -symmetryPlane -{ - displayName "symmetryPlane"; - description "Symmetry plane patch type"; -} - -empty -{ - displayName "empty"; - description "Empty patch type"; -} - -wedge -{ - displayName "wedge"; - description "Wedge patch type"; -} - -cyclic -{ - displayName "cyclic"; - description "Cyclic patch type"; -} - -processor -{ - displayName "processor"; - description "Processor patch type"; -} - - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/rootCaseArguments.cfg b/etc/apps/FoamX/types/rootCaseArguments.cfg deleted file mode 100644 index 236fae1dc0..0000000000 --- a/etc/apps/FoamX/types/rootCaseArguments.cfg +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rootCaseArguments -{ - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/rootAndCase.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/rootCaseTimeArguments.cfg b/etc/apps/FoamX/types/rootCaseTimeArguments.cfg deleted file mode 100644 index 6e7ea884d1..0000000000 --- a/etc/apps/FoamX/types/rootCaseTimeArguments.cfg +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -rootCaseTimeArguments -{ - type compound; - optional 1; - entries - { - include "$FOAMX_CONFIG/entries/arguments/rootAndCase.cfg"; - include "$FOAMX_CONFIG/entries/arguments/constant.cfg"; - include "$FOAMX_CONFIG/entries/arguments/latestTime.cfg"; - include "$FOAMX_CONFIG/entries/arguments/time.cfg"; - } -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/scalar.cfg b/etc/apps/FoamX/types/scalar.cfg deleted file mode 100644 index cffc3d81cc..0000000000 --- a/etc/apps/FoamX/types/scalar.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scalar -{ - type scalar; - description "Scalar"; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/scalar01.cfg b/etc/apps/FoamX/types/scalar01.cfg deleted file mode 100644 index 57f817f716..0000000000 --- a/etc/apps/FoamX/types/scalar01.cfg +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scalar01 -{ - type scalar; - minValue 0; - maxValue 1; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/scalar0Inf.cfg b/etc/apps/FoamX/types/scalar0Inf.cfg deleted file mode 100644 index dafc260aa8..0000000000 --- a/etc/apps/FoamX/types/scalar0Inf.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -scalar0Inf -{ - type scalar; - minValue 0; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/shape.cfg b/etc/apps/FoamX/types/shape.cfg deleted file mode 100644 index 7d697422d4..0000000000 --- a/etc/apps/FoamX/types/shape.cfg +++ /dev/null @@ -1,25 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -shape -{ - type word; - default hex; - valueList - ( - hex - wedge - prism - pyr - tet - tetWedge - splitHex - ); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/stringList.cfg b/etc/apps/FoamX/types/stringList.cfg deleted file mode 100644 index 11a5583465..0000000000 --- a/etc/apps/FoamX/types/stringList.cfg +++ /dev/null @@ -1,15 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -stringList -{ - type list; - elementType string; -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/tensor.cfg b/etc/apps/FoamX/types/tensor.cfg deleted file mode 100644 index cae14ead18..0000000000 --- a/etc/apps/FoamX/types/tensor.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -tensor -{ - description "Tensor"; - type fixedList; - elementType scalar; - numElements 9; - elementLabels (xx xy xz yx yy yz zx zy zz); -} - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/types.cfg b/etc/apps/FoamX/types/types.cfg deleted file mode 100644 index 00f41b0d0e..0000000000 --- a/etc/apps/FoamX/types/types.cfg +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -// Foam type Definitions. - -include "scalar.cfg"; -include "scalar01.cfg"; -include "scalar0Inf.cfg"; -include "angle0180.cfg"; -include "vector.cfg"; -include "tensor.cfg"; -include "fields.cfg"; -include "boolean.cfg"; -include "Switch.cfg"; -include "debugSwitch.cfg"; -include "model.cfg"; -include "stringList.cfg"; -include "dimensionedScalar.cfg"; -include "dimensionedVector.cfg"; -include "patchField.cfg"; -include "rootCaseArguments.cfg"; -include "rootCaseTimeArguments.cfg"; -include "shape.cfg"; - -// ************************************************************************* // diff --git a/etc/apps/FoamX/types/vector.cfg b/etc/apps/FoamX/types/vector.cfg deleted file mode 100644 index 9e59cca754..0000000000 --- a/etc/apps/FoamX/types/vector.cfg +++ /dev/null @@ -1,18 +0,0 @@ -/*---------------------------------------------------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.4 | -| \\ / A nd | Web: http://www.openfoam.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -vector -{ - description "Vector"; - type fixedList; - elementType scalar; - numElements 3; - elementLabels (x y z); -} - -// ************************************************************************* // diff --git a/etc/controlDict b/etc/controlDict index 1028f63547..120831b12f 100644 --- a/etc/controlDict +++ b/etc/controlDict @@ -840,7 +840,6 @@ InfoSwitches { writePrecision 6; writeJobInfo 0; - FoamXwriteComments 0; } OptimisationSwitches @@ -853,7 +852,7 @@ OptimisationSwitches DimensionedConstants { - // SI units + // SI units //- Universal gas constant [J/(kmol K)] R 8314.51; diff --git a/etc/settings.csh b/etc/settings.csh index 2b28e4660b..e1e8a5cd95 100644 --- a/etc/settings.csh +++ b/etc/settings.csh @@ -127,37 +127,6 @@ if ($?WM_COMPILER_BIN) then endif -# MICO -# ~~~~ -setenv MICO_VERSION 2.3.12 -setenv MICO_PATH $thirdParty/mico-$MICO_VERSION -setenv MICO_ARCH_PATH $MICO_PATH/platforms/$WM_OPTIONS -set path=($MICO_ARCH_PATH/bin $path) - - -# FoamX -# ~~~~~ -setenv FOAMX_PATH $FOAM_UTILITIES/preProcessing/FoamX -# -# need csh equivalent for this? -# for FOAMX_CONFIG in \ -# $HOME/.$WM_PROJECT/$WM_PROJECT_VERSION/apps/FoamX \ -# $HOME/.$WM_PROJECT/apps/FoamX \ -# $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/apps/FoamX \ -# $WM_PROJECT_INST_DIR/site/apps/FoamX \ -# $WM_PROJECT_DIR/etc/apps/FoamX \ -# ; -# do -# [ -d $FOAMX_CONFIG ] && break -# done -# export FOAMX_CONFIG -# -setenv FOAMX_CONFIG $HOME/.$WM_PROJECT-$WM_PROJECT_VERSION/apps/FoamX -if ( ! -d $FOAMX_CONFIG ) then - setenv FOAMX_CONFIG $WM_PROJECT_DIR/etc/apps/FoamX -endif - - # Communications library # ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/etc/settings.sh b/etc/settings.sh index 48335c1c20..9522d4755f 100644 --- a/etc/settings.sh +++ b/etc/settings.sh @@ -140,31 +140,6 @@ fi thirdParty=$WM_PROJECT_INST_DIR/ThirdParty -# MICO -# ~~~~ -export MICO_VERSION=2.3.12 -export MICO_PATH=$thirdParty/mico-$MICO_VERSION -export MICO_ARCH_PATH=$MICO_PATH/platforms/$WM_OPTIONS -export PATH=$MICO_ARCH_PATH/bin:$PATH - - -# FoamX -# ~~~~~ -export FOAMX_PATH=$FOAM_UTILITIES/preProcessing/FoamX -# perhaps we can cut down a bit here -for FOAMX_CONFIG in \ - $HOME/.$WM_PROJECT/$WM_PROJECT_VERSION/apps/FoamX \ - $HOME/.$WM_PROJECT/apps/FoamX \ - $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/apps/FoamX \ - $WM_PROJECT_INST_DIR/site/apps/FoamX \ - $WM_PROJECT_DIR/etc/apps/FoamX \ - ; -do - [ -d $FOAMX_CONFIG ] && break -done -export FOAMX_CONFIG - - # Communications library # ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/src/OpenFOAM/fields/Fields/Field/Field.C b/src/OpenFOAM/fields/Fields/Field/Field.C index 154426f8a4..015a443ba3 100644 --- a/src/OpenFOAM/fields/Fields/Field/Field.C +++ b/src/OpenFOAM/fields/Fields/Field/Field.C @@ -251,7 +251,7 @@ Field::Field dict ) << "expected keyword 'uniform' or 'nonuniform', " "assuming deprecated Field format from " - "FoamX version 2.0." << endl; + "Foam version 2.0." << endl; this->setSize(s); @@ -313,7 +313,7 @@ void Field::map label mapI = mapAddressing[i]; if (mapI >= 0) - { + { f[i] = mapF[mapI]; } }