CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   LEMOS InflowGenerator (https://www.cfd-online.com/Forums/openfoam-solving/122628-lemos-inflowgenerator.html)

matthias July 1, 2015 04:21

You have to add "-lgslcblas" to the libraries in the option file. Unfortunately, the cblas interfaces have been outsourced into a separate library.

I will add the missing dependency to the repository as soon as possible.


Good Luck

Matthias

syavash July 1, 2015 05:52

Quote:

Originally Posted by matthias (Post 552814)
You have to add "-lgslcblas" to the libraries in the option file. Unfortunately, the cblas interfaces have been outsourced into a separate library.

I will add the missing dependency to the repository as soon as possible.


Good Luck

Matthias

Dear Matthias,

Thank you, I did as you suggested and included "-lgslcblas" after "-lgsl" in the options file, but some of the errors still remain.
When I run applyPatches, the following message appears indicating it is working properly (I suppose!):

Code:

syavash@syavash-VPCF11DGX:~/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x$ ./applyPatches
patching file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.H
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.H.rej
patching file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.C
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.C.rej
+ LES/Allwmake
+ wmakeLnInclude ../incompressible/LES
+ wmake libso LESfilters
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLESfilters.so' is up to date.
+ wmake libso LESdeltas
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLESdeltas.so' is up to date.
+ incompressible/Allwmake
+ wmake libso turbulenceModel
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleTurbulenceModel.so' is up to date.
+ wmake libso RAS
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so' is up to date.
+ wmake libso LES
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleLESModels.so' is up to date.
+ compressible/Allwmake
+ wmake libso turbulenceModel
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so' is up to date.
+ wmake libso RAS
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so' is up to date.
+ wmake libso LES
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so' is up to date.
+ wmake libso derivedFvPatchFields
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libturbulenceDerivedFvPatchFields.so' is up to date.

But when I run Allwmake, now the following message appears which includes some errors:

Code:

syavash@syavash-VPCF11DGX:~/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x$ ./Allwmake
+ wmake libso libLEMOS-2.3.x
'/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLEMOS-2.3.x.so' is up to date.
+ cd applications
+ wmake all solvers
make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic'
make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver'
make[2]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver' is up to date.
make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver'
make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic'
make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam'
make[1]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoam' is up to date.
make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam'
make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS'
SOURCE=scalarPimpleFoamLDMMS.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o
In file included from scalarPimpleFoamLDMMS.C:54:0:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’
 turbulence->registerScalarField(f,D_f);
            ^
scalarPimpleFoamLDMMS.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’
        volScalarField DEff =  turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name());
                                            ^
scalarPimpleFoamLDMMS.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’
        volScalarField DEff =  turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name());
                                                                                              ^
scalarPimpleFoamLDMMS.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’
              + turbulence->divFeff(f)
                            ^
make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o] Error 1
make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamLDMMS' not remade because of errors.
make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS'
make: *** [scalarPimpleFoamLDMMS] Error 2
make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM'
SOURCE=scalarPimpleFoamMFM.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamMFM.o
In file included from scalarPimpleFoamMFM.C:54:0:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’
 turbulence->registerScalarField(f,D_f);
            ^
scalarPimpleFoamMFM.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’
        volScalarField DEff =  turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name());
                                            ^
scalarPimpleFoamMFM.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’
        volScalarField DEff =  turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name());
                                                                                              ^
scalarPimpleFoamMFM.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’
              + turbulence->divFeff(f)
                            ^
