Andrew Moa Blog Site

Debug STAR-CCM+ macros with VSCode

As mentioned earlier, the recording and writing of STAR-CCM+ macro files are essentially Java files, so it can be developed and debugged using Java programming methods. If complex business scenarios are involved, additional functions need to be added. The program itself is relatively complex, and it is difficult to wait until the entire program is written before testing it. It is inevitable to debug during the development process. The development tool used by the official document is the old version of NetBeans. Many functions have changed. In addition, the official document description is too simple. Most people are still confused about the debugging process of STAR-CCM+ after reading it.VSCode As a leader in emerging IDE, you can not only support Java programming through expansion, but also copilot To expand the integrated powerful AI programming capabilities, this article uses VSCode to demonstrate the debugging process of STAR-CCM+ macro files.
4 minutes to read
Andrew Moa

STAR-CCM+ macro file recording and writing

STAR-CCM+ macro is essentially a java file, and the syntax is no different from ordinary java. Using macros can help us simplify the processing process, especially some repetitive process operations. Completing some process operations by writing macro files can greatly liberate human resources, and even complete certain operations during the solution process.

1. Record macros

The essence of STAR-CCM+ macro is a collection of various operation commands in the analysis process. Instead of explaining the complex and cumbersome java syntax + API from scratch, it is better to start with engineering issues directly.

6 minutes to read
Andrew Moa

OpenFOAM compiles and installs cfmesh and ccm tools

1. Compile cfmesh

The early compiled and installed OpenFOAM version of com, with the version number v2412, and there is no source code with cfmesh. According to the official documentation, you need to manually download the source code file of cfmesh:

cd $WM_PROJECT_DIR
git submodule update --init --recursive plugins/cfmesh

The following error occurs:

fatal: fatal: not a git repository (or any of the parent directories): .git

Okay, let’s try another approach. Download the source code directly through git to the specified folder, folder and URL path to view it .gitmodules document:

2 minutes to read
Andrew Moa