v_sim.Vibration¶
- Subclasses:
 None
Methods¶
- Inherited:
 v_sim.NodeValuesVector (9), v_sim.NodeValuesFarray (15), v_sim.NodeValues (16), GObject.Object (37), v_sim.Animatable (6)
- Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
oscilation amplitude  | 
||
r/w  | 
oscilation frequency  | 
||
r/w/co  | 
number of modes  | 
||
r/w  | 
time during an animation  | 
Signals¶
- Inherited:
 v_sim.NodeValues (1), GObject.Object (1), v_sim.Animatable (1)
Fields¶
- Inherited:
 v_sim.NodeValues (1), GObject.Object (1), v_sim.Animatable (1)
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.Vibration(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Common name to refer to a #_VisuVibration.
- classmethod new(data, label, n)¶
 - Parameters:
 data (
v_sim.Data) – av_sim.Dataobject.label (
str) – a label.n (
int) – an integer.
- Returns:
 a newly created
v_sim.Vibrationobject.- Return type:
 
Creates a
v_sim.Vibrationobject to store n vibration modes for data.New in version 3.8.
- animate()¶
 Starts animating phonons.
New in version 3.8.
- getCharacteristic(iph, q, en, omega)¶
 - Parameters:
 - Returns:
 Trueon success.- Return type:
 
This routine is used to get the characteristics of a given phonon, see
v_sim.Vibration.setCharacteristic() to set them.New in version 3.5.
- getNPhonons()¶
 - Returns:
 a number of phonons.
- Return type:
 
Retrieves the number of phonons in self.
New in version 3.5.
- resetPosition()¶
 Reset the node position of the given
v_sim.Data.New in version 3.5.
- setAmplitude(ampl)¶
 - Parameters:
 ampl (
float) – an amplitude.- Returns:
 Trueif amplitude is actually changed.- Return type:
 
Change the amplitude at which phonon are displayed on screen when using visu_vibration_play().
New in version 3.5.
- setCharacteristic(iph, q, en, omega)¶
 - Parameters:
 - Returns:
 Trueon success.- Return type:
 
This routine is used to define the characteristics of a given phonon.
New in version 3.5.
- setCurrentMode(iph)¶
 - Parameters:
 iph (
int) – a phonon id.- Raises:
 - Returns:
 Trueif its the first timev_sim.Nodesare displaced.- Return type:
 
Set all node displacements to zero and setup the displacement vector (u+iv) for each
v_sim.Node. After this call, visu_vibration_play() will move the nodes according to their vibration.New in version 3.5.
- setDisplacements(iph, vibes, complex)¶
 - Parameters:
 - Returns:
 Trueon success.- Return type:
 
visu_vibration_init() must have been call before. This routine is used to define a set of displacement vectors, corresponding to one phonon. The displacement vectors can be complex, in that case vibes contains 6 values for each
v_sim.Node.New in version 3.5.
- setTime(at)¶
 - Parameters:
 at (
float) – a given reduced time in [0;1].- Returns:
 Trueif value has been actually changed.- Return type:
 
Defines the current time offset used to displace nodes according to phonon distortions.
New in version 3.8.
- setUserFrequency(freq)¶
 - 
Change the frequency at which phonons are played with visu_vibration_play().
New in version 3.5.
 
- setZeroTime()¶
 Reset the position of phonons to use position at time equals zero (so applying just the q vector displacement).
New in version 3.5.
Property Details¶
- v_sim.Vibration.props.amplitude¶
 - 
oscilation amplitude
 
- v_sim.Vibration.props.frequency¶
 - 
oscilation frequency
 
- v_sim.Vibration.props.n_modes¶
 - Name:
 n-modes- Type:
 - Default Value:
 1- Flags:
 
number of modes