47 template<
unsigned DIM>
50 unsigned n_pres = this->npres_nst();
52 for(
unsigned l=0;l<n_pres;l++)
55 this->internal_data_pt(P_nst_internal_index)->unpin(l);
69 template<
unsigned DIM>
74 unsigned u_index[DIM];
75 for(
unsigned i=0;
i<DIM;
i++) {u_index[
i] = this->u_index_nst(
i);}
78 unsigned n_node = this->nnode();
79 for(
unsigned n=0;n<n_node;n++)
83 for(
unsigned i=0;
i<DIM;
i++)
85 paired_load_data.insert(std::make_pair(this->node_pt(n),u_index[
i]));
90 identify_pressure_data(paired_load_data);
103 template<
unsigned DIM>
106 &paired_pressure_data)
109 unsigned n_internal = this->ninternal_data();
110 for(
unsigned l=0;l<n_internal;l++)
112 unsigned nval=this->internal_data_pt(l)->nvalue();
114 for (
unsigned j=0;j<nval;j++)
116 paired_pressure_data.insert(std::make_pair(this->internal_data_pt(l),j));
153 template<
unsigned DIM>
156 unsigned n_node = this->nnode();
158 for(
unsigned l=0;l<n_node;l++)
160 if (this->node_pt(l)->nvalue()==DIM+1)
163 this->node_pt(l)->unpin(DIM);
173 template<
unsigned DIM>
177 unsigned n_node = this->nnode();
178 for(
unsigned n=0;n<n_node;n++)
180 if (this->node_pt(n)->nvalue()==DIM+1)
182 this->node_pt(n)->pin(DIM);
190 template<
unsigned DIM>
195 unsigned n_pres = npres_nst();
196 for(
unsigned l=0;l<n_pres;l++)
198 Node* nod_pt = this->node_pt(Pconv[l]);
213 template<
unsigned DIM>
218 unsigned n_node = this->nnode();
219 for(
unsigned n=0;n<n_node;n++)
223 for(
unsigned i=0;
i<DIM;
i++)
225 paired_load_data.insert(std::make_pair(this->node_pt(n),
i));
230 identify_pressure_data(paired_load_data);
242 template<
unsigned DIM>
247 unsigned n_pres= npres_nst();
248 for(
unsigned l=0;l<n_pres;l++)
252 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 pin_all_nodal_pressure_dofs()
Pin all nodal pressure dofs.
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_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 unpin_proper_nodal_pressure_dofs()
Unpin the proper 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 identify_pressure_data(std::set< std::pair< Data *, unsigned > > &paired_pressure_data)
Add to the set paired_pressure_data pairs containing.