01-30-2022 07:44 AM
Hi
I hope this is in the right place. I'm a student that is bad at math and trying to make a simulator in Labview.
This is what i'm trying to put into a formula node , First part is fine ,but how do i input the part below inn, how does that look in labview?
I'm making a simple heat exchanger simulation so this is change in temperature over time of the pipe inside of the heat exchanger.
This is how fare i got.
Thank you so much in advance.
01-30-2022 09:19 AM
I would not recommend formula node, you can achieve this with LabVIEW primitives.
Now, you do understand that the tau is time and differentiation is the rate of change, in this case, rate of change over time. You need to bring in the concept of time into the simulation. This time can come in the form of an actual system clock, compute the difference between the last data time and current data time.
01-30-2022 09:20 AM
I'd avoid the formula node entirely.
First. You are going to need some type of loop and a way to pass a value from one iteration to the next so you can find dTr and dt.
Look into the help for Shift Registers and Feedback Nodes for getting to dTr. Take a look at the primitives on the timing pallet for dt. Then post your next try.
01-30-2022 11:35 AM - edited 01-30-2022 11:38 AM
I do like the formula node, and i can't have loops becouse there a lot of formulas going into each other , I don't mean to ask for help and then disagree with the answer i'm just not sure how i'd do it with out the use of formula node,
This is my solution , how fare off am i ?
01-30-2022 12:00 PM - edited 01-30-2022 12:32 PM
@Dynamic_Dino wrote:
I do like the formula node, and i can't have loops becouse there a lot of formulas going into each other , I don't mean to ask for help and then disagree with the answer i'm just not sure how i'd do it with out the use of formula node,
That statement makes absolutely no sense!
This seems to be a subVI, so most likely you need an uninitialized shift register and do special treatment on first call. Tr needs to be an input and you need to calculate dTr based on current and previous value. You only initialize the feedback node once and after that, the Tr input is ignored.
Where are the other terms of your formula? Which ones are constant? Which ones can vary with each call?
Can you tell us a little bit more about your entire project. What happens in the toplevel VI and how are you calling this? Attach that too!
Don't label a control "t" if you use it as "dt". Big difference!
@Dynamic_Dino wrote:
This is my solution , how fare off am i ?
This is not a solution, so you are 100% off. I strongly recommend to start with the learning resources listed at the top of the forum. Since you love formula nodes so much, it probably means that you are a text programmer. Forget all that!
In your first post you admitted that you are bad at math, so you need to sort this out first. For example notice the dot over the mr? That typically also means that it is a derivate with time. Right?
Is "t" the same as "tau", i.e. are both just "time"?
You need to fully figure out the math first! After that, implementing it in code should be trivial, independent of graphical code, text code, formula node, paper&pencil pseudocode, or whatever.
Make a list:
See how far you get!
01-30-2022 12:38 PM
I will try remaking it , i see it's difficult to answer one question when i'm probebly asking the wrong thing.
thank you so fare.
01-30-2022 02:23 PM
You're probably right, i think the main issue here is i don't fully understand how the math works. I need to think of a way to proceed, to ask the right questions.
There are 11 different formulas and my inability too see how it all fits togather is also probebly the caouse of not seeing any solutions.
I see i have some work to do.
Again thank you. i'll repost if i figure somthing out.