Below is a sample script to plot vector field using the package matplotlib in Python
import numpy as np
import matplotlib.pyplot as plt
x,y = np.meshgrid(np.linspace(-5,5,10),np.linspace(-5,5,10))
u = 1
v = 0
# (u,v) = (1,0) : left to right
# (u,v) = (0,1) : up
By adding the following code to Preferences -> Keybindings, now you can quickly open the Folder containing the script you are working on. Very convenient for collecting result, investigate script and so on.
Komorebi is an application that enables animations for desktop wallpapers. When uninstall Komorebi, there is a possibility that desktop will become unresponsive: desklets are still displaying but no icons, right click doesn’t show anything. To fix it, run this code in Terminal:
gsettings set org.nemo.desktop show-desktop-icons true
I’ve just installed Matlab 2020a on Linux Mint 19 and I had an issue that the Doc doesn’t show anything but blank page. To fix it, installing Chromium Web Browser and disable Windows Effect in System Setting.
For coding font: Fira Code (free on Google Font) is a very good choice. Don’t forget to turn on anti-alias, it might improve your experience.
Note that the version number can be checked by going directly to the website and see. The above script will download all the package and put nvm into the Linux alias (so we can use the nvm command globally). After this, log out and log in to activate the alias.
Once you log in, run below script
nvm install node
nvm install node
nvm alias default nodenvm install node
nvm alias default node
“Mathematicians do not recognize their discipline in such descriptions. We see arithmetic and algebra as tools used in doing mathematics, just as hammers and handsaws are tools used in carpentry. For professionals, mathematics is about curiosity, imagination, and solving problems. There are questions that are instinctive and natural for mathematicians that rarely occur to those looking in from the outside. There is such a thing as a mathematical view of the world. Sadly, it is a view that is too often hidden from those struggling to learn the subject.” From the book Taking Sudoku seriously
YADE là phần mềm mô hình phần tử rời rạc, cũng nguồn mở.
YADE có thể tạo một khối hình học 3D và hỗ trợ tương đối khiêm tốn: hình hộp, hình cầu, xi-lanh….
Tuy nhiên, những hỗ trợ căn bản của YADE nhiều lúc không phục vụ được nhu cầu thực tế của xây dựng dân dụng. Đặc biệt khi người dùng cần fill particles vào trong một khối có hình dạng ngẫu nhiên. Rất may là YADE có hỗ trợ định dạng GTS và có một công cụ giúp chuyển đổi file từ STL (một dạng file 3D thông dụng từ blender) sang GTS, đó là stl2gts. Câu lệnh để dùng rất đơn giản: ví dụ có một file cube.stl và bạn muốn đổi nó thành cube.gts, cú pháp cần gõ trong terminal như sau:
”’ stl2gts < cube.slt > cube.gts ”’
Thường thì quá trình convert diễn ra khá nhanh. Ngay khi có file gts bạn có thể import vào trong YADE bình thường vì YADE có hỗ trợ python-gts.
FEM and DEM are well-known for studying structural analysis and behavior of granular materials, respectively. There are some special cases that we wish to combine the two methods to profit all the strong points from both methods. Here are a list of what I’ve found till the writing time of this blog post.
1. YADE – OOFEM
YADE is pretty well-known in Europe as an open-source DEM tool, written in C++ and PYTHON, and OOFEM is a FEM tool (latest version is 2017).
2. YADE – ESYS
Also from YADE document page, the link between FEM-DEM has been made using these two tools.
Very basic at the moment, lacks some serious development.
3. EDEM – ABAQUS
From version 2018, EDEM shows some supports for porting to ABAQUS. To some academic members, ABAQUS is their favorite numerical tool to do structural analysis.
4. YADE – COMSOL
There is a module developed by University of Ottawa, Canada to couple FEM-DEM using YADE and COMSOL based on JAVA linking.
It is normal that we use a presentation more than one time for different conference. Anytime doing that, modifying the footer, where the conference’s name and the date are, is an important job to do to avoid embarrassing moment.
It is pretty obvious that you can simply open Slide Master and edit directly the footer text to whatever you want. However, for Powerpoit 2016 and later, when you do that and return to the slide, the old text content is still there and the modification you’ve done is applicable only for new slide.
In order to edit that, now what we should do is manually edit them. Not slide by slide but by Insert -> Header & Footer -> Modify the content, then click “Apply to All”.
It’s a nuisance but we can solve it by that trick.