| 700 | } |
| 701 | |
| 702 | int |
| 703 | PFEMElement3DBubble::setParameter(const char **argv, int argc, |
| 704 | Parameter ¶meter) |
| 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 | |
| 738 | int |
| 739 | PFEMElement3DBubble::updateParameter (int passparameterID, Information &info) |