Thursday, June 27, 2024

“最近历史文档”为空的解决办法

 一、修改注册表

1. win + R输入:regedit

 2. 在64位registry workshop中打开下面的键值:
HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer
将 NoRecentDocsHistory 设置为 0 (点击右键修改)

二、windows-开始-属性- 储存并显示最近的项目

三、修改组策略

1、按“WIN+R”打开“运行”窗口,输入“gpedit.msc”命令按回车打开注册表。
2、在打开的组策略中依次展开“用户配置——管理模版——任务栏和开始菜单”;
3、在右侧窗口找到并将“不要保留最近打开文档的记录”、“退出时清除最近打开的文档记录”这两个项,然后都设置为“已启用”即可。

https://zhidao.baidu.com/question/1249655728952371259.html

https://blog.csdn.net/qq_34581491/article/details/54426882

Wednesday, June 26, 2024

python截图并发送到邮箱

 #截取屏幕
import pyautogui
img = pyautogui.screenshot()
img.save('screenshot.png')

#发送邮件
from email.mime.text import MIMEText
from email.header import Header
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
import smtplib

from_addr = '***@qq.com'
password = '***'
smtp_server = 'smtp.qq.com'
to_addr = '***@qq.com'

msg = MIMEMultipart()
msg['From'] = from_addr
msg['To'] = to_addr
msg['Subject'] = 'HELLO, HOW IS TB TODAY!'

part = MIMEApplication(open('screenshot.png', 'rb').read())
part.add_header('Content-Disposition', 'attachment', filename='screenshot.png')
msg.attach(part)

server = smtplib.SMTP_SSL(smtp_server)
server.connect(smtp_server, 465)
server.login(from_addr, password)
server.sendmail(from_addr, [to_addr], msg.as_string())
server.quit()

owned by goodenoughcui

Monday, June 24, 2024

excel中$A$1是什么意思与A$1、$A1的区别?

 在excel里对数据进行统计、求值时,在单元格里使用公式求值是一个非常好的办法。它可以避免人工统计的误差,增加准确率。不知道大家有没有用过公式,绝对引用$A$1和相对引用A$1、$A1呢?下面我们介绍一下excel中$A$1是什么意思,以及它与A$1、$A1的区别,感兴趣的可以过来围观。

  三者的区别是复制公式所引用的A1的改变。

  1、$A$1(绝对引用)在复制公式时所引用的A1不会随着复制的而改变。

  2、A$1(相对引用)在复制公式时引用的A会改变,但1不会改变(例如:向右复制时A$1会变成B$1,向下复制时不变)。

  3、$A1(相对引用)在复制公式时引用的1会改变,但A不会改变(例如:向右复制时$A1不会变,向下复制时变成$A2)。

  操作步骤如下:

  1.输入公式

  打开一份EXCEL表格,在里面随意输入几行数据,然后在C1输入=$A$1+B1公式。

  2.填充数据,A1不变

  输入公式之后,按住键盘上的enter得出结果,然后按住C1单元格往下拉,使数据填充,这时候可以看到A1是固定不变的。

  3.输入公式A1变成B$1

  在C1输入公式=A$1+B1,然后按住C1单元格往右填充,可以看到A1是会变动的,变成了B$1了。

  4.输入公式A1数据变成A2

  在C1输入公式=$A1+B1,然后按住C1键往右填充,A1的数据是不会改变,往下填充的时候,A1的数据就变成了A2了。

  以上教程就是小编为大家分享的excel中$A$1是什么意思与A$1、$A1的区别。它们引用的都是第一列第一行内容,但得出的答案却不一样,这是因为它们的作用有所不同,大家可以参考一下三者的区别。

 https://www.jianshu.com/p/d190dbc08e9e

Wednesday, May 29, 2024

AHK实现用快捷键快速切换输入法

 !1::
SwitchIME(00000804)
return

!2::
SwitchIME(0x04090409)
return

SwitchIME(dwLayout){
    HKL:=DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)
    ControlGetFocus,ctl,A
    SendMessage,0x50,0,HKL,%ctl%,A
}

Thursday, May 23, 2024

Ionic Polarization-离子极化

 

Consider a simple ionic crystal, e.g. NaCl.

The lattice can be considered to consist of Na+ - Cl dipoles as shown below.


 


