Hi Professor Bangerth,

Thank you for the pointer! I changed my code as you suggested and it 
finished running.

However, when I opened the output file (mesh.vtu), the 3D mesh was 
projected to a 2D plane of z=0, and lost its 3D features. Was that expected 
behavior?

Shawn

On Tuesday, September 18, 2018 at 1:56:19 PM UTC-7, Wolfgang Bangerth wrote:
>
> On 09/18/2018 02:40 PM, Yuxiang Wang wrote: 
> > 
> > Thank you for your help! I just tried a code snippet (modified step-49) 
> below 
> > and it does not work, either when I set the dim=2 or dim=3. 
>
> If you want to use quadrilateral (2d) meshes embedded in 3d, then you need 
> to use 
>    Triangulation<2,3> 
>    GridIn<2,3> 
> etc. 
>
> The 2 is the dimension of cells, the 3 the dimension of the space in which 
> they live. 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
>                             www: http://www.math.colostate.edu/~bangerth/ 
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to