Andrew Moa Blog Site

A Qt6-based image base64 conversion tool

For frequent Markdown users, image storage has always been a challenge. Markdown itself does not support embedded images, traditionally requiring external links to local or online files. However, publishing articles online raises storage issues. While image hosting services exist, the process can be cumbersome.

ortunately, Markdown supports image rendering via Base64 encoding. This tool Image2Base64 simplifies conversions between image files and Base64 encoding.

1. Features

Below is the graphical interface of the software (this screenshot uses Base64 rendering):

4cdbc8106d0296e6261e6abdfa0b0096

9 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

Ubuntu compile and install SU2

SU2 is an open source CFD solver developed by the School of Aeronautics and Astronautics at Stanford University. It is based on C++ and Python and is similar to OpenFOAM, but does not support polyhedral meshes. Compared with OpenFOAM, SU2 has more advantages in solving high-speed compressible flows.

Download SU2 source code:

mkdir $HOME/su2code && cd $HOME/su2code
# Only clone the latest commit version to speed up downloading
git clone https://github.com/su2code/SU2.git --depth=1

Define environment variables and create a new configuration file su2.env:

2 minutes to read
Andrew Moa