Each Na+ - Cl pair is a natural dipole, no matter how you pair up two atoms.
The polarization of a given volume, however, is exactly zero because for every dipole moment there is a neighboring one with exactly the same magnitude, but opposite sign.
Note that the dipoles can not rotate; their direction is fixed.


 
 
In an electric field, the ions feel forces in opposite directions. For a field acting as shown, the lattice distorts a little bit (hugely exaggerated in the drawing)

 


The Na+ ions moved a bit to the right, the Cl ions to the left.
The dipole moments between adjacent NaCl - pairs in field direction are now different and there is a net dipole moment in a finite volume now.

   
 
From the picture it can be seen that it is sufficient to consider one dipole in field direction. We have the following situation:


dipole with field

Shown is the situation where the distance between the ions increases by d; the symmetrical situation, where the distance decreases by d, is obvious.
How large is d? That is easy to calculate:

The force F1 increasing the distance is given by


F1  =  q · E

With q = net charge of the ion.

The restoring force F2 comes from the binding force, it is given as the derivative of the binding potential. Assuming a linear relation between binding force and deviation from the equilibrium distance d0, which is a good approximation for d << d0, we can write


F2  =  kIP · d

With kIP being the "spring constant" of the bond. kIP can be calculated from the bond structure, it may also be expressed in terms of other constants that are directly related to the shape of the interatomic potential, e.g. the modulus of elasticity or Youngs modulus.

If we do that we simply find


kIP  = Y  · d0  

With Y = Youngs Modulus, and d0 = equilibrium distance between atoms.
From force equilibrium. i.e. F1F2 = 0, we immediately obtain the following relations:

Equilibrium distance d


d  =  q · E 
Y  · d0

Induced dipole moment μ (on top of the existing one)


μ  =   q2 · E
Y  · d0

Polarization P


P  =   N · q 2 · E
Y  · d0
Of course, this is only a very rough approximation for an idealized material and just for the case of increasing the distance. Adding up the various moments - some larger, some smaller - will introduce a factor 2 or so; but here we only go for the principle.
For real ionic crystals we also may have to consider:

More complicated geometries (e.g. CaF2, with ions carrying different amount of charge).

This example was deliberatly chosen: The dielectric constant of CaF2 is of paramount interest to the semiconductor industry of the 21st century, because CaF2 is pretty much the only usable material with an index of refraction n (which is directly tied to the DK via εr = n2) that can be used for making lenses for lithography machines enabling dimensions of about 0,1 μm.

If the field is not parallel to a major axis of the crystal (this is automatically the case in polycrystals), you have to look at the components of μ in the field direction and average over the ensemble.
Still, the basic effects is the same and ionic polarization can lead to respectable dielectric constants εr or susceptibilities χ.

https://www.tf.uni-kiel.de/matwis/amat/elmat_en/kap_3/backbone/r3_2_3.html#_dum_4

Monday, May 20, 2024

什么是能级简并

 

简并能级(英语:Degenerate energy level)在物理学中,简并是指被当作同一较粗糙物理状态的两个或多个不同的较精细物理状态。

例如在量子力学中,原子中的电子,由其能量确定的同一能级状态,可以有两种不同自旋量子数的状态,该能级状态是两种不同的自旋状态的简并态。

简介简并能级(英语:Degenerate energy level)在物理学中,简并是指被当作同一较粗糙物理状态的两个或多个不同的较精细物理状态。

例如在量子力学中,原子中的电子,由其能量确定的同一能级状态,可以有两种不同自旋量子数的状态,该能级状态是两种不同的自旋状态的简并态。

在统计物理学中,宏观上由压强、体积、温度确定的同一宏观热力学状态,在微观上可以对应大量不同的微观状态,该热力学状态是这些微观状态的简并态。简并在量子力学和统计物理中的意义不同,在统计物理中,简并是指量子效应明显的体系。

含有简并电子基态的非直线型分子都会产生姜-泰勒效应,而发生构型扭曲。1

量子力学量子力学(quantum mechanics)是物理学的分支,主要描写微观的事物,与相对论一起被认为是现代物理学的两大基本支柱,许多物理学理论和科学,如原子物理学、固体物理学、核物理学和粒子物理学以及其它相关的学科,都是以其为基础。

19世纪末,人们发现旧有的经典理论无法解释微观系统,于是经由物理学家的努力,在20世纪初创立量子力学,解释了这些现象。量子力学从根本上改变人类对物质结构及其相互作用的理解。除透过广义相对论描写的引力外,迄今所有基本相互作用均可以在量子力学的框架内描述(量子场论)。

