public void init() { RedirectVTKOutput errorObserver = new RedirectVTKOutput(); var path = Path.Combine(Directory.GetCurrentDirectory(), "VTUInputTest.vtu"); VTKreader reader = new VTKreader(@path); unstructuredGrid = reader.readFile(); fieldDataReader = new VTKFieldDataReader(unstructuredGrid); allForcesBeam = fieldDataReader.readAllForcesBeam(true, null); int[] elIDsBeam = new int[20]; for (int i = 0; i < 20; i++) { elIDsBeam[i] = i; } }
public void init() { RedirectVTKOutput errorObserver = new RedirectVTKOutput(); var path = Path.Combine(Directory.GetCurrentDirectory(), "VTUInputTest.vtu"); VTKreader reader = new VTKreader(@path); unstructuredGrid = reader.readFile(); pointReader = new VTKPointReader(); VTKPointDataReader pointDataReader = new VTKPointDataReader(unstructuredGrid); translation = pointDataReader.readTranslation(true, null); rotationVector = pointDataReader.readRotationVectors(true, null); extremeDisplacement = pointDataReader.ExtremeDisplacement; }
public void init() { RedirectVTKOutput errorObserver = new RedirectVTKOutput(); var path = Path.Combine(Directory.GetCurrentDirectory(), "VTUInputTest.vtu"); VTKreader reader = new VTKreader(@path); unstructuredGrid = reader.readFile(); cellReader = new VTKCellReader(); vtkCells = cellReader.readCells(unstructuredGrid); VTKCellDataReader cellDataReader = new VTKCellDataReader(); allForcesBeams = cellDataReader.readAllForcesBeam(unstructuredGrid); allFourcesShell = cellDataReader.readAllForcesShell(unstructuredGrid); maxForcesBeam = cellDataReader.CalculateMaxForcesBeam; minForcesBeam = cellDataReader.CalculateMinForcesBeam; maxForceShell = cellDataReader.CalculateMaxForcesShell; minForcesShell = cellDataReader.CalculateMinForcesShell; }