Driven
[
["m1","Mass 1"],
["m2","Mass 2"],
["s1","Spring 1"],
["s2","Spring 2"],
["base","Base"]
]
Measure
[
["m1","Mass 1"],
["m2","Mass 2"],
["s1","Spring 1"],
["s2","Spring 2"]
]
Quantity
[
["disp","Displacement"],
["vel","Velocity"],
["force","Force"],
["length","Length"]
]
Mass 1m\sub{1} [ kg ]
Spring 1s\sub{1} [ \ratio{N}{m} ]
Mass 2m\sub{2} [ kg ]
Spring 2s\sub{2} [ \ratio{N}{m} ]
color.add("mass","var(--theme-dull-dark-8)","var(--theme-dull-dark-3)")
color.add("mass-fill","gray")
color.add("spring","var(--theme-dull-dark-8)","var(--theme-dull-dark-3)")
color.add("frf","var(--theme-dull-dark-8)","var(--theme-dull-dark-3)")
color.add("marker","red")
const frfWeight = 8
const markerWeight = 3
const spaceWidth = this.width/4 - 100
const space = this.newPlot({
position: [ this.left+100, this.bottom+20 ],
size: [spaceWidth, this.height-40],
rangeX: [-1,1],
rangeY: [0,10],
labelX: "",
labelY: "Position x [m]",
gridX: false,
tickArrayX: [],
tickEndsX: false,
tickArrayX: [-10],
tickLabelFontSizeY: 30,
tickLabelGapY: 10,
labelFontSizeY: 40,
labelGapY: 15,
}).group
const frf = this.newPlot({
position: [ this.left + 100 + spaceWidth + 150, this.bottom+100],
size: [this.width - spaceWidth - 100 - 150 - 20 ,this.height-100-40 ],
rangeX: [1,10000],
rangeY: [0,10],
labelX: "Driving Frequency f\\sub{dr} [Hz]",
labelY: "Displacement Amplitude \\xi [m]",
tickStepX: 10000,
labelFontSizeY: 40,
labelFontSizeX: 40,
typeX:"log",
tickArrayX:[1,10,100,{value:1000,label:"1k"},{value:10000,label:"10k"}]
}).group