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

[Other] Gedit and blueCFD-Core-2017

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Doug_Jansen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 16:45
Default Gedit and blueCFD-Core-2017
  #1
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
Hi Guys:
I am an OpenFoam newbie having just installed blueCFD-Core-2017
on my windows 7 PC. I notice that no text editor is included and I wonder if anyone could tell me how to download and install Gedit.
Thanks

Further comment - Jan 25, 2018
Although Notepad2.exe is installed in the Addons folder when I type 'nano' at the $ prompt
I get the message 'bash: notepad2 command not found'.

Last edited by Doug_Jansen; January 25, 2018 at 14:50.
Doug_Jansen is offline   Reply With Quote

Old   January 25, 2018, 12:09
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Douglas Jansen and welcome to the forum!

If I remember correctly, there is a text editor that has always been provided with all blueCFD-Core versions, namely Notepad2 is installed by default (you'll find it if you take a look into the release notes: http://bluecfd.github.io/Core/ReleaseNotes/ ) and you can access it at least through 3 different ways:
  1. Through Windows Explorer, you can right click on the file you want to edit and choose the entry "Open with Notepad2".
  2. Or through the blueCFD-Core terminal, use the alias nano, for example:
    Code:
    nano 0/p
    for opening the file "0/p".
  3. Or (again) through the blueCFD-Core terminal, use the full name notepad2:
    Code:
    notepad2 0/p
Unfortunately we haven't had the time needed to bring our User Guide from blueCFD-Core 2.3 to a wiki-format, nor to update it to the latest versions of blueCFD-Core, hence the lack of a User Guide


That said, we do have a couple of tutorial videos already for blueCFD-Core, both available on the User Guide page: http://bluecfd.github.io/Core/UserGuide/ - Go to the section "Getting started with blueCFD-Core" and you should find the ~40 minute video for blueCFD-Core 2016, but it should still be nearly the same as how blueCFD-Core 2017 works.


Best regards,
Bruno
__________________

Last edited by wyldckat; January 25, 2018 at 19:08. Reason: added missing line break
wyldckat is offline   Reply With Quote

Old   January 25, 2018, 19:18
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Doug_Jansen View Post
Further comment - Jan 25, 2018
Although Notepad2.exe is installed in the Addons folder when I type 'nano' at the $ prompt
I get the message 'bash: notepad2 command not found'.
Quick question: If you start a new blueCFD-Core terminal and run the following command:
Code:
echo $PATH
does it give you something like what is shown in the attached image?

Here is the text I copied from the terminal, but doesn't show the line breaks here, because the raw output of the "PATH" variable does not have any line breaks:
Code:
Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...
Environment is now ready. Notes:
   - You can change between installed versions by running: ofmenu
   - You can change to other predefined versions by running: ofmenuNew

Bruno Santos@laptop MINGW64 OpenFOAM-5.x ~
$ echo $PATH
/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy:
And next time, please post a new comment, otherwise I could have missed your latest information.
Attached Images
File Type: jpg Example_echo_PATH.jpg (106.2 KB, 12 views)
wyldckat is offline   Reply With Quote

Old   January 25, 2018, 20:25
Default Notepad2 cannot be launched from within blueCFD-Core-2017
  #4
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
when i type echo $PATH I get

/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy

What should I do next?
Doug_Jansen is offline   Reply With Quote

Old   January 25, 2018, 20:37
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: This is very strange, because the output is identical...
What do the following two commands give you?
Code:
which notepad2
which notepad2.exe

Side note:
What I meant by "write a new comment", was that you can write a new post in the same discussion thread. I've moved your latest post to this thread, so that we can keep the discussion here.
wyldckat is offline   Reply With Quote

Old   January 25, 2018, 23:12
Default
  #6
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
$ which notepad2
which: no notepad2 in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy)

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ which notepad2.exe
which: no notepad2.exe in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy)

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$
Doug_Jansen is offline   Reply With Quote

Old   January 26, 2018, 09:39
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
This is very very strange... OK, please let me know what the following commands give you:
Code:
ls -l /home/ofuser/AddOns
ls -l /home/ofuser/AddOns/notepad2
mount | grep -i AddOns
wyldckat is offline   Reply With Quote

