CfdOF can not start ParaView

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

CfdOF can not start ParaView

Post by ReneSci »

Just installed the latest FreeCad 0.20.1 and updated CfdOF, ParaView etc.
Now it seems like CfdOF can not start ParaVew from within the CfdOF gui.

I get this messages;
---------------
01:06:16 Traceback (most recent call last):
01:06:16 File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\TaskPanelCfdSolverControl.py", line 302, in openParaview
01:06:16 self.open_paraview = CfdTools.startParaview(case_path, script_name, self.consoleMessage)
01:06:16 File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\CfdTools.py", line 1227, in startParaview
01:06:16 CfdConsoleProcess.removeAppimageEnvironment(env)
01:06:16 AttributeError: type object 'CfdConsoleProcess' has no attribute 'removeAppimageEnvironment'
---------------
In the Preferences/CfdOF/ParaView executable path, I have put
C:/Program Files/ParaView 5.10.1-Windows-Python3.9-msvc2017-AMD64/bin/paraview.exe

The other directory fields are left empty.

Does this make any sense to you ?

---------

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: Danish/Denmark (da_DK)
Installed mods: 
  * A2plus 0.4.56a
  * ArchTextures
  * Assembly4 0.12.3
  * CfdOF 1.17.8
  * Defeaturing
  * Dracula 0.0.2
  * ExtremeProDark 1.0.4
  * IconThemes
  * lattice2 1.0.0
  * Manipulator 1.4.9
  * MeshRemodel 1.8919.0
  * parts_library
  * Plot 2022.4.17
  * sheetmetal 0.2.56
  * workfeature
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Re: CfdOF can not start ParaView

Post by ReneSci »

Is there a way to start ParaView manually and read a simulation result ?
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CfdOF can not start ParaView

Post by thschrader »

ReneSci wrote: Sat Sep 03, 2022 5:29 am Is there a way to start ParaView manually and read a simulation result ?
After running the case, doubleclick on the pv.foam file, paraview opens, select decomposed case.
You can do the same with the meshcase.
paraview001.JPG
paraview001.JPG (40.78 KiB) Viewed 1178 times
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CfdOF can not start ParaView

Post by oliveroxtoby »

ReneSci wrote: Fri Sep 02, 2022 11:15 pm 01:06:16 CfdConsoleProcess.removeAppimageEnvironment(env)
01:06:16 AttributeError: type object 'CfdConsoleProcess' has no attribute 'removeAppimageEnvironment'
My mistake. It should be working now - please update your workbench.
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Re: CfdOF can not start ParaView

Post by ReneSci »

Yes, it works again.
Thank you.
Also - thank you for the info on starting ParaView manually. Could be useful sometimes.
Post Reply