Skip to content

Commit 2406c2e

Browse files
committed
fixed icloud problem, bumped version, and added utility to hide technical names
1 parent cd7e7dd commit 2406c2e

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/
2+
build.nosync/
23
bin/
34
bin_rel/
45
3rdparty/

polyfempy/Problems.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ def __init__(self):
8181
self.dirichlet_boundary = []
8282
self.neumann_boundary = []
8383

84+
def set_velocity(self, id, value, is_dim_fixed=None):
85+
"""set the velocity value for the sideset id. Note the value must be a vector in 2D or 3D depending on the problem"""
86+
self.add_dirichlet_value(id, value, is_dim_fixed)
87+
88+
def set_displacement(self, id, value, is_dim_fixed=None):
89+
"""set the displacement value for the sideset id. Note the value must be a vector in 2D or 3D depending on the problem"""
90+
self.add_dirichlet_value(id, value, is_dim_fixed)
91+
92+
def set_force(self, id, value):
93+
"""set the force value for the sideset id. Note the value must be a vector in 2D or 3D depending on the problem"""
94+
self.add_neumann_value(id, value)
95+
96+
8497
def add_dirichlet_value(self, id, value, is_dirichlet_dim=None):
8598
"""add the Dirichlet value value for the sideset id. Note the value must be a vector in 2D or 3D depending on the problem. is_dirichlet_dim is a vector of boolean specifying which dimentions are fixed."""
8699
assert(len(value) == 3 or len(value) == 2)

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def __init__(self, name, sourcedir=''):
1818

1919
class CMakeBuild(build_ext):
2020
def run(self):
21+
if platform.system() == 'Darwin':
22+
self.build_temp = self.build_temp.replace("build", "build.nosync")
23+
2124
try:
2225
out = subprocess.check_output(['cmake', '--version'])
2326
except OSError:
@@ -80,7 +83,7 @@ def build_extension(self, ext):
8083

8184
setup(
8285
name="polyfempy",
83-
version="0.2",
86+
version="0.2.3",
8487
author="Teseo Schneider",
8588
author_email="",
8689
description="Polyfem Python Bindings",

0 commit comments

Comments
 (0)