本文整理汇总了C++中Syntax::registerActionSyntax方法的典型用法代码示例。如果您正苦于以下问题:C++ Syntax::registerActionSyntax方法的具体用法?C++ Syntax::registerActionSyntax怎么用?C++ Syntax::registerActionSyntax使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Syntax
的用法示例。
在下文中一共展示了Syntax::registerActionSyntax方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: registerAction
void
MooseTestApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
#undef registerAction
#define registerAction(tplt, action) action_factory.reg<tplt>(stringifyName(tplt), action)
// and add more
registerAction(ConvDiffMetaAction, "meta_action");
registerAction(AddLotsOfAuxVariablesAction, "meta_action");
registerAction(AddLotsOfDiffusion, "add_variable");
registerAction(AddLotsOfDiffusion, "add_kernel");
registerAction(AddLotsOfDiffusion, "add_bc");
syntax.registerActionSyntax("ConvDiffMetaAction", "ConvectionDiffusion");
syntax.registerActionSyntax("AddAuxVariableAction", "MoreAuxVariables/*", "add_aux_variable");
syntax.registerActionSyntax("AddLotsOfAuxVariablesAction", "LotsOfAuxVariables/*", "add_variable");
registerAction(ApplyCoupledVariablesTestAction, "meta_action");
syntax.registerActionSyntax("ApplyCoupledVariablesTestAction", "ApplyInputParametersTest");
syntax.registerActionSyntax("AddLotsOfDiffusion", "Testing/LotsOfDiffusion/*");
#undef registerAction
#define registerAction(tplt, action) action_factory.regLegacy<tplt>(stringifyName(tplt), action)
}
示例2: registerAction
void
TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("EmptyAction", "BCs/CavityPressure");
syntax.registerActionSyntax("CavityPressureAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("CavityPressurePPAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("CavityPressureUOAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics");
syntax.registerActionSyntax("DynamicTensorMechanicsAction", "Kernels/DynamicTensorMechanics");
syntax.registerActionSyntax("PoroMechanicsAction", "Kernels/PoroMechanics");
syntax.registerActionSyntax("TensorMechanicsAxisymmetricRZAction", "Kernels/StressDivergence2DAxisymmetricRZ");
syntax.registerActionSyntax("TensorMechanicsRSphericalAction", "Kernels/StressDivergence1DRSpherical");
syntax.registerActionSyntax("EmptyAction", "BCs/Pressure");
syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*");
registerAction(CavityPressureAction, "add_bc");
registerAction(CavityPressurePPAction, "add_postprocessor");
registerAction(CavityPressureUOAction, "add_user_object");
registerAction(TensorMechanicsAction, "add_kernel");
registerAction(DynamicTensorMechanicsAction, "add_kernel");
registerAction(PoroMechanicsAction, "add_kernel");
registerAction(TensorMechanicsAxisymmetricRZAction, "add_kernel");
registerAction(TensorMechanicsRSphericalAction, "add_kernel");
registerAction(PressureAction, "add_bc");
}
示例3: registerAction
void
SolidMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("EmptyAction", "BCs/CavityPressure");
syntax.registerActionSyntax("CavityPressureAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("CavityPressurePPAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("CavityPressureUOAction", "BCs/CavityPressure/*");
syntax.registerActionSyntax("EmptyAction", "BCs/Pressure");
syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*");
syntax.registerActionSyntax("SolidMechanicsAction", "SolidMechanics/*");
syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_user_object");
syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_aux_variable");
syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_aux_kernel");
syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_postprocessor");
registerAction(PressureAction, "add_bc");
registerAction(CavityPressureAction, "add_bc");
registerAction(CavityPressurePPAction, "add_postprocessor");
registerAction(CavityPressureUOAction, "add_user_object");
registerAction(SolidMechanicsAction, "add_kernel");
registerAction(JIntegralAction, "add_user_object");
registerAction(JIntegralAction, "add_aux_variable");
registerAction(JIntegralAction, "add_aux_kernel");
registerAction(JIntegralAction, "add_postprocessor");
}
示例4: registerAction
void
ContactApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("ContactAction", "Contact/*");
syntax.registerActionSyntax("ContactPenetrationAuxAction", "Contact/*");
syntax.registerActionSyntax("ContactPenetrationVarAction", "Contact/*");
syntax.registerActionSyntax("ContactPressureAuxAction", "Contact/*");
syntax.registerActionSyntax("ContactPressureVarAction", "Contact/*");
syntax.registerActionSyntax("NodalAreaAction", "Contact/*");
syntax.registerActionSyntax("NodalAreaVarAction", "Contact/*");
registerAction(ContactAction, "add_aux_kernel");
registerAction(ContactAction, "add_aux_variable");
registerAction(ContactAction, "add_dirac_kernel");
registerTask("output_penetration_info_vars", false);
registerAction(ContactAction, "output_penetration_info_vars");
syntax.addDependency("output_penetration_info_vars", "add_output");
registerAction(ContactPenetrationAuxAction, "add_aux_kernel");
registerAction(ContactPenetrationVarAction, "add_aux_variable");
registerAction(ContactPressureAuxAction, "add_aux_kernel");
registerAction(ContactPressureVarAction, "add_aux_variable");
registerAction(NodalAreaAction, "add_user_object");
registerAction(NodalAreaVarAction, "add_aux_variable");
}
示例5: registerAction
void
MooseTestApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
// and add more
registerAction(ConvDiffMetaAction, "meta_action");
registerAction(AddLotsOfAuxVariablesAction, "meta_action");
syntax.registerActionSyntax("ConvDiffMetaAction", "ConvectionDiffusion");
syntax.registerActionSyntax("AddAuxVariableAction", "MoreAuxVariables/*", "add_aux_variable");
syntax.registerActionSyntax("AddLotsOfAuxVariablesAction", "LotsOfAuxVariables/*", "add_variable");
}
示例6: registerAction
void
TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics");
syntax.registerActionSyntax("EmptyAction", "BCs/PressureTM");
syntax.registerActionSyntax("PressureActionTM", "BCs/PressureTM/*");
registerAction(TensorMechanicsAction, "add_kernel");
registerAction(PressureActionTM, "add_bc");
}
示例7: registerTask
void
XFEMApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
registerTask("setup_xfem", false);
registerAction(XFEMAction, "setup_xfem");
syntax.addDependency("setup_xfem","setup_adaptivity");
registerAction(XFEMAction, "add_aux_variable");
registerAction(XFEMAction, "add_aux_kernel");
syntax.registerActionSyntax("XFEMAction", "XFEM");
syntax.registerActionSyntax("AddUserObjectAction", "XFEM/*");
}
示例8: registerAction
void
RichardsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("Q2PAction", "Q2P", "add_kernel");
syntax.registerActionSyntax("Q2PAction", "Q2P", "add_aux_variable");
syntax.registerActionSyntax("Q2PAction", "Q2P", "add_function");
syntax.registerActionSyntax("Q2PAction", "Q2P", "add_postprocessor");
registerAction(Q2PAction, "add_kernel");
registerAction(Q2PAction, "add_aux_variable");
registerAction(Q2PAction, "add_function");
registerAction(Q2PAction, "add_postprocessor");
}
示例9: registerAction
void
TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics");
syntax.registerActionSyntax("PoroMechanicsAction", "Kernels/PoroMechanics");
syntax.registerActionSyntax("TensorMechanicsAxisymmetricRZAction", "Kernels/AxisymmetricRZ");
syntax.registerActionSyntax("EmptyAction", "BCs/Pressure");
syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*");
registerAction(TensorMechanicsAction, "add_kernel");
registerAction(PoroMechanicsAction, "add_kernel");
registerAction(TensorMechanicsAxisymmetricRZAction, "add_kernel");
registerAction(PressureAction, "add_bc");
}
示例10: registerAction
void
ZapdosApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
// add actions
registerAction(AddLotsOfDiffusion, "add_variable");
registerAction(AddLotsOfDiffusion, "add_kernel");
registerAction(AddLotsOfDiffusion, "add_bc");
syntax.registerActionSyntax("AddLotsOfDiffusion", "LotsOfDiffusion");
registerAction(AddLotsOfCoeffDiffusion, "add_variable");
registerAction(AddLotsOfCoeffDiffusion, "add_kernel");
registerAction(AddLotsOfCoeffDiffusion, "add_bc");
syntax.registerActionSyntax("AddLotsOfCoeffDiffusion", "LotsOfCoeffDiffusion");
registerAction(AddLotsOfVariables, "add_variable");
registerAction(AddLotsOfVariables, "add_kernel");
registerAction(AddLotsOfVariables, "add_bc");
syntax.registerActionSyntax("AddLotsOfVariables", "LotsOfVariables");
registerAction(AddLotsOfSources, "add_variable");
registerAction(AddLotsOfSources, "add_kernel");
registerAction(AddLotsOfSources, "add_bc");
syntax.registerActionSyntax("AddLotsOfSources", "LotsOfSources");
registerAction(AddLotsOfTimeDerivatives, "add_variable");
registerAction(AddLotsOfTimeDerivatives, "add_kernel");
registerAction(AddLotsOfTimeDerivatives, "add_bc");
syntax.registerActionSyntax("AddLotsOfTimeDerivatives", "LotsOfTimeDerivatives");
registerAction(AddLotsOfEFieldAdvection, "add_variable");
registerAction(AddLotsOfEFieldAdvection, "add_kernel");
registerAction(AddLotsOfEFieldAdvection, "add_bc");
syntax.registerActionSyntax("AddLotsOfEFieldAdvection", "LotsOfEFieldAdvection");
registerAction(AddLotsOfPotentialDrivenArtificialDiff, "add_variable");
registerAction(AddLotsOfPotentialDrivenArtificialDiff, "add_kernel");
registerAction(AddLotsOfPotentialDrivenArtificialDiff, "add_bc");
syntax.registerActionSyntax("AddLotsOfPotentialDrivenArtificialDiff", "LotsOfPotentialDrivenArtificialDiff");
}
示例11: registerAction
void
ChemicalReactionsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
#undef registerAction
#define registerAction(tplt, action) action_factory.reg<tplt>(stringifyName(tplt), action)
syntax.registerActionSyntax("AddPrimarySpeciesAction", "ReactionNetwork");
syntax.registerActionSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions");
syntax.registerActionSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions");
syntax.registerActionSyntax("AddCoupledEqSpeciesKernelsAction", "ReactionNetwork/AqueousEquilibriumReactions");
syntax.registerActionSyntax("AddCoupledEqSpeciesAuxKernelsAction", "ReactionNetwork/AqueousEquilibriumReactions");
syntax.registerActionSyntax("AddCoupledSolidKinSpeciesKernelsAction", "ReactionNetwork/SolidKineticReactions");
syntax.registerActionSyntax("AddCoupledSolidKinSpeciesAuxKernelsAction", "ReactionNetwork/SolidKineticReactions");
registerAction(AddPrimarySpeciesAction, "add_variable");
registerAction(AddSecondarySpeciesAction, "add_aux_variable");
registerAction(AddCoupledEqSpeciesKernelsAction, "add_kernel");
registerAction(AddCoupledEqSpeciesAuxKernelsAction, "add_aux_kernel");
registerAction(AddCoupledSolidKinSpeciesKernelsAction, "add_kernel");
registerAction(AddCoupledSolidKinSpeciesAuxKernelsAction, "add_aux_kernel");
#undef registerAction
#define registerAction(tplt, action) action_factory.regLegacy<tplt>(stringifyName(tplt), action)
}
示例12: registerAction
void
TrexApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
//syntax.registerActionSyntax(<File Name>, <input block/name>);
//registerAction(<File Name>, <type>);
syntax.registerActionSyntax("ImageGrainVariableAction", "AuxVariables/ImageGrainVariable");
registerAction(ImageGrainVariableAction, "add_aux_variable");
syntax.registerActionSyntax("ImageGrainICsAction", "ICs/ImageGrainICs");
registerAction(ImageGrainICsAction, "add_ic");
syntax.registerActionSyntax("PointValueOnLineAction", "Postprocessors/PointValueOnLine");
registerAction(PointValueOnLineAction, "add_postprocessor");
syntax.registerActionSyntax("PolycrystalKernelTensorAction", "Kernels/PolycrystalKernelAniso");
registerAction(PolycrystalKernelTensorAction, "add_kernel");
}
示例13: registerAction
void
MooseTestApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
// and add more
registerAction(ConvDiffMetaAction, "meta_action");
registerAction(AddLotsOfAuxVariablesAction, "meta_action");
registerAction(AddLotsOfDiffusion, "add_variable");
registerAction(AddLotsOfDiffusion, "add_kernel");
registerAction(AddLotsOfDiffusion, "add_bc");
syntax.registerActionSyntax("ConvDiffMetaAction", "ConvectionDiffusion");
syntax.registerActionSyntax("AddAuxVariableAction", "MoreAuxVariables/*", "add_aux_variable");
syntax.registerActionSyntax("AddLotsOfAuxVariablesAction", "LotsOfAuxVariables/*", "add_variable");
registerAction(ApplyCoupledVariablesTestAction, "meta_action");
syntax.registerActionSyntax("ApplyCoupledVariablesTestAction", "ApplyInputParametersTest");
syntax.registerActionSyntax("AddLotsOfDiffusion", "Testing/LotsOfDiffusion/*");
}
示例14: registerAction
void
HeatConductionApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
#undef registerAction
#define registerAction(tplt, action) action_factory.reg<tplt>(stringifyName(tplt), action)
// This registers an action to add the "slave_flux" vector to the system at the right time
registerTask("add_slave_flux_vector", false);
addTaskDependency("add_slave_flux_vector", "ready_to_init");
addTaskDependency("init_problem", "add_slave_flux_vector");
registerAction(AddSlaveFluxVectorAction, "add_slave_flux_vector");
syntax.registerActionSyntax("AddSlaveFluxVectorAction", "ThermalContact/*");
syntax.registerActionSyntax("ThermalContactAuxBCsAction", "ThermalContact/*", "add_aux_kernel");
syntax.registerActionSyntax("ThermalContactAuxVarsAction", "ThermalContact/*", "add_aux_variable");
syntax.registerActionSyntax("ThermalContactBCsAction", "ThermalContact/*", "add_bc");
syntax.registerActionSyntax("ThermalContactDiracKernelsAction", "ThermalContact/*", "add_dirac_kernel");
syntax.registerActionSyntax("ThermalContactMaterialsAction", "ThermalContact/*", "add_material");
registerAction(ThermalContactAuxBCsAction, "add_aux_kernel");
registerAction(ThermalContactAuxVarsAction, "add_aux_variable");
registerAction(ThermalContactBCsAction, "add_bc");
registerAction(ThermalContactDiracKernelsAction, "add_dirac_kernel");
registerAction(ThermalContactMaterialsAction, "add_material");
#undef registerAction
#define registerAction(tplt, action) action_factory.regLegacy<tplt>(stringifyName(tplt), action)
}
示例15: registerAction
void
PhaseFieldApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
syntax.registerActionSyntax("PolycrystalKernelAction", "Kernels/PolycrystalKernel");
syntax.registerActionSyntax("PolycrystalVariablesAction", "Variables/PolycrystalVariables");
syntax.registerActionSyntax("EmptyAction", "ICs/PolycrystalICs"); // placeholder
syntax.registerActionSyntax("BicrystalCircleGrainICAction", "ICs/PolycrystalICs/BicrystalCircleGrainIC");
syntax.registerActionSyntax("BicrystalBoundingBoxICAction", "ICs/PolycrystalICs/BicrystalBoundingBoxIC");
syntax.registerActionSyntax("Tricrystal2CircleGrainsICAction", "ICs/PolycrystalICs/Tricrystal2CircleGrainsIC");
syntax.registerActionSyntax("PolycrystalHexGrainICAction", "ICs/PolycrystalICs/PolycrystalHexGrainIC");
syntax.registerActionSyntax("PolycrystalVoronoiICAction", "ICs/PolycrystalICs/PolycrystalVoronoiIC");
syntax.registerActionSyntax("PolycrystalRandomICAction", "ICs/PolycrystalICs/PolycrystalRandomIC");
syntax.registerActionSyntax("ReconVarICAction", "ICs/PolycrystalICs/ReconVarIC");
registerAction(PolycrystalKernelAction, "add_kernel");
registerAction(PolycrystalVariablesAction, "add_variable");
registerAction(BicrystalCircleGrainICAction, "add_ic");
registerAction(BicrystalBoundingBoxICAction, "add_ic");
registerAction(Tricrystal2CircleGrainsICAction, "add_ic");
registerAction(PolycrystalHexGrainICAction, "add_ic");
registerAction(PolycrystalVoronoiICAction, "add_ic");
registerAction(PolycrystalRandomICAction, "add_ic");
registerAction(ReconVarICAction, "add_ic");
}