|
[Sponsors] |
December 10, 2020, 02:57 |
OpenFOAM tutorial 2.2 question?
|
#1 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
I am really new to programming and new to linux and new to OpenFOAM. I wasn't sure where to post this question on this board I hope its the right place.
I have been trying to do tutorial 2.2 on Openfoam.com's website. I typed in ls $FOAM_TUTORIALS/basic/potentialFoam/cylinder and that worked correctly. But then I typed in blockMesh afterward to generate the mesh but it gave me these results below. I did a couple of other tutorials and they worked successfully but this one gave me these results after I typed in blockMesh. Is there something i'm forgetting? I am using Bash Ubuntu 20.04 with OpenFOAM 1912 on windows 10. kendawgg22@kendawgg22:~/cylinder$ blockMesh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _f3950763fe-20191219 OPENFOAM=1912 Arch : "LSB;label=32;scalar=64" Exec : blockMesh Date : Nov 30 2020 Time : 00:25:14 Host : kendawgg22 PID : 505 I/O : uncollated Case : /home/kendawgg22/cylinder nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Creating block mesh from "system/blockMeshDict" Using #codeStream at line 19 in file "/home/kendawgg22/cylinder/system/blockMeshDict" Using #codeStream with "/home/kendawgg22/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" Could not load "/home/kendawgg22/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" /home/kendawgg22/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so: cannot open shared object file: No such file or directory Invoking wmake libso /home/kendawgg22/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6 wmake libso /home/kendawgg22/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6 /home/kendawgg22/OpenFOAM/OpenFOAM-v1912/wmake/wmake: line 497: make: command not found /home/kendawgg22/OpenFOAM/OpenFOAM-v1912/wmake/wmake: line 500: make: command not found wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /home/kendawgg22/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6 --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" file: /home/kendawgg22/cylinder/system/blockMeshDict From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&) in file db/dictionary/functionEntries/codeStream/codeStream.C at line 202. FOAM exiting |
|
December 15, 2020, 15:39 |
|
#2 |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 10 |
Hello,
Try to copy to your run folder. Code:
cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder $FOAM_RUN Foundation version of OpenFOAM will not let the user run the built-in tutorial in it's installed folder because it protects the built-in tutorials. Last edited by HappyS5; December 16, 2020 at 16:40. Reason: Clarification |
|
December 21, 2020, 03:24 |
|
#3 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
I was able to generate the blockMesh for two other tutorials the pitzDaily and the Cavity tutorial without using cp -r to copy to my run folder. I'll give it a try though.
|
|
December 22, 2020, 07:06 |
|
#4 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
When I typed that command line "cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder $FOAM_RUN" I received an error
"ls: cannot access '/home/kendawgg22/OpenFOAM/kendawgg22-v1912/run': No such file or directory/home/kendawgg22/OpenFOAM/OpenFOAM-v1912/tutorials/basic/potentialFoam/cylinder/:" I'm wondering if I can type "cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder ." in order to copy it to the desktop. Is that doing the same thing? |
|
December 22, 2020, 19:15 |
|
#5 | |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 10 |
Quote:
Do you have a OpenFOAM directory with a run run directory? You need one. |
||
December 23, 2020, 16:26 |
|
#6 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
I don't have one. I don't have a clue how to create one. I was able to run the blockMesh for two other tutorials the pitzDaily and the cavity tutorial for some reason. Is it just for the cylinder tutorial that this is required?
|
|
December 23, 2020, 17:43 |
|
#7 | |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 10 |
Quote:
Code:
mkdir OpenFOAM Code:
cd OpenFOAM Code:
mkdir run Code:
cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder . |
||
January 5, 2021, 05:50 |
|
#8 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
Back from my break. I tried those commands and I got the same error when I typed blockMesh again. I did two other tutorials and they worked just fine.
|
|
January 17, 2021, 01:15 |
|
#9 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
I tried using those commands to create the run directory and i still got the same error after i typed in blockMesh. I can also still do two other tutorials and they work just fine.
|
|
January 17, 2021, 18:20 |
|
#10 |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 10 |
Hello,
Scroll down from installation to "Getting Started". Try to setup and run pitzdaily. https://openfoam.org/download/8-ubuntu/ |
|
January 29, 2021, 03:23 |
|
#11 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
Thank you for your help sir. But it turned out that I was missing some lib files that I needed to download in order for those tutorials to work. Now that they have been installed the tutorial 2.2 is working just fine. Thanks again and i'm sorry for the late reply.
|
|
February 11, 2021, 02:09 |
|
#12 |
New Member
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 6 |
Well I thought I was getting somewhere but I got stuck again. I couldn't get it to run the simulation using potentialFoam. So I upgraded to OpenFOAM 2012 hoping that would help but now it won't even generate the blockMesh.
I have images attached. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sandia Flame D OpenFoam tutorial case - bad result? | Brandani | OpenFOAM Programming & Development | 8 | January 18, 2022 14:29 |
fluxRequired OpenFoam Versions SimpleFoam Taylor Couette flow tutorial | mörli | OpenFOAM Running, Solving & CFD | 0 | April 9, 2019 12:50 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
reactingFoam tutorial for OpenFOAM 2.1.0 | ToTh | OpenFOAM Running, Solving & CFD | 1 | September 3, 2012 05:43 |
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread | wyldckat | OpenFOAM Installation | 2 | July 11, 2012 17:01 |