Group Abstract Group Abstract

Message Boards Message Boards

Create custom component with custom formula or transfer function?

Posted 7 years ago

How can I create a custom component with custom equation of transfer function? I have an equation for a low pass filter as shown below

L(t)= exp(-t/tau)/tau

Thanks

10 Replies

Thank you very much Neil Lakshmi

POSTED BY: Neil Singer
POSTED BY: Neil Singer
POSTED BY: Neil Singer

Hi Neil, Thanks for your response. I have 2 variables in the function. One is tau and other is "s". What i am trying to build is a standard equation describing the impulse response of a low pass filter with time constant tau. I want to use this as my filter in system modeler.

Ltau(s)= [Exp(-s/?au)]/ ?au where Ltau is a function of time (s) and tau is my time constant

Please find attached picture of the WMA script and output. enter image description here

Thanks Lakshmi

Posted 7 years ago
POSTED BY: Updating Name

Hi, Thank you. I created this transfer function using CreateSystemModel

RTFV2= CreateSystemModel[TransferFunctionModel[{{{E^(-s/\[Tau])}}, \[Tau]}, s]]

but when I used it in system model it gives me an error that there is no scope for variable s. Alternatively, I also tried to modify the in-built transfer function in modelica but was not sure how to use the exponent. What is the equation of y? Please let me know. Lakshmi

Lakshmi,

You can also implement your transfer function using a continuous "TransferFuntion" block. In your example, you would also need a FixedDelay to handle the transportation lag e(-t *s) in the numerator.

Regards,

Neil

POSTED BY: Neil Singer
POSTED BY: Ankit Naik
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard