Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiPointContact: The skip-argument is ignored #803

Closed
adtzlr opened this issue Jun 26, 2024 · 2 comments
Closed

MultiPointContact: The skip-argument is ignored #803

adtzlr opened this issue Jun 26, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@adtzlr
Copy link
Owner

adtzlr commented Jun 26, 2024

add a test to verify the results.

Example

import felupe as fem
import numpy as np

mesh = fem.Cube(n=6)
mesh.update(points=np.vstack([mesh.points, [1.1, 0, 0]]))
region = fem.RegionHexahedron(mesh)
field = fem.FieldContainer([fem.Field(region, dim=3)])

boundaries = fem.dof.symmetry(field[0])
boundaries["move"] = fem.Boundary(field[0], fx=1.1, skip=(0, 1, 1))
boundaries["control-y"] = fem.Boundary(field[0], fx=1.1, skip=(1, 0, 1))
boundaries["control-z"] = fem.Boundary(field[0], fx=1.1, skip=(1, 1, 0))

umat = fem.NeoHooke(mu=1, bulk=2)
solid = fem.SolidBody(umat=umat, field=field)
right = np.arange(mesh.npoints)[mesh.x == 1]
plate = fem.MultiPointContact(field, points=right, centerpoint=-1, skip=(0, 0, 0))

move = fem.math.linsteps([0, -0.3], num=3)
ramp = {boundaries["move"]: move}
step = fem.Step(items=[solid, plate], ramp=ramp, boundaries=boundaries)

job = fem.Job(steps=[step])
job.evaluate()

ax = solid.imshow("Principal Values of Cauchy Stress")

image

@adtzlr adtzlr added the bug Something isn't working label Jun 26, 2024
@adtzlr adtzlr self-assigned this Jun 26, 2024
@adtzlr adtzlr changed the title MultiPointContact: The skip-argument seems to be ignored MultiPointContact: The skip-argument is ignored Jun 26, 2024
@adtzlr
Copy link
Owner Author

adtzlr commented Jun 26, 2024

skip behaves differently in MPC and its contact variant. In the contact mode, skip means not considered detection directions. The contact itself is always frictionless.

@adtzlr adtzlr added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jun 26, 2024
@adtzlr
Copy link
Owner Author

adtzlr commented Jun 26, 2024

That example should be added to the docs.

@adtzlr adtzlr closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant