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

Method setParameter

SRC/element/PFEMElement/PFEMElement3DBubble.cpp:702–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702int
703PFEMElement3DBubble::setParameter(const char **argv, int argc,
704 Parameter &parameter)
705{
706 if (argc < 1)
707 return -1;
708
709 // viscocity of the fluid
710 if (strcmp(argv[0],"mu") == 0) {
711 parameter.setValue(mu);
712 return parameter.addObject(1, this);
713 }
714 // Mass density of the
715 if (strcmp(argv[0],"rho") == 0) {
716 parameter.setValue(rho);
717 return parameter.addObject(2, this);
718 }
719 // body acceleration of the fluid
720 if (strcmp(argv[0],"bx") == 0) {
721 parameter.setValue(bx);
722 return parameter.addObject(3, this);
723 }
724 // body acceleration of the
725 if (strcmp(argv[0],"by") == 0) {
726 parameter.setValue(by);
727 return parameter.addObject(4, this);
728 }
729 // body acceleration of the
730 if (strcmp(argv[0],"bz") == 0) {
731 parameter.setValue(bz);
732 return parameter.addObject(5, this);
733 }
734
735 return -1;
736}
737
738int
739PFEMElement3DBubble::updateParameter (int passparameterID, Information &info)

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected