Jump to content

christiankeh

Moderators
  • Content Count

    22
  • Joined

  • Last visited

Everything posted by christiankeh

  1. This is absolutely awesome, Roberta! Thank you for sharing! Best Christian
  2. Hi Lokesh, for the import of Simulink models, we have a dedicated library called Simport. You can download the current version of the Simport library for Activate in the connect portal: https://connect.altair.com/CP/downloads.html?suite=HyperWorks I attached some slides incl. some explanations. Please, let us know, if this helps! Best Christian ALTAIR_Activate_Simport_Library.pdf
  3. Thank you very much for sharing, Nils - this is really helpful! Would you mind to share (a simple version of) the Modelica code as well - just for the sake of being able to copy-paste (for lazy people like me;)? Thanks, again + regards Christian
  4. Hi Rocket;), fwiw: I added a slide comparing library and palette concerning some aspects like propagation of changes. I would also, as Liv stated, go for a library approach. Best Christian
  5. Dear Yubuchi-san, as far as I understood, it is not possible to switch between two different Modelica components during a running simulation, because that would require a new compilation to create a new set of equations (before the simulation you could use the include diagram block, but that is not your question, right?). One option (maybe, not the smartest implementation;) could be to use both Modelica components in parallel and switch between their outputs depending on a specific condition. I attached a very simple example for that. Does that help? Best regards Christian SwitchSignals.scm
  6. Thank you very much, Lorenzo! Best Christian
  7. Dear script experts, Do you know, if there is a way (e.g. by using cells) to write strings into a kind of "matrix" to use in a for loop afterwards. The idea behind is to make many different plots, which are always stored under different names and then have different titles. Maybe, someone has already done something similar? Thank you in advance! Christian
  8. Thank you, Priyanka! Meanwhile, I found a second option as follows: set (get(gca, 'xlabel'), 'fontsize', 14); Best Christian
  9. Dear Compose experts, is there a way to edit the legend of a plot in compose, i.e. position and font size? As far as I know, for the position something like the following works: legend('Location', 'northeast') oder legend('Location', 'northwest') ...but, what about the size? Thank you in advance for your help! Christian
  10. Dear Yubuchi-san, being far away from a semiconductor expert, I had a short look at the corresponding package of the Modelica palette. Short answer: yes, this is possible! For some of the existing electrical components the heat port is already enabled (please, see screenshot below). In this case, the electrical power loss can be transferred into a thermal power (e.g. to heat up surrounding mechanical components). This kind of conditional instantiation is also used for other electrical components, so it is useful to check their parameter dialogue. If it is not existing for the components you are looking for, it can be added – as it is the case for self-defined ones. Hope, this helps – best regards! Christian ____________________________________________________________________ Dear experts, Can Activate-Modelica compute heat generated by semiconductor device within an electrical circuit? Thanks, Minoru Yubuchi
  11. Dear all, I'm trying to create a 2D plot of a 3D map using the contour fucntion. The following code is already a valid basis, i.e. it creates the plot below: x = -2:0.2:2; y = -2:0.2:3; [X,Y] = meshgrid(x,y); Z = X.*exp(-X.^2-Y.^2); contour(X,Y,Z); What I would like to have instead, is lines instead of surfaces and labels showing the value of each line (e.g. like the image below). Is there a way to realize this in Compose? Thank you in advance! Christian
  12. Dear all, has someone already thought about having some kind of R(educed) O(rder) M(odel) block within Activate in the sense of directly using the result of a model order reduction, e.g. created in use of Hyperstudy? Even better would be a block, that directly calls Hyperstudy to execute a model order reduction. Curious to get your thoughts on this... Best regards, Christian
  13. For those, who are interested: I just found the block that I was looking for - SimulatorInfo from the palette Activate\ActivationOperations contains all the necessary information. Best Christian
  14. Dear all, what is the best way to use the current solver step size of a model within the model itself for further calculation? A minimum example would be very much appreciated! Thank you in advance! Christian
  15. Great, exactly what I needed - thank you, Ganhai! Best regards, Christian
  16. Dear experts, I'm trying to use one "Read from txt file" block in combination with a Demux to visualize 3 columns. Unfortunately, it does not work, i.e. in Activate 2017.3 the message is: "In the definition of block parameters: Given format is not compatible with number of requested outputs." Does that mean, it is not possible or do I have to change something? Please, find attached the corresponding model and txt file. Thank you in advance! Christian uFX_porousMassFlow.txt Import_txt_columns.scm
  17. Thank you, Sijo! This works for me as well, but is not necessarily an evidance that this is used correctly in HG when executing the functioni, right? Best Christian
  18. Dear all, is it possible to register a Compose function that makes use of Python functionalities? Thank you in advance! Christian
  19. Did you know about Manuel Ramsaier's Youtube channel explaining how to use a Multi-language Math Tool? If not, make sure to check the link and feel free to subscribe, if beneficial for you.
×
×
  • Create New...