Pressurized vessel in modelica [closed] - simulation

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I've been trying to create a pressurized vessel in openmodelica but i'm stuck.
The block i'm trying to build is a simple vessel for liquid pressurized by gas.
So two input ports (liquid input, gas input) and an output port for pressurized liquid outlet. The total volume of the vessel is constant. Looks simple but stuck with the duality gaz/liquid.

It's hard to provide any advice without your code. However, pressure vessels have been modelled in Modelica before and you could take inspiration from the following free libraries:
TRANSFORM: e.g. models in TRANSFORM.Fluid.Volumes
ThermoPower: e.g. ThermoPower.Water.Accumulator.mo
Buildings: e.g. model Buildings.Fluid.Storage.ExpansionVessel.mo

Related

NN stock prediction [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm working on school project for NN(neural network) stock prediction I have my yahoo price market data and I normalised my data to number between -1 to 1 my inputs are date and close however I'm not sure what my output should be (I don't know enough knowledge about stock and market) I was thinking of having date and open as my inout and close as my output. I'm planning on using MLP for my project , but is there anything else I need to do after normalisation. I'm not expert on NN I'm taking this course to rise my total grade we were given only one week to finish this HW so I'm not sure if I'll be able to learn using new software
my inputs are date and open after normalisation what should be the next step
what neural network development tool do you recommend (for mac and PC)
can I use excel NeuroXL add on.. does it work on mac
Thank you

Solving Equations in Perl [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How should I solve my equations in Perl?
I know binary search is one solution (and perhaps pretty fast for my equations) but I would like to know if there is a ready to use solutions such as math packages or libraries so that I can use them instead of implementing my own solver?
NOTE:
This is, find x for a given y.
The functions are strictly increasing
The equations usually look like: y = a + b*sqrt(x) + b*x or y = sqrt(a*(x-b)**2*(x-c)/(x-d))
Please don't complain that "this is off topic" or "you should ask this in http://math.stackexchange.com". I want to see this problem from the programming point of view, particularly in Perl!
Have you considered using libraries? There's Math::LP, for instance.
See the Perl and Math tutorial from PerlMonks for more info.
Search for symbolic math on MetaCPAN. Lots of interesting looking options.
https://metacpan.org/search?q=symbolic+math

How to Test conditional independence between random variables using available samples? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I test for the independence between two random variable given another one(i.e. whether P(A|C)=P(A|C,B) or not?) using available samples. in other words, I just have 1000 samplesf for 3 random variables generated by bntoolbox on Matlab and now I wanna test for CI between arbitrary random variables.
I've read something about Fisher's method but honestly don't understand it.
Thanks is advance.

Reading a 5-D double data structure in matlab [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How do I read a 5-D data structure (of type double) in matlab? I have loaded the data in matlab and it says 5-D double. How do I read it afterwards
With the current information I cannot say much, but usually this is a good first try:
In matlab navigate to the file, right click on it and choose import data.
The import wizard is quite powerful so you have a good chance to get the data you need from that. Afterwards you may need to try help reshape if it does not have the right dimensions yet.

How micro processor is controlled..? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How micro processor is controlled? For example, after receiving instructions from memory, the instruction decoder decodes the instruction(???), and the decoded instruction is executed in ALU. How all this happen in a sequence?
At a high level, when the microprocessor is given electricity, it sets the program counter to a predefined address in memory where it expects the sequence of program instructions to start. Each instruction tells the microprocessor to do one or more things, such as read/write memory, do math, or change the value of the program counter.
The ALU is the Arithmetic Logic Unit, which just does the math bits.