-
Posts
3 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Library
Downloads
Gallery
Posts posted by Christopher Marquart, PE
-
-
Using formulas with trended data (temperature) I created a signal representing the density of a fluid in a vessel. I have reason to believe ambient conditions are impacting the temperature of the liquid inside of a level bridle thus changing the liquid properties. Using level measurements in the vessel and level bridle and the density/ specific gravity calculated for the liquid in the vessel (based on actual vessel temperature) I was able to calculate the density/ SG of the of the liquid in the level bridles based on the variation in level measurement.
The equation for density is fairly complicated so manipulating the equation solving for temperature isn't a realistic option for me. Is there a way to have Seeq calculate/ trend a signal representing the temperature when I have a signal representing the solution (density) with temperature being the only variable?
The equation I'm working with is shown below. I have the values for all of the constants and I'm wanting Seeq to calculate the value of T.
- 1
-
New to Seeq... trying different things to see what works and reached the point where I need to ask for help!
I have a temperature signal representing the temperature inside of a vessel. I'm wanting to modify this signal for a user determined time frame each day representing a potential temperature delta between a vessel and a level bridle. I was hoping to get help on the following items:
1) Is there a more efficient method of doing this? Wanting to have a code that can be easily updated for time frames & rate of increase.
2) I had to use .move(5h) to shift the signal to start at midnight. How do I get it to start at the beginning of each day every day?
3) For some reason during the 11pm hour (hour 23) there is a short blip with a magnitude equaling the total temperature increase over the user specified time and I can't figure out why. For Example, starting at 10am the new temperature will be 1.25F greater than the trended signal ($t). The temperature continues to increase 1.25F per hour until 6pm for a total increase of 10F over the 8-hour duration. The blip starting at 11pm represents a 10F increase over roughly 15 minutes and then a 10F decrease in roughly the same time period.
Thanks in advance!
Code is as follows:
$TimeToIncrease = 10 //hour of day temperature starts increasing
$TimeToStopIncrease = 18 //hour of day temperatu re stops increasing
$TimeToStopDecrease = 21 //hour of day temperature stops decreasing$IncreaseMultiplier = 1.25°F //Rate of increase per hour
$DecreaseMultiplier = (($TimeToStopIncrease-$TimeToIncrease)*$IncreaseMultiplier/($TimeToStopDecrease-$TimeToStopIncrease)).SetUnits('F') //Calcualted rate of decrease per hour$DayHours = (hours().toSignal('Hour',startkey()).within(days()).move(5h)) //Had to move 5 hours to start at midnight. Hours()=0 was 7pm without this.
$Condition1 = ($DayHours >= $TimeToIncrease) And ($DayHours <=$TimeToStopIncrease)
$Condition2 = ($DayHours > $TimeToStopIncrease) And ($DayHours <=$TimeToStopDecrease)$IncreaseTempSignal = $t+(($DayHours-$TimeToIncrease)*$IncreaseMultiplier).SetUnits('F')
$DecreaseTempSignal = $t+(($TimeToStopDecrease-$DayHours)*$DecreaseMultiplier).SetUnits('F')$t
.splice($IncreaseTempSignal,$Condition1)
.splice($DecreaseTempSignal,$Condition2)
Creating New Signal Modifying an Existing Signal for a Time Span Each Day
in Seeq Data Lab
Posted
Thorsten,
Your improvement worked! Thank you VERY much!!! Truly appreciate the assistance!!!!!!!
Best Regards,
Chris