Surface NMR forward modelling
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ForwardFID.cpp 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 08/28/2017 09:07:04 AM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2017, University of Utah
  15. * @copyright Copyright (c) 2017, Lemma Software, LLC
  16. */
  17. #include <Merlin>
  18. using namespace Lemma;
  19. int main(int argc, char** argv) {
  20. if (argc<5) {
  21. std::cout << "./ForwardFID Kernel.yaml TxString RxString vtkoutput<true/false> \n";
  22. // return(EXIT_FAILURE);
  23. }
  24. auto Kernel = KernelV0::DeSerialize(YAML::LoadFile(argv[1]));
  25. // std::cout << *Kernel;
  26. auto Model = LayeredEarthMR::NewSP();
  27. Model->AlignWithKernel(Kernel);
  28. Model->SetT2StarBins(10, 500, 20);
  29. std::cout << *Model << std::endl;
  30. /*
  31. auto Forward = ForwardFID::NewSP();
  32. //Forward->SetWindowEdges( VectorXr::LinSpaced(10,0,1) );
  33. Forward->SetLogSpacedWindows(10,1000,30);
  34. //auto FID = Forward->ForwardModel(Model);
  35. //std::cout << *Forward << std::endl;
  36. */
  37. return EXIT_SUCCESS;
  38. }