Name of this StringShape, either a the language-independent name for scripting purposes or the localized name for display to user.
Optional opt_localized: booleantrue means return the localized version of the name;
default is false which means return the language independent name.
name of this StringShape
Generated using TypeDoc
Defines initial conditions of a string used in the StringSim PDE simulation by specifying the initial displacement and velocity at each point of the string.
How to find the correct velocity for a traveling wave:
The d'Alembert equation for a left-moving traveling wave is
f(x + ct), wheref()is a general single-variable waveform, think of it asf(x)moving to the left astincreases. The velocity (partial derivative with respect to time) is thenc f'(x + ct)which at timet=0isc f'(x). So take the first derivative of the waveform, and multiply bycwherecis the wave speed= sqrt(tension/density). Right-moving wave isf(x - ct)with derivative-c f'(x)