Skip to content

Commit

Permalink
Merge pull request #2 from virtual-labs/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
Dineshg49 authored Aug 1, 2021
2 parents 6b2bf6a + e84717e commit 7ca277c
Show file tree
Hide file tree
Showing 13 changed files with 370 additions and 285 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployment-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
node-version: '12'
check-latest: true
- run: |
git clone -b pipeline-new https://github.com/virtual-labs/ph3-lab-mgmt
git clone --depth=1 https://github.com/virtual-labs/ph3-lab-mgmt
cd ph3-lab-mgmt
npm install
node exp.js
npm run build-exp
cd ../
git config --local user.email "[email protected]"
git config --local user.name "vleadadmin"
Expand Down
12 changes: 11 additions & 1 deletion experiment/aim.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
### Aim of the experiment
**Introduction**

A coil spring, also known as a helical spring, is a mechanical device that is typically used to store energy and subsequently release it, absorb shock, or maintain a force between surfaces in contact. They are made of an elastic material formed into the shape of a helix, which returns to its natural length when unloaded.


**Objective**

To determine the deflection, stiffness & strain energy of a coiled spring.



2 changes: 1 addition & 1 deletion experiment/experiment-name.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Experiment name
## Compression Test on Spring
135 changes: 0 additions & 135 deletions experiment/posttest.js

This file was deleted.

56 changes: 56 additions & 0 deletions experiment/posttest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": 2.0,
"questions": [{
"question": "1. A close helical spring has a stiffness of 10 N/mm. Its length when fully compressed, with adjacent coils touching each other, is 400 mm. The modulus of rigidity of the material of the spring is 8 x 10<sup>4</sup> N/mm<sup>2</sup>. What is the wire diameter and the mean coil diameter if their ratio = 1/10?",
"answers": {
"a": "20mm and 200mm",
"b": "200mm and 20mm",
"c": "10mm and 100mm",
"d": "100mm and 10mm"
},
"explanations": {
"a": "Using the formula δ = 64WR<sup>3</sup>n / Cd<sup>4</sup> <br> where W = weight of load, R = radius of coil , n = number of turns, C = modulus of rigidity , d = diameter of wire <br> We get d = 20mm <br> d/D = 0.1, so D = 200mm.",
"b": "Using the formula δ = 64WR<sup>3</sup>n / Cd<sup>4</sup> <br> where W = weight of load, R = radius of coil , n = number of turns, C = modulus of rigidity , d = diameter of wire <br> Also d/D = 0.1.",
"c": "Using the formula δ = 64WR<sup>3</sup>n / Cd<sup>4</sup> <br> where W = weight of load, R = radius of coil , n = number of turns, C = modulus of rigidity , d = diameter of wire <br> Also d/D = 0.1.",
"d": "Using the formula δ = 64WR<sup>3</sup>n / Cd<sup>4</sup> <br> where W = weight of load, R = radius of coil , n = number of turns, C = modulus of rigidity , d = diameter of wire <br> Also d/D = 0.1."
},
"correctAnswer": "a",
"difficulty": "advanced"
},
{
"question": "2. A close helical spring has a stiffness of 10 N/mm. Its length when fully compressed, with adjacent coils touching each other, is 400 mm. The modulus of rigidity of the material of the spring is 8 x 10<sup>4</sup> N/mm<sup>2</sup>. If the gap between any two adjacent coils is 2 mm, what maximum load can be applied before the spring becomes solid, i.e., adjacent coils touch?",
"answers": {
"a": "200 N",
"b": "400 N",
"c": "100 N",
"d": "800 N"
},
"explanations": {
"a": "δ = 2d <br> W/δ = 10",
"b": "δ = 2d = 2 * 20 = 40 mm <br> W/δ = 10 <br> W = 10 * 40 = 400 N",
"c": "δ = 2d <br> W/δ = 10",
"d": "δ = 2d <br> W/δ = 10"
},
"correctAnswer": "b",
"difficulty": "advanced"
},
{
"question": "3. A close helical spring has a stiffness of 10 N/mm. Its length when fully compressed, with adjacent coils touching each other, is 400 mm. The modulus of rigidity of the material of the spring is 8 x 10<sup>4</sup> N/mm<sup>2</sup>. What is the maximum stress in the spring?",
"answers": {
"a": "25.46 N/mm<sup>2</sup>",
"b": "50.92 N/mm<sup>2</sup>",
"c": "101.84 N/mm<sup>2</sup>",
"d": "None of the above"
},
"explanations": {
"a": "T = WR = f<sub>s</sub>πd<sup>3</sup> / 16 <br> f<sub>s = 25.46 N/mm<sup>2</sup> ",
"b": "T = WR = f<sub>s</sub>πd<sup>3</sup> / 16",
"c": "T = WR = f<sub>s</sub>πd<sup>3</sup> / 16",
"d": "T = WR = f<sub>s</sub>πd<sup>3</sup> / 16"
},
"correctAnswer": "a",
"difficulty": "advanced"
}

]
}
135 changes: 0 additions & 135 deletions experiment/pretest.js

This file was deleted.

30 changes: 30 additions & 0 deletions experiment/pretest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 2.0,
"questions": [{
"question": "1. Both the helical spring and the wire of the helical torsion spring are subjected to torsional shear stresses.",
"answers": {
"a": "True",
"b": "False"
},
"correctAnswer": "b",
"difficulty": "beginner"
},
{
"question": "2. When a close-coiled helical spring is subjected to an axial load, it is said to be under ____ (stress).",
"answers": {
"a": "Bending",
"b": "Shear",
"c": "Torsion",
"d": "Crushing"
},
"explanations": {
"a": "Bending stress is the normal stress that an object encounters when it is subjected to a large load at a particular point that causes the object to bend and become fatigued.",
"b": "Shear stress is the force that tends to cause the deformation of a material by slippage along a plane or planes parallel to the imposed stress.",
"c": "Torsion stress is the stress caused due to twisting of an object due to an applied torque.",
"d": "Crushing stress (bearing stress) is a special type of localized compressive stress which occurs at the surface of contact of two members that are relatively at rest."
},
"correctAnswer": "c",
"difficulty": "intermediate"
}
]
}
Loading

0 comments on commit 7ca277c

Please sign in to comment.