Troubleshooting OpenFOAM Startup Issues - Expert Assistance

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

The forum discussion centers on troubleshooting startup issues with OpenFOAM, a computational fluid dynamics (CFD) software that operates primarily through command line interfaces. Users noted that OpenFOAM runs within a Docker environment on Windows, which may lead to confusion regarding its startup behavior. The discussion highlights the necessity of understanding command line operations and the importance of modifying text files for simulations. Additionally, users compared OpenFOAM with other CFD tools like COMSOL and ANSYS Fluent, emphasizing the trade-off between cost and control in software choices.

PREREQUISITES
  • Understanding of command line interfaces and terminal commands
  • Familiarity with Docker and its operation on Windows
  • Basic knowledge of computational fluid dynamics (CFD) principles
  • Experience with text file manipulation for simulation input
NEXT STEPS
  • Research Docker installation and management on Windows for OpenFOAM
  • Learn how to modify input files for OpenFOAM simulations
  • Explore command line operations specific to OpenFOAM applications
  • Investigate alternative CFD software with graphical user interfaces
USEFUL FOR

Students, researchers, and engineers working in computational fluid dynamics who are looking to troubleshoot OpenFOAM or seeking alternatives with user interfaces.

mech-eng
Messages
825
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
596
  • · Replies 34 ·
2
Replies
34
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K