|
Last change
on this file since 11995 was 11995, checked in by Mathieu Morlighem, 14 years ago |
|
merged trunk-jpl and trunk for revision 11994M
|
|
File size:
1015 bytes
|
| Rev | Line | |
|---|
| [4013] | 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"
|
|---|
| [9761] | 7 | #include "../io/io.h"
|
|---|
| [4013] | 8 | #include "../EnumDefinitions/EnumDefinitions.h"
|
|---|
| 9 |
|
|---|
| [4445] | 10 | void ResetBoundaryConditions(FemModel* femmodel, int analysis_type){
|
|---|
| [4013] | 11 |
|
|---|
| [8803] | 12 | /*variables: */
|
|---|
| [11995] | 13 | Vector* yg = NULL;
|
|---|
| [9298] | 14 | Nodes *nodes = NULL;
|
|---|
| 15 | int i;
|
|---|
| [8803] | 16 |
|
|---|
| [6412] | 17 | _printf_(VerboseSolution(),"%s\n"," updating boundary conditions...");
|
|---|
| [4015] | 18 |
|
|---|
| [4445] | 19 | /*set current analysis: */
|
|---|
| 20 | femmodel->SetCurrentConfiguration(analysis_type);
|
|---|
| 21 |
|
|---|
| [8803] | 22 | /*recover nodes: */
|
|---|
| 23 | nodes=femmodel->nodes;
|
|---|
| 24 |
|
|---|
| 25 | /*retrieve boundary conditions from element inputs :*/
|
|---|
| [5772] | 26 | GetSolutionFromInputsx( &yg, femmodel->elements,femmodel->nodes, femmodel->vertices,femmodel->loads, femmodel->materials, femmodel->parameters);
|
|---|
| [4013] | 27 |
|
|---|
| [8803] | 28 | /*update spcs using this new vector of constraints: */
|
|---|
| [9298] | 29 | UpdateDynamicConstraintsx(femmodel->constraints,femmodel->nodes,femmodel->parameters,yg);
|
|---|
| [4013] | 30 |
|
|---|
| [4015] | 31 | /*Free ressources:*/
|
|---|
| [11995] | 32 | delete yg;
|
|---|
| [4013] | 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.