Ignore:
Timestamp:
07/15/11 08:49:34 (14 years ago)
Author:
Eric.Larour
Message:

Implemented transient boundary conditions. Applied to thermal core only for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Constraints/Spc.cpp

    r8224 r9002  
    147147/*}}}1*/
    148148
     149/*Constraint virtual functions definitions: */
     150/*FUNCTION Spc::InAnalysis{{{1*/
     151bool Spc::InAnalysis(int in_analysis_type){
     152        if (in_analysis_type==this->analysis_type) return true;
     153        else return false;
     154}
     155/*}}}*/
     156/*FUNCTION Spc::ConstrainNode{{{1*/
     157void Spc::ConstrainNode(Nodes* nodes,Parameters* parameters){
     158
     159        Node* node=NULL;
     160
     161        /*Chase through nodes and find the node to which this Spc applys: */
     162        node=(Node*)nodes->GetObjectById(NULL,nodeid);
     163
     164        /*Apply constraint: */
     165        if(node){ //in case the spc is dealing with a node on another cpu
     166                node->ApplyConstraint(dof,value);
     167        }
     168}
     169/*}}}*/
     170
    149171/*Spc functions*/
    150172/*FUNCTION Spc::GetDof {{{1*/
     
    164186}
    165187/*}}}1*/
    166 /*FUNCTION Spc::InAnalysis{{{1*/
    167 bool Spc::InAnalysis(int in_analysis_type){
    168         if (in_analysis_type==this->analysis_type) return true;
    169         else return false;
    170 }
    171 /*}}}*/
Note: See TracChangeset for help on using the changeset viewer.