pyVLMP 1.0.74__tar.gz → 1.0.76__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyvlmp-1.0.74/pyVLMP.egg-info → pyvlmp-1.0.76}/PKG-INFO +1 -1
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/AFM.py +23 -1
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/HighThroughputAFM.py +23 -2
- {pyvlmp-1.0.74 → pyvlmp-1.0.76/pyVLMP.egg-info}/PKG-INFO +1 -1
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyproject.toml +1 -1
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/LICENSE +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/MANIFEST.in +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/README.md +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/VLMP.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/__main__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/NVT.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/NVTlambda.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/ensembles/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/BBK.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyama.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyamaRigidBody.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyamaRigidBodyPatchesState.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/GJF.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/MagneticBrownian.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/NVE.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/ACMagneticField.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/LennardJones.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/WCA.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/absortionSurface.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/addBond.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForce.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceBetweenCentersOfMass.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceOverCenterOfMass.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantTorqueBetweenCentersOfMass.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantTorqueOverCenterOfMass.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintCenterOfMassPosition.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesListPositionLambda.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPosition.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPositionLambda.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/harmonicBondBetweenCentersOfMass.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/helixBoundaries.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/plates.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/sphericalShell.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/steric.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/surface.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/surfaceMaxForce.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/uniformField.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/alignInertiaMomentAlongVector.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/distributeRandomly.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/rotation.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setCenterOfMassPosition.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setContactDistance.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticleLowestPosition.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticlePositions.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticleXYPosition.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/AdaptiveCG.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/CORONAVIRUS.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/ENM.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/FILE.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/HELIX.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/ICOSPHERE.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/IDP.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/KB.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MADna.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MAGNETICNP.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/MEMBRANE.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/PARTICLE.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/PROTEIN_IDP_PROTEIN.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SBCG.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SIMULATION.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SOP.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/SPHEREMULTIBLOB.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/STERIC_LAMBDA_SOLVATION.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/WLC.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/CORONAVIRUS.json +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/ICOSPHERE.json +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/models/data/MADna.json +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/AFMMaxForce.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/afmMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/anglesMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/centerOfMassMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/forceBetweenSetsMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/gyrationRadius.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/heightMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/info.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/lambdaActivation.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/lambdaCycle.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanMagnetizationMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanRadius.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanSquareDisplacement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/nativeContactsMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/oscillatoryForceMeasurment.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/pairwiseForces.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/patchPolymersMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/potentialEnergyMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/potentialMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/savePatchyParticlesState.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/saveState.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/stressMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/thermodynamicIntegration.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/thermodynamicMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/vqcmMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/vqcmMobilityMeasurement.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/backup.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/seed.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/systems/simulationName.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/basic.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/types/none.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/KcalMol_A.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/units/none.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/SurfaceUmbrellaSampling.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/experiments/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/bounds.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/objects/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/objects/helix.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/geometry/particlesDistribution.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/input/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/input/stringUtils.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/launcher/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/selections/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/selections/commonSelections.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/utils/units/__init__.py +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/SOURCES.txt +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/dependency_links.txt +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/requires.txt +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/pyVLMP.egg-info/top_level.txt +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/setup.cfg +0 -0
- {pyvlmp-1.0.74 → pyvlmp-1.0.76}/setup.py +0 -0
|
@@ -8,10 +8,12 @@ class AFM(modelExtensionBase):
|
|
|
8
8
|
This extension add an interaction between a particle (the tip) and other set of
|
|
9
9
|
particles (the sample). The interaction between the tip and the sample is modeled
|
|
10
10
|
as a Lennard-Jones potential. The tip is modeled as a spherical particle with a
|
|
11
|
-
spring attached to it.",
|
|
11
|
+
spring attached to it. Optionally, the tip is a cone that ends in that sphere.",
|
|
12
12
|
"parameters": {
|
|
13
13
|
"K": {"description": "Spring constant for the AFM cantilever", "type": "float", "default": null},
|
|
14
14
|
"Kxy": {"description": "Lateral spring constant", "type": "float", "default": null},
|
|
15
|
+
"tipShape": {"description": "Shape of the tip, spherical or sphericallyBluntedConic", "type": "str", "default": "spherical"},
|
|
16
|
+
"tipAngle": {"description": "Half-angle of the cone in radians, only for sphericallyBluntedConic", "type": "float", "default": null},
|
|
15
17
|
"epsilon": {"description": "Energy parameter for tip-sample interaction", "type": "float", "default": null},
|
|
16
18
|
"sigma": {"description": "Distance parameter for tip-sample interaction", "type": "float", "default": null},
|
|
17
19
|
"tipVelocity": {"description": "Velocity of the AFM tip", "type": "float", "default": null},
|
|
@@ -42,6 +44,7 @@ class AFM(modelExtensionBase):
|
|
|
42
44
|
availableParameters = {"epsilon",
|
|
43
45
|
"sigma",
|
|
44
46
|
"K","Kxy",
|
|
47
|
+
"tipShape","tipAngle",
|
|
45
48
|
"tipVelocity",
|
|
46
49
|
"indentationStartStep",
|
|
47
50
|
"indentationBackwardStep"}
|
|
@@ -67,6 +70,18 @@ class AFM(modelExtensionBase):
|
|
|
67
70
|
K = params["K"]
|
|
68
71
|
Kxy = params["Kxy"]
|
|
69
72
|
|
|
73
|
+
tipShape = params.get("tipShape","spherical")
|
|
74
|
+
tipAngle = params.get("tipAngle",None)
|
|
75
|
+
|
|
76
|
+
if tipShape not in ["spherical","sphericallyBluntedConic"]:
|
|
77
|
+
self.logger.error(f"AFM model extension, tip shape {tipShape} not available, "
|
|
78
|
+
"available shapes are: spherical, sphericallyBluntedConic")
|
|
79
|
+
raise Exception("Tip shape not available")
|
|
80
|
+
|
|
81
|
+
if (tipShape == "sphericallyBluntedConic") != (tipAngle is not None):
|
|
82
|
+
self.logger.error("AFM model extension, tipAngle must be given for the sphericallyBluntedConic tip, and only for it")
|
|
83
|
+
raise Exception("Tip shape and tip angle not compatible")
|
|
84
|
+
|
|
70
85
|
tipVelocity = params["tipVelocity"]
|
|
71
86
|
|
|
72
87
|
indentationStartStep = params.get("indentationStartStep",0)
|
|
@@ -97,6 +112,13 @@ class AFM(modelExtensionBase):
|
|
|
97
112
|
extension[name]["labels"] = ["idSet_i","idSet_j","epsilon","sigma","K","Kxy","tipVelocity","startChipPosition","indentationStartStep","indentationBackwardStep"]
|
|
98
113
|
extension[name]["data"] = [[tipIds,sampleIds,epsilon,sigma,K,Kxy,tipVelocity,startChipPosition,indentationStartStep,indentationBackwardStep]]
|
|
99
114
|
|
|
115
|
+
if tipShape == "sphericallyBluntedConic":
|
|
116
|
+
extension[name]["type"] = ["AFM","SphericallyBluntedConicTip"]
|
|
117
|
+
#After K and Kxy
|
|
118
|
+
index = extension[name]["labels"].index("Kxy")+1
|
|
119
|
+
extension[name]["labels"].insert(index,"tipAngle")
|
|
120
|
+
extension[name]["data"][0].insert(index,tipAngle)
|
|
121
|
+
|
|
100
122
|
############################################################
|
|
101
123
|
|
|
102
124
|
self.setExtension(extension)
|
|
@@ -43,6 +43,10 @@ class HighThroughputAFM(VLMP.VLMP):
|
|
|
43
43
|
self.K = parameters["AFM"]["K"]
|
|
44
44
|
self.Kxy = parameters["AFM"]["Kxy"]
|
|
45
45
|
|
|
46
|
+
#The shape is common to all the samples, different shapes can not be in the same batch
|
|
47
|
+
self.tipShape = parameters["AFM"].get("tipShape","spherical")
|
|
48
|
+
self.tipAngle = parameters["AFM"].get("tipAngle",None)
|
|
49
|
+
|
|
46
50
|
self.epsilon = parameters["AFM"]["epsilon"]
|
|
47
51
|
self.sigma = parameters["AFM"]["sigma"]
|
|
48
52
|
|
|
@@ -209,6 +213,7 @@ class HighThroughputAFM(VLMP.VLMP):
|
|
|
209
213
|
|
|
210
214
|
|
|
211
215
|
allParameters = ["K", "Kxy",
|
|
216
|
+
"tipAngle",
|
|
212
217
|
"epsilon",
|
|
213
218
|
"sigma",
|
|
214
219
|
"tipVelocity",
|
|
@@ -269,6 +274,8 @@ class HighThroughputAFM(VLMP.VLMP):
|
|
|
269
274
|
K_smp = self.K[index]
|
|
270
275
|
Kxy_smp = self.Kxy[index]
|
|
271
276
|
|
|
277
|
+
tipAngle_smp = self.tipAngle[index]
|
|
278
|
+
|
|
272
279
|
epsilon_smp = self.epsilon[index]
|
|
273
280
|
sigma_smp = self.sigma[index]
|
|
274
281
|
|
|
@@ -346,6 +353,8 @@ class HighThroughputAFM(VLMP.VLMP):
|
|
|
346
353
|
#Add AFM
|
|
347
354
|
|
|
348
355
|
sim["modelExtensions"].append({"type":"AFM","parameters":{"K":K_smp,"Kxy":Kxy_smp,
|
|
356
|
+
"tipShape":self.tipShape,
|
|
357
|
+
"tipAngle":tipAngle_smp,
|
|
349
358
|
"epsilon":epsilon_smp,
|
|
350
359
|
"sigma":sigma_smp,
|
|
351
360
|
"tipVelocity":tipVelocity_smp,
|
|
@@ -437,11 +446,16 @@ class AnalysisAFM:
|
|
|
437
446
|
def __init__(self,
|
|
438
447
|
VLMPsessionFilePath,
|
|
439
448
|
outputUnits,
|
|
449
|
+
outputType,
|
|
440
450
|
maxForce = None,
|
|
441
451
|
plotTime = False):
|
|
442
452
|
|
|
443
453
|
self.logger = logging.getLogger("VLMP")
|
|
444
454
|
|
|
455
|
+
if outputType not in ["window","file"]:
|
|
456
|
+
self.logger.error("[AnalysisAFM] Output type %s not available, available types are: window, file" % outputType)
|
|
457
|
+
raise Exception("Output type not available")
|
|
458
|
+
|
|
445
459
|
########################################################
|
|
446
460
|
|
|
447
461
|
self.VLMPsessionFilePath = VLMPsessionFilePath
|
|
@@ -450,6 +464,7 @@ class AnalysisAFM:
|
|
|
450
464
|
self.VLMPsession = json.load(f)
|
|
451
465
|
|
|
452
466
|
self.outputUnits = outputUnits
|
|
467
|
+
self.outputType = outputType
|
|
453
468
|
self.maxForce = maxForce
|
|
454
469
|
self.plotTime = plotTime
|
|
455
470
|
|
|
@@ -502,11 +517,16 @@ class AnalysisAFM:
|
|
|
502
517
|
if self.plotTime:
|
|
503
518
|
ax2 = ax.twinx()
|
|
504
519
|
ax2.plot(X,T,"--",color="red")
|
|
505
|
-
f.show()
|
|
506
520
|
|
|
507
521
|
if self.maxForce is not None:
|
|
508
522
|
ax.set_ylim([np.min(F),self.maxForce])
|
|
509
523
|
|
|
524
|
+
if self.outputType == "window":
|
|
525
|
+
f.show()
|
|
526
|
+
else:
|
|
527
|
+
f.savefig("/".join(self.VLMPsessionFilePath.split("/")[:-1]) + "/results/" + name + "/afm.png")
|
|
528
|
+
plt.close(f)
|
|
529
|
+
|
|
510
530
|
indentationProcessedFilePath = "/".join(self.VLMPsessionFilePath.split("/")[:-1]) + "/results/" + name + "/afm_processed.dat"
|
|
511
531
|
with open(indentationProcessedFilePath,"w") as f:
|
|
512
532
|
f.write("# {} {}\n".format(Xunits,Funits))
|
|
@@ -514,4 +534,5 @@ class AnalysisAFM:
|
|
|
514
534
|
f.write("{} {}\n".format(X[i],F[i]))
|
|
515
535
|
|
|
516
536
|
#Wait for plots to be closed
|
|
517
|
-
|
|
537
|
+
if self.outputType == "window":
|
|
538
|
+
input("Press enter to continue...")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/integrators/EulerMaruyamaRigidBodyPatchesState.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceBetweenCentersOfMass.py
RENAMED
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantForceOverCenterOfMass.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constantTorqueOverCenterOfMass.py
RENAMED
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintCenterOfMassPosition.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPosition.py
RENAMED
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/constraintParticlesPositionLambda.py
RENAMED
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelExtensions/harmonicBondBetweenCentersOfMass.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/alignInertiaMomentAlongVector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/modelOperations/setParticleLowestPosition.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/forceBetweenSetsMeasurement.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/meanMagnetizationMeasurement.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/nativeContactsMeasurement.py
RENAMED
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/oscillatoryForceMeasurment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyvlmp-1.0.74 → pyvlmp-1.0.76}/VLMP/components/simulationSteps/potentialEnergyMeasurement.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|