0

How to I get the contribution of neighboring buses, after the ascc_currents api runs?

I ran the ascc_currents API to get the three-phase fault currents in the buses of the working case and I wanted to know if it's possible to get the contribution of the neighboring buses to that current of a specific bus.

Assuming the working case has only 3 buses, if I get the three-phase fault current of bus 2, what is the contribution of buses 1 and 3 to that bus 2 fault current?

g.valentim's avatar
1
g.valentim
asked 2018-12-06 16:48:08 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I generate a report when I run my ASCC analysis, the report always has the contributions listed for me.

Are you running these manually or through the API?

If you're using the API this may help you find a way to implement it:

    def __ASCC(self, out_file_identifier, out_file_path, subsystem, gen_scfiles=False):
    """
    :param out_file_identifier: increments file names
    :param out_file_path: gives folder to place reports in
    :param subsystem: specifies subsystem id for psspy.ascc api
    :param gen_scfiles: option flag for scfile output of psspy.ascc api
    :return:
    """
    if not os.path.isfile(os.path.join(out_file_path, '%d_ASCC_rawData.txt' % out_file_identifier)):
        self.log('Running ASCC for segment %d' % out_file_identifier)
        ierr = self.psspy.report_output(2, os.path.join(out_file_path, '%d_ASCC_rawData.txt' % out_file_identifier))
        if ierr: self.log('Error on ASCC reporting for segment %s ierr %s' % (out_file_identifier, ierr), 'error')
        # class fault analysis conditions
        # ierr = self.psspy.flat_2([1, 1, 1, 2, 1, 2, 1, 3], [1, 1])

        if gen_scfiles:
            if not os.path.exists(os.path.join(out_file_path, 'scfiles')):
                os.makedirs(os.path.join(out_file_path, 'scfiles'))
            scfile_path = os.path.join(out_file_path, 'scfiles', '%d_scfile.sc' % out_file_identifier)
        else:
            scfile_path = ""
        # this flats the case and stuff
        ierr = self.psspy.ascc_3(subsystem, 0, [1, 1, 0, 1, 0, 2, 0, 1, 0, 1, 1, 0, 0, 2, 2, 1, 1], [1],
                                 '', '', scfile_path)
        if ierr: self.log('Error on ASCC segment %s ierr %s', 'error')

    else:
        self.log('skipping %d_ASCC_rawData.txt' % out_file_identifier)
nelak's avatar
1
nelak
answered 2018-12-08 18:16:36 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer