Pythonic Virtual Machine
MechAfmToPyVafm Class Reference

Detailed Description

This circuit takes as an input a set of force files produced by the MechAFM then converts them to a PyVAFM compatible force field This requires a fodler to be in the same location as your input script that contains all the force field files from the MechAFM

This circuit extracts the step size and number of points from the force files and stores them in the MaxInd and Step variable within the class

If the file already exists in the folder then the conversion is skipped and only the step and number of points are extracted. To override this behaviour use the overide = True command

  • Initialisation parameters:.
    • foldername = Name of the folder that contains all the MechAFM force files.
    • filename = Filename of the converted file

overide = Overide the safey function to ensure we dont overwrite a file

  • pushed True|False

Example:

1 FFdata = machine.AddCircuit(type='MechAfmToPyVafm',name='MtoP',foldername = "Cl_tip" )
2 inter = machine.AddCircuit(type='i3Dlin',name='inter', components=3, pushed=True)
3 inter.Configure(steps=FFdata.step, npoints=FFdata.MaxInd)
4 inter.Configure(pbc=[True,True,False])
5 inter.ReadData(FFdata.filename)

Inherits Circuit.

Additional Inherited Members

- Public Attributes inherited from Circuit
 name
 Name of the circuit. More...
 
 enabled
 if it is working... More...
 
 machine
 Reference to the virtual machine to which this circuit belongs. More...
 
 pushed
 Push output buffer at the end of Update. More...
 
 I
 Dictionary of input channels.
 
 O
 Dictionary of output channels.
 
 cCoreID
 index of circuit in cCore
 

Documentation for pyVAFM
Generated on Wed Feb 8 2017 10:13:49 for pyVAFM by doxygen 1.8.9.1