Methane CH Stretch Vibration (t2) – 1
Author: Dennis Svatunek
Date:
07.01.2024
Version:
1.0
License:
CC BY-NC
Description:
t2 CH stretch of methane (IR active) @~3100 cm-1
View Code
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://3Dmol.org/build/3Dmol-min.js"></script>
<div style="text-align: center;">
<div id="D0100" style="margin: auto; width: 400px; height: 400px;"></div>
</div>
<script>
(function() {
$(document).ready(function() {
var viewer = $3Dmol.createViewer("D0100", {defaultcolors: $3Dmol.elementColors.Jmol});
var xyz = `5
* (null), Energy -276.0000000
C -0.337425 -0.848669 0.000000 -0.000000 -0.000001 -0.092796
H 0.031329 -1.891697 0.000000 -0.000002 0.000005 -0.016393
H 0.031348 -0.327166 0.903287 0.239015 0.338091 0.569209
H 0.031348 -0.327166 -0.903287 -0.239013 -0.338088 0.569203
H -1.443716 -0.848657 0.000000 0.000001 -0.000000 -0.016294
`;
viewer.addModel(xyz, "xyz");
viewer.vibrate(10, 0.35, true);
viewer.setStyle({}, {stick: {radius: 0.15}, sphere: {scale: 0.25}});
viewer.zoomTo();
viewer.zoom(1.4);
viewer.setBackgroundColor('#f9f9f9');
viewer.rotate(80, {x: 1, y: 0, z: 0});
viewer.setViewStyle({style: 'outline', color: 'black', width: 0.02});
viewer.animate({loop: 'backandforth', interval: 100, reps: 0});
viewer.render();
$("#D0100").css("position", "relative");
});
})();
</script>