Oasys.PRIMER.Rigidwall class¶
Constants¶
Properties¶
- property Rigidwall.birth: float¶
Birth time
- property Rigidwall.boxid: integer¶
Box for nodes
- property Rigidwall.d1: float¶
X component of vector defn
- property Rigidwall.d2: float¶
Y component of vector defn
- property Rigidwall.d3: float¶
Z component of vector defn
- property Rigidwall.death: float¶
Death time
- property Rigidwall.decaya: float¶
Friction decay const in local A dir
- property Rigidwall.decayb: float¶
Friction decay const in local B dir
- property Rigidwall.dfrica: float¶
Dynamic friction coeff in local A dir
- property Rigidwall.dfricb: float¶
Dynamic friction coeff in local B dir
- property Rigidwall.display: boolean¶
DISPLAY flag
- property Rigidwall.e: float¶
Young’s modulus of rigidwall (for _DISPLAY option)
- property Rigidwall.exists(read only): boolean¶
true if rigidwall exists, false if referred to but not defined
- property Rigidwall.finite: boolean¶
Finite flag
- property Rigidwall.forces: boolean¶
Forces flag
- property Rigidwall.fric: float¶
Friction coefficient
- property Rigidwall.id: boolean¶
true if _ID option is set, false if not
- property Rigidwall.lencyl: float¶
Length of cylinder
- property Rigidwall.lenl: float¶
Length of L edge
- property Rigidwall.lenm: float¶
Length of M edge
- property Rigidwall.lenp: float¶
Length of prism in -ve N
- property Rigidwall.mass: float¶
Mass of moving wall
- property Rigidwall.motion: boolean¶
Motion flag
- property Rigidwall.moving: boolean¶
Moving flag
- property Rigidwall.nsegs: integer¶
Number of subsections
- property Rigidwall.offset: float¶
Offset for planar option
- property Rigidwall.opt: integer¶
Motion type
- property Rigidwall.ortho: boolean¶
Ortho flag
- property Rigidwall.pid: integer¶
Part ID for display of geometric rigidwall (for _DISPLAY option)
- property Rigidwall.pr: float¶
Poisson’s ratio of rigidwall (for _DISPLAY option)
- property Rigidwall.radcyl: float¶
Radius of cylinder
- property Rigidwall.radsph: float¶
Radius of sphere
- property Rigidwall.ro: float¶
Density of rigidwall (for _DISPLAY option)
- property Rigidwall.rwksf: float¶
Stiffness scaling factor
- property Rigidwall.sfrica: float¶
Static friction coeff in local A dir
- property Rigidwall.sfricb: float¶
Static friction coeff in local B dir
- property Rigidwall.soft: integer¶
No. of cycles to zero relative velocity
- property Rigidwall.ssid: integer¶
Segment set
number
- property Rigidwall.type: constant¶
The rigidwall type. Can be
Rigidwall.FLAT
,Rigidwall.PRISM
,Rigidwall.CYLINDER
,Rigidwall.SPHERE
,Rigidwall.PLANAR
,
- property Rigidwall.v0: float¶
Initial velocity
- property Rigidwall.vx: float¶
X component of motion vector
- property Rigidwall.vy: float¶
Y component of motion vector
- property Rigidwall.vz: float¶
Z component of motion vector
- property Rigidwall.wvel: float¶
Velocity at which nodes weld to wall
- property Rigidwall.xh: float¶
Head X coord of outward normal
- property Rigidwall.xhev: float¶
Head X coord of edge I vector
- property Rigidwall.xt: float¶
Tail X coord of outward normal
- property Rigidwall.yh: float¶
Head Y coord of outward normal
- property Rigidwall.yhev: float¶
Head Y coord of edge I vector
- property Rigidwall.yt: float¶
Tail Y coord of outward normal
- property Rigidwall.zh: float¶
Head Z coord of outward normal
- property Rigidwall.zhev: float¶
Head Z coord of edge I vector
- property Rigidwall.zt: float¶
Tail Z coord of outward normal
Constructor¶
- classmethod Rigidwall(model, type, nsid=Oasys.gRPC.defaultArg, rwid=Oasys.gRPC.defaultArg, heading=Oasys.gRPC.defaultArg)¶
Create a new
Rigidwall
object
- Parameters:
model (Model) –
Model
that Rigidwall will be created intype (constant) – Specify the type of rigidwall (Can be
Rigidwall.FLAT
,Rigidwall.PRISM
,Rigidwall.CYLINDER
,Rigidwall.SPHERE
,Rigidwall.PLANAR
)nsid (integer) – Optional.
Node set
numberrwid (integer) – Optional.
Rigidwall
numberheading (string) – Optional. Title for the Rigidwall
- Returns:
Rigidwall object
- Return type:
dict
Example
To create a new rigidwall 200 of type GEOMETRIC_SPHERE in model m using node set 100 having the title “test wall”
r = Oasys.PRIMER.Rigidwall(m, Oasys.PRIMER.Rigidwall.SPHERE, 200, 100, "test wall")
Static methods¶
- classmethod Rigidwall.BlankAll(model, redraw=Oasys.gRPC.defaultArg)¶
Blanks all of the rigidwalls in the model
- Parameters:
model (Model) –
Model
that all rigidwalls will be blanked inredraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To blank all of the rigidwalls in model m:
Oasys.PRIMER.Rigidwall.BlankAll(m)
- classmethod Rigidwall.BlankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Blanks all of the flagged rigidwalls in the model
- Parameters:
model (Model) –
Model
that all the flagged rigidwalls will be blanked inflag (Flag) – Flag set on the rigidwalls that you want to blank
redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To blank all of the rigidwalls in model m flagged with f:
Oasys.PRIMER.Rigidwall.BlankFlagged(m, f)
- classmethod Rigidwall.Create(model, modal=Oasys.gRPC.defaultArg)¶
Starts an interactive editing panel to create a rigidwall
- Parameters:
model (Model) –
Model
that the rigidwall will be created inmodal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal
- Returns:
Rigidwall object (or None if not made)
- Return type:
dict
Example
To start creating a rigidwall in model m:
r = Oasys.PRIMER.Rigidwall.Create(m)
- classmethod Rigidwall.First(model)¶
Returns the first rigidwall in the model
- Parameters:
model (Model) –
Model
to get first rigidwall in- Returns:
Rigidwall object (or None if there are no rigidwalls in the model)
- Return type:
Rigidwall
Example
To get the first rigidwall in model m:
r = Oasys.PRIMER.Rigidwall.First(m)
- classmethod Rigidwall.FirstFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the first free rigidwall label in the model. Also see
Rigidwall.LastFreeLabel()
,Rigidwall.NextFreeLabel()
andModel.FirstFreeItemLabel()
- Parameters:
- Returns:
Rigidwall label
- Return type:
int
Example
To get the first free rigidwall label in model m:
label = Oasys.PRIMER.Rigidwall.FirstFreeLabel(m)
- classmethod Rigidwall.FlagAll(model, flag)¶
Flags all of the rigidwalls in the model with a defined flag
- Parameters:
model (Model) –
Model
that all rigidwalls will be flagged inflag (Flag) – Flag to set on the rigidwalls
- Returns:
No return value
- Return type:
None
Example
To flag all of the rigidwalls with flag f in model m:
Oasys.PRIMER.Rigidwall.FlagAll(m, f)
- classmethod Rigidwall.GetAll(model)¶
Returns a list of Rigidwall objects for all of the rigidwalls in a model in PRIMER
- Parameters:
model (Model) –
Model
to get rigidwalls from- Returns:
List of Rigidwall objects
- Return type:
list
Example
To make a list of Rigidwall objects for all of the rigidwalls in model m
r = Oasys.PRIMER.Rigidwall.GetAll(m)
- classmethod Rigidwall.GetFlagged(model, flag)¶
Returns a list of Rigidwall objects for all of the flagged rigidwalls in a model in PRIMER
- Parameters:
model (Model) –
Model
to get rigidwalls fromflag (Flag) – Flag set on the rigidwalls that you want to retrieve
- Returns:
List of Rigidwall objects
- Return type:
list
Example
To make a list of Rigidwall objects for all of the rigidwalls in model m flagged with f
r = Oasys.PRIMER.Rigidwall.GetFlagged(m, f)
- classmethod Rigidwall.GetFromID(model, number)¶
Returns the Rigidwall object for a rigidwall ID
- Parameters:
model (Model) –
Model
to find the rigidwall innumber (integer) – number of the rigidwall you want the Rigidwall object for
- Returns:
Rigidwall object (or None if rigidwall does not exist)
- Return type:
Rigidwall
Example
To get the Rigidwall object for rigidwall 100 in model m
r = Oasys.PRIMER.Rigidwall.GetFromID(m, 100)
- classmethod Rigidwall.Last(model)¶
Returns the last rigidwall in the model
- Parameters:
model (Model) –
Model
to get last rigidwall in- Returns:
Rigidwall object (or None if there are no rigidwalls in the model)
- Return type:
Rigidwall
Example
To get the last rigidwall in model m:
r = Oasys.PRIMER.Rigidwall.Last(m)
- classmethod Rigidwall.LastFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the last free rigidwall label in the model. Also see
Rigidwall.FirstFreeLabel()
,Rigidwall.NextFreeLabel()
and seeModel.LastFreeItemLabel()
- Parameters:
- Returns:
Rigidwall label
- Return type:
int
Example
To get the last free rigidwall label in model m:
label = Oasys.PRIMER.Rigidwall.LastFreeLabel(m)
- classmethod Rigidwall.NextFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the next free (highest+1) rigidwall label in the model. Also see
Rigidwall.FirstFreeLabel()
,Rigidwall.LastFreeLabel()
andModel.NextFreeItemLabel()
- Parameters:
- Returns:
Rigidwall label
- Return type:
int
Example
To get the next free rigidwall label in model m:
label = Oasys.PRIMER.Rigidwall.NextFreeLabel(m)
- classmethod Rigidwall.Pick(prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg, button_text=Oasys.gRPC.defaultArg)¶
Allows the user to pick a rigidwall
- Parameters:
prompt (string) – Text to display as a prompt to the user
limit (Model or Flag) – Optional. If the argument is a
Model
then only rigidwalls from that model can be picked. If the argument is aFlag
then only rigidwalls that are flagged with limit can be selected. If omitted, or None, any rigidwalls from any model can be selected. from any modelmodal (boolean) – Optional. If picking is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the pick will be modal
button_text (string) – Optional. By default the window with the prompt will have a button labelled ‘Cancel’ which if pressed will cancel the pick and return None. If you want to change the text on the button use this argument. If omitted ‘Cancel’ will be used
- Returns:
Rigidwall object (or None if not picked)
- Return type:
dict
Example
To pick a rigidwall from model m giving the prompt ‘Pick rigidwall from screen’:
r = Oasys.PRIMER.Rigidwall.Pick('Pick rigidwall from screen', m)
- classmethod Rigidwall.RenumberAll(model, start)¶
Renumbers all of the rigidwalls in the model
- Parameters:
model (Model) –
Model
that all rigidwalls will be renumbered instart (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the rigidwalls in model m, from 1000000:
Oasys.PRIMER.Rigidwall.RenumberAll(m, 1000000)
- classmethod Rigidwall.RenumberFlagged(model, flag, start)¶
Renumbers all of the flagged rigidwalls in the model
- Parameters:
model (Model) –
Model
that all the flagged rigidwalls will be renumbered inflag (Flag) – Flag set on the rigidwalls that you want to renumber
start (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the rigidwalls in model m flagged with f, from 1000000:
Oasys.PRIMER.Rigidwall.RenumberFlagged(m, f, 1000000)
- classmethod Rigidwall.Select(flag, prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg)¶
Allows the user to select rigidwalls using standard PRIMER object menus
- Parameters:
flag (Flag) – Flag to use when selecting rigidwalls
prompt (string) – Text to display as a prompt to the user
limit (Model or Flag) – Optional. If the argument is a
Model
then only rigidwalls from that model can be selected. If the argument is aFlag
then only rigidwalls that are flagged with limit can be selected (limit should be different to flag). If omitted, or None, any rigidwalls can be selected. from any modelmodal (boolean) – Optional. If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal
- Returns:
Number of rigidwalls selected or None if menu cancelled
- Return type:
int
Example
To select rigidwalls from model m, flagging those selected with flag f, giving the prompt ‘Select rigidwalls’:
Oasys.PRIMER.Rigidwall.Select(f, 'Select rigidwalls', m)To select rigidwalls, flagging those selected with flag f but limiting selection to rigidwalls flagged with flag l, giving the prompt ‘Select rigidwalls’:
Oasys.PRIMER.Rigidwall.Select(f, 'Select rigidwalls', l)
- classmethod Rigidwall.SketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Sketches all of the flagged rigidwalls in the model. The rigidwalls will be sketched until you either call
Rigidwall.Unsketch()
,Rigidwall.UnsketchFlagged()
,Model.UnsketchAll()
, or delete the model
- Parameters:
model (Model) –
Model
that all the flagged rigidwalls will be sketched inflag (Flag) – Flag set on the rigidwalls that you want to sketch
redraw (boolean) – Optional. If model should be redrawn or not after the rigidwalls are sketched. If omitted redraw is true. If you want to sketch flagged rigidwalls several times and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To sketch all rigidwalls flagged with flag in model m:
Oasys.PRIMER.Rigidwall.SketchFlagged(m, flag)
- classmethod Rigidwall.Total(model, exists=Oasys.gRPC.defaultArg)¶
Returns the total number of rigidwalls in the model
- Parameters:
model (Model) –
Model
to get total forexists (boolean) – Optional. true if only existing rigidwalls should be counted. If false or omitted referenced but undefined rigidwalls will also be included in the total
- Returns:
number of rigidwalls
- Return type:
int
Example
To get the total number of rigidwalls in model m:
total = Oasys.PRIMER.Rigidwall.Total(m)
- classmethod Rigidwall.UnblankAll(model, redraw=Oasys.gRPC.defaultArg)¶
Unblanks all of the rigidwalls in the model
- Parameters:
model (Model) –
Model
that all rigidwalls will be unblanked inredraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unblank all of the rigidwalls in model m:
Oasys.PRIMER.Rigidwall.UnblankAll(m)
- classmethod Rigidwall.UnblankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Unblanks all of the flagged rigidwalls in the model
- Parameters:
model (Model) –
Model
that the flagged rigidwalls will be unblanked inflag (Flag) – Flag set on the rigidwalls that you want to unblank
redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unblank all of the rigidwalls in model m flagged with f:
Oasys.PRIMER.Rigidwall.UnblankFlagged(m, f)
- classmethod Rigidwall.UnflagAll(model, flag)¶
Unsets a defined flag on all of the rigidwalls in the model
- Parameters:
model (Model) –
Model
that the defined flag for all rigidwalls will be unset inflag (Flag) – Flag to unset on the rigidwalls
- Returns:
No return value
- Return type:
None
Example
To unset the flag f on all the rigidwalls in model m:
Oasys.PRIMER.Rigidwall.UnflagAll(m, f)
- classmethod Rigidwall.UnsketchAll(model, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all rigidwalls
- Parameters:
model (Model) –
Model
that all rigidwalls will be unblanked inredraw (boolean) – Optional. If model should be redrawn or not after the rigidwalls are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unsketch all rigidwalls in model m:
Oasys.PRIMER.Rigidwall.UnsketchAll(m)
- classmethod Rigidwall.UnsketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all flagged rigidwalls in the model
- Parameters:
model (Model) –
Model
that all rigidwalls will be unsketched inflag (Flag) – Flag set on the rigidwalls that you want to unsketch
redraw (boolean) – Optional. If model should be redrawn or not after the rigidwalls are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unsketch all rigidwalls flagged with flag in model m:
Oasys.PRIMER.Rigidwall.UnsketchAll(m, flag)
Instance methods¶
- Rigidwall.AssociateComment(comment)¶
Associates a comment with a rigidwall
- Parameters:
comment (Comment) –
Comment
that will be attached to the rigidwall- Returns:
No return value
- Return type:
None
Example
To associate comment c to the rigidwall r:
r.AssociateComment(c)
- Rigidwall.Blank()¶
Blanks the rigidwall
- Returns:
No return value
- Return type:
None
Example
To blank rigidwall r:
r.Blank()
- Rigidwall.Blanked()¶
Checks if the rigidwall is blanked or not
- Returns:
True if blanked, False if not
- Return type:
bool
Example
To check if rigidwall r is blanked:
if r.Blanked(): do_something..
- Rigidwall.Browse(modal=Oasys.gRPC.defaultArg)¶
Starts an edit panel in Browse mode
- Parameters:
modal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal
- Returns:
no return value
- Return type:
None
Example
To Browse rigidwall r:
r.Browse()
- Rigidwall.ClearFlag(flag)¶
Clears a flag on the rigidwall
- Parameters:
flag (Flag) – Flag to clear on the rigidwall
- Returns:
No return value
- Return type:
None
Example
To clear flag f for rigidwall r:
r.ClearFlag(f)
- Rigidwall.Copy(range=Oasys.gRPC.defaultArg)¶
Copies the rigidwall. The target include of the copied rigidwall can be set using
Options.copy_target_include
- Parameters:
range (boolean) – Optional. If you want to keep the copied item in the range specified for the current include. Default value is false. To set current include, use
Include.MakeCurrentLayer()
- Returns:
Rigidwall object
- Return type:
Rigidwall
Example
To copy rigidwall r into rigidwall z:
z = r.Copy()
- Rigidwall.DetachComment(comment)¶
Detaches a comment from a rigidwall
- Parameters:
comment (Comment) –
Comment
that will be detached from the rigidwall- Returns:
No return value
- Return type:
None
Example
To detach comment c from the rigidwall r:
r.DetachComment(c)
- Rigidwall.Edit(modal=Oasys.gRPC.defaultArg)¶
Starts an interactive editing panel
- Parameters:
modal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal
- Returns:
no return value
- Return type:
None
Example
To Edit rigidwall r:
r.Edit()
- Rigidwall.FindNodesBehind(flag)¶
Flags nodes that are behind a rigidwall
- Parameters:
flag (Flag) – Flag to be set on nodes behind rigidwall
- Returns:
Number of nodes found
- Return type:
int
Example
To set flag f on nodes behind rigidwall w:
w.FlagNodesBehind(f)
- Rigidwall.Flagged(flag)¶
Checks if the rigidwall is flagged or not
- Parameters:
flag (Flag) – Flag to test on the rigidwall
- Returns:
True if flagged, False if not
- Return type:
bool
Example
To check if rigidwall r has flag f set on it:
if r.Flagged(f): do_something..
- Rigidwall.GetComments()¶
Extracts the comments associated to a rigidwall
- Returns:
List of Comment objects (or None if there are no comments associated to the node)
- Return type:
list
Example
To get the list of comments associated to the rigidwall r:
comm_list = r.GetComments()
- Rigidwall.GetParameter(prop)¶
Checks if a Rigidwall property is a parameter or not. Note that object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. For this function to work the JavaScript interpreter must use the parameter name instead of the value. This can be done by setting the
Options.property_parameter_names
option to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using theRigidwall.ViewParameters()
method and ‘method chaining’ (see the examples below)
- Parameters:
prop (string) – rigidwall property to get parameter for
- Returns:
Parameter object if property is a parameter, None if not
- Return type:
dict
Example
To check if Rigidwall property r.example is a parameter:
Oasys.PRIMER.Options.property_parameter_names = True if r.GetParameter(r.example): do_something... Oasys.PRIMER.Options.property_parameter_names = FalseTo check if Rigidwall property r.example is a parameter by using the GetParameter method:
if r.ViewParameters().GetParameter(r.example): do_something..
- Rigidwall.GetRow(row)¶
Returns the data for an NSEGS card row in the rigidwall
- Parameters:
row (integer) – The row you want the data for. Note row indices start at 0
- Returns:
A list of numbers containing the row variables VL and HEIGHT
- Return type:
list
Example
To get the data for the 2nd row in rigidwall r:
data = r.GetRow(1) vl = data[0] height = data[1]
- Rigidwall.Keyword()¶
Returns the keyword for this Rigidwall (*RIGIDWALL). Note that a carriage return is not added. See also
Rigidwall.KeywordCards()
- Returns:
string containing the keyword
- Return type:
str
Example
To get the keyword for Rigidwall pm:
key = r.Keyword()
- Rigidwall.KeywordCards()¶
Returns the keyword cards for the Rigidwall. Note that a carriage return is not added. See also
Rigidwall.Keyword()
- Returns:
string containing the cards
- Return type:
str
Example
To get the cards for Rigidwall pm:
cards = r.KeywordCards()
- Rigidwall.Next()¶
Returns the next rigidwall in the model
- Returns:
Rigidwall object (or None if there are no more rigidwalls in the model)
- Return type:
Rigidwall
Example
To get the rigidwall in model m after rigidwall r:
r = r.Next()
- Rigidwall.Previous()¶
Returns the previous rigidwall in the model
- Returns:
Rigidwall object (or None if there are no more rigidwalls in the model)
- Return type:
Rigidwall
Example
To get the rigidwall in model m before rigidwall r:
r = r.Previous()
- Rigidwall.RemoveRow(row)¶
Removes an NSEGS card row in the *RIGIDWALL
- Parameters:
row (integer) – The row you want to remove the data for. Note that row indices start at 0
- Returns:
No return value
- Return type:
None
Example
To remove the second row of data for rigidwall r:
r.RemoveRow(1)
- Rigidwall.SetFlag(flag)¶
Sets a flag on the rigidwall
- Parameters:
flag (Flag) – Flag to set on the rigidwall
- Returns:
No return value
- Return type:
None
Example
To set flag f for rigidwall r:
r.SetFlag(f)
- Rigidwall.SetRow(row, data)¶
Sets the data for an NSEGS card row in the *RIGIDWALL
- Parameters:
row (integer) – The row you want to set the data for. Note that row indices start at 0
data (List of data) – The data you want to set the row to
- Returns:
No return value
- Return type:
None
Example
To set the second row of data for rigidwall r to be vl 10.0 and height 1.0:
list = [10.0, 1.0] r.SetRow(1, array)To append a new row of data (using the same list of values):
r.SetRow(r.nsegs, list)
- Rigidwall.Sketch(redraw=Oasys.gRPC.defaultArg)¶
Sketches the rigidwall. The rigidwall will be sketched until you either call
Rigidwall.Unsketch()
,Rigidwall.UnsketchAll()
,Model.UnsketchAll()
, or delete the model
- Parameters:
redraw (boolean) – Optional. If model should be redrawn or not after the rigidwall is sketched. If omitted redraw is true. If you want to sketch several rigidwalls and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To sketch rigidwall r:
r.Sketch()
- Rigidwall.Unblank()¶
Unblanks the rigidwall
- Returns:
No return value
- Return type:
None
Example
To unblank rigidwall r:
r.Unblank()
- Rigidwall.Unsketch(redraw=Oasys.gRPC.defaultArg)¶
Unsketches the rigidwall
- Parameters:
redraw (boolean) – Optional. If model should be redrawn or not after the rigidwall is unsketched. If omitted redraw is true. If you want to unsketch several rigidwalls and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unsketch rigidwall r:
r.Unsketch()
- Rigidwall.ViewParameters()¶
Object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. This function temporarily changes the behaviour so that if a property is a parameter the parameter name is returned instead. This can be used with ‘method chaining’ (see the example below) to make sure a property argument is correct
- Returns:
Rigidwall object
- Return type:
dict
Example
To check if Rigidwall property r.example is a parameter by using the
Rigidwall.GetParameter()
method:if r.ViewParameters().GetParameter(r.example): do_something..
- Rigidwall.Xrefs()¶
Returns the cross references for this rigidwall
- Returns:
Xrefs object
- Return type:
dict
Example
To get the cross references for rigidwall r:
xrefs = r.Xrefs()