CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   generating .foam or .OpenFOAM file with openfoam installed on windows 7 (https://www.cfd-online.com/Forums/openfoam-installation/131418-generating-foam-openfoam-file-openfoam-installed-windows-7-a.html)

vasava March 14, 2014 08:26

generating .foam or .OpenFOAM file with openfoam installed on windows 7
 
I have managed to install openfoam2.1.x on windows 7. The tutorial example runs fine without any errors. Now I want to know how I could visualize the results on windows.

I already have paraview installed. I installed separately so it 'paraFoam' command does not work. Also the 'touch' command is also not working as I am in windows.

Anyone??

wyldckat March 15, 2014 05:32

Quick answer: On Windows, you can use this command:
Code:

echo. > case.foam

vasava March 17, 2014 01:25

Thanks I will try that.

vasava March 20, 2014 04:39

Quote:

Originally Posted by wyldckat (Post 480173)
Quick answer: On Windows, you can use this command:
Code:

echo. > case.foam

This worked fine. Thank you.

uuivw May 22, 2014 10:35

Quote:

Originally Posted by wyldckat (Post 480173)
Quick answer: On Windows, you can use this command:
Code:

echo. > case.foam

I just try it , and it let me select an application to open the file ,but paraview remind me that "Got unknown argument ",what's wrong~~

wyldckat May 24, 2014 02:57

Hi Liaoning,

Quote:

Originally Posted by uuivw (Post 493619)
I just try it , and it let me select an application to open the file ,but paraview remind me that "Got unknown argument ",what's wrong~~

If you were to run this command:
Code:

paraview -help
in the command line, it should give you a list of options that can be used from the command line. In other words, the way you've done for associating ParaView to the file format ".foam", assumes that it could be launched like this:
Code:

paraview file.foam
Problem is that ParaView needs an additional argument for it to work, like this:
Code:

paraview --data=file.foam
Since it's a bit complicated to explain how this can now be fixed, it's easier to suggest the following steps:
  1. Start ParaView from the Windows Start Menu.
  2. In the command line where you are working with the case, run:
    Code:

    explorer .
    Notice the space and dot at the end, which will tell Windows Explorer to open in the current folder where the command line is working on.
  3. In Windows Explorer, select the full address of the folder and copy it.
  4. Go to ParaView, menu "File -> Open", paste the address in the file name edit box and press Enter. Then select the ".foam" file and click "Open".
Best regards,
Bruno


All times are GMT -4. The time now is 14:23.