CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

LEMOS InflowGenerator

Register Blogs Community New Posts Updated Threads Search

Like Tree25Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2015, 04:21
Default
  #61
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
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
matthias is offline   Reply With Quote

Old   July 1, 2015, 05:52
Default
  #62
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by matthias View Post
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
syavash is offline   Reply With Quote

Old   July 1, 2015, 06:29
Default
  #63
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
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
matthias is offline   Reply With Quote

Old   July 1, 2015, 09:25
Default
  #64
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by matthias View Post
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 is offline   Reply With Quote

Old   July 1, 2015, 09:51
Default
  #65
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
I wanted to add I am running OF 2.3.1 under Ubuntu 14.04, Could it be making troubles??
syavash is offline   Reply With Quote

Old   July 1, 2015, 10:07
Default
  #66
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by syavash View Post
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
syavash is offline   Reply With Quote

Old   July 30, 2015, 05:18
Default
  #67
New Member
 
Abhi
Join Date: Feb 2012
Location: United Kingdom
Posts: 3
Rep Power: 14
abhi22 is on a distinguished road
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.
abhi22 is offline   Reply With Quote

Old   August 1, 2015, 06:49
Default
  #68
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by hannes View Post
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
syavash is offline   Reply With Quote

Old   August 19, 2015, 09:18
Default
  #69
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Hello Syavash,

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

Old   August 19, 2015, 11:09
Default
  #70
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by openfoammaofnepo View Post
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 is offline   Reply With Quote

Old   October 8, 2015, 16:32
Default
  #71
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
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
syavash is offline   Reply With Quote

Old   October 9, 2015, 07:20
Default
  #72
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
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
Bazinga likes this.
matthias is offline   Reply With Quote

Old   October 12, 2015, 09:39
Default
  #73
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
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
tiam is offline   Reply With Quote

Old   November 5, 2015, 00:02
Default
  #74
New Member
 
Ali
Join Date: Apr 2010
Location: Greenville, South Carolina, USA
Posts: 11
Rep Power: 16
gentela is on a distinguished road
Quote:
Originally Posted by matthias View Post
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
gentela is offline   Reply With Quote

Old   November 5, 2015, 02:48
Default
  #75
New Member
 
Marc
Join Date: Sep 2012
Posts: 17
Rep Power: 13
marc.immer is on a distinguished road
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
gentela and Alish1984 like this.
marc.immer is offline   Reply With Quote

Old   November 5, 2015, 04:06
Default
  #76
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
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.
openfoammaofnepo is offline   Reply With Quote

Old   November 5, 2015, 04:26
Default
  #77
New Member
 
Marc
Join Date: Sep 2012
Posts: 17
Rep Power: 13
marc.immer is on a distinguished road
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
marc.immer is offline   Reply With Quote

Old   November 5, 2015, 08:05
Default
  #78
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
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
matthias is offline   Reply With Quote

Old   November 5, 2015, 15:54
Default
  #79
New Member
 
Ali
Join Date: Apr 2010
Location: Greenville, South Carolina, USA
Posts: 11
Rep Power: 16
gentela is on a distinguished road
Quote:
Originally Posted by marc.immer View Post
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
gentela is offline   Reply With Quote

Old   November 5, 2015, 15:58
Default
  #80
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Marc,

Could you please give the full information about the reference for filtered noise inflow generator? Thank you.
openfoammaofnepo is offline   Reply With Quote

Reply

Tags
inflow conditions, lemos


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:07.