C_R

1960 Reputation

19 Badges

6 years, 51 days

MaplePrimes Activity


These are replies submitted by C_R

@ecterrab 

In the attached worksheet the tweak had no effect. Could you check what went wrong?

 

Differential_format_in_integrals_with_tweak.mw

@acer 

OK. Where can the version that created a worksheet be found?

First of all, thumbs up for this elegant way of integration and a happy new year!

I was about to see what the "inert" option does for surface integrals in your worksheet, but I can't get to this point. When I execute (with the latest official Maple version) the highlighted input below I get

The attached worksheet looses the kernel as well on my computer.

Kernel_lost.mw

Update:

I was misled by the load message. It was the physics package that was out of date

Can such a message be made more specific? I still get this message but now the kernel does not disconnect.

@Carl Love And strangely enough, it works today.

@acer 

subsop is what I was looking for.

Thank you!

@Preben Alsholm 

Thats a nice option in cases where the replaced name is not part of the integrant.

It does not work for the worksheet I have attached above (see update).

@ecterrab 

Thank you for taking the time. I will continue digging. I have just discovered the physics mini course which I think is a good template for other branches of sicence an engineering.

@ecterrab In the attached file I compared the new command with a case from classical mechanics to derive equations of motion from D'Alembert's principle. In this case I noticed a difference in sign of the output which has to be taken into account. Would it be possible to return optionally an expression

diff(diff(L,v),t)-diff(L,r)

(as in the attached) instead of an equation?

 

In any case LagrangeEquations makes life much easier. Great enhancement! 👍👍

Lagrange_Equation.mw

@Joe Riel 

The AD/DA converters you suggested provide logic signals on the bit level. This level of detail is not required for off-the-shelf micro controllers, which I want to simulate.

The plant in my model provides real signals by using sensor components of the MapleSim library. So, in those cases I would look for  AD/DA converters that work in the signal “domain” (i.e. that discretizes a real signal).  

Looks like that there are no libraries that match my request but if there are any components that can be used in combination with MapelSim's discrete components I would be interested. AD/DA conversion is not what I am primarily looking for. I have no solution for FIR filters. A convolution component with user defined kernels would be a big step in that direction.

Thank you for indicating what is possible today.

 

By the way, I tried to discretize a real signal with the components you proposed but could establish a proper logic 8-bit connection with 2022.2

Update: With 2022.1 the connection works and the trigger ports a visible

@alex_b 

Thank you, that’s very helpful. I have not noticed PORT LOCATIONS and SUBSYSTEM AUTORESIZE and will have a try.

 

I found a shorter way of to replace functions of t by names for the above worksheet

subsindets(old_eq, function(identical(t)), f -> op(0, f))

A much shorter way from acer

@acer Thank you again!

Optimized_code_for_custom_component_template_02.mw

@acer 

I have overlooked this assignment.

Thank you!

@eithne 

I have tried to figure out what the “simpler steps to create and update subsystems” are. Creating was already simple. I could also not spot “clearer component labeling” in my models. An explanatory video (as the one for the Web Handling Library) would have been nice to appreciate the details.

What I discovered instead is a much improved port alignment of subsystems. Without updated documentation, I tested it on models where I abandoned port alignment to straighten connection lines (see suggestion 6). It worked great on 4 screwed up subsystems.

I hope I am not spoiling the show before the documentation is updated but this is good news worth communicating.

Thank you for that 👍👍

@phil2 

MapleSim 2022.2 improved substantially on (6). I could easily figure it out myself even without updated documentation, which is a sign of good usabilty.

Congratulations for this simple and elegant solution!

First 23 24 25 26 27 28 29 Last Page 25 of 36