让Petrel完整显示的办法

本文介绍了一种解决Petrel软件在特定系统环境下显示不完整的方法,通过更改系统语言和用户设置,使软件能够正常显示所有字符,适用于Windows7及Windows10系统。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

工欲善其事,必先利其器。作为一名强迫症患者,对于petrel这种缺字显示,是不能容忍的!
在这里插入图片描述在这里插入图片描述
解决办法其实很简单:就是将系统的语言改成英文,但是第四步很关键。因为有时候光是单纯的修改了系统语言,petrel还是显示的不完整。
注:该方法是不需重装系统,只需重启即可。

第一步:确认windows系统的版本

windows 7的话需要Windows 7 Enterprise或者更高版本,windows10的话需要中文版、专业版,企业版。

第二步:安装英文语言包

在这里插入图片描述点击“Add a language”
在这里插入图片描述在这里插入图片描述在这里插入图片描述选择Canada或者US,然后ADD就完事了。

第三步:选择英文作为系统的显示

在这里插入图片描述选择新装的英文语言,左键单击后面的Options
在这里插入图片描述左键单击“Change override”(玩过“地平线:黎明时分”一定对这个override很熟悉,因为你需要各种override机器才能骑上它们😄)在这里插入图片描述看,选择英文override这个display!

下面我们要进行最关键的第四步,因为光是修改系统的默认语言有时候还是不行。

第四步:修改用户的个人设置在这里插入图片描述

该解决方法最早由Joseph提出并解决,链接地址为:让Petrel显示Panel不缺字的办法
http://www.sunpetro.cn/thread-95600-1-1.html
(出处: 阳光石油论坛|石油技术交流|石油人论坛)
如果是windows7的小伙伴可以参考这个帖子。

如果这个办法对您有用,或者您希望持续关注,也可以扫描下方微信订阅号二维码(有时候手机边看,电脑边操作效果更佳哦~不过用petrel的朋友应该都是双屏的标配吧…):
在这里插入图片描述
-------我是分割线----------上面是版权说明,不需理会先--------
Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

(base) rock@rock-Precision-5530:~/PyGRDECL$ python convert_grdecl_to_vtk.py [Input] Reading ECLIPSE/PETREL file "./ExampleData/dome.grdecl" .... Grid Type=CornerPoint Grid Dimension(NX,NY,NZ): (20 x 20 x 4) NumOfGrids=1600 NumOfKeywords=11 Reading Keywords [SPECGRID] [PORO] [PERMX] [PERMY] [PERMZ] .....Done! [Geometry] Converting GRDECL to Paraview Hexahedron mesh data.... NumOfPoints 12800 NumOfCells 1600 Traceback (most recent call last): File "/home/rock/PyGRDECL/convert_grdecl_to_vtk.py", line 7, in <module> Model.GRDECL2VTK() File "/home/rock/PyGRDECL/GRDECL2VTK.py", line 161, in GRDECL2VTK self.Update() File "/home/rock/PyGRDECL/GRDECL2VTK.py", line 168, in Update self.AppendScalarData2VTK(keyword,data) #VTK will automatically overwrite the data with the same keyword ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rock/PyGRDECL/GRDECL2VTK.py", line 381, in AppendScalarData2VTK data = ns.numpy_to_vtk(numpy_array.ravel(order='F'),deep=True, array_type=vtk.VTK_FLOAT) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rock/anaconda3/lib/python3.12/site-packages/vtkmodules/util/numpy_support.py", line 164, in numpy_to_vtk arr_dtype = get_numpy_array_type(vtk_typecode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rock/anaconda3/lib/python3.12/site-packages/vtkmodules/util/numpy_support.py", line 94, in get_numpy_array_type return get_vtk_to_numpy_typemap()[vtk_array_type] ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rock/anaconda3/lib/python3.12/site-packages/vtkmodules/util/numpy_support.py", line 74, in get_vtk_to_numpy_typemap _vtk_np = {vtkConstants.VTK_BIT:numpy.bool, ^^^^^^^^^^ File "/home/rock/anaconda3/lib/python3.12/site-packages/numpy/__init__.py", line 324, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
03-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值