def __CreateDesignLogger( self ): outputFormatName = self.OptimizationSettings["output"]["output_format"]["name"].GetString() if outputFormatName == "gid": return DesignLoggerGID( self.ModelPartController, self.OptimizationSettings ) if outputFormatName == "unv": return DesignLoggerUNV( self.ModelPartController, self.OptimizationSettings ) if outputFormatName == "vtk": return DesignLoggerVTK( self.ModelPartController, self.OptimizationSettings ) else: raise NameError("The following output format is not supported by the design logger (name may be misspelled): " + outputFormatName)
def createDesignLogger( designSurface, optimizationSettings): outputFormatName = optimizationSettings["output"]["output_format"]["name"].GetString() if outputFormatName == "gid": return DesignLoggerGID( designSurface, optimizationSettings ) if outputFormatName == "unv": return DesignLoggerUNV( designSurface, optimizationSettings ) if outputFormatName == "vtk": return DesignLoggerVTK( designSurface, optimizationSettings ) else: raise NameError("The following output format is not supported by the design logger (name may be misspelled): " + outputFormatName)