cfdOF install

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
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

cfdOF install

Post by ljb »

I'm not a total beginner, but pretty close.

Brief history.
First install of FC about four or five days ago.
I removed and re-installed FC three days ago
(it crashed w/o message when I pushed a button)
(FC offered to recover at restart, but that failed - and FC would not restart again)

Another crash-after-button-push the next day resulted in a successful recovery.

No crashes since.

Yesterday I installed the CFDof workbench using the addon mgr.
End history.

This is my first attempt to run a CFD analysis with FreeCAD. I'm trying to do the elbow tutorial.
Things seem to work fine 'til I try to build the mesh.

From the CFD Mesh | Status window in the Combo View | Task tab

Code: Select all

0.0: Starting meshing ...
0.0: Exporting mesh region data ...
0.0: Error: OpenFOAM installation path not set and not found
I updated CFDof with addon mgr a few hours ago.
Error is still there.

********************

Here are the things you request with a problem report.

HELP|ABOUT
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13528 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 5c3f7bf8ec51e2c7187789f7edba71a7aa82a88b
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

REPORT VIEW

Code: Select all

Starting meshing ...

  Part to mesh: Name --> Pad,  Label --> Pad, ShapeType --> Solid
  CharacteristicLengthMax: 800.0
  ElementDimension: 3D
  No mesh regions.
Populating mesh dictionaries in folder c:\users\lb17\appdata\local\temp\meshCase
Traceback (most recent call last):
  File "C:\Users\LB17\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdMesh.py", line 237, in runMeshProcess
    cart_mesh.write_mesh_case()
  File "C:\Users\LB17\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 600, in write_mesh_case
    'TranslatedFoamPath': CfdTools.translatePath(CfdTools.getFoamDir()),
  File "C:\Users\LB17\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 393, in getFoamDir
    raise IOError("OpenFOAM installation path not set and not found")
IOError: OpenFOAM installation path not set and not found
PYTHON CONSOLE

Code: Select all