make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamMFM.o] Error 1
make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamMFM' not remade because of errors.
make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM'
make: *** [scalarPimpleFoamMFM] Error 2
make: Target `application' not remade because of errors.
+ cd applications
+ wmake all utilities
make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing'
make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD'
make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots'
make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots' is up to date.
make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots'
make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots'
make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots' is up to date.
make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots'
make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD'
make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous'
make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt'
make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/postChannelExt' is up to date.
make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt'
make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous'
make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField'
make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI'
make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/LambdaCI' is up to date.
make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI'
make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField'
make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing'

How should I fix this problem?!

Thanks
Syavash

matthias July 1, 2015 06:29

Dear Syavash,

as long as you don't need the turbulence models in the library you can ignore these errors. The library seems to be correctly build.

There are some missing dependencies in the original turbulence models class of OpenFOAM. I have to modify the applyPatches to add these dependencies but this needs some time. I will do it till end of the week.


Best

Matthias

syavash July 1, 2015 09:25

Quote:

Originally Posted by matthias (Post 552845)
Dear Syavash,

as long as you don't need the turbulence models in the library you can ignore these errors. The library seems to be correctly build.

There are some missing dependencies in the original turbulence models class of OpenFOAM. I have to modify the applyPatches to add these dependencies but this needs some time. I will do it till end of the week.


Best

Matthias

Dear Matthias,

I appreciate your comment, but the problem still persists when running solver "pisoFoam".
I have added inlet boundary condition as follows:

Code:

INLET
    {
    type decayingTurbulenceInflowGenerator;
    direction 1;
    LField uniform 0.00315;
    refField        uniform ( 6.355 0 0 );
    value          uniform ( 6.355 0 0 );
    }

I think it's OK, but when I run pisoFoam solver, the following message appears:

Code:

syavash@syavash-VPCF11DGX:~/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24$ pisoFoam
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.3.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.3.1-262087cdf8db
Exec  : pisoFoam
Date  : Jul 01 2015
Time  : 17:50:00
Host  : "syavash-VPCF11DGX"
PID    : 3380
Case  : /home/syavash/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
Unknown patchField type decayingTurbulenceInflowGenerator for patch type patch

Valid patchField types are :

75
(
SRFFreestreamVelocity
SRFVelocity
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
atmBoundaryLayerInletVelocity
calculated
codedFixedValue
codedMixed
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
cylindricalInletVelocity
directionMixed
empty
externalCoupled
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedNormalInletOutletVelocity
fixedNormalSlip
fixedValue
flowRateInletVelocity
fluxCorrectedVelocity
freestream
inletOutlet
interstitialInletVelocity
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mappedFlowRate
mappedVelocityFlux
mixed
movingWallVelocity
nonuniformTransformCyclic
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
outletPhaseMeanVelocity
partialSlip
pressureDirectedInletOutletVelocity
pressureDirectedInletVelocity
pressureInletOutletParSlipVelocity
pressureInletOutletVelocity
pressureInletUniformVelocity
pressureInletVelocity
pressureNormalInletOutletVelocity
processor
processorCyclic
rotatingPressureInletOutletVelocity
rotatingWallVelocity
sliced
slip
supersonicFreestream
surfaceNormalFixedValue
swirlFlowRateInletVelocity
symmetry
symmetryPlane
timeVaryingMappedFixedValue
translatingWallVelocity
turbulentInlet
uniformFixedGradient
uniformFixedValue
uniformInletOutlet
uniformJump
uniformJumpAMI
variableHeightFlowRateInletVelocity
waveTransmissive
wedge
zeroGradient
)


file: /home/syavash/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24/0/U.boundaryField.INLET from line 27 to line 31.

    From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
    in file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 143.

FOAM exiting

It can be seen that OF does not recognize inflowgenerator B.C.

Another question, Shouldn't I add something to controlDict??!

P.S.: Isn't it strange that other people did not encounter such problems as I did??!

Regards,
Syavash

syavash July 1, 2015 09:51

I wanted to add I am running OF 2.3.1 under Ubuntu 14.04, Could it be making troubles??

syavash July 1, 2015 10:07

Quote:

Originally Posted by syavash (Post 552876)
I wanted to add I am running OF 2.3.1 under Ubuntu 14.04, Could it be making troubles??


Knock, knock, Great!

The problem was that I should have added the following line to the controlDict,

Code:

libs            ("libLEMOS-2.3.x.so");
Dear Matthias and Hannes, Thank you.

Regards,
Syavash

abhi22 July 30, 2015 05:18

Hi amanbearpig,

I am trying to generate turbulence at the inlet for a flatPlate LES case. I am using the inflowGeneratorBC at the inlet. Is it possible to share your flat plate case in which you used the inflowGeneratorBC.

Many Thanks,
Abhi.

syavash August 1, 2015 06:49

Quote:

Originally Posted by hannes (Post 500548)
Dear Tung,

yes it is possible.
Just prescribe an appropriate uniform distribution of the Reynolds Stresses and the length scales. The generated length scales are isotropic anyway.

Regards, Hannes

Dear Hannes,

When I input a non-zero value as uv Reynolds stress, OF gives an error.
Is LeMOS supposed to accept non-isotropic inlet conditions??!

Thanks
Syavash

openfoammaofnepo August 19, 2015 09:18

Hello Syavash,

What kind of problem do you have when you use non-isotropic BC there? For my experience, it is OK.

syavash August 19, 2015 11:09

Quote:

Originally Posted by openfoammaofnepo (Post 560205)
Hello Syavash,

What kind of problem do you have when you use non-isotropic BC there? For my experience, it is OK.

Hi,
By non-isotropic I meant that it is not possible to have non-zero values on non-diagonal columns of the stress tensor. Is it possible in your case??!
Syavash

syavash October 8, 2015 16:32

Dear Matthias,

I have successfully installed LeMOS on several PCs. On the last system I could also install LeMOS without any problem but when I run the solver (pimpleFoam), I get the following error:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.3.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.3.1-262087cdf8db
Exec  : pimpleFoam
Date  : Oct 08 2015
Time  : 23:51:15
Host  : "syavash-All-Series"
PID    : 18106
Case  : /home/syavash/OpenFOAM/syavash-2.3.1/PhD_Thesis/ramp2
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1179
    dlopen error : libgslcblas.so.0: cannot open shared object file: No such file or directory
--> FOAM Warning :
    From function dlLibraryTable::open(const fileName&, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
    could not load "libLEMOS-2.3.x.so"
Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
Unknown patchField type decayingTurbulenceInflowGenerator for patch type patch

Valid patchField types are :

It seems that OF cannot find libgsl.so and it causes the problem!
Do you know how I can possibly solve this issue??!

Thanks,
Syavash

matthias October 9, 2015 07:20

Dear syavash,

you need to install the gsl and gsl-devel libraries on those systems. Some tools in the LEMOS lib require gsl support.


Good luck

Matthias

tiam October 12, 2015 09:39

Hello!

I would like to bump up the request by Abhi for a working test-case for a flat plate BL or some other simple flow.
Can anyone who succeeded in using the generator share one :) ?

Best,
Tim

gentela November 5, 2015 00:02

Quote:

Originally Posted by matthias (Post 459879)
Dear Rob,

we will provide a little test case or tutorial where you can see the settings and some explanations of the inflow generator. Furthermore the OF reader of paraview is not designed to read the vortons which are used to create the fluctuations. So that's not a bug in the code but a missing feature in OF paraview plugin.

We will have a look at it and publish a workaround as fast as possible.


Best regards

Matthias

Dear Matthias,
First off thanks for your posts in this thread. I was wondering to know if there is any possibility to modify the inflow generator code such that it writes vortons and R values in separate files rather than writing them in U. Do you have any suggestions to where i need to look inside the code?
Thanks a lot, beforehand.
Ali

marc.immer November 5, 2015 02:48

Hi Ali,

please have a look at your modification of the code
https://github.com/ETH-BuildingPhysi...-OFTools-2.3.X
You will find it in the folder BC/LEMOSinflowGeneratorMod

It writes vortons into a separate file. In addition, in can interpolate input data. Example input data is found in BC/LEMOSinflowGeneratorMod/boundaryData/inlet

You might also be interested in the filtered noise inflow generator (Klein at al, Xie and Castro) in the folder BC/FilteredNoiseInflowGenerator

Kind Regards
Marc

openfoammaofnepo November 5, 2015 04:06

Dear Marc,

do you mean that in your shared codes, the inlet related data will be put in a separate "boundaryData" under the time directory? The files include L, ref, Rs? Thank you.

marc.immer November 5, 2015 04:26

the data goes into: constant/boundaryData/inlet where "inlet" is the patch name of your inlet boundary condition.

The same code/structure of the timeVaryingMappedFixedValue BC is used, see for example
OpenFOAM-2.3.x/tutorials/incompressible/simpleFoam/pitzDailyExptInlet

There is just no additional time directory for the LEMOS mod BC

Cheers
Marc

Ps: if a LEMOS maintainer is reading: feel free to copy paste from our modification. We would welcome if some fixes would go into the original version

matthias November 5, 2015 08:05

Thanks for the suggestion but we are working on a new version of the inflow generator which improves the treatment of vector fields at the inlet, i.e. conservation of zero divergence , enhanced anisotropy features etc. At the moment, there is little effort to update the current implementation since the new one will be available in the short to medium term.


Best regards

Matthias

gentela November 5, 2015 15:54

Quote:

Originally Posted by marc.immer (Post 571970)
Hi Ali,

please have a look at your modification of the code
https://github.com/ETH-BuildingPhysi...-OFTools-2.3.X
You will find it in the folder BC/LEMOSinflowGeneratorMod

It writes vortons into a separate file. In addition, in can interpolate input data. Example input data is found in BC/LEMOSinflowGeneratorMod/boundaryData/inlet

You might also be interested in the filtered noise inflow generator (Klein at al, Xie and Castro) in the folder BC/FilteredNoiseInflowGenerator

Kind Regards
Marc

Hi Mark!
Thanks a lot! You are a life saver! I did download your package and checked out as development however I couldn't install this because it as soon as I run the Allmake code it just gives me the error of " unexpected ")" ". I removed all parentheses in the Allmake files, and replaced them with curly brackets (also I tried quotation marks) and now it says cannot find the paths! Any input?

Again thank you so much for this!
~Ali

openfoammaofnepo November 5, 2015 15:58

Dear Marc,

Could you please give the full information about the reference for filtered noise inflow generator? Thank you.


All times are GMT -4. The time now is 14:51.