Community Profile

# Yifeng Tang

### MathWorks

Last seen: Today Active since 2020

All

#### Content Feed

View by

Simscape 2P: How can I realize both varying local restriction and blocking the flow path.
Besides from my comment earlier, I've found that using a custom block of a "variable flow resistance" seems to make thing easier...

ongeveer 20 uur ago | 0

Optimal components for a two-stage heat pump in Simscape
It puzzles me why there isn't a flow out of the BV port of the tank. There isn't a flow into BV port either? The BV port is co...

ongeveer 20 uur ago | 0

Simscape Pipe array (many pipes in parallel)
It's possible to do it in the way you described. I attached a sample of "flow multiplier" and "thermal liquid multiplier". Dep...

8 dagen ago | 0

how can i do two phase to thermal liquid connection?
Hi Davod, This wasn't possible until the R2021a release of Simscape Fluids. https://www.mathworks.com/help/physmod/hydro/ref/i...

8 dagen ago | 0

How change simscape simulation time from seconds (sec.) to hours (h)
Just to summarize the thread of comments, so the question appears as "Answered". The easiset way is to multiply the duration of...

8 dagen ago | 0

Simscape Fluids - The best way to inputs parameters on the Displacement Pump Rexroth
Hi Diego, It's very common that the supplier doesn't provide ALL technical data. Some educated guess is often needed. The fir...

13 dagen ago | 0

How can i give more accurate initial conditions ?
The pump module has no input (velocity or torque) at the shaft. The system of equations is missing conditions needed to start t...

13 dagen ago | 0

What causes the pressure behavior in valves?
Hi Michael, I think there are a couple things at play here: First, there is currently no volume at all between the two reservo...

13 dagen ago | 0

Why the volumic flow rate sensor (motion air) is registering a negative value?
As @VBBV mentioned in the comment, switching the A/B port is likely the solution. Is this turbine block the same one as in theA...

13 dagen ago | 0

Simscape fluids and Ansys CFX
Hi Federico, For the block you mentioned, tabulated data or polynomial coefficients (which will require some data fitting) are ...

15 dagen ago | 0

Recursive type equation solution in simscape
Feels like you are trying to use Simscape like MATLAB :p, by considering how to use iterations to do the numerical integration. ...

15 dagen ago | 0

air-oxygen mixing model in a continuous process
You should be able to use the Moist Air (MA)domain for such a purpose. The domain keep tracks of the concentration, mass, and e...

15 dagen ago | 0

Problems with Organic Rankine Cycle Simulation
If you are new to Simulink and Simscape, consider the free, interactive tutorials known as the Onramps first. Simulink Onramp: ...

15 dagen ago | 1

| accepted

How to connect elements form different simscape sub-libraries?
I believe you may use two orifices to achieve what you have described. Just control the input area to each to adjust the amount...

15 dagen ago | 0

How to use Simscape to solve heat conduction equation?
I guess by "wrong results" you mean the measured heat flow rate doesn't make sense? I noticed you connected the heat flow rate ...

15 dagen ago | 0

I get the following error; "Caused by: Variable 'fan_area' has been deleted from base workspace." in Simscape
The parameters of this model are all kept in the Simulink model workspace. So the fact that it's looking for things in the base...

20 dagen ago | 0

Modeling of a bypass valve in the two-phase structure
If "opening fraction is zero throughout" and the valve let through a significant fraction of the total mass flow, you have too m...

20 dagen ago | 0

How can I implement vanes (IGVs) on compressor unit in Simscape?
You are right about the compressor block: it doesn't support vanes as an input. I can think of one workaround, by using a 3D lo...

20 dagen ago | 0

how can i get the specific heat at constant volume for two phase fluid Water/Steam
Hi Mario, You should be able to calculate Cv from Cp, temperature, thermal expansion coeffcient, density, and bulk modulus. Al...

20 dagen ago | 0

Is it possible to calculate the "hydraulic-translation-multibody"-system backwards?
I would agree with you that the valve position couldn't be calculated the way you described. The force, though, can be found by...

22 dagen ago | 0

Variable Kv valve model
My suggestion would be to modify the code of a local restriction block, and move the Discharge Coefficient (Cd) from "parameter"...

22 dagen ago | 0

Pressure-flow characteristic for a 4-Way Directional Valve
I believe the pressure differentials refer to p.P-p.A, p.P-p.B, p.A-p.T, p.B-p.T. The flow direction is defined in the save way...

22 dagen ago | 0

This may be a workaround: May the convective transfer coefficient in the 3-zone pipe ridiculously large, so it results in almos...

22 dagen ago | 0

How do I change the default settings (water) in Thermal Liquid (TL) Settings in my Simulink model?
Use the Thermal Liquid Settings block in Simscape / Foundation Library / Thermal Liquid / Utilities: https://www.mathworks.com/...

22 dagen ago | 0

Heat Excahnger TL Modeling Liquid Cooling

22 dagen ago | 0

Hi Jan, There are a few things that need attention in your model: use of "absolute reference" blocks: this block prescribes an...

22 dagen ago | 0

Aggregate Equivalent Length of Local Resistances (AELoLR) Simscape hyd. Pipes
Hi Michael, This parameter is there to add some length to the pipe only in the equations that calculate the friction loss, see ...

22 dagen ago | 0

Submitted

Intro-Examples-for-Simscape-CN
Model and scripts from video series on Simcape physical modeling