Lemma is an Electromagnetics API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

PolygonalWireAntenna.cpp 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 11/07/2016 12:01:34 PM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2016, University of Utah
  15. * @copyright Copyright (c) 2016, Trevor Irons & Lemma Software, LLC
  16. */
  17. #include <FDEM1D>
  18. using namespace Lemma;
  19. int main() {
  20. auto wire = PolygonalWireAntenna::NewSP();
  21. wire->SetNumberOfPoints(5);
  22. wire->SetPoint(0, 0, 0, 0);
  23. wire->SetPoint(1, 1, 0, 0);
  24. wire->SetPoint(2, 1, 1, 0);
  25. wire->SetPoint(3, 0, 1, 0);
  26. wire->SetPoint(4, 0, 0, 0);
  27. std::cout << *wire << std::endl;
  28. auto wire2 = wire->Clone();
  29. std::cout << *wire2 << std::endl;
  30. }