Answered
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...

5 years ago | 1

Answered
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 ...

5 years ago | 0

| accepted

Answered
Branching of a two-phase fluid
Hi Kai, You are using the "Orifice (2P)" block to model the valve, right? Good choice, I'd say, but there are a few things you...

5 years ago | 1

| accepted

Answered
Problem with Custom Heat Exchanger (G-TL) model
There is a G-TL heat exchanger block available in Simscape Fluids, starting in R2019a. The source code is not visible since it'...

5 years ago | 0

| accepted

Answered
Cartridge Valve Insert-Simscape Fluid
Looking at the Documentation of this block, I don't think the forces would be in the right direction if you use this block. Als...

5 years ago | 0

Answered
Modelling Wave Forces on a Buoy
Thanks for sharing the model. Looks like the main issue is caused by the source term inside the Heave Wave Force Signal. It ...

5 years ago | 0

| accepted

Answered
Approximated Compressor Map by empirical Coefficients - basic compressor in a moist air network (Aircraft Environmental Crontol System)
Couple things to try: Item 4 in this example allows you to plot the compressor map for the given coefficients. In the actual c...

5 years ago | 0

| accepted

Answered
Simscape use of inertia and mass blocks
I suspect there is something else going on in your model. It's currently set up with wheel and axle as the conversion mechanism...

5 years ago | 0

| accepted

Answered
Simscape error referring to equation location as folder path
It's complaining about unable to solve for initial conditions. There may be conflicting or inconsistent initial variable values...

5 years ago | 0

Answered
How to understand the simulation results using basic components in Simscape->foundation library-->mechanical?
Hello Liqun, The direction in Simscape is usually defined by the movement (towards/away) of R port with respect to the C port. ...

5 years ago | 0

Answered
Is there a way to link plots to simscape log data / simscape results explorer data?
You may access everything in simlog through MATLAB base workspace. This documentation page includes some basic functions to acc...

5 years ago | 0

| accepted

Answered
Is there a way to link plots to simscape log data / simscape results explorer data?
You may access everything in simlog through MATLAB base workspace. Follow the instructions on the following documentation page ...

5 years ago | 0

Answered
Why don't pipe and orifice blocs in Simscape Fluids cause a pressure change ?
The model does not have an outlet right now. The system is all pressurized to the value set by the constant pressure source, bu...

5 years ago | 0

| accepted

Answered
pilot operated check valve to open only by pilot pressure x
Thanks for the details. The pilot in this case is acting in the opposite direction as in the "Pilot-Operated Check Valve (IL)" ...

5 years ago | 0

| accepted

Answered
Simscape Multibody: 6DOF joint has a degenerate mass distribution on its follower side.
Thanks for sharing the model. It looks to me the problem here is still the algebraic loop. I tried two ways to break it and bo...

5 years ago | 0

| accepted

Answered
can you simulate viscous surrouding in multibody simulation?
There is an underwater vehicle example that includes hydrodynamic and hydrostatic forces, which I believe will help you get star...

5 years ago | 0

Answered
Simscape Multibody - model does not react to slider gain changes without stopping and starting the simulation again
The answer is that the slider gain actually is working as intended. It's changing the position of the swing bar, but we were no...

5 years ago | 0

| accepted

Answered
want to make vehicle dynamic model in fuel cell truck
This can be a big project. Definitely not something can be fully resolved through MATLAB Answers. Some resource that may be us...

5 years ago | 0

Answered
Commensurate units error - Simscape Covective heat transfer (Pipe)
Hi Aled, Consider use the syntax value(a,'unit','type') to use only the value of a variable with specified unit. More detai...

5 years ago | 0

Answered
how to plot angles of the oscillating guide and the crank in the same graph
Two possible ways I know of: Use the simlog. I saw your model is already logging the Simscape data, so you just need to go to ...

5 years ago | 0

Answered
How to get the instantaneous step size value in variable step solver at a simulink model?
If you turn on data logging for Simscape, you can access the time marks in the states data for each block. Any block will give ...

5 years ago | 0

Answered
Spatial contact force block
Contact force only works with Convex Hull at this moment. See Documentation page here: https://www.mathworks.com/help/releases/...

5 years ago | 0

| accepted

Answered
Simscape 2P energy conservation bug ?
Hi Joris, After a closer look at the results, it looks like everything was physically reasonable. There was some very quick ac...

5 years ago | 0

| accepted

Answered
Efficient way to evaluate multiple logic expression as in 'if' condition
something like max(abs(u(i+1,:)-u(i,:))) <= 1e-7 do you think this will work?

5 years ago | 0

| accepted

Answered
How to simulate/create a spring in an already generated Block Diagram of a CAD Model in Simscape Multibody?
You'll need to first define how the two ends of the spring is connected to the wishbone part and the vehicle body, including the...

5 years ago | 0

| accepted

Answered
How to set suspension sag due to mass in simscape quarter car model ?
Are you working in Simscape (1D mechanical) or Simscape Multibody? In Multibody, the weight of the sprung mass will affect the ...

5 years ago | 0

| accepted

Answered
[Multibody] Get body frame list from Matlab script
You'll probably need to attach a Transform Sensor to each solid so you can get all kinds of kinematic information of the solid. ...

5 years ago | 0

Answered
[Simscape Multibody Contact Forces] Fluctuations in Normal & Friction Forces
The contact force, when in contact, is modeled as a stiff spring and damper to prevent the penetration and calculate the normal ...

5 years ago | 0

| accepted

Answered
How do I import a motor dyno curve into Simscape?
Do you care about the electrical side of the motor (like current, voltage, etc), or you just need the motor as a source for mech...

5 years ago | 0

Answered
Change Ah capacity of Simscape lead acid battery model?
I don't have R2018b on my machine, but I assume the model is similarly constructed in newer releases. Inside the Battery Cell, ...

5 years ago | 0

| accepted

Load more