Skip to content

Commit

Permalink
Merge pull request #49 from virtual-labs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
vaibhavkurhe27 authored Nov 15, 2024
2 parents 02b9a0d + f4ad0f6 commit a7cd436
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 104 deletions.
6 changes: 3 additions & 3 deletions experiment/posttest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"difficulty": "beginner"
},
{
"question": "Which of the following is the output voltage formula of a Quartz transducer?",
"question": "Which of the following is the output voltage formula of a quartz transducer?",
"answers": {
"a": "V<sub>0</sub>= Q/C",
"b": "V<sub>0</sub>=C/Q",
Expand All @@ -27,7 +27,7 @@
"difficulty": "beginner"
},
{
"question": "A Piezoelectric transducer has a crystal capacitance of 10<sup>-9</sup> F, capable capacitance of 5 X 10<sup>-10</sup> F, and charge sensitivity of 15 x 10<sup>-6</sup> C/cm. If the input resistance of the oscilloscope is 1 MΩ in parallel with C = 15 X 10<sup>-10</sup> F, then what will be the voltage sensitivity?",
"question": "A piezoelectric transducer has a crystal capacitance of 10<sup>-9</sup> F, capable capacitance of 5 X 10<sup>-10</sup> F, and charge sensitivity of 15 x 10<sup>-6</sup> C/cm. If the input resistance of the oscilloscope is 1 MΩ in parallel with C = 15 X 10<sup>-10</sup> F, then what will be the voltage sensitivity?",
"answers": {
"a": "2000 V/cm",
"b": "3000 V/cm",
Expand All @@ -51,7 +51,7 @@
"difficulty": "beginner"
},
{
"question": "A Piezoelectric type accelerometer has a sensitivity of 100 mV/g. A transducer subjected to a constant acceleration of 5g. The steady state output transducer will be",
"question": "A piezoelectric type accelerometer has a sensitivity of 100 mV/g. A transducer subjected to a constant acceleration of 5g. The steady state output transducer will be",
"answers": {
"a": "0",
"b": "100 mV",
Expand Down
4 changes: 2 additions & 2 deletions experiment/pretest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 2.0,
"questions": [
{
"question": " A transducer that converts measure and into the form of pulse is known as___",
"question": " A transducer that converts measure into the form of pulse is known as___",
"answers": {
"a": "Active transducer",
"b": "Analog transducer",
Expand All @@ -27,7 +27,7 @@
"difficulty": "beginner"
},
{
"question": "In piezoelectric transducer, the polarity of produced charge depends upon _____",
"question": "In a piezoelectric transducer, the polarity of produced charge depends upon _____",
"answers": {
"a": "The direction of applied stress",
"b": "Piezoelectric material property",
Expand Down
24 changes: 12 additions & 12 deletions experiment/procedure.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@

### Basic Knowledge :
### Basic Knowledge
- Answer all the questions and click on "Submit Test" button

### Configuration :
### Configuration
- Select the material
- Select length, thickness, width of material and configure
- Click on "Next Level"

### Calculations :
### Calculations
- Enter the force between 1 to 50 (N)
- Calculate pressure and enter it's value if the value is correct further calculations will be enabled and if the value is incorrect then formula followed by correct answer will be displayed after 3 attempts
- Calculate output voltage and enter it's value, if the value is correct further calculations will be enabled and if the value is incorrect then formula followed by correct answer will be displayed after 3 attempts
- Calculate charge Q, after calculating correct answer click on "Next Reading" button and similarly calculate other 4 readings for the same material
- After calculating 5 readings select another material from the top and repeat the same process by selecting another material
- Calculate pressure and enter it's value. If the value is correct, further calculations will be enabled and if the value is incorrect, then formula followed by correct answer will be displayed after 3 attempts
- Calculate output voltage and enter it's value, if the value is correct, further calculations will be enabled and if the value is incorrect, then the formula followed by correct answer will be displayed after 3 attempts
- Calculate charge Q. After calculating correct answer click on "Next Reading" button and similarly calculate other 4 readings for the same material
- After calculating 5 readings, select another material from the top and repeat the same process by selecting another material
- After recording 5 readings for the new material, click the "Compare with Previous Material" button

### Standard observations :
### Standard observations
- Here, you can compare the difference between the standard calculations for both materials
- Click "Next Level" at the top

### Actual observations :
### Actual observations
- Here, you can find the difference between standard values and observed values for both the materials
- Click "Next Level" at the top

### Testing :
### Testing
- Select the material for testing
- Select appropriate dimensions i.e length , width and height and click on check configuration
- Select appropriate dimensions i.e length, width and height and click on check configuration
- If the selected parameters are correct, the Height and Weight fields will be enabled, while the remaining configuration parameters above will be disabled
- Enter a height between 1 and 100 cm, input the appropriate weight, and click "Start." You will then see the force required on digital meter
- Enter a height between 1 and 100 cm, input the appropriate weight, and click "Start". You will then see the force required on digital meter
- Click on "Reset" button and take trials for different height and weight
- If the sensor breaks due to certain parameters, click the "Reselect" button to adjust the configuration and repeat the process, taking different trials. After recording 5 readings, you can proceed to the next level's results page
11 changes: 0 additions & 11 deletions experiment/simulation/.project

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion experiment/simulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h5 class="modal-title1" id="exampleModalLabel">Procedure</h5>


<footer>
Copyrights &copy; COEPTECH - Virtual Lab
Copyrights &copy; COEPTECH - Virtual Labs
</footer>
</body>

Expand Down
6 changes: 3 additions & 3 deletions experiment/simulation/src/piezoApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function piezoApp(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Select the Values");
$("#MsgModal").html("Select the values");
}else{

if(mimLen==55.4 && mimThick==0.46 && mimWidth==23.4){
Expand Down Expand Up @@ -260,7 +260,7 @@ function piezoApp(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Select Appropriate Dimensions");
$("#MsgModal").html("Select appropriate dimensions");
wrongSelect++;
}
}
Expand All @@ -281,7 +281,7 @@ function piezoApp(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter the Values");
$("#MsgModal").html("Enter the values");
}else{


Expand Down
30 changes: 15 additions & 15 deletions experiment/simulation/src/piezoCalculation.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter the Values");
$("#MsgModal").html("Enter the values");


}else{
Expand All @@ -166,7 +166,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Avoid Duplicates");
$("#MsgModal").html("Avoid duplicates");
// alert("Avoid Duplicates");
arrWeight.splice(index,1);
$("#submit_load1").prop('disabled',false);
Expand All @@ -188,7 +188,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter Force between 1 to 50 (N)");
$("#MsgModal").html("Enter force between 1 to 50 (N)");

if(itr==5){
if(materialSelect == 10){
Expand Down Expand Up @@ -220,7 +220,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter the Values");
$("#MsgModal").html("Enter the values");

}else{
text2 = parseFloat($("#text2").val());
Expand All @@ -239,7 +239,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Entered value is Incorrect.<br>Try again");
$("#MsgModal").html("Entered value is incorrect.<br>Try again");

if(itr==5){
if(materialSelect == 10){
Expand All @@ -261,7 +261,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#23435c");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("<b>Formula : Pressure = F/A, where A = length &times; width</b>");
$("#MsgModal").html("<b>Formula : <br>Pressure = F/A, <br>where, A = length &times; width</b>");
if(itr==5){
if(materialSelect == 10){
wrongAttemptPressureM1++;
Expand Down Expand Up @@ -294,7 +294,7 @@ function calculateVal(){
$("#btnModal").removeClass("btn-danger").addClass("btn-success");
$(".modal-header").html("Success Message");
$(".modal-header").css("background","#5cb85c");
$("#MsgModal").html("Correct Answer is " + pressure);
$("#MsgModal").html("Correct answer is " + pressure);
// alert("correct answer is " + pressure );

// $("#modelMsg").html("<b class='boldTextRed'>Correct answer is " + axialCal+"</b>");
Expand Down Expand Up @@ -346,7 +346,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter the Values");
$("#MsgModal").html("Enter the values");
}else{
text3 = parseFloat($("#text3").val());
if (id2 <= 3) {
Expand All @@ -364,7 +364,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Entered value is Incorrect.<br>Try again");
$("#MsgModal").html("Entered value is incorrect.<br>Try again");

if(itr==5){
if(materialSelect == 10){
Expand All @@ -387,7 +387,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#23435c");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("<b>Formula : voltage sensitivity &times; pressure &times; thickness </b>");
$("#MsgModal").html("<b>Formula : <br>voltage sensitivity &times; pressure &times; thickness </b>");

if(itr==5){
if(materialSelect == 10){
Expand Down Expand Up @@ -418,7 +418,7 @@ function calculateVal(){
$("#btnModal").removeClass("btn-danger").addClass("btn-success");
$(".modal-header").html("Success Message");
$(".modal-header").css("background","#5cb85c");
$("#MsgModal").html("Correct Answer is " + outputV);
$("#MsgModal").html("Correct answer is " + outputV);

if(itr==5){
if(materialSelect == 10){
Expand Down Expand Up @@ -462,7 +462,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Enter the Values");
$("#MsgModal").html("Enter the values");
}else{
text4 = parseFloat($("#text4").val());
if (id3 <= 3) {
Expand All @@ -485,7 +485,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Entered value is Incorrect.<br>Try again");
$("#MsgModal").html("Entered value is incorrect.<br>Try again");
// alert("Entered value is incorrect.Try it again.");
// $("#modelMsg").html("<b class='boldTextRed'>Entered value is incorrect.Try again . </b>");
// $("body").css("padding","0px 0px 0px 0px");
Expand All @@ -508,7 +508,7 @@ function calculateVal(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#23435c");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("<b>Formula : Charge = d &times; F</b>");
$("#MsgModal").html("<b>Formula : <br>Charge = d &times; F</b>");

if(itr==5){
if(materialSelect == 10){
Expand Down Expand Up @@ -546,7 +546,7 @@ function calculateVal(){
$("#btnModal").removeClass("btn-danger").addClass("btn-success");
$(".modal-header").html("Success Message");
$(".modal-header").css("background","#5cb85c");
$("#MsgModal").html("Correct Answer is " + charge);
$("#MsgModal").html("Correct answer is " + charge);
// alert("correct answer is " + charge );

// $("#modelMsg").html("<b class='boldTextRed'>Correct answer is " + axialCal+"</b>");
Expand Down
6 changes: 3 additions & 3 deletions experiment/simulation/src/piezoConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function config1(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Select Material type");
$("#MsgModal").html("Select material type");
// $("#modelMsg").html("select material type .");
}
else if(materialSelect == 10){
Expand Down Expand Up @@ -154,7 +154,7 @@ function config1(){
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Select Material");
$("#MsgModal").html("Select material");
// $("#modelMsg").html("<b class='boldTextRed'>Select material </b>");

}else if(lengthSelect==0){
Expand Down Expand Up @@ -222,7 +222,7 @@ function config1(){
$("#btnModal").removeClass("btn-danger").addClass("btn-success");
$(".modal-header").html("Success Message");
$(".modal-header").css("background","#5cb85c");
$("#MsgModal").html("Configured Successfully");
$("#MsgModal").html("Configured successfully");



Expand Down
4 changes: 2 additions & 2 deletions experiment/simulation/src/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
$(".modal-header").html("Error Message");
$(".modal-header").css("background","#9c1203b0");
$("#btnModal").removeClass("btn-success").addClass("btn-danger");
$("#MsgModal").html("Please Attempt all the questions");
$("#MsgModal").html("Please attempt all the questions");
// alert('Please attempt all the questions');
// $("body").css("padding","0px");
// $("#modelMsg").html("<b class='boldTextRed'>Please attempt all the questions.</b>");
Expand Down Expand Up @@ -130,7 +130,7 @@
$("#btnModal").removeClass("btn-danger").addClass("btn-success");
$(".modal-header").html("Success Message");
$(".modal-header").css("background","#5cb85c");
$("#MsgModal").html("<b>Test Submitted Successfully.<br> Number of Correct Answers :"+ansCount+"</b>");
$("#MsgModal").html("<b>Test submitted successfully.<br> Number of correct answers :"+ansCount+"</b>");

// $("#modelMsg").html("<b class='boldTextGreen'>Test Submitted Successfully .<br> Number of Correct Answers : " + ansCount+"</b>");
$('#nextLevelConfig').prop('hidden',false);
Expand Down
12 changes: 6 additions & 6 deletions experiment/simulation/src/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var htm = ''

+ '<div class="col-md-4">'
+ ' <div class="panel remarkBground" >'
+ ' <div class="panel-body remark" style="font-size:18px;"><center><b>Piezo electric transducer experiment completed successfully!!</b>'
+ ' <div class="panel-body remark" style="font-size:18px;"><center><b>Piezoelectric transducer experiment completed successfully!!</b>'
// + '<br> <b>Satisfactory performance</b></center>
+'</div>'
+ '</div>'
Expand Down Expand Up @@ -176,13 +176,13 @@ var htm = ''
+'<br><table class="table table-bordered ">'
+' <thead class="thead-dark">'
+' <tr class="">'
+' <th><center class="">COMPETENCY (PIEZO ELECTRIC SENSOR)</center></th>'
+' <th><center class="">COMPETENCY (PIEZOELECTRIC SENSOR)</center></th>'
+' <th><center class="">STATUS</center></th>'
+' </tr>'
+' </thead>'
+' <tbody>'
+' <tr>'
+' <td class=""><center>Basic knowledge</center></td>'
+' <td class=""><center>Basic Knowledge</center></td>'
if(quesPercent>=60){
htm += ' <td class=""><center class="attained"> Attained</center></td>'
}else{
Expand Down Expand Up @@ -288,7 +288,7 @@ var htm = ''
+'<div class="col-md-4">'
+' <div class="panel panel-danger headingPanel" >'
+' <div class="panel-body" id="panelbody">'
+'<center><span class="heading1"><b>Basic knowledge </b></span></center>'
+'<center><span class="heading1"><b>Basic Knowledge </b></span></center>'
+'</div>'
+'</div>'

Expand Down Expand Up @@ -322,7 +322,7 @@ var htm = ''
//
+'<div class="col-sm-4">'
+' <div class="panel panel-danger headingPanel">'
+' <div class="panel-body" id="panelbody"><center><span class="heading1"><b>Standard Calculation for Barium Titinate</b></span></center></div>'
+' <div class="panel-body" id="panelbody"><center><span class="heading1"><b>Standard calculations for barium titinate</b></span></center></div>'
+'</div>'

+'<div class="col-sm-6">'
Expand Down Expand Up @@ -351,7 +351,7 @@ var htm = ''
+' </div>'
+'<div class="col-sm-4">'
+' <div class="panel panel-danger headingPanel" >'
+' <div class="panel-body" id="panelbody"><center><span class="heading1"><b>Standard Calculation for Quartz</b></span></center></div>'
+' <div class="panel-body" id="panelbody"><center><span class="heading1"><b>Standard calculations for quartz</b></span></center></div>'
+'</div>'

+'<div class="col-sm-6">'
Expand Down
Loading

0 comments on commit a7cd436

Please sign in to comment.