Exemple #1
0
    def initialize(self):
        """Initializes the surrogate needed for SU2, including building the surface and volume meshes.

        Assumptions:
        Vehicle is available in OpenVSP

        Source:
        N/A

        Inputs:
        None

        Outputs:
        None

        Properties Used:
        self.geometry.tag               <string> (geometry is also set as part of the lift process)
        self.process.compute.lift.
          inviscid.training_file        (optional - determines if new SU2 runs are necessary)
        self.settings.
          half_mesh_flag                <boolean> Determines if a symmetry plane is used
          vsp_mesh_growth_ratio         [-] Determines how the mesh grows
          vsp_mesh_growth_limiting_flag <boolean> Determines if 3D growth limiting is used
        """              
        self.process.compute.lift.inviscid.geometry = self.geometry
        
        tag = self.geometry.tag
        # Mesh the geometry in prepartion for CFD if no training file exists
        if self.process.compute.lift.inviscid.training_file is None:
            write_vsp_mesh(self.geometry,tag,self.settings.half_mesh_flag,self.settings.vsp_mesh_growth_ratio,self.settings.vsp_mesh_growth_limiting_flag)
            write_geo_file(tag)
            mesh_geo_file(tag)
        
        # Generate the surrogate
        self.process.compute.lift.inviscid.initialize()
Exemple #2
0
    def initialize(self):
        """Initializes the surrogate needed for SU2, including building the surface and volume meshes.

        Assumptions:
        Vehicle is available in OpenVSP

        Source:
        N/A

        Inputs:
        None

        Outputs:
        None

        Properties Used:
        self.geometry.tag               <string> (geometry is also set as part of the lift process)
        self.process.compute.lift.
          inviscid.training_file        (optional - determines if new SU2 runs are necessary)
        self.settings.
          half_mesh_flag                <boolean> Determines if a symmetry plane is used
          vsp_mesh_growth_ratio         [-] Determines how the mesh grows
          vsp_mesh_growth_limiting_flag <boolean> Determines if 3D growth limiting is used
        """              
        self.process.compute.lift.inviscid.geometry = self.geometry
        
        tag = self.geometry.tag
        # Mesh the geometry in prepartion for CFD if no training file exists
        if self.process.compute.lift.inviscid.training_file is None:
            write_vsp_mesh(self.geometry,tag,self.settings.half_mesh_flag,self.settings.vsp_mesh_growth_ratio,self.settings.vsp_mesh_growth_limiting_flag)
            write_geo_file(tag)
            mesh_geo_file(tag)
        
        # Generate the surrogate
        self.process.compute.lift.inviscid.initialize()
Exemple #3
0
    def initialize(self):
        self.process.compute.lift.inviscid.geometry = self.geometry

        tag = self.geometry.tag
        # Mesh the geometry in prepartion for CFD if no training file exists
        if self.process.compute.lift.inviscid.training_file is None:
            write_vsp_mesh(self.geometry, tag, self.settings.half_mesh_flag,
                           self.settings.vsp_mesh_growth_ratio,
                           self.settings.vsp_mesh_growth_limiting_flag)
            write_geo_file(tag)
            mesh_geo_file(tag)

        # Generate the surrogate
        self.process.compute.lift.inviscid.initialize()