47 template<
unsigned DIM>
51 unsigned n_pres = this->npres_nst();
53 for(
unsigned l=0;l<n_pres;l++)
56 this->internal_data_pt(P_nst_internal_index)->unpin(l);
70 template<
unsigned DIM>
75 unsigned u_index[DIM];
76 for(
unsigned i=0;
i<DIM;
i++) {u_index[
i] = this->u_index_nst(
i);}
79 unsigned n_node = this->nnode();
80 for(
unsigned n=0;n<n_node;n++)
84 for(
unsigned i=0;
i<DIM;
i++)
86 paired_load_data.insert(std::make_pair(this->node_pt(n),u_index[
i]));
91 identify_pressure_data(paired_load_data);
104 template<
unsigned DIM>
107 &paired_pressure_data)
110 unsigned n_internal = this->ninternal_data();
111 for(
unsigned l=0;l<n_internal;l++)
113 unsigned nval=this->internal_data_pt(l)->nvalue();
115 for (
unsigned j=0;j<nval;j++)
117 paired_pressure_data.insert(std::make_pair(this->internal_data_pt(l),j));
134 Initial_Nvalue[6]={3,3,3,2,2,2};
145 Initial_Nvalue[10]={4,4,4,4,3,3,3,3,3,3};
157 template<
unsigned DIM>
161 unsigned n_node = this->nnode();
163 for(
unsigned l=0;l<n_node;l++)
165 if (this->node_pt(l)->nvalue()==DIM+1)
168 this->node_pt(l)->unpin(DIM);
178 template<
unsigned DIM>
183 unsigned n_node = this->nnode();
184 for(
unsigned n=0;n<n_node;n++)
186 if (this->node_pt(n)->nvalue()==DIM+1)
188 this->node_pt(n)->pin(DIM);
196 template<
unsigned DIM>
202 unsigned n_pres = npres_nst();
203 for(
unsigned l=0;l<n_pres;l++)
205 Node* nod_pt = this->node_pt(Pconv[l]);
220 template<
unsigned DIM>
225 unsigned n_node = this->nnode();
226 for(
unsigned n=0;n<n_node;n++)
230 for(
unsigned i=0;
i<DIM;
i++)
232 paired_load_data.insert(std::make_pair(this->node_pt(n),
i));
237 identify_pressure_data(paired_load_data);
249 template<
unsigned DIM>
254 unsigned n_pres= npres_nst();
255 for(
unsigned l=0;l<n_pres;l++)
259 paired_load_data.insert(std::make_pair(this->node_pt(Pconv[l]),DIM));
void unpin(const unsigned &i)
Unpin the i-th stored variable.
void identify_load_data(std::set< std::pair< Data *, unsigned > > &paired_load_data)
Add to the set paired_load_data pairs of pointers to data objects and unsignedegers that index the va...
void identify_pressure_data(std::set< std::pair< Data *, unsigned > > &paired_pressure_data)
Add to the set paired_pressure_data pairs containing.
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
bool is_hanging() const
Test whether the node is geometrically hanging.
void unpin_all_nodal_pressure_dofs()
Unpin all pressure dofs.
void identify_pressure_data(std::set< std::pair< Data *, unsigned > > &paired_pressure_data)
Add to the set paired_pressure_data pairs containing.
void pin_all_nodal_pressure_dofs()
Pin all nodal pressure dofs.
void identify_load_data(std::set< std::pair< Data *, unsigned > > &paired_load_data)
Add to the set paired_load_data pairs containing.
void unpin_all_internal_pressure_dofs()
Unpin all internal pressure dofs.
void unpin_proper_nodal_pressure_dofs()
Unpin the proper nodal pressure dofs.