background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
1/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA













Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
Document: U4.63.11



Macro control
MACRO_PROJ_BASE








1 Goal
To project matrices and/or vectors assembled on a modal basis or a basis of RITZ.
projected matrices and vectors results will be used by the calculation algorithms in components
generalized (
DYNA_TRAN_MODAL
[U4.53.21] for example).
This macro-control replaces the following sequence controls:
·
NUME_DDL_GENE
[U4.65.03] which establishes the classification of the generalized degrees of freedom,
·
one or more occurrences of
PROJ_MATR_BASE
[U4.63.12] to project one or
several assembled matrices,
·
one or more occurrences of
PROJ_VECT_BASE
[U4.63.13] to project one or more
assembled vectors.
background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
2/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A
2 Syntax

MACRO_PROJ_BASE
(
BASE
=
Ba, [mode_meca]
[base_modale]
[mode_gene]
NB_VECT =
/
9999,
[DEFECT]
/
Nm,
[I]
PROFILE
=
/“DIAG”,
[DEFECT]
/“FULL”,
MATR_ASSE_GENE
=_F (
STAMP = CO (“MT”),
[matr_asse_gene_R]
/MATR_ASSE = my,
[matr_asse_DEPL_R]
/
MATR_ASSE_GENE
=
my,
[matr_asse_gene_R]
),
VECT_ASSE_GENE
=_F (
VECTOR = CO (“vt”),
[vect_asse_gene]
TYPE_VECT =/“FORC”,
[DEFECT]
/
typ,
[KN]
/VECT_ASSE = goes,
[cham_no_DEPL_R]
/VECT_ASSE_GENE = goes,
[vect_asse_gene]
),
INFORMATION =
/
1,
[DEFECT]
/2,
)
background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
3/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A
3 Operands
3.1 Operand
BASE
BASE = Ba
Concept of the type
mode_meca
,
base_modale
or
mode_gene
(for the under-structuring), which
contains the vectors defining the subspace of projection.

3.2 Operand
NB_VECT
NB_VECT = Nm
A many vectors used in the base (one take them
Nm
first). It is checked that the number
Nm
is quite lower than the number of vectors of the base, in the contrary case (
Nm
= 9999) one uses
all provided vectors.
3.3 Operand
PROFILE
PROFILE =/“DIAG”
[DEFECT]
/
“FULL”
Cf.
NUME_DDL_GENE
[U4.65.03].
If a matrix presents a profile
“DIAG”
and a another profile
“FULL”
, two
classifications will be created with
NUME_DDL_GENE
.
3.4 Word
key
MATR_ASSE_GENE
MATR_ASSE_GENE
Key word factor defining the name of the projected matrix result and the name of the matrix in
to project. This key word must be repeated time as many as there are matrices to project.

3.4.1 Operand
STAMP
STAMP = CO (“MT”)
Concept of the type
matr_asse_gene_R
, generalized matrix result.

3.4.2 Operands
MATR_ASSE
/
MATR_ASSE_GENE
/MATR_ASSE = my
Concept of the type
matr_asse_DEPL_R
, assembled matrix which one wishes to project.
/
MATR_ASSE_GENE
=
my
Concept of the type
matr_asse_gene_R
, assembled matrix resulting from
under-structuring, which one wishes to project.
background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
4/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A
3.5 Word
key
VECT_ASSE_GENE
VECT_ASSE_GENE
Key word factor defining the name of the vector projected result and the name of the vector to be projected. It
key word must be repeated time as many as there are vectors to project.
3.5.1 Operand
VECTOR
VECTOR = CO (“vt”)
Concept of the type
vect_asse_gene
, vector generalized result.
3.5.2 Operand
TYPE_VECT
TYPE_VECT = typ
Character string describing the type of the field represented by the assembled vector, by
defect one awaits a field of the type forces
“FORC”
, the other possibilities are
“DEPL”
,
“QUICKLY”
and
“ACCE”
.
3.5.3 Operands
VECT_ASSE
/
VECT_ASSE_GENE
/VECT_ASSE
= goes
Concept of the type
cham_no_DEPL_R
, assembled vector which one wishes to project.
/
VECT_ASSE_GENE
=
goes
Concept of the type
vect_asse_gene
, assembled vector resulting from the under-structuring, that
one wishes to project.
3.6 Operand
INFORMATION
INFORMATION
=
/
1
[DEFECT]
/2
Level of impression of information for the control
NUME_DDL_GENE
(cf [U4.65.03]).
background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
5/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A
4 Example
of use

# DYNAMIC TRANSITORY ON MODAL BASIS SYSTEM MASSES AND ARISES

BEGINNING ()

RESSORT=LIRE_MAILLAGE ()

