Commit 643c7cdb authored by Amira Abdel-Rahman's avatar Amira Abdel-Rahman
Browse files

structural dynamics validation

parent 7513b8e6
Pipeline #12104 passed with stage
in 21 seconds
......@@ -27,6 +27,9 @@
var color5="#380152"; //purple
var color6="#696767"; //grey
var color7="#03dbfc"; //blue
var name="tutorial";
var name="newTendon";
var scale,nodeScale;
......@@ -39,10 +42,11 @@
gui.add(interaction,'exaggeration',0.0,10.0).listen();
gui.add(interaction,'speed',0.0,200.0).listen();
$.getJSON("../json/tutorial/0.json", function(json0) {
$.getJSON("../json/"+name+"/0.json", function(json0) {
var maxNumFiles=json0.maxNumFiles-1;
$.getJSON("../json/tutorial/"+maxNumFiles+".json", function(json) {
$.getJSON("../json/"+name+"/"+maxNumFiles+".json", function(json) {
var setup=json;
var static=false
setup.viz.colorMaps=[YlGnBu,coolwarm, winter ,jet];
......@@ -184,7 +188,7 @@
}else{ //dynamic
for(let i=0;i<maxNumFiles;i++){
$.getJSON("../json/tutorial/"+i+".json", function(jsons) {
$.getJSON("../json/"+name+"/"+i+".json", function(jsons) {
var setups=jsons;
for(let j=0;j<setups.nodes.length;j++){
gData.nodes[j].dxs[i]=setups.nodes[j].displacement.x*scale;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment