idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.79k stars 1.05k forks source link

Dream3d exported file can NOT be read by EBSD_reconstruction module #17847

Closed zengfy-hust closed 3 years ago

zengfy-hust commented 3 years ago

Hello Moose workers: I use dream3d to covert EBSD file to INL file .then used it as an initia condition for EBSD_reconstruction module in phase_field module .however ,when I chanege the innput file .Error message was shown as followed ERROR The following error occurred in the object "ebsd_reader", of type "EBSDReader".

EBSD Data ouside of the domain declared in the header ([-850:-730], [-0.5:119.5], [0:0]) dim=2

Stack frames: 16 0: libMesh::print_trace(std::ostream&) 1: moose::internal::mooseErrorRaw(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >) 2: callMooseErrorRaw(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, MooseApp*) 3: EBSDReader::readFile() 4: EBSDReader::EBSDReader(InputParameters const&) 5: std::shared_ptr moose::internal::buildObj(InputParameters const&) 6: Factory::create(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, InputParameters&, unsigned int, bool) 7: FEProblemBase::addUserObject(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, InputParameters&) 8: Action::timedAct() 9: ActionWarehouse::executeActionsWithAction(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) 10: ActionWarehouse::executeAllActions() 11: MooseApp::runInputFile() 12: MooseApp::run() 13: /home/zengfanyi/projects/moose/modules/phase_field/phase_field-opt(+0x527e) [0x55d01cade27e] 14: libc_start_main 15: /home/zengfanyi/projects/moose/modules/phase_field/phase_field-opt(+0x550d) [0x55d01cade50d] application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 [unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1 : system msg for write_line failure : Bad file descriptor EBSD_reconstruction.zip

dschwen commented 3 years ago

The error message indicates that one of the data points has coordinates outside the slab defined in the file's header. I'll take a look at the file. Maybe we can just discard such points and not fuss about it. I'm surprised this has not come up before, though.

dschwen commented 3 years ago

Looks to me like the header is not well formed. For one, the x_dim, y_dim, z_dim values should all be integers. Also x_dim * x_step + x_min should give you x_max. Please double check your export options or try changing the file manually. E.g. x_dim should be (1.5+850.5)/1.5 = 568.0.

zengfy-hust commented 3 years ago

thank you ,I will follow your instruction this evening ,and I will let you know if it works well .

zengfy-hust commented 3 years ago

Hello Moose workers 👍 A new error message occured when I change the input file and the EBSD_reconstruction file .I attached both files in this reply just for your better understand for my pronblem.The error meaasge was shown as following : ERROR A 'EBDSMeshGenerator' is not a registered object.

If you are trying to find this object in a dynamically linked library, make sure that the library can be found either in your "Problem/library_path" parameter or in the MOOSE_LIBRARY_PATH environment variable.

Stack frames: 21 0: libMesh::print_trace(std::ostream&) 1: moose::internal::mooseErrorRaw(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >) 2: void mooseError<std::cxx11::basic_string<char, std::char_traits, std::allocator > >(std::cxx11::basic_string<char, std::char_traits, std::allocator >&&) 3: Factory::reportUnregisteredError(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const 4: Factory::getValidParams(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) 5: MooseObjectAction::MooseObjectAction(InputParameters) 6: AddMeshGeneratorAction::AddMeshGeneratorAction(InputParameters) 7: /home/zengfanyi/projects/moose/framework/libmoose-opt.so.0(+0xf3a968) [0x7f80565dc968] 8: std::shared_ptr moose::internal::buildAct(InputParameters const&) 9: ActionFactory::create(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, InputParameters&) 10: Parser::walkRaw(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, hit::Node) 11: Parser::walk(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, hit::Node) 12: hit::Node::walk(hit::Walker, hit::NodeType) 13: hit::Node::walk(hit::Walker, hit::NodeType) 14: hit::Node::walk(hit::Walker*, hit::NodeType) 15: Parser::parse(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) 16: MooseApp::setupOptions() 17: MooseApp::run() 18: /home/zengfanyi/projects/moose/modules/phase_field/phase_field-opt(+0x527e) [0x564a0ef9527e] 19: libc_start_main 20: /home/zengfanyi/projects/moose/modules/phase_field/phase_field-opt(+0x550d) [0x564a0ef9550d] application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 [unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1 : system msg for write_line failure : Bad file descriptor [Uploading EBSD_reconstruction.zip…]()

dschwen commented 3 years ago

This is not related to the EBSD data file. You are running the input with an executable that does not have support for EBSD built in. I'm turning this into a discussion now. As this does not seem to be a MOOSE issue.