''' AFLR3 wrapper '''

# --- OpenMDAO imports
from openmdao.api import Problem, Group, ExternalCode, IndepVarComp

class AFLR3(ExternalCode):
    ''' OpenMDAO component for executing AFLR3 '''

    aflr3_exec = 'aflr3.script'

    # ---------------------------------------
    # --- File Wrapper/Template for AFLR3 ---
    # ---------------------------------------

    def __init__(self, *args, **kwargs):
        
        # -------------------------------------------------
        # --- Constructor for Surface Meshing Component ---
        # -------------------------------------------------
        super(AFLR3, self).__init__()

        self.options['external_input_files'] = ['../AFLR3/Hyperloop_PW.b8.ugrid','../AFLR3/Hyperloop.tags']
        self.options['external_output_files'] = ['../Fun3D/Flow/Hyperloop.b8.ugrid']
        self.options['command'] = ['sh', self.aflr3_exec]

    def execute(self):

    	# -------------------------------
    	# --- Execute AFLR3 Component ---
    	# -------------------------------
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)

if __name__ == "__main__":
    
    # -------------------------
    # --- Default Test Case ---
    # ------------------------- 
    p = Problem(root=Group())
    p.root.add('aflr3', AFLR3())
    p.setup()
    p.run()
7cfda9964b1b5b62cf9a80ab9a50611473b5869d
<mask token>


class AFLR3(ExternalCode):
    <mask token>
    <mask token>
    <mask token>

    def execute(self):
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)


<mask token>

<mask token>


class AFLR3(ExternalCode):
    <mask token>
    <mask token>

    def __init__(self, *args, **kwargs):
        super(AFLR3, self).__init__()
        self.options['external_input_files'] = [
            '../AFLR3/Hyperloop_PW.b8.ugrid', '../AFLR3/Hyperloop.tags']
        self.options['external_output_files'] = [
            '../Fun3D/Flow/Hyperloop.b8.ugrid']
        self.options['command'] = ['sh', self.aflr3_exec]

    def execute(self):
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)


<mask token>

<mask token>


class AFLR3(ExternalCode):
    """ OpenMDAO component for executing AFLR3 """
    aflr3_exec = 'aflr3.script'

    def __init__(self, *args, **kwargs):
        super(AFLR3, self).__init__()
        self.options['external_input_files'] = [
            '../AFLR3/Hyperloop_PW.b8.ugrid', '../AFLR3/Hyperloop.tags']
        self.options['external_output_files'] = [
            '../Fun3D/Flow/Hyperloop.b8.ugrid']
        self.options['command'] = ['sh', self.aflr3_exec]

    def execute(self):
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)


<mask token>

<mask token>


class AFLR3(ExternalCode):
    """ OpenMDAO component for executing AFLR3 """
    aflr3_exec = 'aflr3.script'

    def __init__(self, *args, **kwargs):
        super(AFLR3, self).__init__()
        self.options['external_input_files'] = [
            '../AFLR3/Hyperloop_PW.b8.ugrid', '../AFLR3/Hyperloop.tags']
        self.options['external_output_files'] = [
            '../Fun3D/Flow/Hyperloop.b8.ugrid']
        self.options['command'] = ['sh', self.aflr3_exec]

    def execute(self):
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)


if __name__ == '__main__':
    p = Problem(root=Group())
    p.root.add('aflr3', AFLR3())
    p.setup()
    p.run()

''' AFLR3 wrapper '''

# --- OpenMDAO imports
from openmdao.api import Problem, Group, ExternalCode, IndepVarComp

class AFLR3(ExternalCode):
    ''' OpenMDAO component for executing AFLR3 '''

    aflr3_exec = 'aflr3.script'

    # ---------------------------------------
    # --- File Wrapper/Template for AFLR3 ---
    # ---------------------------------------

    def __init__(self, *args, **kwargs):
        
        # -------------------------------------------------
        # --- Constructor for Surface Meshing Component ---
        # -------------------------------------------------
        super(AFLR3, self).__init__()

        self.options['external_input_files'] = ['../AFLR3/Hyperloop_PW.b8.ugrid','../AFLR3/Hyperloop.tags']
        self.options['external_output_files'] = ['../Fun3D/Flow/Hyperloop.b8.ugrid']
        self.options['command'] = ['sh', self.aflr3_exec]

    def execute(self):

    	# -------------------------------
    	# --- Execute AFLR3 Component ---
    	# -------------------------------
        super(AFLR3, self).solve_nonlinear(params, unknowns, resids)

if __name__ == "__main__":
    
    # -------------------------
    # --- Default Test Case ---
    # ------------------------- 
    p = Problem(root=Group())
    p.root.add('aflr3', AFLR3())
    p.setup()
    p.run()