Skip to content

Add contact and mpc conditions #47

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions cubitpy/cubitpy_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def get_default_four_c_description(self):
return "KINEM nonlinear EAS none ANS none THICKDIR auto"
elif self == self.hex8_fluid or self.tet4_fluid:
return "NA ALE"
elif self == self.quad4:
return (
"KINEM nonlinear EAS none THICK 1.0 STRESS_STRAIN plane_stress GP 2 2"
)
else:
raise ValueError("Got wrong element type {}!".format(self))

Expand All @@ -255,6 +259,9 @@ class BoundaryConditionType(Enum):
beam_to_solid_surface_meshtying = auto()
beam_to_solid_surface_contact = auto()
solid_to_solid_surface_contact = auto()
micro_model_boundary_surface = auto()
periodic_rve_edge = auto()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about periodic RVE surfaces? Is this yet to come?

line_mortar_contact = auto()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets stick to the current convention and name this solid_to_solid_line_contact


# fluid
flow_rate = auto()
Expand Down Expand Up @@ -322,6 +329,14 @@ def get_dat_bc_section_header(self, geometry_type):
geometry_type == GeometryType.curve
):
return "FLUID NEUMANN INFLOW LINE CONDITIONS"
elif self == self.line_mortar_contact and (geometry_type == GeometryType.curve):
return "DESIGN LINE MORTAR CONTACT CONDITIONS 2D"
elif self == self.periodic_rve_edge and (geometry_type == GeometryType.curve):
return "DESIGN LINE PERIODIC RVE 2D BOUNDARY CONDITIONS"
elif self == self.micro_model_boundary_surface and (
geometry_type == GeometryType.surface
):
return "MICROSCALE CONDITIONS"
else:
raise ValueError(
"No implemented case for {} and {}!".format(self, geometry_type)
Expand Down