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

DAT to Mesh in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By quincybatten

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2022, 13:32
Default DAT to Mesh in OpenFOAM
  #1
New Member
 
Silver Blaze
Join Date: Dec 2021
Posts: 20
Rep Power: 4
silver.blaze is on a distinguished road
Dear Altruist,

I am a newbie in OpenFOAM. I am using WSL for OpenFOAM. I wanna mesh a DAT file in terminal.

I am going to follow this: http://grantingram.org/download.html and http://grantingram.org/download/gmshtutorial2012.pdf

But when I type the following command : python dat2gmsh.py Vertices.dat
the output is: zsh: command not found: python

I have installed Python in WSL.

What can I do now?

Thanks in advance!
silver.blaze is offline   Reply With Quote

Old   February 14, 2023, 01:12
Default
  #2
New Member
 
quincy batten
Join Date: Feb 2023
Posts: 1
Rep Power: 0
quincybatten is on a distinguished road
The error message appears when the user tried to execute the command "python" in the terminal while using the Zsh shell, but Zsh could not find the Python executable. This can happen if Python is not installed on the system or if the system's PATH environment variable does not include the directory where the Python executable is located. The user may need to install Python or update their PATH variable to include the directory where Python is installed.

To solve the zsh: command not found: python error, you can try the following steps:

Install Python on your system if it's not already installed.

Check that the PATH environment variable includes the directory where Python is installed. You can do this by running the command echo $PATH in the terminal and verifying that the Python directory is listed. If it's not listed, you will need to add it to your PATH.

If Python is installed in a non-standard location, you can add the directory to your PATH by editing the shell configuration file (e.g. ~/.zshrc for Zsh) and adding a line like export PATH="/path/to/python:$PATH". Be sure to replace "/path/to/python" with the actual path to the Python directory.

If the above steps do not work, you can try reinstalling Python or reinstalling your shell.
silver.blaze likes this.
quincybatten is offline   Reply With Quote

Reply

Tags
dat, gmsh, mesh, naca, openfoam


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
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 45 October 16, 2024 18:26
[Salome] Script for converting a mesh from Salome-Platform to OpenFOAM nsf OpenFOAM Meshing & Mesh Conversion 86 February 8, 2023 11:30
[Commercial meshers] About the Commercial and Closed Source Meshers discussed here wyldckat OpenFOAM Meshing & Mesh Conversion 3 July 22, 2020 23:09
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17


All times are GMT -4. The time now is 05:38.