Troubleshooting OpenFOAM Startup Issues - Expert Assistance

  • Thread starter Thread starter mech-eng
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting startup issues with the CFD software OpenFOAM, particularly in a Windows environment. Participants explore the software's operation, user interface concerns, and the nature of command line applications in computational fluid dynamics.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant reports that OpenFOAM does not start and seeks assistance.
  • Another participant suggests that OpenFOAM may already be running as a Windows service with auto-start configuration.
  • A participant questions the concept of software running as a Windows service and expresses a preference for a user interface over command line usage.
  • Some participants explain that OpenFOAM operates within a Docker environment on Windows and speculate about the presence of a running Docker instance.
  • There is a discussion about the nature of OpenFOAM as a command line application requiring text file inputs for simulations, contrasting it with more user-friendly software like COMSOL and ANSYS Fluent.
  • One participant mentions limited experience with OpenFOAM, specifically on Linux, and suggests looking for sample problems to modify for use.
  • Another participant provides a link to documentation, highlighting that OpenFOAM is a C++ library for creating applications, which are executed from the command line.
  • There is a query about free alternatives to OpenFOAM that might offer a graphical user interface, with a mention of the Advanced Simulation Library.
  • A later reply indicates that the Advanced Simulation Library also lacks a GUI and suggests that the absence of a graphical interface may not be the primary challenge in using these tools.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and functionality of a graphical user interface for simulation software. There is no consensus on the best approach to using OpenFOAM or the availability of suitable alternatives with user interfaces.

Contextual Notes

Participants reference the complexity of command line applications and the potential challenges associated with using software without a graphical interface. There are also mentions of the need for caution when modifying Windows services.

mech-eng
Messages
826
Reaction score
13
I have installed the cfd software Open FOAM but it doesn't start. Can you help me?

open foam.png


Thank you.
 
Computer science news on Phys.org
From the message, it looks like it already is running. Some software will install itself as a Windows service with an auto-start configuration. That seems to be the case here.
 
Borg said:
Some software will install itself as a Windows service with an auto-start configuration. That seems to be the case here.

What do you mean by "some software will install itself as a win service with an auto-start configuration"?

I think there should be a user-interface instead of that "dos screen".

Thank you.
 
I haven't used that software so I can't say for sure what it should be doing. I looked around their website and couldn't find an installation guide.

With respect to the Windows services, if you type 'services' in the Windows start menu, you will see the services that are running on your machine. These are programs that can run on your computer according to various settings. Some items will auto-start when you turn on your computer and stay running all of the time. You can change the behavior to manually start or disable a service entirely. Be careful with disabling though because you could brick your computer if you're not careful.
 
OpenFOAM runs on Windows inside a virtual Docker environment. I would guess that there is already an instance of Docker running.
 
DrClaude said:
OpenFOAM runs on Windows inside a virtual Docker environment. I would guess that there is already an instance of Docker running.

Have you ever used this program? I spoke to my instructor today. He said that he hadn't used it but it was used from that black screen. But I cannot imagine a simulation program without a user interface? How can it be used with just commands?

Thank you.
 
Welcome to the real world! While there are some "engineering" programs, such as COMSOL and ANSYS Fluent, that can do fluid dynamics, they are very expensive and don't always work for all cases. Then there are more "bare bones" programs lie OpenFOAM, that give you a lot of control over what you are doing, at the expense of having to forget working with a mouse.

To use OpenFOAM, you have to set up series of text files describing the problem you want to solve, and then you use the command line to run the calculation. It is best to try and find a sample problem that is very close to the one you want to solve and modify the input files accordingly, rather than trying to build everything from scratch.

I have a limited experience with OpenFOAM, and I have only used it on Linux, where it is native. I won't be of much help with the Windows implementation.

I think that @hilbert2 has some experience of CFD, so he may be able to help.
 
  • Like
Likes   Reactions: mech-eng
mech-eng said:
Have you ever used this program? I spoke to my instructor today. He said that he hadn't used it but it was used from that black screen. But I cannot imagine a simulation program without a user interface? How can it be used with just commands?

Thank you.

You should check whether your university has acquired a license for COMSOL or a similar program for the students. Most of the programs that are used in actual research are command line applications that take some text file (containing values of parameters) as input and then produce other text files and/or sequences of images as output.
 
  • Like
Likes   Reactions: mech-eng
mech-eng said:
Have you ever used this program? I spoke to my instructor today. He said that he hadn't used it but it was used from that black screen. But I cannot imagine a simulation program without a user interface? How can it be used with just commands?

Caveat: I have never used this software, but I know how to search for documentation.
Link to docs: https://pilotfiber.dl.sourceforge.net/project/openfoamplus/v1612+/UserGuide.pdf

In Chapter 3 of the docs in the link above, it says
We should reiterate from the outset that OpenFOAM is a C++ library used primarily to
create executables, known as applications.
What I get from this is that OpenFoam is not a program per se, but a library that you can use to create a program (an application).
The docs also say (emphasis added)
Each application is designed to be executed from a terminal command line, typically
reading and writing a set of data files associated with a particular case.
Section 3.1 tells you the commands to use.
 
  • #10
hilbert2 said:
You should check whether your university has acquired a license for COMSOL or a similar program for the students. Most of the programs that are used in actual research are command line applications that take some text file (containing values of parameters) as input and then produce other text files and/or sequences of images as output.

I think they haven't comsol but they have some others. But I want to ask about some free ones. Which of them are with interface instead of command line? I think Advanced Simulation Library is one with user interface. There is a list at the end of the link

https://en.wikipedia.org/wiki/COMSOL_Multiphysics

Thank you.
 
  • #11
ASL doesn't seem to have a GUI either. None of those are going to be simple to use, and honestly, the lack of graphical interface isn't actually the most important source of difficulty.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 34 ·
2
Replies
34
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K