void Vector::set_component_signs(double direction) { // Quadrant IV if(direction > 270.0) { Logger::write(Logger::string_stream << "set_component_signs - quadrant: IV"); make_positive(x_component_); make_positive(y_component_); } // Quadrant III else if(direction > 180.0) { Logger::write(Logger::string_stream << "set_component_signs - quadrant: III"); make_negative(x_component_); make_positive(y_component_); } // Quadrant II else if(direction > 90.0) { Logger::write(Logger::string_stream << "set_component_signs - quadrant: II"); make_negative(x_component_); make_negative(y_component_); } // Quadrant I else { Logger::write(Logger::string_stream << "set_component_signs - quadrant: I"); make_positive(x_component_); make_negative(y_component_); } }
int XC::Concrete01::updateParameter(int parameterID, Information &info) { switch (parameterID) { case 1: this->fpc= info.theDouble; break; case 2: this->epsc0= info.theDouble; break; case 3: this->fpcu= info.theDouble; break; case 4: this->epscu= info.theDouble; break; default: break; } // Make all concrete parameters negative make_negative(); setup_parameters(); return 0; }
//! @brief Constructor. XC::Concrete01::Concrete01(int tag, double FPC, double EPSC0, double FPCU, double EPSCU) :ConcreteBase(tag, MAT_TAG_Concrete01,FPC,EPSC0,EPSCU), fpcu(FPCU), parameterID(0), SHVs() { //count++; //Make all concrete parameters negative make_negative(); setup_parameters(); }