Hi everyone,

  I am coupling Chrono with OpenFOAM. But I got a problem. I have 
simplified the code and deleted irrelevant part. The code is:

































*void chronoFSI::initializeShell(){    std::cout << "Copyright (c) 2017 
projectchrono.org\nChrono version: " << CHRONO_VERSION << std::endl;    
std::cout << 
"-----------------------------------------------------------\n";    
std::cout << 
"-----------------------------------------------------------\n";    
std::cout << "     ANCF Shell Elements demo with implicit integration   
 \n";    std::cout << 
"-----------------------------------------------------------\n";            
ChSystemSMC sys_;    auto shellMesh_ = 
chrono_types::make_shared<ChMesh>();    
shellMesh_->SetAutomaticGravity(false);    std::cout << "666\n";    auto 
element0 = chrono_types::make_shared<ChElementShellReissner4>();    
std::cout << "777\n";    auto element1 = 
chrono_types::make_shared<ChElementShellReissner4>();    std::cout << 
"888\n";    int TotalNumElements = 10;    for (int i = 0; i < 
TotalNumElements; i++) {        std::cout << "888888888-1\n";        // 
Create the element and set its nodes.        auto element = 
chrono_types::make_shared<ChElementShellReissner4>();        std::cout << 
"888888888-2\n";        std::cout << "888888888-3\n";    }    std::cout << 
"9999999999\n";    sys_.Add(shellMesh_);  }*
It is under OpenFOAM environment and I can compile it. But when running the 
code, I got the error: 








*Copyright (c) 2017 projectchrono.orgChrono version: 
8.0.0----------------------------------------------------------------------------------------------------------------------
  
   ANCF Shell Elements demo with implicit integration   
 -----------------------------------------------------------666pimpleShellFoam: 
/usr/include/eigen3/Eigen/src/Core/DenseStorage.h:128: 
Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 
32>::plain_array() [with T = double; int Size = 576; int 
MatrixOrArrayOptions = 1]: Assertion 
`(internal::UIntPtr(eigen_unaligned_array_assert_workaround_gcc47(array)) & 
(31)) == 0 && "this assertion is explained here: " 
"http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html"; 
" **** READ THIS WEB PAGE !!! ****"' failed.Aborted (core dumped)*

We can see by the output that the error occurs at ----- auto element0 = 
chrono_types::make_shared<ChElementShellReissner4>();.

Can anyone know how to solve this? Thanks a lot.

Regards,
Jay

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/7fed21a5-0efa-4c7d-9c27-bf32ad9d136en%40googlegroups.com.

Reply via email to