Last change
on this file since 12706 was 12706, checked in by Mathieu Morlighem, 13 years ago |
merged trunk-jpl and trunk for revision 12703
|
File size:
1016 bytes
|
Line | |
---|
1 | /*!\file: ResetBoundaryConditions.cpp
|
---|
2 | * \brief: change boundary conditions of a model, using a solution vector from another analysis
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "../objects/objects.h"
|
---|
6 | #include "../modules/modules.h"
|
---|
7 | #include "../io/io.h"
|
---|
8 | #include "../EnumDefinitions/EnumDefinitions.h"
|
---|
9 |
|
---|
10 | void ResetBoundaryConditions(FemModel* femmodel, int analysis_type){
|
---|
11 |
|
---|
12 | /*variables: */
|
---|
13 | Vector* yg = NULL;
|
---|
14 | Nodes *nodes = NULL;
|
---|
15 | int i;
|
---|
16 |
|
---|
17 | if(VerboseSolution()) _pprintLine_(" updating boundary conditions...");
|
---|
18 |
|
---|
19 | /*set current analysis: */
|
---|
20 | femmodel->SetCurrentConfiguration(analysis_type);
|
---|
21 |
|
---|
22 | /*recover nodes: */
|
---|
23 | nodes=femmodel->nodes;
|
---|
24 |
|
---|
25 | /*retrieve boundary conditions from element inputs :*/
|
---|
26 | GetSolutionFromInputsx( &yg, femmodel->elements,femmodel->nodes, femmodel->vertices,femmodel->loads, femmodel->materials, femmodel->parameters);
|
---|
27 |
|
---|
28 | /*update spcs using this new vector of constraints: */
|
---|
29 | UpdateDynamicConstraintsx(femmodel->constraints,femmodel->nodes,femmodel->parameters,yg);
|
---|
30 |
|
---|
31 | /*Free ressources:*/
|
---|
32 | delete yg;
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.