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

$ wmakeFilesAndOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2024, 07:08
Default $ wmakeFilesAndOptions
  #1
New Member
 
Muhammad Azeem Khan
Join Date: May 2024
Posts: 2
Rep Power: 0
Muhammad Azeem Khan is on a distinguished road
Hi,

I am new to OpenFoam as well as programming itself for that matter. I have come across a problem with $wmakeFilesAndOptions command. I have read that this command generates the Make folder and populates it with files and options files. However, when I run this command the bash returns "command not found".

I dont know if this command even exists, or one should make these files manually using nano or gedit, in any case a command that produces the template file automatically is a good starting point.


Looking forward for support of friend on this forum,
Muhammad Azeem
Muhammad Azeem Khan is offline   Reply With Quote

Old   May 9, 2024, 13:06
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It is way better to make the files yourself. But given that you have already attempted the lazy shortcut, I assume, you are not interested in doing it the hard way and like the lazy way.

It is technically a script that is packaged with newer foams. So assuming you have read something that mentions this script, I assume you have installed the correct build of foam via the same reading.

Regarding the problem. What commands do work? Did you even source the basrc? Given that you have no idea that a script even exists or not, I assume you did not source the environment. Because if you did, you would know. What happens for example if you run Allwmake? wmake? wclean? Also a command not found error?
LuckyTran is offline   Reply With Quote

Old   May 10, 2024, 06:04
Default
  #3
New Member
 
Muhammad Azeem Khan
Join Date: May 2024
Posts: 2
Rep Power: 0
Muhammad Azeem Khan is on a distinguished road
I am beginner to OpenFoam so there is no shame in admitting that I don't know it at all. I have installed it according to procedure described in the following link

https://www.openfoam.com/download/op...-on-windows-10

I eventually have realized that it is better to make them manually, but still if one can do it fast it is always better, also the tutorial pdf and videos which I got the chance to look at are pre 2312 version. This means that I am using outdated examples and there is a chance that this command is changed a bit. After using manual options and files Files in Make directory when I ran the wmake and the code it ran and gave the results. When I input Allwmake it gives command not found.

I have tried to run source bashrc in openfoam installation directory and it gives the following message.

azeem108@DESKTOP-PU1CRGF:/mnt/c/users/Dell/Appdata/roaming/esi-opencfd/openfoam$ source bashrc
-bash: bashrc: No such file or directory
Muhammad Azeem Khan is offline   Reply With Quote

Old   May 10, 2024, 07:28
Default
  #4
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
Hello,
You are sourcing OpenFOAM’s bashrc file from the wrong folder.
OpenFOAM's bashrc file will be located in the etc/ folder. So you should go to that folder and then type source bashrc (check the link that you have posted once again)

Also, check out this video: https://www.youtube.com/watch?v=j9fi_kHJRsM
(Sourcing bashrc is at time stamp 5:00)

Thanks
Severus 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



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