爱因斯坦可能是在科学文献中最先给出术语“量子力学”的物理学者。1

统计力学统计力学(Statistical mechanics)是一个以玻尔兹曼等人提出以最大熵度理论为基础,借由配分函数将有大量组成成分(通常为分子)系统中微观物理状态(例如:动能、势能)与宏观物理量统计规律 (例如:压力、体积、温度、热力学函数、状态方程等)连结起来的科学。如气体分子系统中的压力、体积、温度。伊辛模型中磁性物质系统的总磁矩、相变温度、和相变指数。

通常可分为平衡态统计力学,与非平衡态统计力学。其中以平衡态统计力学的成果较为完整,而非平衡态统计力学至今也在发展中。统计物理其中有许多理论影响着其他的学门,如信息论中的信息熵。化学中的化学反应、耗散结构。和发展中的经济物理学这些学门当中都可看出统计力学研究线性与非线性等复杂系统中的成果。1

姜-泰勒效应姜-泰勒效应(英文:Jahn-Teller effect,简称JTE),有时也被称为姜-泰勒变形,描述了基态时有多个简并态的非线性分子的电子云在某些情形下发生的构型形变。分子发生几何构型畸变的目的是降低简并度,从而稳定其中一个状态。姜-泰勒效应主要出现在金属的配合物中,特别是某些金属染料的着色过程。2

本词条内容贡献者为:

杜强 - 高级工程师 - 中国科学院工程热物理研究所

Friday, May 17, 2024

量纲分析的方法

 举例

美国原子弹爆炸图

Taylor利用量纲分析法,计算出爆炸形成的冲击波半径R与时间t^{2/5}有关

释放的能量E、冲击波半径R、空气密度ρ、空气绝热系数γ(无量纲数)、时间t,R = E^{x_1} \rho ^ {x_2} t ^ {x_3} \gamma ^ {x_4},用量纲分析求出未知指数,x1=1/5,x2=-1/5,x3=2/5。

根据某次原子弹爆炸的照片数据,计算出原子弹的能量。
泰勒得出在一些小型爆炸中\gamma ^ {x_4} \approx 1。
密度取1.25 kg/m^3
训练数据R,t已知
则根据公式R = E^{x_1} \rho ^ {x_2} t ^ {x_3} \gamma ^ {x_4},可以计算出E

Von Neumann 冯诺依曼
基本量纲与导出量纲

F = m * a
F 单位 N 基本量纲 M*L/T^2
m 单位 kg 基本量纲 M
a 单位 m/s^2 基本量纲 L/T^2
无量纲量与无量纲单位

无量纲量是个没有单位的数字,量纲为1。1 m/s与1,前者纲量为L/T,后者量纲为1

无量纲量:圆周率Pi、欧拉常数e、分贝dB、弧度、应变、宾汉数、摩擦系数、欧拉数、马赫数、雷诺数、品质因子等。

无量纲单位:摩尔分数(mol/mol)、质量百分浓度(kg/kg)、度(°)、弧度(rad)等。
量纲分析

针对某一问题,如果已知R与u_1,u_2,u_2,...的模型,需要确定未知参数,可通过量纲分析来确定

举个例子:
已知R = f(u_1,u_2,...) = u_1^a * u_2 ^ b *...。[R] = [u_1]^a * [u_2]^b *...,可确定出a,b,c...。

难点:
1、确定哪些物理量有关,如确定R与u、v有关
2、确定模型,如确定R=u^a * v^b
白金汉Pi定理

白金汉Pi定理:设影响某现象的物理量数为n个,这些物理量的基本量纲为m个,则该物理现象可用n-m个独立的无量纲数群(准数)关系式表示
量纲法则:1.只有量纲相同的物理量,才能彼此相加、相减和相等; 2.指数函数、对数函数和三角函数的宗量应当是量纲1。

论文 浅谈量纲法则的合理应用
重写方程

g(u_1,u_2,u_3,...)=0
Pi_j = q_1^{a_1} * q_2^{a_2} * ...
确定常数a1~an,b1~bn,....,可将方程重写
g(u_1,u_2,u_3,...) = z(Pi_1,Pi_2,Pi_3,...)=0
疑问
https://blog.csdn.net/qq_37083038/article/details/114520770