Community Profile

# Yifeng Tang

### MathWorks

Last seen: Today Active since 2020

All

#### Content Feed

View by

Submitted

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

How to get RC circuit parameter for equivalent circuit diagram from measurement Graph?
Simscape user here. So first, I would build the thermal network using the thermal domain. It's just a few thermal resistance a...

16 dagar ago | 2

| accepted

It sounds to me that the easiest way is to set up two Simulink simulations. Save the output from the 1st one to the MATLAB work...

26 dagar ago | 1

Missing something in Simscape.
The force sensor is a sensor for "through variable", so you'll need to connect in series with the element on which you'd like to...

ungefär en månad ago | 0

How can solve this error: Output 'Taout' declared with unit expression that contains an affine unit: 'degC'. Affine units are not allowed when declaring members of this type.
Declare temperatue units in K. That's what the error message is saying. The numerical value of the temperature may be overridd...

ungefär 2 månader ago | 0

Ideal Check Valve (Thermal Liquid, Simscape)
Hi Mash, Having a check value (or any closed valve) with absolutely zero leakage is in general a bad idea. It basically change...

ungefär 2 månader ago | 1

I'm not getting an expected temperature/pressure output from cooling a 600 [F] copper object [FEEDBACK REQUEST]
Looks like the convective coefficient was too small. Also, since the pipe has a wall model for heat transfer, you may not need ...

ungefär 2 månader ago | 0

| accepted

What does "delta_vel_pos_AI" in Pipe (G) means?
Hi PY, The term is using a trick to avoid using the abs() function, which may otherwise trigger frequent zero-crossing when mdo...

ungefär 2 månader ago | 0

| accepted

Is this an appropriate way to model the pressure/temperature drop across an elbow joint? Critiques requested
Hi AJ, There is a custom block for an elbow in thermal liquid domain that I can share. Could you please submit a Technical Sup...

ungefär 2 månader ago | 0

| accepted

simscape block node arrangement
Don't know much about IGBT but this seems to be Simscape language syntax. After the "subcircuit2ssc" function, an object for ss...

ungefär 2 månader ago | 0

Trying to export .slx and its associated files to allow me to work from a faster PC.
In each of the file solid blocks, the path to the .step file is usually absolute. That full path can be different when you move...

ungefär 2 månader ago | 0

How to compile a simscape model (to dll) with tunable parameters?
Hi Bruno, Try this: make the parameter you want to tune in the generated code a "Simulink variable", i.e. a variable in the Sim...

ungefär 2 månader ago | 0

Model contact forces in custom designed CAD using File Solid?
One possibility is adding "point cloud" to better model the contact: https://www.mathworks.com/help/physmod/sm/ref/pointcloud.ht...

ungefär 2 månader ago | 0

How can I consider the changing temperature of a copper object that is being cooled by coiling a pipe around the outside surface?
The heat transfer between solid objects are best represented by conductive components and thermal mass. I suspect the thermal m...

ungefär 2 månader ago | 1

| accepted

Modell bearing losses of a compressor-turbine shaft in Simscape
I wonder how is the operating points defined. If you have the shaft speed at these points, it's then possible to find the frict...

ungefär 2 månader ago | 0

How to compound a block
I attached a model showing two ways of doing that. Both use a mask and mask parameters to allow change of parameters afterwards...

ungefär 2 månader ago | 0

| accepted

What is the pressure sensor measuring in simscape fluids?
My understanding is that it's the static pressure. The definition of dynamic pressure would involve a flow velocity, hence a fl...

ungefär 2 månader ago | 0

How to change File Solid
I don't think you can edit the content of the solid via the file solid block, so I am not aware of a way to do what you have in ...

ungefär 2 månader ago | 0

| accepted

I want to make 70 kw fuel cell system on simulink
Hi Anmol, Let me suggest a few options: 1. Get R2021b pre-release. If you have an active license of MATLAB and the necessary...

I'm having trouble installing the smlink.r2020b.win64.zip package
I suggest that you contact Technical Support on this. They are very good at handling installation issues.

| accepted

First solve for initial conditions failed to converge in Simscape model
I suspect this may have to with the two "A" ports connected directly to each other, meaning there is no volume or flow resistanc...

how can i modeling the desiccant system in simscape?
See the 2nd comment above for the answer.

| accepted

How do i get Temperature derating Curve of Fuse?
Hi Alpesh, One suggestion: consider using modechart to model discrete states (melt & normal) of your component. You definite h...

Degenerate mass distribution after reducing step size and using state-space model
ODE4 is an explicit solver, so it tends to be less stable when the time step is "large". You trying to reduce the time step is ...

| accepted

Is there anyway I can import a SolidWorks Assembly into Simulink and then make changes in SolidWorks appear in Simulink?
It won't be "automatic", and it depends on what you have changed in SolidWorks. It's easy to replace a solid part in Multibod...

| accepted

How can I fix the "internal energy 'too low' " error in Simscape?
I'll have to make some guess ... could you please check how the heat flows into or out of the H port of the accumulator? The er...

Is there a way to model a pipe under vacuum pressure using Simscape?
Hey Delika, Thanks for the clarification. It seems to me that it's possible to model the evaporation and condensing effects at...

How can I properly set a valve with catalogues parameters?
Hi Lucca, To parametrize the pressure-flow curve or an area-vs-position table in the valve block, you'll likely need to use the...

Retrieve a list of simscape.logging.Node names from simlog or other inner nodes
fieldnames(simlog_ssc_dcmotor) seems to work OK for me. Same way you would get the names of a structure variable. ssc_dcmotor ...