MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / TclModelBuilder_addKikuchiBearing

Function TclModelBuilder_addKikuchiBearing

SRC/element/TclElementCommands.cpp:2664–3110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2662}
2663
2664int TclModelBuilder_addKikuchiBearing(ClientData clientData,
2665 Tcl_Interp *interp, int argc, TCL_Char **argv, Domain *theTclDomain,
2666 TclModelBuilder *theTclBuilder)
2667{
2668
2669 // ensure the destructor has not been called
2670 if (theTclBuilder == 0) {
2671 opserr << "WARNING builder has been destroyed - KikuchiBearing\n";
2672 return TCL_ERROR;
2673 }
2674
2675 //3-dim, 6dof
2676 int ndm = theTclBuilder->getNDM();
2677 int ndf = theTclBuilder->getNDF();
2678
2679 if (ndm != 3 || ndf != 6) {
2680 opserr << "ndm=" << ndm << ", ndf=" << ndf << endln;
2681 opserr << "WARNING KikuchiBearing command only works when ndm is 3 and ndf is 6" << endln;
2682 return TCL_ERROR;
2683 }
2684
2685 //arguments (necessary)
2686 int eleTag;
2687 int iNode;
2688 int jNode;
2689
2690 //arguments (necessary, input with -???)
2691 int shape;
2692 double size;
2693 double totalRubber;
2694 int nMSS;
2695 int matMSSTag;
2696 UniaxialMaterial *matMSS;
2697 int nMNS;
2698 int matMNSTag;
2699 UniaxialMaterial *matMNS;
2700
2701 //arguments (optional, input with -???)
2702 double totalHeight = -1.0; //default: Norm(I->J)
2703 double limDisp = -1.0; //default: INF
2704 double lambda = -1.0; //default: INF
2705 Vector oriX(0); //default: local-x Vec(I->J)
2706 Vector oriYp(3); oriYp(0) = 0.0; oriYp(1) = 1.0; oriYp(2) = 0.0; //default: global-Y
2707 double mass = 0.0;
2708 bool ifPDInput = true;
2709 bool ifTilt = true;
2710 double adjCi = 0.5;
2711 double adjCj = 0.5;
2712 bool ifBalance = false;
2713 double limFo = -1.0; //default: INF
2714 double limFi = -1.0; //default: INF
2715 int nIter = 1;
2716
2717 // input comfirmation
2718 int recvShape = 0;
2719 int recvSize = 0;
2720 int recvHeight = 0;
2721 int recvNMSS = 0;

Callers 1

Calls 7

errDetectedFunction · 0.70
OPS_getUniaxialMaterialFunction · 0.50
printCommandFunction · 0.50
getNDMMethod · 0.45
getNDFMethod · 0.45
resizeMethod · 0.45
addElementMethod · 0.45

Tested by

no test coverage detected