Main Lemma Repository
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

utsandbox.cpp 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // ===========================================================================
  2. //
  3. // Filename: utsandbox.cpp
  4. //
  5. // Created: 07/29/2010 10:34:23 AM
  6. // Compiler: Tested with g++, icpc, and MSVC 2010
  7. //
  8. // Author: Trevor Irons (ti)
  9. //
  10. // Organisation: Colorado School of Mines (CSM)
  11. // United States Geological Survey (USGS)
  12. //
  13. // Email: tirons@mines.edu, tirons@usgs.gov
  14. //
  15. // This program is free software: you can redistribute it and/or modify
  16. // it under the terms of the GNU General Public License as published by
  17. // the Free Software Foundation, either version 3 of the License, or
  18. // (at your option) any later version.
  19. //
  20. // This program is distributed in the hope that it will be useful,
  21. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. // GNU General Public License for more details.
  24. //
  25. // You should have received a copy of the GNU General Public License
  26. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  27. //
  28. // ===========================================================================
  29. /**
  30. @file test sandbox helm1rameters
  31. @author Trevor Irons
  32. @date 07/29/2010
  33. @version 0.0
  34. **/
  35. #include "Lemma"
  36. using namespace Lemma;
  37. int main() {
  38. PolygonalWireAntenna *helm1 = PolygonalWireAntenna::New();
  39. helm1->SetNumberOfFrequencies(1);
  40. helm1->SetFrequency(0, 1000);
  41. helm1->SetNumberOfPoints(5);
  42. helm1->SetPoint(0, Vector3r( 0, 0, 0));
  43. helm1->SetPoint(1, Vector3r( 0, 0, 0));
  44. helm1->SetPoint(2, Vector3r( 0, 0, 0));
  45. helm1->SetPoint(3, Vector3r( 0, 0, 0));
  46. helm1->SetPoint(4, Vector3r( 0, 0, 0));
  47. helm1->SetCurrent(1.);
  48. helm1->Delete();
  49. }