Author Topic: Urgent: Reg. molecular builder  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

Offline Timbaktoo

  • Regular QuantumATK user
  • **
  • Posts: 18
  • Reputation: 0
    • View Profile
Urgent: Reg. molecular builder
« on: August 28, 2009, 09:40 »
Hi everyone,

Is there some way/trick that we can put the distorted-CNT prepared using nanotube builder onto molecular builder?

Thanks.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Urgent: Reg. molecular builder
« Reply #1 on: August 28, 2009, 09:56 »
Not sure how you can get a distorted nanotube in the Nanotube Builder, since it's supposed to build perfect tubes only ;) But I guess you can manipulate it slightly. Anyway, you can quite easily strip the unit cell from the configuration by dropping it from the Nanotube Builder onto the Script Editor. There, remove all the lines defining the PeriodicAtomConfiguration at the bottom, and replace them with
Code
molecule = MoleculeConfiguration(
    elements,
    cartesian_coordinates=coordinates
    )
Then you should be able to drop the system to the Molecular Builder for further manipulations. Thus, in effect, remove the 4th line from the bottom (containing just "unit_cell,") and replace the line
Code
periodic_atom_configuration = PeriodicAtomConfiguration(
with
Code
molecule = MoleculeConfiguration(
« Last Edit: August 28, 2009, 10:01 by Anders Blom »

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: Urgent: Reg. molecular builder
« Reply #2 on: August 28, 2009, 10:53 »
i) generate the atomic coordinates of the distorted carbon nanotube; here you may obtain the formated coordinates of atoms by running the script file with "nlPrint(your_configuration)".  
ii) collect these atomic coordinates into a xyz file;
iii) load this xyz file using the "Result Browser" of VNL and drag it onto "Molecule builder";


Offline Timbaktoo

  • Regular QuantumATK user
  • **
  • Posts: 18
  • Reputation: 0
    • View Profile
Re: Urgent: Reg. molecular builder
« Reply #3 on: September 1, 2009, 06:22 »
Thanks Dr. Bloom. It works!!  :)

@zh: Could you please explain to me the first point you wrote.

Thankyou.

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: Urgent: Reg. molecular builder
« Reply #4 on: September 1, 2009, 06:49 »
For example:

....
bulk_configuration = BulkConfiguration(
    bravais_lattice,
    elements,
    cartesian_coordinates=coordinates
    )
nlPrint(bulk_configuration)

The last line "nlPrint(....)" will print out the coordinates of atoms.

Offline Timbaktoo

  • Regular QuantumATK user
  • **
  • Posts: 18
  • Reputation: 0
    • View Profile
Re: Urgent: Reg. molecular builder
« Reply #5 on: September 1, 2009, 23:31 »
Thanks zh. I think it should solve my problem now.