Previous Next

Methane CH Stretch Vibration (t2) – 2

Author: Dennis Svatunek





Date:
11.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="D0101" style="margin: auto; width: 400px; height: 400px;"></div>
</div>
<script>
(function() {
  $(document).ready(function() {
    var viewer = $3Dmol.createViewer("D0101", {defaultcolors: $3Dmol.elementColors.Jmol});
    var xyz = `5 
    * (null), Energy   -276.0000000  
    C    -0.337425  -0.848669   0.000000  0.087732 0.030274 -0.000000 
    H     0.031329  -1.891697   0.000000  0.012948 0.012297 -0.000000
    H     0.031348  -0.327166   0.903287 -0.122107 -0.189173 -0.336793
    H     0.031348  -0.327166  -0.903287 -0.122108 -0.189176 0.336797
    H    -1.443716  -0.848657   0.000000 -0.814115 0.005318 -0.000000
    `; 
    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();
$("#D0101").css("position", "relative");
  });
})();
</script>


Copyright © 2024 Dennis Svatunek.