# Unable to open OpenFOAM case files with paraview in windows file system

**URL:** https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382
**Category:** ParaView Support
**Created:** [November 29, 2023, 5:51pm UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382 "2023-11-29T17:51:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![askhovik](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@askhovik](https://discourse.paraview.org/u/askhovik)
#### Post date: [November 29, 2023, 5:51pm UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382/1 "2023-11-29T17:51:44Z")

</div>

I am using OpenFOAM in wsl on windows. I have installed ParaView 5.12.1 for the native windows environment. I get an error when I try to open some types of case files. The error occurs for cases where the mesh in polyMesh is in binary format. Ascii format seems to open fine. This error only occurs for files that are in the windows part of the system, so folder locations such as  
/mnt/c/Users//airfoil

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3a0279e56a20bf9efeb90f2ee29259bc7f935090.png)

If I put the case file in the root directory (which on windows would be \wsl.localhost\Ubuntu\home\<username\>) AND I make sure linux has read/write/delete access (which I give using chmod -R +rwx airfoil/) then Paraview is able to open the case just fine.

I have tried navigating to /mnt/c/Users// and then running chmod -R +rwx airfoil/, but this does not help. It is important for me to be able to open the files even though they are in the windows part of the system.

It looks to me like paraview is trying to use vtkPOpenFOAMReader, but that it can’t find the directory it needs, because it tries to access it from the Linux root folder. I don’t know how to remedy this problem.

Any help would be appreciated!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 30, 2023, 8:06am UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382/2 "2023-11-30T08:06:23Z")

</div>

> [@askhovik](#):
>
> I am using OpenFOAM in wsl on windows

> his error only occurs for files that are in the windows part of the system, so folder locations such as  
> /mnt/c/Users//airfoil

Then why using ParaView in WSL ? Just install the binary version of ParaView for Windows.  
[https://paraview.org/download](https://paraview.org/download)

As a reminder, using ParaView in WSL is not tested nor officialy supported.

---

<div class="post-metadata">

### Author: ![askhovik](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@askhovik](https://discourse.paraview.org/u/askhovik)
#### Post date: [November 30, 2023, 9:11am UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382/3 "2023-11-30T09:11:45Z")

</div>

Thanks for your reply!  
For clarity, I am already using ParaView for windows, downloaded from the exact same page as you linked.

My issue is that Paraview (for windows) cannot open .foam files, unless they lie in the wsl directory (which is \wsl.localhost\Ubuntu\home\<username\>)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 30, 2023, 1:25pm UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382/4 "2023-11-30T13:25:01Z")

</div>

So are you saying that ParaView Windows binary release is unabled to open .foam file that lies on the Windows filesystem ?

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [December 1, 2023, 4:10am UTC](https://discourse.paraview.org/t/unable-to-open-openfoam-case-files-with-paraview-in-windows-file-system/13382/5 "2023-12-01T04:10:57Z")

</div>

So you’re saying that Paraview on Windows cannot open an OpenFOAM file located in the WSL path `/mnt/c/Users//airfoil` but it can open the same file name and path if the file is saved in ASCII (text) format?
