Skip to content

[Bug Report] saveViz variable names #864

@SimonMatdp

Description

@SimonMatdp

Project
responseClass.saveViz

Describe the issue
When trying to execute responseClass.saveViz for the RM3, several errors are found:
Problem 1: Unrecognized field name "faces" Error in responseClass/saveViz (line 466)
Solution 1: change faces to face

problem 2: Index in position 2 exceeds array bounds. Error in responseClass/saveViz (line 472)
if max(bodyMesh(ibod).Points(:,3))+max(bodyMesh(ibod).deltaPos(:,3)) > maxHeight
This is due to both body.geometry.vertex and body.geometry.face being empty

solution 2: in lines 465 and 466 change
bodyMesh(ibod).Points = body(ibod).geometry.vertex;
bodyMesh(ibod).Conns = body(ibod).geometry.face;
to
readBodyMesh = stlread(body(ibod).geometryFile);
bodyMesh(ibod).Points = readBodyMesh.Points;
bodyMesh(ibod).Conns = readBodyMesh.ConnectivityList;

Metadata

Metadata

Assignees

Labels

Bugbug in WEC-Sim source, high priorityVisualizationVisualization and Paraview

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions