lib/vasputils/vaspdir.rb in vasputils-0.0.8 vs lib/vasputils/vaspdir.rb in vasputils-0.0.9
- old
+ new
@@ -38,9 +38,15 @@
# 存在しなければ例外 Errno::ENOENT を返す。
def outcar
Outcar.load_file("#{@dir}/OUTCAR")
end
+ # 配下の POSCAR を Cell2 インスタンスにして返す。
+ # 存在しなければ例外 Errno::ENOENT を返す。
+ def poscar
+ Poscar.load_file("#{@dir}/POSCAR")
+ end
+
# 配下の CONTCAR を Cell2 インスタンスにして返す。
# 存在しなければ例外 Errno::ENOENT を返す。
def contcar
Poscar.load_file("#{@dir}/CONTCAR")
end