|
[Sponsors] |
July 3, 2007, 06:22 |
Hi to all,
I am a new openF
|
#1 |
Member
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 17 |
Hi to all,
I am a new openFoam user,and i would like to know if the perturbU utility exists by default in openFOam or i should add it? can u please tell me how to get this utility? thanks in advance Hadi |
|
July 3, 2007, 08:00 |
Hello,
it's not included in O
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hello,
it's not included in OpenFOAM. You can download it here: - For a channel: http://www.cfd-online.com/OpenFOAM_D...ages/1/40.html - For a cylinder: http://www.cfd-online.com/OpenFOAM_D...es/1/2946.html With kind regards, Alberto
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
July 3, 2007, 08:23 |
Thank you very much Alberto
|
#3 |
Member
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 17 |
Thank you very much Alberto
regards Hadi |
|
December 14, 2013, 14:44 |
|
#4 |
New Member
Join Date: Feb 2013
Posts: 10
Rep Power: 13 |
hello,
I try to download perturbU utility for using it in a pipe flow, but for some reason I get a file of type .unk (unknown). Can anyone provide me a valid link for downloading perturbU utility? |
|
December 14, 2013, 19:21 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings pante,
The old forum had this safety mechanism, where the attached files were renamed to always have the file extension ".unk". The solution is simple: after you download the file, you have to manually rename the file extension to the correct extension, as indicated on the surrounding text for the link you used for the download. In this case, change "unk" to "tgz". Best regards, Bruno
__________________
|
|
March 10, 2014, 08:23 |
|
#6 | |
Member
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 14 |
Quote:
I'm using the perturbU utility to generate a terbulent initial filed for a wall-jet case. However, I don't know how to set the parameters in the perturbUDict, such as duplus, betaPlus, alphaPlus, sigma and epsilon. Is there a rule for setting them? The following picture is the schematic of the domain for my case. Best Regards. sunxing |
||
April 10, 2014, 11:01 |
|
#7 |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Dear Sunxing,
did you read thesis of Eugene de Villiers: "The Potential of Large Eddy Simulation for the Modeling of Wall Bounded Flows" Page. 164 ff. and the the file perturbU.C till line 78. It does not directly answer your question but could improve understanding. Best regards, aylalisa |
|
April 10, 2014, 21:22 |
|
#8 | |
Member
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 14 |
Quote:
Thanks for your reply. Regards Sunxing |
||
April 11, 2014, 05:16 |
|
#9 |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Hi Sunxing,
I've found yesterday (after I've replied your thread): http://lists.cfd-online.com/pipermai...ch/019398.html Aylalisa |
|
May 7, 2014, 07:27 |
|
#10 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Hello aylalisa,
I has download purturbU from http://www.cfd-online.com/OpenFOAM_D...ages/1/40.html for channel.I wmake it in my open foam 2.2.0, but it points that "mathematicalConstant" is not declared. Do you wmake perturbU successfuly? would you mind sending me your file of perturbU? My email is silence@tju.edu.cn Thank you ! |
|
May 7, 2014, 15:45 |
|
#11 |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
I do not have version 2.2.0, but I encountered the same issue in 2.2.2. It's due to how pi is defined in different versions of OpenFOAM. Thankfully it is not a difficult fix.
If you edit the .C perturbU file and change any references (I believe there are 2) of 'mathematicalConstant' to 'constant::mathematical', this should rectify the issue. |
|
May 7, 2014, 23:27 |
|
#12 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Thank you, amanbearpig! I have solved it ,the problem is indeed due to mathematicalConstant, I has corrected it successfully!
|
|
May 9, 2014, 02:27 |
|
#13 |
Senior Member
|
here you are the modified perturbU utility for OF-2.0.0 to OF-2.3.0:
|
|
May 27, 2014, 04:50 |
|
#14 |
Senior Member
|
hi everybody,
The perturbU utility was ran for channel395 correctly. I changed the geometry to a perfect channel which the conditions at inlet and outlet patches are cyclic. then I ran the perturbU but it set a zero velocity field for U. I can't understand why it didn't make any perturbation of my velocity field????? anybody knows what and where is the problem? the blockMeshDict is as follow: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 4) (1 0 4) (1 1 4) (0 1 4) (2 0 0) (2 1 0) (2 0 4) (2 1 4) (1 2 0) (0 2 0) (1 2 4) (0 2 4) (2 2 0) (2 2 4) ); blocks ( hex (0 1 2 3 4 5 6 7) (25 25 20) simpleGrading (10 10 1) hex (1 8 9 2 5 10 11 6) (25 25 20) simpleGrading (0.1 10 1) hex (3 2 12 13 7 6 14 15) (25 25 20) simpleGrading (10 0.1 1) hex (2 9 16 12 6 11 17 14) (25 25 20) simpleGrading (0.1 0.1 1) ); edges ( ); boundary ( outlet1_1 { type cyclic; neighbourPatch inlet1_1; faces ( (4 7 6 5) ); } inlet1_1 { type cyclic; neighbourPatch outlet1_1; faces ( (0 3 2 1) ); } outlet1_2 { type cyclic; neighbourPatch inlet1_2; faces ( (5 6 11 10) ); } inlet1_2 { type cyclic; neighbourPatch outlet1_2; faces ( (1 2 9 8) ); } outlet2_1 { type cyclic; neighbourPatch inlet2_1; faces ( (7 15 14 6) ); } inlet2_1 { type cyclic; neighbourPatch outlet2_1; faces ( (3 13 12 2) ); } outlet2_2 { type cyclic; neighbourPatch inlet2_2; faces ( (6 14 17 11) ); } inlet2_2 { type cyclic; neighbourPatch outlet2_2; faces ( (2 12 16 9) ); } fixedWalls { type wall; faces ( (4 7 3 0) (7 15 13 3) (10 11 9 8) (11 17 16 9) (4 0 1 5) (5 1 8 10) (15 13 12 14) (14 12 16 17) ); } ); mergePatchPairs ( ); // ************************************************************************* // Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.0 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; instance "system"; class dictionary; object perturbUDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Expected turbulent Re(tau) Reynolds number with respect to utau Retau 395; // Streamwise component of flow. 0=x, 1=y, 2=z streamwise 2; // Spanwise component of flow. 0=x, 1=y, 2=z spanwise 1; // Halfheight of channel. This is the direction normal to both streamwise and // spanwise directions. h 1; // Set (overwrite) velocity to laminar profile setBulk true; // Perturb velocity with some cosine like perturbations perturb false; // Perturbation properties //wall normal circulation as a fraction of Ubar/utau duplus 0.25; //spanwise perturbation spacing in wall units betaPlus 200; //streamwise perturbation spacing in wall units alphaPlus 500; //transverse decay sigma 0.00055; //linear perturbation amplitude as a fraction of Ubar epsilon 0.005; // ************************************************************************* // Regards, Mostafa |
|
May 27, 2014, 05:51 |
|
#15 | |
Senior Member
|
Quote:
sorry for that Regards, Mostafa |
||
March 21, 2015, 14:34 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've given a proper wiki page and git repository to perturbU and all of the 3 variants I found that were made by Eugene de Villiers:
Best regards, Bruno |
|
June 1, 2015, 06:54 |
perturbU + precursor inlet
|
#17 |
Member
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15 |
Hi!
I want to do LES of a diffuser. For the inlet I want to run a precursor LES of channel for which I set cyclic for inlet and outlet. Then I run perturbUChannel but the original 0/U file is replaced by some numbers. Is it OK to run with this condition? How does the solver know about cyclic patches then? |
|
June 1, 2015, 07:49 |
|
#18 | |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Hi Canopus,
yes, start simulation with the new field. You define your patches in constant/polyMesh/blockMeshDict. Quote:
|
||
June 2, 2015, 08:31 |
|
#19 |
Member
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15 |
Thanks for your reply.
I found that the numbers are the initial field and the boundary conditions of 0/U still exist and can be found in the bottom of the file. |
|
October 8, 2015, 18:50 |
|
#20 |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Dear Users,
I have problem compiling perturbU on OpenFOAM 2.3.1 and get the following error after running wmake all: Code:
make[1]: Entering directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUChannel' 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/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/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 -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/perturbU.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lmeshTools -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/syavash-2.3.1/platforms/linux64GccDPOpt/bin/perturbUChannel make[1]: Leaving directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUChannel' make[1]: Entering directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUCylinder' 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/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/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 -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/perturbU.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lmeshTools -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/syavash-2.3.1/platforms/linux64GccDPOpt/bin/perturbUCylinder make[1]: Leaving directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUCylinder' make[1]: Entering directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUGeneric' 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/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/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 -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/perturbU.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lmeshTools -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/syavash-2.3.1/platforms/linux64GccDPOpt/bin/perturbUGeneric make[1]: Leaving directory `/home/syavash/OpenFOAM/syavash-2.3.1/perturbU/perturbUGeneric' Thanks, Syavash |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PerturbU | nzy102 | OpenFOAM Running, Solving & CFD | 0 | April 23, 2007 21:06 |