Variable orifice

조회 수: 2 (최근 30일)
Francesca Fanfoni
Francesca Fanfoni 2011년 7월 20일
I use a Simscape block called Variable Orifice.
But when I run the model there is an error. The error text is "Cannot find error message associated with 'sh:orifice_variable:VectorSize'.
What does it mean?
  댓글 수: 1
Arnaud Miege
Arnaud Miege 2011년 7월 20일
What parameters have you entered in the block? I suspect you have used a vector rather than a scalar for at least on of the parameters. Also, which release of MATLAB are you using?

댓글을 달려면 로그인하십시오.

답변 (3개)

Francesca Fanfoni
Francesca Fanfoni 2011년 7월 20일
I use Model parametrization set by pressure-flow characteristic
with Tabulated orifice openings = [0 12 16 20 40] Tabulated pressure differentials: [0.5 1.0] Tabulated flow rates: [0.0001 0.0001; 0.0025 0.0055; 0.0035 0.0075; 0.0045 0.009; 0.009 0.017;]
Is it a right configuration?
  댓글 수: 1
Arnaud Miege
Arnaud Miege 2011년 7월 20일
That seems to work just fine for me in R2011a. Which release of MATLAB are you using?

댓글을 달려면 로그인하십시오.


Francesca Fanfoni
Francesca Fanfoni 2011년 7월 20일
R2009b
Are you sure it's the fault of the version of Matlab?

Arnaud Miege
Arnaud Miege 2011년 7월 21일
Yes, I see the same error in R2009b. The problem is with the pressure differential values, you only provide two values and the documentation (in R2009b) for the block states that you need to provide at least 3 values:
"Specify the vector of input values for pressure differentials as a tabulated 1-by-n array. The input values vector must be strictly monotonically increasing. The values can be nonuniformly spaced. You must provide at least three values."
I agree that the error message could be more helpful. This restriction seems to have been lifted in subsequent versions. Here's what the documentation says in R2011a:
"The minimum number of values depends on the interpolation method: you must provide at least two values for linear interpolation, at least three values for cubic or spline interpolation."

카테고리

Help CenterFile Exchange에서 Upgrading Hydraulic Models to Use Isothermal Liquid Blocks에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by