rquirt

65 Reputation

3 Badges

10 years, 294 days

MaplePrimes Activity


These are replies submitted by rquirt

@Kitonum 

Thanks for your help.

For my understanding, I would summarize the seq function support for units this way.

The seq function support units in the input parameters of a function and the return value but not in its iterand?

@Kitonum 

Thanks for that, but what if, for example, you have a function f(x), where x is expected to have units of length, and you have a problem where you want to mix metric and US Customary Units?

seq(f(x), x=1.0*Unit('m')..10.0*Unit('m'), 6.0*Unit('inch')), do you have to do the conversion yourself, seq(f(x*Unit('m')), x=1.0..10.0, 0.1524)?

On a related note, I thought I would use the modelica editor to create my component.  When I opened the Library Components->Thermal->FluidHeatFlow->Components, I discovered a few more components than in Maplesim: cylinder, OneWayValve and OpenTank.  Why aren't they available in MapleSim?

@Joe Riel Thanks for your help.

I now get this error.

When I assign the ports there is no temperature.

I have attached the file.

 

FluidMechanics_HeatedVessel.mw

I missed the MapleFlow webinar.  Is it going to be released as a recorded webinar?

Thank you for your help.  It works great.

I did a little experimentation and found that both fsolve and plot only work with the proc if a function was defined in their calling sequence as shown below.  So in order to avoid this issue in the future is there a simple way to trap the error within the proc or do you just have to use the explicit function definiton in the function call? 

Thank you for your help.

the basics would be like this where:

n - current step

u(n) - input

out(n) - output

Do_Not_Increase -an input that stops the output from increasing

Do_Not _Decrease - an input that stops the output from decreasing

 

Executed at an interval dt

out(n) := out(n-1) + k*(u(n) - u(n-1)) + k/Ti*(u(n))

if Do_Not_Increase and out(n) > out(n-1) then
  out(n) := out(n-1);
end_if;

if Do_Not_Decrease and out(n) < out(n-1) then
  out(n) := out(n-1);
end_if;

 

Thanks for any help you can give me.

@Joe Riel 

Thanks that worked perfrectly.

I was not able to find any documentation on the fully qualified name for the modelica port on my last post.  Is that documented somewhere?

 

Thanks again.

@Joe Riel 

Super, thank you very much.

@acer Thankyou for all of your help.

 

@acer Sorry I am new to Maple and to the MaplePrimes.  I have uploaded the file now.  Did I do that correctly?

Download fsolve_Test_for_MapleSoft.mw

@acer Thanks again for your help.  I just saw the little up-arrow for uploading a file.  I was looking in the wrong place before.

1 2 Page 1 of 2