FEM SolverMystran: Difference between revisions

From FreeCAD Documentation
(Wiki code.)
(Marked this version for translation)
Line 3: Line 3:
<translate>
<translate>


<!--T:1-->
{{Docnav
{{Docnav
|[[FEM_SolverElmer|Solver Elmer]]
|[[FEM_SolverElmer|Solver Elmer]]
Line 12: Line 13:
}}
}}


<!--T:2-->
{{GuiCommand
{{GuiCommand
|Name=FEM SolverMystran
|Name=FEM SolverMystran
Line 20: Line 22:
}}
}}


==Description==
==Description== <!--T:3-->


<!--T:4-->
ToDo
ToDo


==Usage==
==Usage== <!--T:5-->


<!--T:6-->
ToDo
ToDo


==File function==
==File function== <!--T:7-->


<!--T:8-->
Under Mod\Fem\femsolver\mystran, there are these files:
Under Mod\Fem\femsolver\mystran, there are these files:


Line 47: Line 52:
<translate>
<translate>


<!--T:9-->
The function of each file are:
The function of each file are:


<!--T:10-->
writer.py - main control file
writer.py - main control file


Line 64: Line 71:
<translate>
<translate>


<!--T:11-->
BDF() - Create empty case file.
BDF() - Create empty case file.


Line 77: Line 85:
<translate>
<translate>


<!--T:12-->
add_solver_control.py - Adding EXECUTIVE CONTROL DECK and CASE CONTROL DECK.
add_solver_control.py - Adding EXECUTIVE CONTROL DECK and CASE CONTROL DECK.


Line 100: Line 109:
<translate>
<translate>


<!--T:13-->
add_femelement_geometry.py - Adding GRID cards
add_femelement_geometry.py - Adding GRID cards


<!--T:14-->
add_mesh.py - Adding element cards
add_mesh.py - Adding element cards


<!--T:15-->
add_femelement_material.py - Adding MAT1 card
add_femelement_material.py - Adding MAT1 card


<!--T:16-->
add_con_fixed.py - Adding SPCADD and SPC1 cards
add_con_fixed.py - Adding SPCADD and SPC1 cards


<!--T:17-->
add_con_displacement.py - Adding SPCADD and SPC1 cards
add_con_displacement.py - Adding SPCADD and SPC1 cards


<!--T:18-->
add_con_force.py - Adding FORCE cards
add_con_force.py - Adding FORCE cards




<!--T:19-->
{{Docnav
{{Docnav
|[[FEM_SolverElmer|Solver Elmer]]
|[[FEM_SolverElmer|Solver Elmer]]

Revision as of 10:13, 27 September 2021

Other languages:

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

FEM SolverMystran

Menu location
Solve → Solver Mystran
Workbenches
FEM
Default shortcut
S M
Introduced in version
-
See also
FEM tutorial

Description

ToDo

Usage

ToDo

File function

Under Mod\Fem\femsolver\mystran, there are these files:

add_con_displacement.py
add_con_fixed.py
add_con_force.py
add_femelement_geometry.py
add_femelement_material.py
add_mesh.py
add_solver_control.py
writer.py
solver.py
tasks.py

The function of each file are:

writer.py - main control file

model = BDF()
model = add_solver_control.add_solver_control(pynasf, model, self)
model = add_femelement_geometry.add_femelement_geometry(pynasf, model, self)
model = add_mesh.add_mesh(pynasf, model, self)
model = add_femelement_material.add_femelement_material(pynasf, model, self)
model = add_con_fixed.add_con_fixed(pynasf, model, self)
model = add_con_displacement.add_con_displacement(pynasf, model, self)
model = add_con_force.add_con_force(pynasf, model, self)

BDF() - Create empty case file.

$pyNastran: version=msc
$pyNastran: punch=False
$pyNastran: encoding=utf-8
$pyNastran: nnodes=0
$pyNastran: nelements=0
ENDDATA

add_solver_control.py - Adding EXECUTIVE CONTROL DECK and CASE CONTROL DECK.

$EXECUTIVE CONTROL DECK
SOL 101
CEND
$CASE CONTROL DECK
ECHO = NONE
TITLE = pyNastran for generating solverinput for for Mystran
SUBCASE 1
    DISPLACEMENT(SORT1,REAL) = ALL
    LOAD = 1
    SPC = 1
    SPCFORCES(SORT1,REAL) = ALL
    STRESS(SORT1,REAL,VONMISES,BILIN) = ALL
    SUBTITLE = Default
BEGIN BULK
$PARAMS
PARAM       POST      -1

add_femelement_geometry.py - Adding GRID cards

add_mesh.py - Adding element cards

add_femelement_material.py - Adding MAT1 card

add_con_fixed.py - Adding SPCADD and SPC1 cards

add_con_displacement.py - Adding SPCADD and SPC1 cards

add_con_force.py - Adding FORCE cards