Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/ansys/api/acp/v0/enum_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ enum StatusType {
UPTODATE = 1;
NOTUPTODATE = 2;
}

enum RosetteSelectionMethod {
MINIMUM_ANGLE = 0;
MAXIMUM_ANGLE = 1;
MINIMUM_DISTANCE = 2;
MINIMUM_ANGLE_SUPERPOSED = 3;
MAXIMUM_ANGLE_SUPERPOSED = 4;
MINIMUM_DISTANCE_SUPERPOSED = 5;
ANSYS_CLASSIC = 6;
DIRECTIONS_FROM_TABULAR_VALUES = 7;
}
3 changes: 3 additions & 0 deletions src/ansys/api/acp/v0/material.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ syntax = "proto3";
package ansys.api.acp.v0.material;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

message Properties {
enum_types.StatusType status = 1;
bool locked = 2;
}

message ObjectInfo {
Expand Down
42 changes: 24 additions & 18 deletions src/ansys/api/acp/v0/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,40 @@ package ansys.api.acp.v0.model;

import "ansys/api/acp/v0/base.proto";

enum Format {
ANSYS_H5 = 0;
ANSYS_CDB = 1;
ANSYS_DAT = 2;
ABAQUS_INP = 3;
NASTRAN_BDF = 4;
// Default CRUD messages

message Properties {
bool use_nodal_thicknesses = 1;
bool draping_offset_correction = 2;
bool use_default_section_tolerances = 3;
double angle_tolerance = 4;
double relative_thickness_tolerance = 5;
double minimum_analysis_ply_thickness = 6;
}

message ObjectInfo {
base.BasicInfo info = 1;
message ModelingProperties {
bool use_nodal_thicknesses = 1;
bool draping_offset_correction = 2;
bool use_default_section_tolerances = 3;
double angle_tolerance = 4;
double relative_thickness_tolerance = 5;
double minimum_analysis_ply_thickness = 6;
}
ModelingProperties properties = 2;
Properties properties = 2;
}

message ListReply {
repeated ObjectInfo objects = 1;
}

message LoadFromFileRequest {
string path = 1;
}

// Special Model messages

enum Format {
ANSYS_H5 = 0;
ANSYS_CDB = 1;
ANSYS_DAT = 2;
ABAQUS_INP = 3;
NASTRAN_BDF = 4;
}

message LoadFromFEFileRequest {
string path = 1;
Format format = 2;
Expand All @@ -53,9 +62,6 @@ message SaveToFileRequest {
bool save_cache = 3;
}

message ListReply {
repeated ObjectInfo objects = 1;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);
Expand Down
8 changes: 8 additions & 0 deletions src/ansys/api/acp/v0/oriented_selection_set.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ package ansys.api.acp.v0.oriented_selection_set;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";
import "ansys/api/acp/v0/array_types.proto";

message Properties {
enum_types.StatusType status = 1;
repeated base.ResourcePath element_sets = 2;
array_types.DoubleArray orientation_point = 3;
array_types.DoubleArray orientation_direction = 4;
repeated base.ResourcePath rosettes = 5;
enum_types.RosetteSelectionMethod rosette_selection_method = 6;
// TODO: tabular values
// TODO: selection rules
// TODO: draping
}

message ObjectInfo {
Expand Down