Today manage to using remote control on the ubuntu
1. you can turn on the screen sharing using privary setting and ask it to just use the password,
then you can on remina from virtual ubuntu to remote access it
or you can also use windows
instal the vnc viewer
https://www.howtogeek.com/429190/how-to-set-up-remote-desktop-on-ubuntu/
2. also I manage to install matlab on ubuntu
https://linuxconfig.org/how-to-install-matlab-on-ubuntu-18-04-bionic-beaver-linux
3. try:
val_local = w.vector()(val_dof[0])
from dolfin import *
from ufl import cofac
import dolfin as dolfin
import sys
import
from ufl import cofac
mesh = Mesh()
f = HDF5File(MPI.comm_world, meshname+".hdf5", 'r')
print(tstep, p_cav*0.0075 , V_cav, fdataPV)
use 2to3 convert print function from python2 to python3
sudo apt-get 2to3
mesh = Mesh()
f = HDF5File(MPI.comm_world, meshname+".hdf5", 'r')
2020年6月7日星期日
2020年3月23日星期一
A farewell for what-if
did not expect I am going to have my last paper to publish before I go to industry so soon.
I like research, however if I cannot get the Newton fellowship to go Imperial college, then I guess, this is going to be my last chance to do research in postdoc.
Thanks Prof yap for helping me throughout the fellowship application.
Thanks lik chuan and his team to support me unconditionally.
too many people I want to say thanks, but just to say sorry, as I have to let you down this time, as I am preparing to leave already if I dont get it.
Thank you very much NUS for every memory you give me. I am grateful for the past five years you give me. I am thinking if I got the fellowship, I will have another round to stay in research, but ya, my family need money, so I guess there is no turning back and I have to go d.
Thank you so much for the research world and wish all the best for the biomechanics journey.
I will be going to miss your guys very much.
enjoy guys!
I like research, however if I cannot get the Newton fellowship to go Imperial college, then I guess, this is going to be my last chance to do research in postdoc.
Thanks Prof yap for helping me throughout the fellowship application.
Thanks lik chuan and his team to support me unconditionally.
too many people I want to say thanks, but just to say sorry, as I have to let you down this time, as I am preparing to leave already if I dont get it.
Thank you very much NUS for every memory you give me. I am grateful for the past five years you give me. I am thinking if I got the fellowship, I will have another round to stay in research, but ya, my family need money, so I guess there is no turning back and I have to go d.
Thank you so much for the research world and wish all the best for the biomechanics journey.
I will be going to miss your guys very much.
enjoy guys!
2019年5月30日星期四
error for gcloud permission
I recently has problem on uploading the file to gcloud services, so the solution is suggested as below
is add the username@ instances name
that solve the problem
is add the username@ instances name
that solve the problem
2019年2月27日星期三
Linux and aws
what the hell, keep facing the error cannot save text file under gedit in virtual box
so following the procedure here
https://unix.stackexchange.com/questions/52951/gedit-wont-save-a-file-on-a-virtualbox-share-text-file-busy
so following the procedure here
https://unix.stackexchange.com/questions/52951/gedit-wont-save-a-file-on-a-virtualbox-share-text-file-busy
What fixed it for me (still a bit annoying but works), and is applicable to gedit, is to:
edit - preferences - editor Put a check on "Create backup copy"
When saving from now on, save the file once, ignore the error, save again. works every time.
2019年1月28日星期一
note for using LINUX
haha, first time join a company using Linux, dont even know how to close the file using vi command
just press escape, it will go out of the text and go the last line, then press SHift +semi colon, thenit will appear, then you pressre q +exclamation, then last one, and omost important one, just press enter, then magic will appear.
happy to solve the problem.
also need to take note the OpenFOAM. just type writenow and save file, it will terminate immediately,
iyou can change start now from last time start. then it will start from lasttimestep.
useful vi command
https://www.cs.colostate.edu/helpdocs/vi.html
just press escape, it will go out of the text and go the last line, then press SHift +semi colon, thenit will appear, then you pressre q +exclamation, then last one, and omost important one, just press enter, then magic will appear.
happy to solve the problem.
also need to take note the OpenFOAM. just type writenow and save file, it will terminate immediately,
iyou can change start now from last time start. then it will start from lasttimestep.
useful vi command
https://www.cs.colostate.edu/helpdocs/vi.html
2018年9月30日星期日
some thought
Recently decided to try CRIMSON installation, after I uninstall Virtural tool box and off the wifi, it start to run, so happy now,
finally run my model in CRIMSON software.
________________________________________________________________________
running OPENFOAM.
here is the good website to record
http://www.cfdyna.com/Home/openFOAM_Win.html
it has some protocol error, i guess it is just adminstrator problem
https://www.cfd-online.com/Forums/openfoam-installation/174281-got-error-while-copying-tutorial-files-local-directory.html
https://stackoverflow.com/questions/17895256/creating-symbolic-link-protocol-error
finally run my model in CRIMSON software.
________________________________________________________________________
running OPENFOAM.
here is the good website to record
http://www.cfdyna.com/Home/openFOAM_Win.html
it has some protocol error, i guess it is just adminstrator problem
https://www.cfd-online.com/Forums/openfoam-installation/174281-got-error-while-copying-tutorial-files-local-directory.html
https://stackoverflow.com/questions/17895256/creating-symbolic-link-protocol-error
2017年1月5日星期四
张量tensor的解释
张量tensor的解释
https://www.zhihu.com/question/36814916
作者:大野喵渣
链接:https://www.zhihu.com/question/36814916/answer/69248640
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
https://www.zhihu.com/question/36814916
小学课本上画杨桃的故事每个人都听过,一个杨桃在不同角度看,就会呈现不同的样子。有些物理量也是一样的,它在不同的角度看就会有不同的数值。比如对于一个矢量,你的基底变化了,矢量的表示也会变化。但是矢量的长度永远不变。
杨桃还是那个杨桃,物理量也还是那个物理量,但是一旦你换了个角度看,杨桃的形状就变了,物理量的数值也就变了。
那么如果一个物理系统没有一个更好的观察方向,或者说我们需要频繁的变换我们的视角的时候,应该怎么把握一个胡乱变化的东西呢?
你要记住,杨桃和物理量本身都是不变的,变的只是它在你眼中的形象。
于是张量就出现了,它将视角变换时候的变换关系作为张量的定义,看似在乱七八糟变,实际上只有满足这样的变换关系,它才是不变的!
研究一个看似乱七八糟变,实际上不变的东西,就是张量分析
杨桃还是那个杨桃,物理量也还是那个物理量,但是一旦你换了个角度看,杨桃的形状就变了,物理量的数值也就变了。
那么如果一个物理系统没有一个更好的观察方向,或者说我们需要频繁的变换我们的视角的时候,应该怎么把握一个胡乱变化的东西呢?
你要记住,杨桃和物理量本身都是不变的,变的只是它在你眼中的形象。
于是张量就出现了,它将视角变换时候的变换关系作为张量的定义,看似在乱七八糟变,实际上只有满足这样的变换关系,它才是不变的!
研究一个看似乱七八糟变,实际上不变的东西,就是张量分析
作者:大野喵渣
链接:https://www.zhihu.com/question/36814916/answer/69248640
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
订阅:
博文 (Atom)