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

OpenFOAM tutorial 2.2 question?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Kendawgg22

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2020, 01:57
Default OpenFOAM tutorial 2.2 question?
  #1
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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
Kendawgg22 is offline   Reply With Quote

Old   December 15, 2020, 14:39
Default
  #2
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Hello,

Try to copy to your run folder.

Code:
cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder $FOAM_RUN
Then change to that folder, cd to case folder (cylinder), and run blockMesh.

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 15:40. Reason: Clarification
HappyS5 is offline   Reply With Quote

Old   December 21, 2020, 02:24
Default
  #3
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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.
Kendawgg22 is offline   Reply With Quote

Old   December 22, 2020, 06:06
Default
  #4
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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?
Kendawgg22 is offline   Reply With Quote

Old   December 22, 2020, 18:15
Default
  #5
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Quote:
Originally Posted by Kendawgg22 View Post
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?

Do you have a OpenFOAM directory with a run run directory? You need one.
HappyS5 is offline   Reply With Quote

Old   December 23, 2020, 15:26
Default
  #6
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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?
Kendawgg22 is offline   Reply With Quote

Old   December 23, 2020, 16:43
Default
  #7
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Quote:
Originally Posted by Kendawgg22 View Post
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?
It is a common directory set up to keep files related to OpenFOAM.

Code:
mkdir OpenFOAM
Code:
cd OpenFOAM
Code:
mkdir run
Then you can cd to the run directory and use:

Code:
cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder .
HappyS5 is offline   Reply With Quote

Old   January 5, 2021, 04:50
Default
  #8
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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.
Kendawgg22 is offline   Reply With Quote

Old   January 17, 2021, 00:15
Default
  #9
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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.
Kendawgg22 is offline   Reply With Quote

Old   January 17, 2021, 17:20
Default
  #10
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Hello,

Scroll down from installation to "Getting Started". Try to setup and run pitzdaily. https://openfoam.org/download/8-ubuntu/
HappyS5 is offline   Reply With Quote

Old   January 29, 2021, 02:23
Default
  #11
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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.
HappyS5 likes this.
Kendawgg22 is offline   Reply With Quote

Old   February 11, 2021, 01:09
Default
  #12
New Member
 
Ken Johnson
Join Date: Jun 2020
Posts: 23
Rep Power: 5
Kendawgg22 is on a distinguished road
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.
Attached Images
File Type: jpg Screenshot (1).jpg (65.0 KB, 4 views)
File Type: jpg Screenshot (6).jpg (107.2 KB, 2 views)
Kendawgg22 is offline   Reply With Quote

Reply


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


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 13:29
fluxRequired OpenFoam Versions SimpleFoam Taylor Couette flow tutorial mörli OpenFOAM Running, Solving & CFD 0 April 9, 2019 11:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
reactingFoam tutorial for OpenFOAM 2.1.0 ToTh OpenFOAM Running, Solving & CFD 1 September 3, 2012 04:43
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01


All times are GMT -4. The time now is 19:50.