Re: [deal.II] Error when modify Step 29 into complex-valued problem

14 views
Skip to first unread message

Wolfgang Bangerth

unread,
Sep 25, 2022, 4:49:38 PM9/25/22
to dea...@googlegroups.com

yy.wayne:
The error message says that the function object you pass to interpolate_b_v
has two vector components, but the finite element space has only one vector
component. That's because in step-29, you needed two vector components for the
boundary values (for the real and imaginary parts) whereas you are now
defining a scalar finite element space with only one vector component. You
need to adjust the object that provides boundary values appropriately.

Best
WB

On 9/24/22 20:59, 'yy.wayne' via deal.II User Group wrote:
> *** Caution: EXTERNAL Sender ***
>
> Hi my friends,
> I'm trying to modify step29 into a complex-valued problem as my project for
> deal.II, where you do not seperate real part and imaginary part like the
> original tutorial.
> However error shows up in interpolate_boundary_condition funtion. Here is the
> error output but I cannot locate where dimensions are not fitting.
> Snipaste_2022-09-25_10-58-31.png
> and the c++ code file:
>
> --
> The deal.II project is located at http://www.dealii.org/
> <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dealii.org%2F&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cfbdc82ddb44644ad4f1c08da9ea1fb5d%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637996715835974004%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7S6mTjGa9lCh757GZb%2B2M2eP3AcndEjMEDxZTBdVmRw%3D&reserved=0>
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fforum%2Fdealii%3Fhl%3Den&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cfbdc82ddb44644ad4f1c08da9ea1fb5d%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637996715835974004%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BqhNOhfRaia%2By5nJYBQXDNc5%2FzbDf3hl8TZHGRMsLD0%3D&reserved=0>
> ---
> 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+un...@googlegroups.com
> <mailto:dealii+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/9a9c140a-5341-4055-bf24-a0dd453860f8n%40googlegroups.com
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdealii%2F9a9c140a-5341-4055-bf24-a0dd453860f8n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cfbdc82ddb44644ad4f1c08da9ea1fb5d%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637996715835974004%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5%2BXzdxaM3tXgOcs7LHyQXFK4fog6nXaSktC%2F%2Bzq%2FdlM%3D&reserved=0>.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages