Skip to content

Commit 22e90f7

Browse files
clean utilities and remove mosek dependency
1 parent 89c1b57 commit 22e90f7

8 files changed

Lines changed: 18 additions & 1006 deletions

File tree

environment.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: tno-dev
22
channels:
33
- conda-forge
4-
- mosek
54
dependencies:
65
- python >=3.9
76
- pip >=19.0
87
- compas >=2.13
98
- compas_occ >=1.3
109
- cvxpy
1110
- cyipopt
12-
- mosek
1311
- pip:
1412
- -e .

src/compas_tno/problems/constraints.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from compas_tno.algorithms import weights_from_xyz
1616
from compas_tno.algorithms import xyz_from_q
1717
from compas_tno.problems.bounds_update import b_update
18-
from compas_tno.problems.bounds_update import ub_lb_update
1918

2019

2120
def constr_wrapper(variables: npt.NDArray, M: "Problem") -> npt.NDArray:

src/compas_tno/problems/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ def set_up_general_optimisation(analysis: "Analysis"):
202202
# =============================================================================
203203

204204
if "reac_bounds" in constraints:
205-
problem.b = set_b_constraint(form, printout)
205+
# double check if reac_bounds have been applied
206+
fixed = form.vertices_where({"is_support": True})
207+
problem.b = array(form.vertices_attribute("b", keys=fixed))
206208
else:
207209
problem.b = None
208210

src/compas_tno/problems/startingpoint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import importlib.util
2-
31
from compas_tno.algorithms import compute_reactions
42
from compas_tno.algorithms import equilibrium_fdm
53
from compas_tno.solvers import run_loadpath_from_form_CVXPY

src/compas_tno/utilities/__init__.py

Lines changed: 10 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,14 @@
1-
from .symmetry import (
2-
apply_radial_symmetry,
3-
apply_symmetry_from_axis,
4-
find_sym_axis_in_rect_patterns,
5-
build_symmetry_matrix,
6-
build_symmetry_transformation,
7-
build_vertex_symmetry_transformation,
8-
build_symmetry_matrix_supports,
9-
)
10-
11-
from .constraints import (
12-
check_envelope_constraints,
13-
distance_target,
14-
rectangular_smoothing_constraints,
15-
assign_cracks,
16-
rollers_on_openings,
17-
set_b_constraint,
18-
set_rollers_constraint,
19-
)
20-
21-
from .functions import paraboloid, dome
22-
23-
from .interpolation import (
24-
interpolate_from_pointcloud,
25-
mesh_from_pointcloud,
26-
create_mesh_from_topology_and_pointcloud,
27-
create_mesh_from_topology_and_basemesh,
28-
)
29-
30-
from .stiffness import (
31-
compute_form_initial_lengths,
32-
compute_edge_stiffness,
33-
compute_average_edge_stiffness,
34-
)
35-
1+
from .constraints import (assign_cracks, check_envelope_constraints, distance_target, rectangular_smoothing_constraints, rollers_on_openings, set_b_constraint,
2+
set_rollers_constraint)
3+
from .form import (displacement_map_4parabolas, displacement_map_parabola, displacement_map_paraboloid, fix_mesh_boundary, fix_mesh_corners, form_add_lines_support,
4+
form_parabolic_slide, mesh_remove_two_valent_nodes, move_pattern_inwards, move_pattern_outwards, move_pattern_to_origin, shuffle_diagram, slide_diagram,
5+
slide_pattern_inwards, split_intersection_lines, store_inds)
6+
from .functions import dome, paraboloid
7+
from .interpolation import create_mesh_from_topology_and_basemesh, create_mesh_from_topology_and_pointcloud, interpolate_from_pointcloud, mesh_from_pointcloud
368
from .json import update_json
37-
38-
from .blocks import blocks_from_dual, extended_dual
39-
40-
from .form import (
41-
split_intersection_lines,
42-
form_add_lines_support,
43-
form_parabolic_slide,
44-
move_pattern_to_origin,
45-
fix_mesh_corners,
46-
fix_mesh_boundary,
47-
slide_diagram,
48-
mesh_remove_two_valent_nodes,
49-
store_inds,
50-
slide_pattern_inwards,
51-
displacement_map_paraboloid,
52-
displacement_map_4parabolas,
53-
displacement_map_parabola,
54-
move_pattern_inwards,
55-
move_pattern_outwards,
56-
shuffle_diagram,
57-
)
58-
59-
from .data_analysis import (
60-
diagram_of_thrust,
61-
diagram_of_multiple_thrust,
62-
diagram_of_thrust_load_mult,
63-
surface_GSF_load_mult,
64-
save_csv_row,
65-
open_csv_row,
66-
interpolate_min_thk,
67-
filter_min_thk,
68-
lookup_folder,
69-
save_pointcloud,
70-
)
71-
9+
from .stiffness import compute_average_edge_stiffness, compute_edge_stiffness, compute_form_initial_lengths
10+
from .symmetry import (apply_radial_symmetry, apply_symmetry_from_axis, build_symmetry_matrix, build_symmetry_matrix_supports, build_symmetry_transformation,
11+
build_vertex_symmetry_transformation, find_sym_axis_in_rect_patterns)
7212

7313
__all__ = [
7414
"apply_radial_symmetry",

src/compas_tno/utilities/blocks.py

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)