CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Unable to use ideasUnvToFoam command (https://www.cfd-online.com/Forums/openfoam-pre-processing/238520-unable-use-ideasunvtofoam-command.html)

CHUMMAR September 17, 2021 03:46

Unable to use ideasUnvToFoam command
 
1 Attachment(s)
I have been trying to convert a meshed file with the help of Salome to Openfoam. When i tried to look up videos on it all videos n threads explained it out using ideasUnvToFoam command. But for me it is showing as an invalid command. Could anyone PLS help me out. I am very new to Salome-Openfoam interface :confused:

Yann September 21, 2021 05:44

Hi Amal,

It looks like your OpenFOAM environment is not loaded. Have you sourced it?

What does it say if your type "foamVersion" or "icoFoam"?

Yann

Tian Hongkang March 4, 2022 20:51

ideasUnvToFoam pipe.unv
 
Hi, I have a problem with grid conversion. When I tried to convert the Unv grid file exported from Salome to a format supported by OpenFoam, it got the following error. Can someone give me a hand?
Thank you!

thk@LAPTOP-04QGRRSQ:~/run/cavity$ ls
0 constant logs pipe.unv system
thk@LAPTOP-04QGRRSQ:~/run/cavity$ ideasUnvToFoam pipe.unv
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 7-3bcbaf946ae9
Exec : ideasUnvToFoam pipe.unv
Date : Mar 05 2022
Time : 09:31:20
Host : "LAPTOP-04QGRRSQ"
PID : 677
I/O : uncollated
Case : /home/thk/run/cavity
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR:
Cannot open file "pipe.unv"

From function int main(int, char**)
in file ideasUnvToFoam.C at line 679.

FOAM exiting

Chance s October 24, 2023 18:02

OpenFOAM Meshing & Mesh Conversion
 
Hello,
i need your quick support on this command <ideasUnvToFoam>
i want to convert this unv file but am getting error of command not foun
yet I alread installed whole softwre

chance@DESKTOP-Chance:~$ ls
OpenFOAM elbow_joint
chance@DESKTOP-Chance:~$ OpenFOAM
OpenFOAM: command not found
chance@DESKTOP-Chance:~$ cd OpenFOAM/
chance@DESKTOP-Chance:~/OpenFOAM$ ls
PROO chance-v2306
chance@DESKTOP-Chance:~/OpenFOAM$ cd PROO/
chance@DESKTOP-Chance:~/OpenFOAM/PROO$ ideasUnvToFoam Mesh_1 for CAD1.unv
Command 'ideasUnvToFoam' not found, but can be installed with:
sudo apt install openfoam[/QUOTE]

Yann October 25, 2023 03:13

Hello,

Before using OpenFOAM-related commands, you need to load the OpenFOAM environment by sourcing the bashrc file located in your OpenFOAM installation directory.

Something like:
Code:

source [PATH_TO_YOUR_OPENFOAM_INSTALLATION_DIRECTORY]/etc/bashrc
The OpenFOAM installation directory depends on the OpenFOAM version you are using. (and the way you installed OpenFOAM)

Yann


All times are GMT -4. The time now is 07:21.