Billy,
There seems to be some confusion about these variable names. I
will try to clarify.
First, As Jeff and Tim correctly point out, variables starting with
the letters END, INC, EQU, and CON are not recommended because these
three letter codes are also keywords that the TRNSYS input file
processor recognizes; it may get confused as to whether it is
processing an equation or a simulation keyword. The situations are
considered to be warnings instead of errors because usually the
input file processor can detect whether there are other letters
following the three letter that would make for a legal variable
name.
Second, you are correct that the Studio automatically sets up the
variable names for you and that it sometimes uses those same
three-letters codes. However, you can (and probably should) change
the automatic names manually in TRNEdit. The Studio is a jumping-off
point for developing TRNSED applications. You will need to do a
significant amount of modification to your *.trd file in TRNEdit
anyway to make it look the way you want. The rules of syntax are in
the 06-TRNEdit manual.
Third, the cause of your error is the following pair of lines in
your TRNSED input file:
OFOSCILL=5
of oscillations permitted |-|-|0|1|1|99.000|1000
It should be something like:
OFOSCILL=5
*|Number of oscillations permitted
|-|-|0|1|1|99.000|1000
The TRNSYS input file processor is trying to parse your equations
and because there is no asterisk at the beginning of the line, the
TRNSYS processor does not recognize it as a comment and instead
tries to read it as an equation.
Best,
David
On 3/28/2012 10:19, Timothy McDowell wrote:
Billy -
In your lst file you have the following messages:
Generated by Type : Not applicable or not available
TRNSYS Message 11 : The TRNSYS processor has reported an
illegal variable name in an EQUATIONS or CONSTANTS card.
Equations or constants must not begin with END, INC, EQU or CON as
these are protected codes required when reading the TRNSYS input
file. The offending variable name is listed below.
Reported information : CONTROLF
TRNSYS Message 11 : The TRNSYS processor has reported an
illegal variable name in an EQUATIONS or CONSTANTS card.
Equations or constants must not begin with END, INC, EQU or CON as
these are protected codes required when reading the TRNSYS input
file. The offending variable name is listed below.
Re! ported information : CONTROLS
TRNSYS Message 11 : The TRNSYS processor has reported an
illegal variable name in an EQUATIONS or CONSTANTS card.
Equations or constants must not begin with END, INC, EQU or CON as
these are protected codes required when reading the TRNSYS input
file. The offending variable name is listed below.
Reported information : CONTROLS1
TRNSYS Message 11 : The TRNSYS processor has reported an
illegal variable name in an EQUATIONS or CONSTANTS card.
Equations or constants must not begin with END, INC, EQU or CON as
these are protected codes required when reading the TRNSYS input
file. The offending variable name is listed below.
Reported information : CONTROLS2
TRNSYS Message 11 : The TRNS! YS processor has reported an
illegal variable name in an EQUATIONS or CONSTANTS card.
Equations or constants must not begin with END, INC, EQU or CON as
these are protected codes required when reading the TRNSYS input
file. The offending variable name is listed below.
Reported information : CONTROLS3
These variable names must be changed or it will not run.
Tim
----------------------------------
Timothy McDowell
Executive Vice President
Thermal Energy System Specialists, LLC
22 N. Carroll St, Suite 370
Madison, WI 53703
Phone: 608-274-2577
Fax: 608-278-1475
-----
Original Message -----
From: "" <coolbilly1999@gmail.com>
Sent: Wed, March 28, 2012 9:59
S! ubject: Re: [TRNSYS-users] Problem occurs
when creating TRNED distributions
Hi Jeff and David,
Thanks for the
advice. But the variable name is from the
components’ parameter, I don’t think I can
change it. Unfortunately, I still can't
locate the fatal error since there is no
equation named OF. And I found it acts very
weird, because sometime it can run the
calculation in TRNED and no error comes up,
and sometime this error comes up, especially
after I linked the required data files under
the same directory.It's kinda random, I have
no clue how to solve this problem. So I turn
to you for more helps. Please check the
attached .trd file and let me know if you
need ! more data file. Thanks very much.
Best regards,
Billy
Sent: Monday, March 26, 2012
6:53 PM
Subject: Re: [TRNSYS-users]
Problem occurs when creating TRNED dis!
tributions
Billy,
You used an illegal variable name. Equation
names cannot start with CON (nor EQU, SIM,
etc.). The TRNSYS processor looks at the
first three letters of any line for key words
and CON is the the beginning of CONstants. So
your variable named CONTROL is thereby
illegal.
On another note, always look for the first
error in the list file and not the last error
when debugging...
Jeff
Jeff Thornton
President - TESS, LLC
22 North Carroll Street - Suite 370
Madison WI 53703 USA
Phone: 608-274-2577
Fax: 608-278-1475
E-mail: thornton@tess-inc.com
Web: www.tess-inc.com
----- Original
Message -----
From: "Billy Chen"
<coolbilly1999@gmail.com>
Sent: Mon, March 26, 2012
17:39
Subject: [TRNSYS-users]
Problem occurs when creating TRNED
distributions
Hi TRNSYS users,
I met a problem when I tried
to create a demo using TRNED. I
cannot create the distributable
and the error shown as below:
*** Fatal Error at time
: 0.000000
Generated by Unit : Not
applicable or not available
Generated by Type : Not
applicable or not available
TRNSYS Message 13 : The
TRNSYS Processor has reported
an error while trying to
process EQUATIONS. The
reported error was that an
equal sign (=) did not follow
the variable name. One common
cause of this error is to have
fewer equations that that
specified in the EQUATIONS
card. Please check the input
file and re-run the simulation
Reported information : OF
I tried to locate the error
but failed. I wonder if anyone
has such problem before and
please kindly give me some
advice. Please check the
attached LST file and let me
know if more detailed
information is need.
Thanks very much in advance.
Regards,
Billy
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users
|
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users
|
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@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@tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
|