Modelica SemiLinear() - modelica

Anyone who knows well Modelica Language, specifically thermo-fluid toolbox? Often there is a semiLinear() function, used to calculate the flow of enthalpy, as it depends flow direction.
Anyone who knows the details of this function, if we can remplace it by some simple commands?
Thank you very much!

I am pretty sure I already answered this on the OpenModelica forums... Anyway, the ModelicaReference package does explain it quite clearly.

Related

What are the differences between Flask-Session and Flask-Login?

This is a seemingly simple question, but I cannot find the answer. If this has been asked previously, please point me in the right direction!
What are the differences between Flask-Login and Flask-Session? Why would someone prefer one over the other?

Using Prospects Theory in Netlogo

:I have problems when I use the Prospects theorem into my merges pricing model. so, I want to ask for you help.
Q1: I don't know how to define the relative change in merges price if we used the Prospects theory.
Q2: This paper"PRICING MERGERS & ACQUISITIONS USING AGENT-BASED MODELING" inspires me a lot. But It's difficult to come true in Netlogo , If you have the some interesting in the Pricing of merges using Prospects theory, Please contacts me, and help together. thanks
This is not really a suitable question for StackOverflow. The purpose is to help you with problems fixing a specific piece of code. That is, you need to have some draft code that doesn't do what you want it to do and a description of what you want it to do. Instead, you are asking for someone to work with you to design and then build a model.

Where can I find Simulink Projects?

Can anyone suggest me a site where I may found some basic projects for Matlab simulation. Thesis prjoects etc. Basically I need to understand best practices. I'm beginner and could not understand too much big projects online.
Your question isn't specific about what you're really looking for, but if you're looking for basic "how to" info, then the getting started guide is here, and a basic example of constructing a model is here.
There are also some other basic examples here
I am not sure what you are looking for, but maybe here:
http://www.mathworks.com/matlabcentral/fileexchange/index?term=type%3AModel

What is the difference between "JavaScript Micro-Templating" and mustache.js/handlebars.js?

First, I apologize for such a novice question again, and if this has been answered elsewhere.
There are too many template engine,I really do not know how to choose!I seriously study this, but still at a loss.
I mainly want to know the advantages of mustache.js/handlebars.js? Compared with the JavaScript Micro-Templating
Please give examples to explain, thank you very much!
For a pretty well-rounded comparison see
http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more
It includes a lot of considerations and a good 'in-the-field' approach.
Moreover, it's from LinkedIn so you can trust it's pretty thorough.
EDIT:
Only real omission is Hogan from Twitter, likely because it was (and still is) a new kid on the block . http://twitter.github.com/hogan.js/) Like Handlebars based on Mustache. Functionality is in between Mustache and Handlebars. Performance 5/5.
I use Hogan both on the client-side and with Nodejs on the server-side and it's really great working with it once you get the hang of it.
hth

Math Libraries for Objective - C to be used in Iphone projects

Not wanting to re-invent the wheel, are there any open-source (or included) math libraries in Objective-C (for iPhone) that can calculate Internal Rate of Return (IRR) or Modified Internal Rate of Return (MIRR)?
I'd hate to have to re-do all that work if someone out there has already done it.
Thanks!
GNU is another option for any kind of mathematical calculation but it is a C library so not object oriented.
http://www.gnu.org/software/gsl/
I kind of doubt that there is. Objective c just seems too theoretical and idealistic for something as dirty and practical as accounting.
You might rephrase your title (and question) to indicate that you are looking for a Financial/Accounting Library and not just a general math library. I know you mention IRR and MIRR, but if someone sees "Math Libraries" in the title, they will be thinking of a totally different kind of math. Hopefully someone who knows accounting will glance at your title and know the answer!
Edit:
This probably isn't quite what you're looking for, but QuantLib is ported to many different languages. Objective-C doesn't appear to be among them.
http://quantlib.org/index.shtml
https://stackoverflow.com/questions/1962057/are-there-any-bsd-or-lgpl-libraries-for-calculating-amortization-schedules