[TRNSYS-users] Variable units in fortran code

David BRADLEY d.bradley at tess-inc.com
Mon Feb 11 08:12:30 PST 2013


Florian,
   This is interesting (and confusing). The getSimulationTimeStep() 
function should return a double precision number whose value is the 
timestep in hours. Is it also returning some text as well?

   The implementation is usually something like:

Double Precision  Timestep   ! this declares a variable called Timestep 
as being "double precision" which indicates how much memory is used to 
store the value

Timestep = getSimulationTimeStep()  !this line calls the function and 
sets the return value to the variable called "Timestep"

am I interpreting your email correctly that you get back some number and 
some text appended to it?
Best,
  David


On 2/11/2013 05:56, Florian Limmer wrote:
> Hey TRNSYS users,
>
> is there any possibility to remove the unit of variables that are used 
> in the fortran code of a type.
> for example if i use getsimulationtimestep() i get the timestep with 
> the unit. i want to use only the value for further equations.
> can anyone of u tell me how to do that?
>
> and the other way round can i add a unit to a value that is simply a 
> number till this point?
>
> thanks a lot for any help
>
> Florian Limmer
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20130211/af8667ee/attachment-0001.htm>


More information about the TRNSYS-users mailing list