Andrew Moa Blog Site

Building a soft router on Ubuntu

The original workstation was changed to Ubuntu 24.04, and I usually need to connect to the workstation directly through my Windows office laptop. At first, I connected to the wireless network, but the upload and download data was too slow. Later, I used a wired network card to bridge, but sometimes the data was not transmitted through the wired network card but through the wireless network card. Disabling the laptop’s wireless network card and being unable to go online for work is not a good solution.
3 minutes to read
Andrew Moa

Abaqus and CFX solvers cannot be run in Linux mounts Windows shared folders

Recently, a problem was discovered that Abaqus and CFX cannot perform calculations on Windows shared folders mounted on Linux. Linux is deployed on a virtual machine. Although there will be no error when starting the calculation program on the local path of the virtual machine, it will cause the virtual disk to occupy more space and have a certain impact on the read and write efficiency.

1. SMB version problem

1.1 SMBv3

When using cifs to mount a shared folder before, I did not pay close attention to the version of the SMB protocol1. The following command line does not specify the protocol version:

4 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