Old   January 26, 2018, 10:07
Default
  #8
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ ls -1 /home/ofuser/AddOns
MSMPI71_MSMpiSetup.exe
Notepad2
old_ParaView
ParaView

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ ls -1 /home/AddOns/notepad2
ls: cannot access '/home/AddOns/notepad2': No such file or directory

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ ls -1 /home/AddOns/Notepad2
ls: cannot access '/home/AddOns/Notepad2': No such file or directory

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ mount | grep -i AddOns
C:/PROGRA~1/BLUECF~1/AddOns on /home/ofuser/AddOns type ntfs (binary,user)

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$
Doug_Jansen is offline   Reply With Quote

Old   January 26, 2018, 10:32
Default
  #9
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
Sorry I entered the second command incorrectly.
Here is the correct one

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ -l /home/ofuser/Addons/notepad2
bash: -l: command not found
Doug_Jansen is offline   Reply With Quote

Old   January 26, 2018, 18:57
Default
  #10
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
Once more from the beginning

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ ls -1 /home/ofuser/AddOns
MSMPI71_MSMpiSetup.exe
Notepad2
old_ParaView
ParaView

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ ls -1 /home/ofuser/AddOns/notepad2
ls: cannot access '/home/ofuser/AddOns/notepad2': No such file or directory

Owner@Owner-PC MINGW64 OpenFOAM-5.x ~
$ mount | grep -i AddOns
C:/PROGRA~1/BLUECF~1/AddOns on /home/ofuser/AddOns type ntfs (binary,user)
Doug_Jansen is offline   Reply With Quote

Old   January 27, 2018, 07:13
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Sorry for the delay, had a complicated day yesterday...

Something is very wrong in your installation, because the folder "Notepad2" is meant to be called "notepad2".
Did you let blueCFD-Core install Notepad2 on its own, or did you install it yourself manually after blueCFD-Core finished its own installation?

Because there should not be any error messages given when trying to list the content of the folder "Notepad2", given that the folder should be accessible for any user, not just for the administrator, which is what I suspect is happening here.
wyldckat is offline   Reply With Quote

Old   January 27, 2018, 13:30
Default
  #12
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
The folders in the AddOns folder, namely ParaView and Notepad2 were installed at the same time I installed blueCFD-Core-2017.
Doug_Jansen is offline   Reply With Quote

Old   January 30, 2018, 11:39
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Sorry again for the delay...

This is a rather unusual situation for me, because I don't understand exactly why the folder "Notepad2" is not accessible to you through the blueCFD-Core (MSys2) terminal.

The only situations that come to mind are the following:
  1. Perhaps someone else installed blueCFD-Core in the computer you are using, using another account name?
  2. Is blueCFD-Core installed somewhere other than the usual locations?
    • The usual locations are "C:\Program Files" or "C:\blueCFD-Core", where "C:" could be another drive letter such as "D:".
  3. Did you turn off any of the installation options in the installation step "Additional Tasks" shown in the attached image?
Attached Images
File Type: png AdditionalTasksStep.png (16.1 KB, 4 views)
wyldckat is offline   Reply With Quote

Old   January 30, 2018, 21:32
Default
  #14
New Member
 
Douglas Jansen
Join Date: Jan 2018
Posts: 8
Rep Power: 8
Doug_Jansen is on a distinguished road
I uninstalled all of blueCFD-Core-2017, rebooted the computer, reinstalled blueCFD-Core-2017 and rebooted again. Everything now works. I can call Notepad2 to edit blockMeshDict or any other text file. I modified the code to open ParaView 4.4.0 since my graphics card will not support ParaView 5.2.1. I was able to run the cavity tutorial and open results with ParaView 4.4.0. IT ALL WORKS. Thanks so much for all your help. I can now continue with the other tutorials.
wyldckat likes this.
Doug_Jansen is offline   Reply With Quote

Old   January 31, 2018, 05:31
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I'm very glad it's all finally working! And many thanks for your feedback!

I'm still finding it all very strange, but I've opened an issue for this on our issue tracker to have a look into in the near future: https://github.com/blueCFD/Core/issues/84
wyldckat is offline   Reply With Quote

Reply

Tags
gedit


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 14:37.