CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   regular exp in parallel rhoPimple setup (http://www.cfd-online.com/Forums/openfoam-bugs/78957-regular-exp-parallel-rhopimple-setup.html)

braennstroem August 7, 2010 08:28

regular exp in parallel rhoPimple setup
 
Hi,

it seems that in 1.7x the regular expressions in the 'T' field are not recognized by the thermo libraries in parallel. I get this error:


Reading thermophysical properties Selecting thermodynamics package hPsiThermo [2] #0 Foam::error::printStack(Foam::Ostream&)[0] #0 [1] #0 Foam::error::printStack(Foam::Ostream&)Foam::error ::printStack(Foam::Ostream&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so" [2] #1 Foam::sigFpe::sigFpeHandler(int) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/ in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"linux64GccDPOpt/libOpenFOAM.so" [1] #1 Foam::sigFpe::sigFpeHandler(int)[0] #1 Foam::sigFpe::sigFpeHandler(int) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so" [2] #2 in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so" [0] #2 in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so" [1] #2 in "/lib/libc.so.6" [2] #3 Foam::hPsiThermo::calculate() in "/lib/libc.so.6" [1] #3 Foam::hPsiThermo::calculate() in "/lib/libc.so.6" [0] #3 Foam::hPsiThermo::calculate() in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [2] #4 Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [1] #4 Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [0] #4 Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [2] #5 Foam::basicPsiThermo::addfvMeshConstructorToTable: :New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [1] #5 Foam::basicPsiThermo::addfvMeshConstructorToTable: :New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [0] #5 Foam::basicPsiThermo::addfvMeshConstructorToTable: :New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [2] #6 Foam::basicPsiThermo::New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [1] #6 Foam::basicPsiThermo::New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [0] #6 Foam::basicPsiThermo::New(Foam::fvMesh const&) in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [2] #7 in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" [1] #7 in "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" Basically, I just copied my field files from serial to the snappyHexMesh-processor directories, e.g. for 'T': internalField uniform 293; boundaryField { ".*" { type zeroGradient; } "SYM.*" { type symmetryPlane; } inlet { type fixedValue; value $internalField; } outlet { type inletOutlet; value $internalField; inletValue $internalField; } "procBoundary.*" { type processor; } }

It works by using decompose -fields

Maybe, I missed something... Regards! Fabian

braennstroem August 7, 2010 13:20

maybe, this is easier to read:

Hi,

it seems that in 1.7x the regular expressions in the 'T' field are not recognized by the thermo libraries in parallel. I get this error:

Code:

Reading thermophysical properties  Selecting thermodynamics package  hPsiThermo [2] #0  Foam::error::printStack(Foam::Ostream&)[0]  #0  [1] #0  Foam::error::printStack(Foam::Ostream&)Foam::error  ::printStack(Foam::Ostream&)  in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"  [2] #1  Foam::sigFpe::sigFpeHandler(int) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/ in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"linux64GccDPOpt/libOpenFOAM.so"  [1] #1  Foam::sigFpe::sigFpeHandler(int)[0] #1  Foam::sigFpe::sigFpeHandler(int) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"  [2] #2  in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"  [0] #2  in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so"  [1] #2  in "/lib/libc.so.6" [2] #3  Foam::hPsiThermo::calculate() in  "/lib/libc.so.6" [1] #3  Foam::hPsiThermo::calculate() in  "/lib/libc.so.6" [0] #3  Foam::hPsiThermo::calculate() in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [2] #4  Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [1] #4  Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [0] #4  Foam::hPsiThermo::hPsiThermo(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [2] #5  Foam::basicPsiThermo::addfvMeshConstructorToTable:  :New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [1] #5  Foam::basicPsiThermo::addfvMeshConstructorToTable:  :New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [0] #5  Foam::basicPsiThermo::addfvMeshConstructorToTable:  :New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [2] #6  Foam::basicPsiThermo::New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [1] #6  Foam::basicPsiThermo::New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [0] #6  Foam::basicPsiThermo::New(Foam::fvMesh const&) in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [2] #7  in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"  [1] #7  in  "/home/gcae504/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so"
Basically, I just copied my field files from serial to the snappyHexMesh-processor directories, e.g. for 'T':
Code:


imensions      [0 0 0 1 0 0 0];

internalField  uniform 293;

boundaryField
{

    ".*"
    {
        type            zeroGradient;
    }
    "SYM.*"
    {
        type            symmetryPlane;
    }

    inlet
    {
        type            fixedValue;
        value          $internalField;
    }
    outlet
    {
        type            inletOutlet;
        value          $internalField;
        inletValue      $internalField;
    }
    "procBoundary.*"
    {
        type            processor;
    }
}

It works by using decompose -fields

Maybe, I missed something... Regards! Fabian

braennstroem August 7, 2010 13:38

Sorry my mistake... the procBoundary needs an 'value uniform $internalField'

"procBoundary.*"
{
type processor;
}

Regards!


All times are GMT -4. The time now is 05:21.