Please wait...
×

Error

Posted Tue, 09 Jul 2024 12:23:12 GMT by adam zonshine
Hey. I am attempting to create a tidal simulation, for which I need to turn off the hydraulic head boundary whenever each node is above sea level. I have a code that deletes the values of each time series of each node where the head values are below the node elevation, but I cannot seem to insert a gap, as the IFM code wants a numeric value for each time step. I could do it manually but the is too much work for too many nodes, and I believe there must be a way to do it with code, or perhaps another way.
Posted Thu, 18 Jul 2024 16:14:14 GMT by Carlos Andres Rivera Villarreyes Global Product Specialist - FEFLOW
Hi Adam, Internally a GAP in a time series is represented as Not A Number (NaN). I recall I have done this task using the FEFLOW - Python interface. To represent a NaN, I used np.nan, where np stands for the NumPy Python package. Then it is simply a matter to insert the new pair (time, value) to the specific time series. See documentation below: https://dhi.github.io/ifm/api_doc.html?highlight=power#ifm.FeflowDoc.powerSetPoint Cheers Carlos

You must be signed in to post in this forum.