Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SpindleFEA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai1v14
SpindleFEA
Commits
deecc34b
Commit
deecc34b
authored
6 years ago
by
whimsial
Browse files
Options
Downloads
Patches
Plain Diff
Resolved issue with load direction and added comments to the code
parent
11d8d836
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LoadCase/LoadsAndBCs.py
+7
-6
7 additions, 6 deletions
LoadCase/LoadsAndBCs.py
with
7 additions
and
6 deletions
LoadCase/LoadsAndBCs.py
+
7
−
6
View file @
deecc34b
...
...
@@ -27,8 +27,13 @@ def create_load(data, **kwargs):
# Iterate through unique ipMT names
mt_names
=
[
sublist
[
0
]
for
sublist
in
data
]
mt_names
=
set
(
mt_names
)
i
=
0
# Specify that the load is negative for all ipMTs that have even numbers and positive otherwise
for
mtname
in
mt_names
:
if
int
(
mtname
[
-
1
])
%
2
==
0
:
load
=
-
LoadVal
else
:
load
=
LoadVal
# Locate the points to which loads are to be applied
for
sublist
in
data
:
if
mtname
==
sublist
[
0
]:
connector_end
=
sublist
[
3
]
...
...
@@ -40,10 +45,7 @@ def create_load(data, **kwargs):
loadName
=
'
Load-
'
+
connector_name
+
'
-
'
+
str
(
connector_end
)
loadRegion
=
a
.
Set
(
vertices
=
loadPoint
,
name
=
loadName
)
if
i
%
2
==
0
:
load
=
-
LoadVal
else
:
load
=
LoadVal
# Apply loads
mdb
.
models
[
modelname
].
ConcentratedForce
(
name
=
loadName
,
createStepName
=
StepName
,
region
=
loadRegion
,
...
...
@@ -51,7 +53,6 @@ def create_load(data, **kwargs):
distributionType
=
UNIFORM
,
field
=
''
,
localCsys
=
None
)
i
+=
1
# ipMTnames = kwargs['ipMTnames']
# StepName = kwargs['StepName']
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment