Replies: 2 comments 18 replies
-
@atpeterz Welcome to the IDAES discussion board. I will let another member of the IDAES team speak to your specific questions about a 1DControlVolume. As a fallback, if you are only interested in quickly simulating the PDEs you posted, you can try using Pyomo directly. Here are two relevant examples: If the dynamic 1D pipe model is just a starting point for a larger project, I encourage you to try to simulate this system with IDAES. IDAES will allow you to build more complex systems by coupling various unit operations from the modeling library. |
Beta Was this translation helpful? Give feedback.
-
@atpeterz Welcome to the IDAES discussion board. It is definitely possible to solve the types of models you are interested in IDAES, although dynamic models are always a little bit tricky to work with. Unfortunately, we haven;t had the time or resources to put together good examples of working with dynamic models yet, but we have solved dynamic systems, including heat exchangers, before. As a place to start, I would recommend looking at the 1D heat exchanger model - the case you discussed is similar in many ways to this: https://github.com/IDAES/idaes-pse/blob/main/idaes/models/unit_models/heat_exchanger_1D.py. Regarding control volume,s the first thing to emphasize is that these are meant to be be convenience tools which can automate common tasks/activities for you - you do not need to use them if you do not want to. For example, the second equation you showed appears to be the energy balance for the fluid phase with a heat transfer term - the control volume can automate the construction of that for you. The Next, the place to implement your additional equations (the wall material energy balance and the definition of Q) is either the unit model or the control volume (we would generally use the unit model). Note that an instance StateBlock is created at every point in the spatial domain, so you do not want to have any derivative variables in there (you would end up with n-instance of the derivative, rather than a single instance with n-elements). Finally, a comment on general solvability of these types of systems: the system you showed above does not seem to be too bad, but you do have two different time-dependent derivatives which quite likely have different time constants (fluid and wall hold-ups). If these time constants are significantly different then the system of equations will become very stiff and difficult to solve. If you have a case where the time constants are extremely different, you generally need to decide which of the two terms is more important and simplify the other (generally by assuming steady-state over the time interval of interest). We have tried solving these types of systems before, and we found htat we needed to make these sorts of assumptions in order to be able to solve the model. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions