|
Last change
on this file since 13975 was 13975, checked in by Mathieu Morlighem, 13 years ago |
|
merged trunk-jpl and trunk for revision 13974
|
|
File size:
1021 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 |
|
|---|
| [13395] | 5 | #include "../classes/objects/objects.h"
|
|---|
| [4013] | 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){
|
|---|
| [13975] | 11 |
|
|---|
| [8803] | 12 | /*variables: */
|
|---|
| [13395] | 13 | Vector<IssmDouble>* yg = NULL;
|
|---|
| [9298] | 14 | Nodes *nodes = NULL;
|
|---|
| [8803] | 15 |
|
|---|
| [12706] | 16 | if(VerboseSolution()) _pprintLine_(" updating boundary conditions...");
|
|---|
| [13975] | 17 |
|
|---|
| [4445] | 18 | /*set current analysis: */
|
|---|
| 19 | femmodel->SetCurrentConfiguration(analysis_type);
|
|---|
| 20 |
|
|---|
| [8803] | 21 | /*recover nodes: */
|
|---|
| 22 | nodes=femmodel->nodes;
|
|---|
| 23 |
|
|---|
| 24 | /*retrieve boundary conditions from element inputs :*/
|
|---|
| [5772] | 25 | GetSolutionFromInputsx( &yg, femmodel->elements,femmodel->nodes, femmodel->vertices,femmodel->loads, femmodel->materials, femmodel->parameters);
|
|---|
| [4013] | 26 |
|
|---|
| [8803] | 27 | /*update spcs using this new vector of constraints: */
|
|---|
| [9298] | 28 | UpdateDynamicConstraintsx(femmodel->constraints,femmodel->nodes,femmodel->parameters,yg);
|
|---|
| [4013] | 29 |
|
|---|
| [4015] | 30 | /*Free ressources:*/
|
|---|
| [11995] | 31 | delete yg;
|
|---|
| [4013] | 32 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.