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/)
-   -   PerturbU (https://www.cfd-online.com/Forums/openfoam-solving/59602-perturbu.html)

wyldckat October 8, 2015 18:25

Quote:

Originally Posted by syavash (Post 567218)
I have problem compiling perturbU on OpenFOAM 2.3.1 and get the following error after running wmake all:

Quick question: What error? There is no error message in the output that you provided.

syavash October 9, 2015 04:32

Quote:

Originally Posted by wyldckat (Post 567225)
Quick question: What error? There is no error message in the output that you provided.

Hi Bruno,

You are right, that was my mistake. Sorry for spamming.

Syavash

excolade March 8, 2016 14:21

Hi all,

I was trying to compile perturbU, following the git instructions on the wiki page. But unfortunately I encountered the following compilation error.

g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c perturbU.C -o Make/linux64GccDPInt32Opt/perturbU.o
perturbU.C:43:32: fatal error: wallDistReflection.H: No such file or directory
#include "wallDistReflection.H"

Can someone point me in the right direction? I am using OpenFOAM version 3.0.0.
I tried to search OpenFOAM source directory for the include file but since I am not too familiar with the code I could not find anything relevant.

Thanks

wyldckat March 13, 2016 13:59

Quote:

Originally Posted by excolade (Post 588712)
Can someone point me in the right direction? I am using OpenFOAM version 3.0.0.

Quick answer: I've updated the repository and the wiki page for OpenFOAM 3.0: https://openfoamwiki.net/index.php/Contrib/perturbU

Please let me know if it works as intended.

excolade March 13, 2016 14:24

quick reply: compiled without any errors.

thanks for the fix. I was trying to figure out vector calculations by myself and apparently they tidied up the walldist routines which caused the compilation error.

I will update after some test runs.

anishtain4 March 22, 2016 12:22

Great job wyldkat.
Just two points for user:

1. For OF3.0.x the structure of the transportProperties seems to be changed a little bit and perturbUChannel complains about not being able to read it.
Change the constant/transportProperties from:

Quote:

Ubar [0 1 -1 0 0 0 0] (0.1335 0 0);

transportModel Newtonian;

nu [0 2 -1 0 0 0 0] 2e-05;
to

Quote:

Ubar Ubar [0 1 -1 0 0 0 0] (0.1335 0 0);

transportModel Newtonian;

nu nu [0 2 -1 0 0 0 0] 2e-05;
2. The default perturbUDict has the bulk velocity set to false. As Eugene mentions in his thesis this would lead to damping the perturbations, to get a turbulent field in steady state set it back to true.

wyldckat March 26, 2016 06:38

Many thanks anishtain4, I've added a section in the wiki page with the information that you've provided: http://openfoamwiki.net/index.php/Co...bU#Usage_Notes

Mirage September 6, 2016 19:34

perturbU in a ribbed channel
 
Hey guys,

Do we need the perturbU-Utility just to initialize the turbulent flow only in a channel or cylinder, or can I use this utility for ribbed channel :confused:?


Thanks for your support.

anishtain4 August 14, 2017 12:52

@Mirage: You can use the utility to initialize the field before your ribs. Or initialize a domain without ribs and then map it in your case (if you have periodic boundary conditions).

Also in OF5.0, in the perturbUCylinder/perturbU.C, line 67 should be changed from:
Quote:

if(Uheader.headerOk())
to
Quote:

if(Uheader.good())

gu1 January 24, 2018 12:15

Of5
 
Quote:

Originally Posted by anishtain4 (Post 660701)
@Mirage: You can use the utility to initialize the field before your ribs. Or initialize a domain without ribs and then map it in your case (if you have periodic boundary conditions).

Also in OF5.0, in the perturbUCylinder/perturbU.C, line 67 should be changed from:

Can you explain this change, please?

gu1 January 25, 2018 08:36

Quote:

Making dependency list for source file perturbU.C
could not open file cyclicAMILduInterface.H for source file perturbU.C due to No such file or directory
could not open file cyclicAMIPolyPatch.H for source file perturbU.C due to No such file or directory
could not open file addLatestTimeOption.H for source file perturbU.C due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/cfdTools/general/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c perturbU.C -o Make/linux64GccDPInt32Opt/perturbU.o
In file included from /opt/openfoam5/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
from /opt/openfoam5/src/finiteVolume/lnInclude/ddtScheme.H:342,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvcDdt.H:205,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvc.H:44,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvCFD.H:8,
from perturbU.C:26:
/opt/openfoam5/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: Arquivo ou diretório não encontrado
compilation terminated.
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/perturbU.o' failed
make: *** [Make/linux64GccDPInt32Opt/perturbU.o] Error 1
Any can help me?

calf.Z November 1, 2019 20:39

Quote:

Originally Posted by gu1 (Post 679354)
Any can help me?

I am wondering the meaning of betaPlus, sigma alphaPlus and alphaPlus in perturbU.C, How chould they affect the perturbation results. Thank you.

ari003 November 19, 2020 20:38

Dear Foamers,
First of all thanks to Eugene de Villiers for sharing such an utility tool with the open world. I m trying to use this tool but at the last step when I was using it for my simulation it is giving a command like
Quote:

perturbUChannel: command not found
I succesfully installed it in my LInux, pasted the file perTurbUdict in system directory but inspite of all these its showing the error.
If anyone knows how to tackle this issue will be grateful if you share.


All times are GMT -4. The time now is 08:57.