本文整理汇总了C++中DynamicInputRecord::setField方法的典型用法代码示例。如果您正苦于以下问题:C++ DynamicInputRecord::setField方法的具体用法?C++ DynamicInputRecord::setField怎么用?C++ DynamicInputRecord::setField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DynamicInputRecord
的用法示例。
在下文中一共展示了DynamicInputRecord::setField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: giveInputRecord
void
TrabBoneNL :: giveInputRecord(DynamicInputRecord &input)
{
TrabBoneMaterial :: giveInputRecord(input);
input.setField(this->R, _IFT_TrabBoneNL_r);
input.setField(this->mParam, _IFT_TrabBoneNL_m);
}
示例2: giveInputRecord
void
TrabBoneNL3D :: giveInputRecord(DynamicInputRecord &input)
{
TrabBone3D :: giveInputRecord(input);
input.setField(this->R, _IFT_TrabBoneNL3D_r);
input.setField(this->mParam, _IFT_TrabBoneNL3D_m);
}
示例3: setLoads
void
SolutionbasedShapeFunction :: setLoads(EngngModel *myEngngModel, int d)
{
DynamicInputRecord ir;
FloatArray gradP;
gradP.resize( this->giveDomain()->giveNumberOfSpatialDimensions() );
gradP.zero();
gradP.at(d) = 1.0;
ir.setRecordKeywordField("deadweight", 1);
ir.setField(gradP, _IFT_Load_components);
ir.setField(1, _IFT_GeneralBoundaryCondition_timeFunct);
int bcID = myEngngModel->giveDomain(1)->giveNumberOfBoundaryConditions() + 1;
GeneralBoundaryCondition *myBodyLoad;
myBodyLoad = classFactory.createBoundaryCondition( "deadweight", bcID, myEngngModel->giveDomain(1) );
myBodyLoad->initializeFrom(& ir);
myEngngModel->giveDomain(1)->setBoundaryCondition(bcID, myBodyLoad);
for ( int i = 1; i <= myEngngModel->giveDomain(1)->giveNumberOfElements(); i++ ) {
IntArray *blArray;
blArray = myEngngModel->giveDomain(1)->giveElement(i)->giveBodyLoadArray();
blArray->resizeWithValues(blArray->giveSize() + 1);
blArray->at( blArray->giveSize() ) = bcID;
}
}
示例4: giveInputRecord
void PrescribedGradientBCPeriodic :: giveInputRecord(DynamicInputRecord &input)
{
ActiveBoundaryCondition :: giveInputRecord(input);
PrescribedGradientHomogenization :: giveInputRecord(input);
input.setField(this->masterSet, _IFT_PrescribedGradientBCPeriodic_masterSet);
input.setField(this->jump, _IFT_PrescribedGradientBCPeriodic_jump);
}
示例5: giveInputRecord
void
RotatingBoundary :: giveInputRecord(DynamicInputRecord &input)
{
GeneralBoundaryCondition :: giveInputRecord(input);
input.setField(this->axis, _IFT_RotatingBoundary_axis);
input.setField(this->center, _IFT_RotatingBoundary_center);
}
示例6: giveInputRecord
void
NonlinearFluidMaterial :: giveInputRecord(DynamicInputRecord &input)
{
FluidDynamicMaterial :: giveInputRecord(input);
input.setField(this->viscosity, _IFT_NonlinearFluidMaterial_mu);
input.setField(this->alpha, _IFT_NonlinearFluidMaterial_alpha);
input.setField(this->c, _IFT_NonlinearFluidMaterial_C);
}
示例7: giveInputRecord
void PLCrackPrescribedDir :: giveInputRecord(DynamicInputRecord &input)
{
int number = 1;
input.setRecordKeywordField(this->giveInputRecordName(), number);
input.setField(mAngle , _IFT_PLCrackPrescribedDir_Dir);
input.setField(mIncrementLength , _IFT_PLCrackPrescribedDir_IncLength);
}
示例8: giveInputRecord
void
TutorialMaterial :: giveInputRecord(DynamicInputRecord &ir)
{
StructuralMaterial :: giveInputRecord(ir);
D.giveInputRecord(ir);
ir.setField(this->sig0, _IFT_TutorialMaterial_yieldstress);
ir.setField(this->H, _IFT_TutorialMaterial_hardeningmoduli);
}
示例9: giveInputRecord
void AbaqusUserMaterial :: giveInputRecord(DynamicInputRecord &input)
{
StructuralMaterial :: giveInputRecord(input);
input.setField(this->numState, _IFT_AbaqusUserMaterial_numState);
input.setField(this->properties, _IFT_AbaqusUserMaterial_properties);
input.setField(this->filename, _IFT_AbaqusUserMaterial_userMaterial);
input.setField(std::string(this->cmname), _IFT_AbaqusUserMaterial_name);
}
示例10: giveInputRecord
void
SimpleInterfaceMaterial :: giveInputRecord(DynamicInputRecord &input)
{
StructuralMaterial :: giveInputRecord(input);
input.setField(this->kn, _IFT_SimpleInterfaceMaterial_kn);
input.setField(this->frictCoeff, _IFT_SimpleInterfaceMaterial_frictCoeff);
input.setField(this->stiffCoeff, _IFT_SimpleInterfaceMaterial_stiffCoeff);
input.setField(this->normalClearance, _IFT_SimpleInterfaceMaterial_normalClearance);
}
示例11: giveInputRecord
void PLMaterialForce :: giveInputRecord(DynamicInputRecord &input)
{
int number = 1;
input.setRecordKeywordField(this->giveInputRecordName(), number);
input.setField(mRadius, _IFT_PLMaterialForce_Radius);
input.setField(mIncrementLength, _IFT_PLMaterialForce_IncLength);
input.setField(mCrackPropThreshold, _IFT_PLMaterialForce_CrackPropThreshold);
}
示例12: giveInputRecord
void
CohesiveInterfaceMaterial :: giveInputRecord(DynamicInputRecord &input)
{
StructuralInterfaceMaterial :: giveInputRecord(input);
input.setField(this->kn, _IFT_CohesiveInterfaceMaterial_kn);
input.setField(this->ks, _IFT_CohesiveInterfaceMaterial_ks);
input.setField(this->stiffCoeffKn, _IFT_CohesiveInterfaceMaterial_stiffCoeffKn);
input.setField(this->stiffCoeffKn, _IFT_CohesiveInterfaceMaterial_transitionopening);
}
示例13: giveInputRecord
void
IntMatCoulombContact :: giveInputRecord(DynamicInputRecord &input)
{
StructuralInterfaceMaterial :: giveInputRecord(input);
input.setField(this->kn, _IFT_IntMatCoulombContact_kn);
input.setField(this->frictCoeff, _IFT_IntMatCoulombContact_frictCoeff);
input.setField(this->stiffCoeff, _IFT_IntMatCoulombContact_stiffCoeff);
input.setField(this->normalClearance, _IFT_IntMatCoulombContact_normalClearance);
}
示例14: giveInputRecord
void TransportGradientPeriodic :: giveInputRecord(DynamicInputRecord &input)
{
ActiveBoundaryCondition :: giveInputRecord(input);
//PrescribedGradientHomogenization :: giveInputRecord(input);
input.setField(this->mGradient, _IFT_TransportGradientPeriodic_gradient);
input.setField(this->mCenterCoord, _IFT_TransportGradientPeriodic_centerCoords);
input.setField(this->masterSet, _IFT_TransportGradientPeriodic_masterSet);
input.setField(this->jump, _IFT_TransportGradientPeriodic_jump);
}
示例15: giveInputRecord
void
IsotropicLinearElasticMaterial :: giveInputRecord(DynamicInputRecord &input)
{
this->LinearElasticMaterial :: giveInputRecord(input);
StructuralMaterial :: giveInputRecord(input);
input.setField(this->E, _IFT_IsotropicLinearElasticMaterial_e);
input.setField(this->nu, _IFT_IsotropicLinearElasticMaterial_n);
input.setField(this->propertyDictionary->at(tAlpha), _IFT_IsotropicLinearElasticMaterial_talpha);
}