本文整理汇总了C++中DynamicInputRecord::hasField方法的典型用法代码示例。如果您正苦于以下问题:C++ DynamicInputRecord::hasField方法的具体用法?C++ DynamicInputRecord::hasField怎么用?C++ DynamicInputRecord::hasField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DynamicInputRecord
的用法示例。
在下文中一共展示了DynamicInputRecord::hasField方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: appendInputRecords
void
Delamination :: appendInputRecords(DynamicDataReader &oDR)
{
///@todo almost everything is copied from EnrichmentItem :: giveInputRecord, should be written in a better way
DynamicInputRecord *eiRec = new DynamicInputRecord();
FEMComponent :: giveInputRecord(* eiRec);
eiRec->setField(mEnrFrontIndex, _IFT_EnrichmentItem_front);
eiRec->setField(mPropLawIndex, _IFT_EnrichmentItem_propagationlaw);
// Delamination specific records
eiRec->setField(this->interfaceNum, _IFT_Delamination_interfacenum);
eiRec->setField(this->crossSectionNum, _IFT_Delamination_csnum);
eiRec->setField(this->matNum, _IFT_Delamination_CohesiveZoneMaterial);
eiRec->setField(this->initiationFactor, _IFT_Delamination_initiationFactor);
eiRec->setField(this->initiationRadius, _IFT_Delamination_initiationRadius);
if ( !eiRec->hasField(_IFT_Delamination_averageStresses) ) {
recoverStresses = false;
}
oDR.insertInputRecord(DataReader :: IR_enrichItemRec, eiRec);
// Enrichment function
DynamicInputRecord *efRec = new DynamicInputRecord();
mpEnrichmentFunc->giveInputRecord(* efRec);
oDR.insertInputRecord(DataReader :: IR_enrichFuncRec, efRec);
// Enrichment domain
DynamicInputRecord *geoRec = new DynamicInputRecord();
geoRec->setRecordKeywordField(this->giveInputRecordName(), 1);
IntArray idList;
idList.resize( dofManList.size() );
for ( size_t i = 0; i < dofManList.size(); i++ ) {
idList.at(i + 1) = dofManList [ i ];
}
geoRec->setField(idList, _IFT_ListBasedEI_list);
oDR.insertInputRecord(DataReader :: IR_geoRec, geoRec);
// Enrichment front
if ( mEnrFrontIndex != 0 ) {
DynamicInputRecord *efrRecStart = new DynamicInputRecord();
mpEnrichmentFrontStart->giveInputRecord(* efrRecStart);
oDR.insertInputRecord(DataReader :: IR_enrichFrontRec, efrRecStart);
DynamicInputRecord *efrRecEnd = new DynamicInputRecord();
mpEnrichmentFrontEnd->giveInputRecord(* efrRecEnd);
oDR.insertInputRecord(DataReader :: IR_enrichFrontRec, efrRecEnd);
}
if ( mPropLawIndex != 0 ) {
// Propagation law
DynamicInputRecord *plRec = new DynamicInputRecord();
this->mpPropagationLaw->giveInputRecord(* plRec);
oDR.insertInputRecord(DataReader :: IR_propagationLawRec, plRec);
}
}