source: issm/trunk/src/c/solutions/ResetBoundaryConditions.cpp@ 11995

Last change on this file since 11995 was 11995, checked in by Mathieu Morlighem, 13 years ago

merged trunk-jpl and trunk for revision 11994M

File size: 1015 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
10void ResetBoundaryConditions(FemModel* femmodel, int analysis_type){
11
12 /*variables: */
13 Vector* yg = NULL;
14 Nodes *nodes = NULL;
15 int i;
16
17 _printf_(VerboseSolution(),"%s\n"," 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.