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

Adding missing mapdl.tbdele argument #2186

Merged
merged 1 commit into from
Jul 14, 2023
Merged
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
14 changes: 12 additions & 2 deletions src/ansys/mapdl/core/_commands/preproc/material_data_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def tbdata(self, stloc="", c1="", c2="", c3="", c4="", c5="", c6="", **kwargs):
)
return self.run(command, **kwargs)

def tbdele(self, lab="", mat1="", mat2="", inc="", **kwargs):
def tbdele(self, lab="", mat1="", mat2="", inc="", tbopt="", **kwargs):
"""APDL Command: TBDELE

Deletes previously defined material data tables.
Expand All @@ -381,12 +381,22 @@ def tbdele(self, lab="", mat1="", mat2="", inc="", **kwargs):
steps of INC (defaults to 1). If MAT1= ALL, ignore MAT2 and INC
and delete data tables for all materials.

tbopt
Material data table option. Visit :meth:`Mapdl.tb <ansys.mapdl.core.Mapdl.tb>` for valid ``tbopt`` values for a given Lab.

**kwargs
Extra arguments to be passed to :meth:`Mapdl.run <ansys.mapdl.core.Mapdl.run>`.

Notes
-----
This command is also valid in SOLUTION.

If ``lab = "ALL"``, delete all material data tables.

If ``mat1= "ALL"``, ``mat2`` and ``inc`` are ignored and all material data tables are deleted.

If ``tbopt`` is specified, the material data table corresponding to ``Lab`` is deleted if it also has the specified table option. If ``tbopt`` is not specified, all material data tables corresponding to ``Lab`` are deleted. ``tbopt`` is ignored when ``Lab = "ALL"``.

This command is also valid in the solution processor (:meth:`mapdl.slashsolu() <ansys.mapdl.core.Mapdl.slashsolu>`), but is not intended for changing material behaviors between load steps.
"""
command = "TBDELE,%s,%s,%s,%s" % (
str(lab),
Expand Down