Manager Module

Base Handler (BaseHandler)

class opsparser._manager.BaseHandler[source]
abstractmethod static handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

Return type:

list[str]

abstractmethod handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.

abstractmethod clear()[source]

Reset internal data maintained by a concrete handler.

static get_name_and_count(origin_name)[source]

Get name and count from a name with count suffix.

Return type:

tuple[str, int]

Node Manager (NodeManager)

class opsparser._manager.NodeManager(*args, **kwargs)[source]
__init__()[source]
newtag = 1
property newtag_upper

return a new tag that is max of all tags + 1

get_new_tags(num, start=1)[source]

Generate a list of ‘num’ new node tags starting from at least ‘start’

Return type:

list[int]

handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.

get_node_coords(tag)[source]

获取节点坐标

Return type:

list[float]

get_node_mass(tag)[source]

获取节点质量

Return type:

list[float]

get_nodes_by_coords(x=None, y=None, z=None)[source]

根据坐标查找节点

Return type:

list[int]

clear()[source]

Reset internal data maintained by a concrete handler.

Element Manager (ElementManager)

class opsparser._manager.ElementManager(*args, **kwargs)[source]
__init__()[source]
newtag = 1
property newtag_upper

return a new tag that is max of all tags + 1

get_new_tags(num, start=1)[source]

Generate a list of ‘num’ new element tags starting from at least ‘start’

Return type:

list[int]

static handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.

handle_unknown_element(*args, **kwargs)[source]

Handle unknown elements

get_element(eleTag)[source]

Get element information by tag

Return type:

Optional[dict]

get_element_nodes(eleTag)[source]

Get nodes connected to the specified element

Return type:

list[int]

get_elements_by_nodes(node_tags)[source]

Get all elements connected to the specified nodes

Return type:

list[int]

get_elements_by_type(eleType)[source]

Get all elements of the specified type

Return type:

list[int]

get_elements(Type=None)[source]

Get elements by type

clear()[source]

Reset internal data maintained by a concrete handler.

Material Manager (MaterialManager)

class opsparser._manager.MaterialManager(*args, **kwargs)[source]
__init__()[source]
newtag = 1
property newtag_upper

return a new tag that is max of all tags + 1

get_new_tags(num, start=1)[source]

Generate a list of ‘num’ new material tags starting from at least ‘start’

Return type:

list[int]

static handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.

handle_unknown_material(func_name, *args, **kwargs)[source]

Handle unknown material types

nDMaterial_list = dict_keys(['ElasticIsotropic', 'ElasticOrthotropic', 'J2Plasticity', 'DruckerPrager', 'PlaneStress', 'PlaneStrain', 'MultiaxialCyclicPlasticity', 'BoundingCamClay', 'PlateFiber', 'FSAM', 'ManzariDafalias', 'PM4Sand', 'PM4Silt', 'StressDensityModel', 'AcousticMedium', 'CycLiqCP', 'CycLiqCPSP', 'PlateFromPlaneStress', 'PlateRebar', 'PlasticDamageConcretePlaneStress', 'ContactMaterial2D', 'ContactMaterial3D', 'InitialStateAnalysisWrapper', 'InitStressNDMaterial', 'InitStrainNDMaterial', 'PressureIndependMultiYield', 'PressureDependMultiYield', 'PressureDependMultiYield02', 'PressureDependMultiYield03', 'FluidSolidPorous'])
uniaxialMaterial_list = dict_keys(['Elastic', 'ElasticPP', 'ElasticPPGap', 'ENT', 'Hysteretic', 'Parallel', 'Series', 'Concrete01', 'Concrete02', 'Concrete04', 'Concrete06', 'Concrete07', 'Concrete01WithSITC', 'ConfinedConcrete01', 'ConcreteD', 'FRPConfinedConcrete', 'FRPConfinedConcrete02', 'ConcreteCM', 'TDConcrete', 'TDConcreteEXP', 'TDConcreteMC10', 'TDConcreteMC10NL', 'Hardening', 'Cast', 'ViscousDamper', 'BilinearOilDamper', 'Bilin', 'ModIMKPeakOriented', 'ModIMKPinching', 'SAWS', 'BarSlip', 'Bond_SP01', 'Fatigue', 'ImpactMaterial', 'HyperbolicGapMaterial', 'LimitState', 'MinMax', 'ElasticBilin', 'ElasticMultiLinear', 'MultiLinear', 'InitStrainMaterial', 'InitStressMaterial', 'PathIndependent', 'Pinching4', 'ECC01', 'SelfCentering', 'Viscous', 'BoucWen', 'BWBN', 'KikuchiAikenHDR', 'KikuchiAikenLRB', 'AxialSp', 'AxialSpHD', 'PinchingLimitStateMaterial', 'CFSWSWP', 'CFSSSWP', 'Backbone', 'Masonry', 'Pipe', 'PySimple1', 'TzSimple1', 'QzSimple1', 'PyLiq1', 'TzLiq1', 'QzLiq1', 'Steel01', 'Steel02', 'Steel4', 'ReinforcingSteel', 'Dodd_Restrepo', 'RambergOsgoodSteel', 'SteelMPF', 'Steel01Thermal'])
get_material(matTag)[source]
Return type:

dict

get_materials_by_type(matType)[source]

Get all materials of the specified type

Return type:

list[int]

nDMaterial = {}
uniaxialMaterial = {}
clear()[source]

Reset internal data maintained by a concrete handler.

Load Manager (LoadManager)

class opsparser._manager.LoadManager[source]
__init__()[source]
handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.

get_pattern(tag)[source]

获取指定标签的荷载模式

Return type:

Optional[dict]

get_node_load(pattern_tag, node_tag)[source]

获取指定荷载模式下节点的荷载

Return type:

list[float]

get_ele_load(pattern_tag, ele_tag)[source]

获取指定荷载模式下单元的荷载

Return type:

dict

get_patterns_by_time_series(ts_tag)[source]

获取使用特定时程的所有荷载模式

Return type:

list[int]

clear()[source]

清除所有数据

Time Series Manager (TimeSeriesManager)

class opsparser._manager.TimeSeriesManager[source]
__init__()[source]
handles()[source]

返回该处理器支持的命令列表(如 element / uniaxialMaterial / nDMaterial)

handle(func_name, arg_map)[source]

Process the function func_name using the already parsed arg_map.