DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Iterative computation

Hallo

Possible a difficult question to answer, but i give it a try: 

 

I am trying to make a skript of a iterative computation with use of calculation manager. First i have to guess a value RE, this value calculates C, which in turn calculates Q, then a new value of RE is calculated from Q. This prosess has to go in loop into the old RE(guess) is equal to new RE, than the answer for Q is correct. 

 

 

Is this possible to perform in Diadem and how in that case?

0 Kudos
Message 1 of 3
(1,250 Views)

Hi elera,

 

Is there one result per iteration or multiple results per iteration.  Is each iteration result a scalar value or an array of values?

 

Now I see why you wanted to program the Calculation Manager:

https://forums.ni.com/t5/DIAdem/calculation-managers-to-script/m-p/4115110/highlight/false#M28195

 

Brad Turpin

Principal Technical Support Engineer

NI

0 Kudos
Message 2 of 3
(1,197 Views)

It is one result per iteration, so when (guess Re)=calculetd Re at length 1 in the channel, Q is correct. Than a new iteration has to start at channel length 2. This process must be repated the entire length of the channel. So baciscly two loops(one for the iteration and one for the channel length) where you get the calculation from calculation manager. 

 

Not sure how to set up guess Re as well, now i have made a channel in the script, where i can change this value. 

 

I guess it is a scalar value, since it represents a single value in the channel

0 Kudos
Message 3 of 3
(1,180 Views)