[Equest-users] eQuest & NoteTab Question

Nathan Miller nathanm at rushingco.com
Thu Sep 10 06:31:30 PDT 2015


Here is an example of a macro that inserts a new single zone system for EVERY zone in a file. We usually copy only the zones we want to run this macro on into a separate text file, run the macro, copy that new text and paste it back over the old zone information in the original .inp file. Note, it is easy to make a mistake and mess up your .inp file, so always save a copy of the original somewhere else first.

Basic explanation (this uses some built-in macros already defined in boxer):

1)      Go to start of file

2)      Recursive “While” statement to run macro as long as it finds another instance of “= ZONE”

3)      Find “= ZONE”

4)      Copy the zone name part of that text string

5)      Move curser above the zone

6)      Create text for new system with zone name imbedded (unique system name necessary)

7)      Print in the inputs we want for each unique system, here, type PSZ, Min OA = 0, Control Zone = pasted zone name (we use user defined defaults a lot, or you might just go in later and modify values you don’t want to default once the systems are already created)

8)      Don’t forget to put “..” at the end of the system definition

9)      Go back and  check to see if while condition is satisfied.

Boxer Macro:

/* Use to add single zone systems to multiple zones.
   Make sure that the group of zones are all conditioned.
   Cut zone group out of .inp file to new file, run macro, paste back into .inp
*/

macro AddSingleZoneSystems()
{
                StartOfFile;
                while(Find("= ZONE")!=0)
                {
                                SelectToStartOfLine;
        Copy;
                                InsertLineAbove;
                                Paste;
                                EndOfLine;
                                Backspace;
                                Backspace;
                                printf(" PSZ Econ\"");
                                printf(" = SYSTEM");
                                InsertLineBelow;
                                printf("   TYPE             = PSZ");
                                InsertLineBelow;
                                printf("   MIN-OUTSIDE-AIR     = 0");
                                InsertLineBelow;
                                printf("   CONTROL-ZONE     = ");
                                Paste;
                                InsertLineBelow;
                                printf("   ..");
                                Down;
                                Down;
                }
}


Nathan Miller, PE, LEED AP BD+C – Mechanical Engineer/Senior Energy Analyst
RUSHING | D 206-788-4577 | O 206-285-7100
www.rushingco.com<http://www.rushingco.com/>

From: Phillips, Jesse [mailto:jphillips at RDKEngineers.com]
Sent: Wednesday, September 09, 2015 4:05 PM
To: Nathan Miller <nathanm at rushingco.com>; equest-users at lists.onebuilding.org
Subject: RE: eQuest & NoteTab Question

I don’t think you can create macros in NoteTab.  What would that macro look like in boxer?

Jesse Phillips
Energy Engineer
RDK Engineers
P: 857-221-5957

From: Nathan Miller [mailto:nathanm at rushingco.com]
Sent: Wednesday, September 09, 2015 3:38 PM
To: Phillips, Jesse <jphillips at RDKEngineers.com<mailto:jphillips at RDKEngineers.com>>; equest-users at lists.onebuilding.org<mailto:equest-users at lists.onebuilding.org>
Subject: RE: eQuest & NoteTab Question

Can you create a macro that searches for each instance of “=ZONE”, copies the text before the “=” to get the zone name, and the pastes in the lines necessary to create a new single zone system, using the zone name now stored in the clip-board to paste in the control zone?

I’m not familiar with NoteTab, but you can do that in boxer.


Nathan Miller, PE, LEED AP BD+C – Mechanical Engineer/Senior Energy Analyst
RUSHING | D 206-788-4577 | O 206-285-7100
www.rushingco.com<http://www.rushingco.com/>

From: Equest-users [mailto:equest-users-bounces at lists.onebuilding.org] On Behalf Of Phillips, Jesse
Sent: Wednesday, September 09, 2015 3:23 PM
To: equest-users at lists.onebuilding.org<mailto:equest-users at lists.onebuilding.org>
Subject: [Equest-users] eQuest & NoteTab Question

Hi,

I have a model with 233 zones.  Right now, every zone has a water loop heat pump.  I want to convert these all to packaged single zone systems.  To do this, I am working in the .inp file and doing a “find and replace” in NoteTab.  The replacing of the system type is easy.  I simply search for the “type      = HP” line and replace with “type     = PSZ”.  However, the PSZ system requires a control zone.  I would like each control zone to be the zone in which that particular system resides.  Which means, for each of my 233 zones, I will have a different control zone (i.e. no longer a simple find and replace search).

Does anyone know of a way to use “find and replace” (or another method) to set each control zone with the zone name which the system resides?

This is what the .inp file should look like for a packaged single zone system:

"EL1 Sys1 (PTAC) (G.SSW1)" = SYSTEM
   TYPE             = PSZ
   HEAT-SOURCE      = HEAT-PUMP
   ZONE-HEAT-SOURCE = NONE
   SIZING-RATIO     = 1
   COOL-SIZING-RATI = 1
   MIN-SUPPLY-T     = 58
   FAN-SCHEDULE     = "S1 Sys1 (PTAC) Fan Sch"
   CW-LOOP          = "DEFAULT-CW"
   COOLING-CAPACITY = 15752
   COOL-SH-CAP      = 11839
   HP-SUPP-SOURCE   = NONE
   FURNACE-HIR      = 1.24067
   CONTROL-ZONE     = "EL1 SSW Perim Zn (G.SSW1)"
   C-EER95          = 8.24
   C-COP47          = 0.78
   C-AFUE           = 0.78
   C-SF-MTR-TYPE    = 1
   C-RF-MTR-TYPE    = 1
   C-OSA-DMPR-CTRL  = 1
   C-HTG-DUCT-LOCN  = *Ceiling Plenum*
   C-HTG-DUCT-RVAL  = 7
   C-CLG-DUCT-LOCN  = *Ceiling Plenum*
   C-CLG-DUCT-RVAL  = 7
   C-CLG-CAP-CATEG  = 14

For my next system, everything would be exactly the same except the highlighted lines (and so on for all 233 systems):

"EL1 Sys1 (PTAC) (G.W2)" = SYSTEM
   TYPE             = PSZ
   HEAT-SOURCE      = HEAT-PUMP
   ZONE-HEAT-SOURCE = NONE
   SIZING-RATIO     = 1
   COOL-SIZING-RATI = 1
   MIN-SUPPLY-T     = 58
   FAN-SCHEDULE     = "S1 Sys1 (PTAC) Fan Sch"
   CW-LOOP          = "DEFAULT-CW"
   COOLING-CAPACITY = 15752
   COOL-SH-CAP      = 11839
   HP-SUPP-SOURCE   = NONE
   FURNACE-HIR      = 1.24067
   CONTROL-ZONE     = "EL1 Sys1 (PTAC) (G.W2)"
   C-EER95          = 8.24
   C-COP47          = 0.78
   C-AFUE           = 0.78
   C-SF-MTR-TYPE    = 1
   C-RF-MTR-TYPE    = 1
   C-OSA-DMPR-CTRL  = 1
   C-HTG-DUCT-LOCN  = *Ceiling Plenum*
   C-HTG-DUCT-RVAL  = 7
   C-CLG-DUCT-LOCN  = *Ceiling Plenum*
   C-CLG-DUCT-RVAL  = 7
   C-CLG-CAP-CATEG  = 14


thank you,

Jesse Phillips | Energy Engineer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150910/a699a010/attachment-0005.htm>


More information about the Equest-users mailing list