How is the correct heat transfer equation in the Simscape block "Pipe (TL)"?
The temperature at the outlet port will be the same as the temperature inside the pipe. So usually either T_A or T_B will be th...

5 months ago | 0

Tutorials on Two Phase Fluid models?
In Simscape Fluids, there is an example/tutorial on how to build one of the shipping example on refrigeration step by step. h...

5 months ago | 0

How can i plot P-H Diagram with two parameter are: Pressure and Temperature( With refrigerantion system)?
Hi Trieu, For points outside the vapor dome, P & T uniquely determine the state. You may use Reservoir (2P) or Controlled Rese...

5 months ago | 0

How to model combustion chamber or heater for gas turbine system using Simulink?
Hi Kheng, For this application, I would highly recommend that you use Simscape and Simscape Fluids for your physical modeling. ...

5 months ago | 0

Simscape Thermal Liquid Domain - Across variable T of parallel flows
Adding a pipe block after each of the custom components will work just fine as well. Indeed, ALL ports connected to the same ju...

5 months ago | 0

Problem with Condensator-Evaporator (TL-2P) block in simscape fluids
Hi Lorenzo, I too agree that having counter flow and flow perpendicular to bank of tubes at the same time doesn't quite make se...

5 months ago | 0

On what basis do you vary the Laminar Pressure Ratio parameter in the Local Restriction (MA) block in Simscape?
I've adjusted this parameter to match the shape of a deltaP-Q curve over an orifice inside a valve. But 99% of the time, I didn...

6 months ago | 0

How can I assamble n identical blocks in a simscape simulation automathically?
In addition to @Fangjun Jiang's suggestion on add_block(), I would encourage you to also look into the "composite component" opt...

6 months ago | 1

Error Temperature of liquid volume must be less than or equal to Maximum valid temperature
Hi Johannes, I took a look at your model. Two minor things, both in the pump subsystem, I'd suggest that you change: the unit...

6 months ago | 0

I want to use a solenoid valve to achieve two-phase flow on/off
First, you'll almost never see a valve block to be complete "off" in a model. You'll always see a minimum area or flow fraction...

6 months ago | 0

Problems with the "System-Level Heat Exchanger (TL-MA)" Simscape block
Starting from "nominal temperatures and rate of heat transfer" means at time of 0, the fluids inside the volume will have the pr...

8 months ago | 0

How do I take the translation output from one hydraulic cylinder rod and give it as an input to another so that it can act as a reciprocating pump in SIMHYDRAULICS?
I believe you have one of the hydraulic cylinder backwards. The left-right on the canvas doesn't indicate positive or negative ...

9 months ago | 1

| accepted

Reciever Accumulator in Simscape inlet Liquid and Vapour problem
It doesn't matter what state/mixture goes INTO the receiver from which port; the block will get what's coming in. When the flui...

9 months ago | 0

| accepted

2P-2P Heat Exchanger
A few thoughts: (1) maybe use a system-level heat exchanger (2P-2P) as a starting point, so you have a model that you can simul...

9 months ago | 0

| accepted

Simcape real gas properties for N and H2
Coolprop is free. They also have MATLAB wrapper.

9 months ago | 0

Brazed plate heat exchanger on Simscape
I would recommend the following combination of options: The key is to choose "generic" for tube section, so you can set th...

9 months ago | 2

| accepted

two-phase flow 4-way valve
You may follow this example on how to make a N-way valve manually. https://www.mathworks.com/help/simscape/ug/hydraulic-actuato...

9 months ago | 0

Simscape how to set up a multi-process evaporator or condenser
The architecture looks right: refrigerant in series and air flow in parallel, like the actual heat exchanger. A few things to p...

9 months ago | 0

| accepted

How to model tanks with inlets above liquid level - partially filled pipes missunderstood?
You can find here two examples on how to use a tank block and a partially filled pipe together in an isothermal liquid model. T...

10 months ago | 0

| accepted

Binary Mixtures using coolprop in Matlab
Looks like you can use the MATLAB wrapper for Coolprop to define a mixture and query the properties, like below: py.CoolProp.Co...

10 months ago | 1

How to plot pump and system curve based on the hydraulic model in Simscape / Simulink?
To summarize the discussion from the comments section: The pump curves can be generated from the pump blocks in Simscape Fluids...

10 months ago | 0

Connection between corrected mass flow and pressure ratio in the Turbine (G) Block
Summary from the discussion in the Comments section. While the formulation isn't given in the Documentation page of the Turbine...

10 months ago | 0

Definition of Reynolds number for MA side in Heat Exchanger (2P-MA) model
I checked the source code: for generic geometry, the hydraulic diameter is calculated as 4 * generic_fluid_volume / generic_he...

11 months ago | 0

Heat Pump Air Conditioner
Hello, I would suggest that you take a close look at this Documentation page "Model a Refrigeration Cycle" https://www.mathwor...

11 months ago | 0

| accepted

Two-phase exchanger with evaporator that loses pressure at the outlet.
Check out this documentation page and carefully follow the workflow. https://www.mathworks.com/help/hydro/ug/modeling-a-refrige...

11 months ago | 1

Implementation of two-phase liquid out of REFPROP into simscape
In the same Documentation page, there is an example of using the same command to assign the properties to a Two-Phase Fluid Prop...

11 months ago | 0

| accepted

How can I solve the error generated by a T-Junction when there is a Parallel Channels block in my simscape fluid model?
Hi Miguel, In the model you shared, the T-junction has the default initial flow target of 0 at all ports and "high" priority. ...

11 months ago | 1

Data center Simscape modelling
There is a shipping example on data center cooling, in R2023a. https://www.mathworks.com/help/hydro/ug/data-center-cooling.html...

12 months ago | 0