pyrc.core.components.node#
- class TemperatureNode(temperature, rc_objects: RCObjects = None, temperature_derivative=0, rc_solution: RCSolution = None)#
Bases:
ObjectWithPorts,EquationItemCapacitor building part, currently designed as thermal capacitor.
- Parameters:
temperature (float | int) – The temperature of the node.
temperature_derivative (float | int) – The temperature derivative of the node.
rc_objects (RCObjects, optional) – An
RCObjectsobject to store all building parts (Capacitors,Resistors, …) If None, an initial object will be used.rc_solution (RCSolution, optional) – An
RCSolutionobject where the solution is stored. If None, an initial solution will be used.
- __init__(temperature, rc_objects: RCObjects = None, temperature_derivative=0, rc_solution: RCSolution = None)#
Capacitor building part, currently designed as thermal capacitor.
- Parameters:
temperature (float | int) – The temperature of the node.
temperature_derivative (float | int) – The temperature derivative of the node.
rc_objects (RCObjects, optional) – An
RCObjectsobject to store all building parts (Capacitors,Resistors, …) If None, an initial object will be used.rc_solution (RCSolution, optional) – An
RCSolutionobject where the solution is stored. If None, an initial solution will be used.
- filter_resistors_equivalent(resistors=None)#
Returns all neighbours without the ones that are connected to the same node.
Used for equivalent resistances.
- get_resistors_between(node) list[Resistor]#
Returns all resistors between self and node.
- Parameters:
node (TemperatureNode) – The TemperatureNode to which the resistors should go.
- Returns:
A list with all resistors between self and node.
- Return type:
list[Resistor]
- abstract property index: int#
Returns the position of self within the vector where the temperature is stored in.
Is currently defined by its subclasses using the result object.
- Returns:
The index of the vector.
- Return type:
int
- set_direction(node_direction_points_to: TemperatureNode, direction: ndarray)#
Adding a manual direction from self to the given node.
- The direction has to be a np.ndarray like:
[1,0,0] or [0,1,0] or [0,0,1] or negative ones of this.
- Parameters:
node_direction_points_to (TemperatureNode) – The node where the direction points to.
direction (np.ndarray) – The direction to the
node_direction_points_to. Has to be a np.ndarray.
- property symbols: list#
Returns a list of all sympy.symbols of the object, except time dependent symbols.
Must be in the same order as self.values.
- Returns:
The list of sympy.symbols.
- Return type:
list
- property temperature: float | number | int | Any#
- temperature_at_time(time_step: list | float | int) float64 | list#
- property temperature_vector: ndarray#
- property temperature_vector_pandas: Series#
The result vector of one node as pandas Series.
- Return type:
pd.Series
- property values: list#
Returns a list of all values of all object symbols, except of time dependent symbols.
Must be in the same order as self.symbols.
- Returns:
The list of sympy.symbols.
- Return type:
list