本文整理汇总了C++中DofManager::giveCompleteUnknownVector方法的典型用法代码示例。如果您正苦于以下问题:C++ DofManager::giveCompleteUnknownVector方法的具体用法?C++ DofManager::giveCompleteUnknownVector怎么用?C++ DofManager::giveCompleteUnknownVector使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DofManager
的用法示例。
在下文中一共展示了DofManager::giveCompleteUnknownVector方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: givePrescribedUnknownVector
void
InteractionPFEMParticle :: givePrescribedUnknownVector(FloatArray &answer, const IntArray &dofIDArry,
ValueModeType mode, TimeStep *stepN)
{
answer.resize( dofIDArry.giveSize() );
FloatArray velocities;
FluidStructureProblem *fsiProblem = this->giveFluidStructureMasterProblem();
if (fsiProblem) {
StructuralEngngModel *structuralProblem = this->giveStructuralProblem();
if ( structuralProblem ) {
int j = 1;
if (fsiProblem->giveIterationNumber() < 1) {
for (int dofid: dofIDArry ) {
answer.at(j++) = this->giveDofWithID( dofid )->giveBcValue(mode, stepN);
}
} else {
DofManager *dman = structuralProblem->giveDomain(1)->giveDofManager(coupledNode);
//dman->giveUnknownVectorOfType(velocities, VelocityVector, VM_Velocity, stepN);
//dman->giveUnknownVector(velocities, dofIDArry, VM_Velocity, stepN);
dman->giveCompleteUnknownVector(velocities, VM_Velocity, stepN);
for ( int dofid: dofIDArry) {
answer.at(dofid) = velocities.at( dofid );
}
}
}
}
// Transform to global c.s.
FloatMatrix L2G;
if (this->computeL2GTransformation(L2G, dofIDArry)) {
answer.rotatedWith(L2G, 'n');
}
}
示例2:
void
InteractionPFEMParticle::giveCoupledVelocities(FloatArray &answer, TimeStep *stepN)
{
StructuralEngngModel* structuralProblem = this->giveStructuralProblem();
if ( structuralProblem ) {
DofManager *dman = structuralProblem->giveDomain(1)->giveDofManager(coupledNode);
dman->giveCompleteUnknownVector(answer, VM_Velocity, stepN);
}
}
示例3: outputNodeDisp
void GnuplotExportModule :: outputNodeDisp(DofManager &iDMan, TimeStep *tStep)
{
// Append node solution to history
FloatArray nodeSol;
iDMan.giveCompleteUnknownVector(nodeSol, VM_Total, tStep);
mMonitorNodeDispHist.push_back(nodeSol);
// Write to file
std::vector< std::vector<FloatArray> > nodeDispHist;
nodeDispHist.push_back(mMonitorNodeDispHist);
std :: string name = "MonitorNodeSolGnuplot.dat";
WritePointsToGnuplot(name, nodeDispHist);
}