Jump to content

Ronald Kett

Members
  • Content count

    20
  • Joined

  • Last visited

About Ronald Kett

  • Rank
    Beginner

Profile Information

  • Gender
    Male
  • Country
    Germany
  • Are you University user?
    No

Recent Profile Visitors

191 profile views
  1. Ronald Kett

    Floating FFT

    As I understand it, fft calculates a spectrum in one step using 2^n elements. Does someone know a function or have a macro to calculate a floating fft with a given size of the fft and an overlapping for moving the analyzed part and set off against each other with peak hold? Example: Data with size 1000, fft with size 512, overlapping 60% -> fft(Data(1:512)), fft(Data(205:716)), fft(Data(409:920)) Thanks, Ronald
  2. Ronald Kett

    Calculate envelope of curve

    Thanks, Manoj. Min/max are the basic functions to calculate the envelope. While they just deliver one scalar, I have to combine them with a loop and a piecewise min/max calculation. I hoped, I could use an existing function (or macro). Best regards, Ronald
  3. Ronald Kett

    Calculate envelope of curve

    I have a file with measured data f(t). The data are sinusoidal with changing amplitudes over time. Now I want to get the envelope of that data, i.e. floating peak-to-peak value or max. amplitude over time. How can I achieve this? Thanks, Ronald
  4. Ronald Kett

    3D-plot from type bar3

    In 2017.3 it not available, but it's coming soon
  5. Ronald Kett

    Visual Studio version for Modelica model solving

    Hi Seoksan, Please look at topic Compiler required to use Modelica with Activate. The compiler you have chosen should be correct, please check if you have installed C/C++ option. Visual Studio doesn't install C++ by default. Best Regards, Ronald
  6. Ronald Kett

    File browser : run external program

    Hi Seoksan, I believe it's not possible to run a file directly from file browser with its associated application. You just can open the file as text file (even though it's a binary file). In order to get a fast view of an image you can use imshow('filename'). Regards, Ronald
  7. Ronald Kett

    plot and text setting

    SeokSan, No one of your desired features is possible (at least I don’t find a solution). ‘text’ only can display a text box with following properties (help of ‘set’): Text's properties: children (read only): Child objects of the line. color: Color of the text. fontangle: Font angle of the text, either regular or italic. fontname: Font family of the text. fontsize: Font size of the text. fontweight: Font weight of the text, either normal or bold. handle (read only): Handle of the text; parent (read only): Handle of the parent of the line. string: Displayed text. type (read only): Type of the graphics object, which is always 'text'. visible: Visibility of the text. Best Regards, Ronald
  8. Ronald Kett

    Import Modelica Script from MapleSim

    Hi Yubuchi-san, In principle you are right, but in this case the script uses just a special icon from Maplesoft's library. You can replace it with any other icon from library (e.g. Modelica.Blocks.Icons.Block) or your own icon. Or, you just delete this line, because MoCustomComponent block doesn't use the graphical information. Ronald
  9. Ronald Kett

    Compiler required to use Modelica with Activate

    Hi Willy, In the meantime I got to know that the compiler setting in preferences belongs to the Modelica compiler, not to the C/C++ compiler. Therefore the field can be left empty (in my installation). Please check if you have installed C/C++ option and SDK option during installation process of VS. This is the important compiler of the package. Regards, Ronald
  10. Ronald Kett

    FMU writing result file

    Thanks Katja, I'm eagerly awaiting the release ... Ronald
  11. Ronald Kett

    Modelica Custom Components

    Hi Yubuchi-san, Modelica supports the use of tables. The code looks like this: model SpringWithTable ... parameter Real table[:, :]=[0,0; 1,1] "Spring curve (displacement = 1st col; force = 2nd col)" annotation(Dialog(tab="Spring Curve",group="Table")); parameter Modelica.Blocks.Types.Smoothness smoothness=Modelica.Blocks.Types.Smoothness.LinearSegments "smoothness of table interpolation" annotation(Dialog(tab="Spring Curve",group="Table")); Real force; // internal blocks Modelica.Blocks.Tables.CombiTable1Ds SpringTable(tableOnFile=false,table=table,smoothness=smoothness) annotation (Placement(transformation(extent={{18,-32},{-2,-12}}))); equation SpringTable.u = displacement; force = SpringTable.y[1]; ... end SpringWithTable; In the parameter dialogue you can load data from file. Ronald
  12. Ronald Kett

    FMU writing result file

    Hi Developers, Today DSHplus fmus are not able to write a result file. All interesting values like pressures, flows etc. have to be defined as an output. It would be a very helpful feature if I can define a result file for all internal variables. This way it would be very easy to analyse results of different co-simulation partners (e.g. Activate, MotionSolve, DSHplus) in HyperGraph. Do see a chance to realize it within a next release? Thanks, Ronald
  13. Ronald Kett

    Compiler required to use Modelica with Activate

    Hi Willy, You have to set the compiler in Preferences (Menue File-Preferences): After adding the compiler you should get Modelica models running. Best Regards, Ronald
  14. Ronald Kett

    Modelica Custom Components

    Hi Yubuchi-san, Another solution using the Modelica custom component could be: model NonLinearSpring "Non-Linear 1D translational spring" extends Modelica.Mechanics.Translational.Interfaces.PartialCompliant; parameter Modelica.SIunits.TranslationalSpringConstant c(final min=0, start=1) "Spring constant"; parameter Real c_expo(final min=0, start=1) "Spring exponent"; parameter Modelica.SIunits.Distance s_rel0=0 "Unstretched spring length"; equation f = c*abs(s_rel - s_rel0)^c_expo*sign(s_rel - s_rel0); end NonLinearSpring; With c_expo you can choose the exponent in equation f = Dx^c_expo * c. Best Regards, Ronald Non-Linear Spring.scm
  15. Ronald Kett

    Importing Modelica library by script

    I got a solution in the meantime, thanks to Fady You can call the following from oml: vssImportModelicaLibrary(molib, dd) where molib is the path to the modelica library dd is the path where you want to create your library
×