Author Topic: How to "inspect_.nc_file" ?  (Read 3425 times)

0 Members and 1 Guest are viewing this topic.

Offline fangyongxinxi

  • QuantumATK Guru
  • ****
  • Posts: 143
  • Reputation: 0
    • View Profile
How to "inspect_.nc_file" ?
« on: May 2, 2013, 16:51 »
Dear Sir,

1. the sript "inspect_vnl_file" helps me alot, now is there some kind of "inspect_nc_file"?

2. the problem in my hand is: If I want to get the "TotalEnergy" and the corresponding id_,
such as:

E0,  id0
E1,  id1
E2,  id2
....

 the tranditional way is use "nlprint". But this conmand give alot information about the total energy, However, I just want the final value and the id
so, could you show me a sript on how to get this ?

Thanks~

FangYong

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: How to "inspect_.nc_file" ?
« Reply #1 on: May 2, 2013, 23:16 »
There is an "nlinspect", but perhaps you just need to use

print total_energy.evaluate()

instead of nlprint(total_energy) to achieve what you want?

Offline fangyongxinxi

  • QuantumATK Guru
  • ****
  • Posts: 143
  • Reputation: 0
    • View Profile
Re: How to "inspect_.nc_file" ?
« Reply #2 on: May 3, 2013, 08:21 »
Thanks for your help~

There is an "nlinspect", but perhaps you just need to use

print total_energy.evaluate()

instead of nlprint(total_energy) to achieve what you want?