I can post the code but maybe someone can suggest a sample that
does what I need. I have a 3d cube that contains two plates
( a parallel plate capacitor ). I want to connect the plates with a rod
running between them and thought if the surfaces touched the meshes
would merge but it seems to create a segfault as shown below. How should I connect
3D cubes together? Ultimately the 3 pieces will probably all be the same
lossy material and i will want a mesh inside them although right now just a
surface mesh and BC’s would be ok.
Thanks.
3D RemplissageSurf3D:: Vertex triangle2 border 1830 3664 424
tetgenio: vertex
tetgenio: facet
tetgen: before tetrahedralize( , &in, &out);
numberof regions 4
numberof hole 0
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff128c970 in tetgenmesh::facet_ridge_vertex_adjacent(tetgenmesh::face*, double*) () from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
(gdb) bt
#0 0x00007ffff128c970 in tetgenmesh::facet_ridge_vertex_adjacent(tetgenmesh::face*, double*) () from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#1 0x00007ffff128cd6b in tetgenmesh::create_a_shorter_edge(double*, double*) ()
from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#2 0x00007ffff129d78f in tetgenmesh::insertpoint(double*, tetgenmesh::triface*, tetgenmesh::face*, tetgenmesh::face*, tetgenmesh::insertvertexflags*) ()
from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#3 0x00007ffff12bf8db in tetgenmesh::recoversubfaces(tetgenmesh::arraypool*, int) ()
from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#4 0x00007ffff12c169a in tetgenmesh::recoverboundary(long&) ()
from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#5 0x00007ffff12d3d35 in tetrahedralize(tetgenbehavior*, tetgenio*, tetgenio*, tetgenio*, tetgenio*) ()
from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#6 0x00007ffff12d46a5 in tetrahedralize(char*, tetgenio*, tetgenio*, tetgenio*, tetgenio*) () from /home/ubuntu/dev/freefem/install2/lib/ff++/4.12/lib/mpi/tetgen.so
#7 0x00007ffff123a7de in RemplissageSurf3D_tetgen_new (
switch_tetgen=switch_tetgen@entry=0x15c5800 "pqaAATTQ", ThS=...,
label_tet=@0x7fffffffb000: 0, nbhole=@0x7fffffffb004: 0, tabhole=0x15c3350,
nbregion=@0x7fffffffb008: 4, tabregion=0x1654680, nbfacecl=@0x7fffffffb00c: 0,
tabfacecl=0x151c5b0) at tetgen.cpp:1121
#8 0x00007ffff124e2f4 in Remplissage_Op::operator() (this=0x15c4800,
stack=0x1538320) at tetgen.cpp:1909
#9 0x0000000000aea3f1 in E_F_F0F0_<Fem2D::Mesh3 const**, Fem2D::Mesh3 const**, Fem2D::Mesh3 const*, E_F0>::operator() (this=0x15c4970, s=0x1538320) at AFunction.hpp:1122
#10 0x000000000095b284 in ListOfInst::operator() (this=0x153a900, s=0x1538320)
at AFunction2.cpp:794
#11 0x00000000008d2f81 in CListOfInst::eval (this=0x7fffffffbba8, s=0x1538320)
at ./../fflib/AFunction.hpp:1486
#12 lgparse () at lg.ypp:360
#13 0x00000000008d7bda in Compile () at lg.ypp:853
#14 0x00000000008d8604 in mainff (argc=2, argv=0x7fffffffd078) at lg.ypp:1027
#15 0x00007ffff5599840 in __libc_start_main (main=0x8c1480 <main(int, char**)>,
argc=2, argv=0x7fffffffd078, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffd068) at ../csu/libc-start.c:291
#16 0x00000000008c5209 in _start ()