Source code for VeraGridEngine.DataStructures.fluid_p2x_data

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
from VeraGridEngine.DataStructures.fluid_turbine_data import FluidTurbineData


[docs] class FluidP2XData(FluidTurbineData): """ FluidP2XData """ def __init__(self, nelm: int): """ Fluid P2X data arrays :param nelm: number of fluid p2xs """ FluidTurbineData.__init__(self, nelm=nelm)
[docs] def copy(self) -> "FluidP2XData": """ Get deep copy of this structure :return: new FluidP2XData instance """ data: FluidP2XData = super().copy() data.__class__ = FluidP2XData return data