Python 2.7.14 (default, Jan 16 2018, 16:11:42) [MSC v.1800 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import WebGui
>>> from StartPage import StartPage
>>> 
>>> class WebPage(object):
>>>     def __init__(self):
>>>         self.browser=WebGui.openBrowserWindow('Start page')
>>>         self.browser.setHtml(StartPage.handle(), App.getResourceDir() + 'Mod/Start/StartPage/')
>>>     def onChange(self, par, reason):
>>>         if reason == 'RecentFiles':
>>>             self.browser.setHtml(StartPage.handle(), App.getResourceDir() + 'Mod/Start/StartPage/')
>>> 
>>> class WebView(object):
>>>     def __init__(self):
>>>         self.pargrp = FreeCAD.ParamGet('User parameter:BaseApp/Preferences/RecentFiles')
>>>         self.webPage = WebPage()
>>>         self.pargrp.Attach(self.webPage)
>>>     def __del__(self):
>>>         self.pargrp.Detach(self.webPage)
>>> 
>>> webView=WebView()
>>> 
>>> import FreeCAD
>>> FreeCAD.open(u"C:/Users/LB17/Documents/freeCAD_0.17/test_elbow_1.FCStd")
>>> App.setActiveDocument("test_elbow_1")
>>> App.ActiveDocument=App.getDocument("test_elbow_1")
>>> Gui.ActiveDocument=Gui.getDocument("test_elbow_1")
>>> 
>>> FreeCAD.ActiveDocument.Pad_Mesh.CharacteristicLengthMax = '800 mm'
>>> FreeCAD.ActiveDocument.Pad_Mesh.MeshUtility = 'gmsh'
>>> FreeCAD.ActiveDocument.Pad_Mesh.ElementDimension = '3D'
>>> FreeCAD.ActiveDocument.Pad_Mesh.CellsBetweenLevels = 3
>>> FreeCAD.ActiveDocument.Pad_Mesh.EdgeRefinement = 0
>>> FreeCAD.ActiveDocument.Pad_Mesh.PointInMesh = {u'y': 0.0, u'x': 0.0, u'z': 0.0}
>>> 
>>> FreeCAD.ActiveDocument.Pad_Mesh.CharacteristicLengthMax = '800 mm'
>>> FreeCAD.ActiveDocument.Pad_Mesh.MeshUtility = 'gmsh'
>>> FreeCAD.ActiveDocument.Pad_Mesh.ElementDimension = '3D'
>>> FreeCAD.ActiveDocument.Pad_Mesh.CellsBetweenLevels = 3
>>> FreeCAD.ActiveDocument.Pad_Mesh.EdgeRefinement = 0
>>> FreeCAD.ActiveDocument.Pad_Mesh.PointInMesh = {u'y': 0.0, u'x': 0.0, u'z': 0.0}
>>>
Last edited by ljb on Wed Sep 05, 2018 12:28 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: cfdOF install

Post by chrisb »

Hi ljb, welcome to the forum.
I moved your post to the CFD forum. For code and messages we usually use the code tags </>. They increase readability and preserve indentations. You can edit your post and fix it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Syres
Veteran
Posts: 2900
Joined: Thu Aug 09, 2018 11:14 am

Re: cfdOF install

Post by Syres »

This would be my first step on diagnosis, in Edit menu > Preferences > CFD, does it look like screenshot below with all the items installed and after running the Dependency Checker stating No missing dependencies detected:
CFD_DependencyCheck.jpg
CFD_DependencyCheck.jpg (138.46 KiB) Viewed 9564 times
Just for info, it's not a two minute job to install all the required components.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14555 (Git)
Build type: Release
Branch: master
Hash: 7d8e53aaab17961d85c5009de34f69f2af084e8b
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

Re: cfdOF install

Post by ljb »

(thank you chrisb, thank you syres)


There are differences - a screen shot of my preferences panel is attached.

Just for info, it's not a two minute job to install all the required components.
OK, makes sense. But ...

With a tool like Addon Manager, I would expect

either
* It does everything
or
* it does some things, then tells you what else has to happen

Did I miss something?
Attachments
preferences_v1.png
preferences_v1.png (74.36 KiB) Viewed 9548 times
Syres
Veteran
Posts: 2900
Joined: Thu Aug 09, 2018 11:14 am

Re: cfdOF install

Post by Syres »

It's nearly a year since I did my first Cfd WB installation (the predecessor to CfdOF WB) that I can't just remember where I saw the installation steps but today's installation information is available at https://github.com/jaheyns/CfdOF#getting-started. I think it would be unwise for the workbench to hold all the installations as it would be over half a Gb, so it's a hand-in-hand situation where the WB works with the required additional software with FreeCAD.

Hope that helps
John
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

Re: cfdOF install

Post by ljb »

Thanks again

I'll let you know
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

Re: cfdOF install

Post by ljb »

While the files are installing, I am browsing the 'get started' page.

I noticed under the Features heading that only incompressible flow is listed as currently available .

I remember seeing compressible flow also active (not grayed) when I was setting up the elbow case.

Is this real, or just an artifact of my incomplete setup?
Syres
Veteran
Posts: 2900
Joined: Thu Aug 09, 2018 11:14 am

Re: cfdOF install

Post by Syres »

I'll let Oliver confirm but possibly the Features section is slightly out of date as there has been a number of changes recently including the HiSA Solver being added.

Just for info, my knowledge is only just up from a new user when it comes to the CFD side. I only get chance to do a few weeks a year to try and build up my (lack of) knowledge. This whole 3D Opensource arena has been a steep learning curve over the last 14 months with FreeCAD (the most intuitive), OpenFOAM, Paraview and (the most difficult) Blender.
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

Re: cfdOF install

Post by ljb »

Should I be concerned?

It took about 20 minutes for the progress bar on my BlueCFD-Core install to reach the neighborhood of 40%

(bar label = Installing MS-MPI 7.1 into Windows)

In the last two hours the bar has not moved (I'm using the corner of another window as a marker), other than the white shading that moves across the green bar every second or two.

I'm installing from the Preferences panel.

Should I be concerned?


*** Syres's latest post just hit ***

Thanks for the heads up. You are still ahead of me in most of this, and I repeat my thanks for your help ( and that of the others).

I've climbed enough learning curves to know that an amazing number of WTFs have this annoying habit of just going away if you butt your head against the wall enough times.

But it still never hurts to make observations and ask questions,

BTW, another ten minutes and no change in progress.

edit: MS-MOI to MS-MPI
Last edited by ljb on Wed Sep 05, 2018 4:36 pm, edited 1 time in total.
ljb
Posts: 43
Joined: Tue Sep 04, 2018 3:56 pm

Re: cfdOF install

Post by ljb »

While I'm twiddling my thumbs ...

about those WTFs that seem to just go away.

Have you ever had that happen to you? You are hot on the trail of a bug, just about to pin it down, and things suddenly start working like they should have all along.

A number of my colleagues over the years have had this experience.

I have a theory - the 'Net went Self Aware sometime in the mid 1980s. Almost as soon as there was a 'Net.

Lucky for us, it has the personality of a practical joker instead of a tyrant. I can visualize it looking over my shoulder (or yours) as it stops messing with whatever I'm doing. Then it pokes itself in the ribs and giggles.
Post Reply