v_sim.Pointset¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
All nodes are constrained in the box |
||
r/w |
Translations along box axis |
||
r/w |
Translations along all axis |
||
r/w |
Use translations along all axis |
Signals¶
None
Fields¶
None
Class Details¶
- class v_sim.Pointset¶
- Bases:
- Structure:
Interface object.
New in version 3.8.
- applyTranslation()¶
Apply all the translation (node and box) on each node coordinates and reset both translations to zero.
New in version 3.8.
- getTranslation()¶
- Returns:
a location to store the translation values.
- Return type:
trans: [
float]
Retrieves the translations of self.
New in version 3.8.
- getTranslationPeriodicStatus()¶
- Returns:
Trueif any of the translation in the periodic boundary conditions are not null.- Return type:
Tests if any of the translation in the periodic boundary conditions are not null.
New in version 3.8.
- setBoxTranslation(boxTrans, withModulo)¶
- Parameters:
- Returns:
Trueif any translations have been changed.- Return type:
This sets the translations of the specified
v_sim.Pointsetonly along periodic axis. The translation boxTrans gives normalized values along all box axis. Points are also constrainted inside the box in the periodic directions if withModulo isTrue.New in version 3.8.
- setInTheBox(status)¶
- Parameters:
status (
bool) – a boolean.- Returns:
True, if any node has changed position.- Return type:
Update all node positions inside self to be constrained inside the box (status is
True), or release all previous position shift to original position without constrain (status isFalse).New in version 3.8.
- setTranslation(trans, withModulo)¶
-
Apply the given translation values to self. If withModulo is given, all points inside the pointset will be shifted inside the periodic cell.
New in version 3.8.
- setTranslationActive(status)¶
-
Set the if the translations are applied or not to self.
New in version 3.8.
- setTranslationPeriodic(trans, withModulo)¶
- Parameters:
- Returns:
Trueif any translations have been changed.- Return type:
This sets the translations of the specified
v_sim.Pointsetonly in periodic boundary conditions. Points are also constrainted inside the box in the periodic directions if withModulo isTrue.
- shift(delta, withModulo)¶
- Parameters:
- Returns:
Trueif translation is changed.- Return type:
Shift the translation by delta.
New in version 3.8.
- do_apply_translation() virtual¶
a routine to apply the stored translations.
- do_get_translation(translation) virtual¶
- Parameters:
translation (
float) –
a routine to get the current translation status.
- do_set_inTheBox(status) virtual¶
-
a routine to translate every content in the box.
- do_set_translation(translation, withModulo) virtual¶
-
a routine to set the translation status.
Property Details¶
- v_sim.Pointset.props.in_the_box¶
-
All nodes are constrained in the box
- v_sim.Pointset.props.reduced_translation¶
-
Translations along box axis
- v_sim.Pointset.props.translation¶
-
Translations along all axis