MODELE=AFFE_MODELE (MAILLAGE=RESSORT,
AFFE=_F (ALL = “YES”, PHENOMENON = “MECHANICAL”,
MODELING = “DIS_T'))

CHAMPCAR=AFFE_CARA_ELEM (MODELE=MODELE,
DISCRET= (
_F (MESH = (“E1”, “E2”, “E3”, “E4”, “E5”, “E6”, “E7”, “E8”, “E9”),
CARA = “K_T_D_L', VALE = (1.E5, 1., 1.,)),
_F (MESH = “E1”,
CARA = “A_T_D_L', VALE = (250., 1., 1.,)),

_F (MESH = (“E2”, “E3”, “E4”, “E5”, “E6”, “E7”, “E8”),
CARA = “A_T_D_L', VALE = (50., 1., 1.,)),

_F (MESH = “E9”,
CARA = “A_T_D_L', VALE = (25., 1., 1.,)),
_F (MAILLE= (“P1”, “P2”, “P3”, “P4”, “P5”, “P6”, “P7”, “P8”),
CARA = “M_T_D_N', VALE = 10.)) )

CHARGE=AFFE_CHAR_MECA (MODELE=MODELE, DDL_IMPO= (
F (ALL = “YES”, DY = 0., DZ = 0.),
_F (NODE = (“N1”, “N10”), DX = 0.0)) )

EFFORT=AFFE_CHAR_MECA (MODELE=MODELE,
FORCE_NODALE=_F (NODE = “N5”, FX = 1.) )

RIGIELEM=CALC_MATR_ELEM (MODELE=MODELE, OPTION=' RIGI_MECA',
CARA_ELEM=CHAMPCAR, CHARGE=CHARGE)

MASSELEM=CALC_MATR_ELEM (MODELE=MODELE, OPTION=' MASS_MECA',
CARA_ELEM=CHAMPCAR, CHARGE=CHARGE)

AMORELEM=CALC_MATR_ELEM (MODELE=MODELE, OPTION=' AMOR_MECA',
CARA_ELEM=CHAMPCAR, CHARGE=CHARGE)

EFFOELEM=CALC_VECT_ELEM (CHARGE=EFFORT, OPTION=' CHAR_MECA',
CARA_ELEM=CHAMPCAR)


NUMEROTA=NUME_DDL (MATR_RIGI=RIGIELEM)

MATRRIGI=ASSE_MATRICE (MATR_ELEM=RIGIELEM, NUME_DDL=NUMEROTA)

MATRMASS=ASSE_MATRICE (MATR_ELEM=MASSELEM, NUME_DDL=NUMEROTA)

MATRAMOR=ASSE_MATRICE (MATR_ELEM=AMORELEM, NUME_DDL=NUMEROTA)

VECTASS=ASSE_VECTEUR (VECT_ELEM=EFFOELEM, NUME_DDL=NUMEROTA)

MODES=MODE_ITER_INV (MATR_A=MATRRIGI, MATR_B=MATRMASS,
CALC_FREQ=_F (OPTION = “ADJUSTS”,
FREQ = (5., 10., 15., 20., 24., 27., 30., 32.,))
)
background image
Code_Aster
®
Version
7.4
Titrate:
Macro control
MACRO_PROJ_BASE
Date:
08/02/05
Author (S):
E. BOYERE, Y. PONS. J. PIGAT
Key
:
U4.63.11-E
Page
:
6/6
Instruction manual
U4.6- booklet: Elementary matrices/Vectors and assembly
HT-66/05/004/A

FONCTIO1=DEFI_FONCTION (NOM_PARA=' INST', NOM_RESU=' ALPHA',
VALE= (0., 1., 1., 1., 1.0000001, 0.,),
PROL_DROITE=' CONSTANT')

MACRO_PROJ_BASE (BASE=MODES,
MATR_ASSE_GENE= (
_F (
STAMP = CO (“MASSEGEN”),
MATR_ASSE = MATRMASS),
_F (
STAMP = CO (“RIGIDGEN”),
MATR_ASSE = MATRRIGI),
_F (
STAMP = CO (“AMORTGEN”),
MATR_ASSE = MATRAMOR,
PROFILE = “FULL”)),
VECT_ASSE_GENE=
_F (
VECTOR = CO (“EFFOGENE”),
VECT_ASSE = VECTASS))

DYNAMODA=DYNA_TRAN_MODAL (MASS_GENE=MASSEGEN, RIGI_GENE=RIGIDGEN,
AMOR_GENE=AMORTGEN,
EXCIT=_F (VECT_GENE = EFFOGENE,
FONC_MULT = FONCTIO1),
INCREMENT=_F (INST_INIT = 0.,
INST_FIN = 1.5, NOT = 0.00001)
)
END ()


# Sequence of the controls equivalent to macro-control MACRO_PROJ_BASE:

_0000000 = NUME_DDL_GENE
(
BASE=MODES,
STOCKAGE=' DIAG'
)
MASSEGEN = PROJ_MATR_BASE (BASE=MODES,
NUME_DDL_GENE
=_0000000,
MATR_ASSE=MATRMASS
)
RIGIDGEN = PROJ_MATR_BASE (BASE=MODES,
NUME_DDL_GENE
=_0000000,
MATR_ASSE=MATRRIGI
)
_0000001 = NUME_DDL_GENE
(
BASE=MODES,
STOCKAGE=' PLEIN'
)
AMORTGEN = PROJ_MATR_BASE (BASE=MODES,
NUME_DDL_GENE
=_0000001,
MATR_ASSE=MATRAMOR
)
EFFOGENE = PROJ_MATR_BASE (BASE=MODES,
NUME_DDL_GENE
=_0000001,
VECT_ASSE=VECTASS)