CfdOF workbench information: Please read this first

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

Locked
User avatar
oliveroxtoby
Posts: 645
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

CfdOF workbench information: Please read this first

Post by oliveroxtoby »

Introduction

The CfdOF workbench aims to help users set up and run CFD analyses using the OpenFOAM® solver (www.openfoam.org, www.openfoam.com).

Please refer to the Readme file as this is the primary source of information, particularly on installing the workbench and its dependencies.

Disclaimer:
This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software via www.openfoam.com, and owner of the OPENFOAM® and OpenCFD® trade marks

Reporting problems

When asking for help or reporting a problem, please note the following:
  • Developers may only have time to respond to clearly demonstrated bugs. Of course, you are free to ask for help from community members, but it is unlikely that an issue with the workbench will be looked into unless you have taken time to demonstrate that there is a fault with the software rather than with the installation or problem setup.
  • If at all possible please attach a saved .FCstd file and instructions for reproducing your problem from the saved state. This will greatly increase the chances of the issue being looked at by someone. The easier an issue can be reproduced, the easier it is to fix.
  • Please re-do all steps from scratch to check the reproducibility of the problem from the saved state that you provide: Write mesh; Run mesher; Write case; Run solver. If changes are made to the model between generating the mesh and running the solver, the cases can get out of sync.
  • Provide all possible output for debugging purposes:
    • In FreeCAD, go to Edit | Preferences | Output window
      and tick all five tick boxes on that panel (Record log messages, Record warnings, Record error messages, Redirect internal Python errors, Redirect internal Python output), and click OK.
    • Then, click View | Panels and tick Report View as well as Python Console.
    • Now re-create the error and copy any output and error messages which appear on either the report view or the python console, not just the last line or error. A screenshot is OK if all the relevant output is shown.
  • Go to Help | About FreeCAD and click "Copy to Clipboard" and paste this information into your message.
  • Please make sure you have read and followed the instructions in the Readme file, particularly for installation issues.
  • Please ensure that OpenFOAM is correctly installed before reporting an issue with CfdOF. In Windows, CfdOF provides an installation link to the OpenCFD MinGW package for convenience. However, any issues with this installation are outside the control of the CfdOF workbench. Alternatively, BlueCFD-Core is also presently supported by CfdOF, as well as the OpenCFD Docker package which can be used as a fallback in case of problems with the default installation.
  • Make sure that the CfdOF workbench is up to date by going to Tools | Addon manager | CfdOF | Install/update selected.
  • Make sure that that all dependencies are up to date by going to Edit | Preferences | CfdOF | Run dependency checker
  • There is an infinite variety of ways in which a CFD simulation can go wrong. If a simulation crashes with no specific error message, it is likely because of numerical divergence; this usually means that some aspect of the setup is not right for the solver. Unfortunately, simply providing the final error code or error message is generally of no use in determining the cause in these cases. Some training in CFD may be required to debug the problem, but the best remedy is usually to start with the simplest possible form of the problem (or a known working demo case) and build up complexity slowly. Again, you are welcome to ask for help from the community but developers will not have the time to provide general training in CFD.
  • Please note that residuals are not guaranteed to converge: there simply is not a steady state solution to all problems. When there is a sufficiently abrupt angle in the geometry, vortices are periodically shed and only an unsteady solution exists. Then the residuals of the steady-state equations get 'stuck'.
  • On Windows, there can be issues with conflicting MSMPI versions. This is usually indicated by the following error:

    Code: Select all

    ERROR: Failed to post close command error 1726
    ERROR: unable to tear down the job tree. exiting...
    
    The best remedy is usually to uninstall and reinstall the OpenFOAM (or BlueCFD) package, making sure to run the installer with administrator privileges if possible. If asked, answer 'yes' to reinstalling MSMPI.
  • Preferably report confirmed bugs at the project gitlab page. The present forum is intended for community assistance and may not always be monitored by developers. Of course, we'll be grateful if you are able to fix the bug yourself and issue a pull request at https://gitlab.com/opensimproject/cfdof
Training material

The following is a list of known training material: How to help
  • We appeal to you to investigate issues yourself as fully as you possibly can, and submit fixes to the project gitlab page. It is not sustainable for one volunteer developer to deal with all problems, particularly issues of interoperability of the different software tools on a variety of operating systems. These can be extremely hard to diagnose without having the same system setup.
  • Any user assistance on the forum, as well as creating walkthoughs, demos, videos and documentation are very helpful in increasing the accessibility of the workbench.
  • In terms of coding, refinements to the user interface would be a valuable way to start contributing without requiring deep knowledge of the existing systems.
Locked