Re: [deal.II] VectorTools::interpolate_boundary_values for Q2 element

2018-08-20 Thread Jie Cheng
Hi Wolfgang Using MappingQ(2) solved the problem, thank you! Jie -- 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.

Re: [deal.II] VectorTools::interpolate_boundary_values for Q2 element

2018-08-20 Thread Wolfgang Bangerth
On 08/20/2018 08:53 PM, Jie Cheng wrote: template double BoundaryValues::value(const Point &p,   const unsigned int component) const {   double r = p.distance(Point());   if (std::abs(r - Rout) < 1e-6)     {   return 0;     }   el

Re: [deal.II] Re: If I define two FESystem , how to use "FEValuesExtractors" separately?

2018-08-20 Thread Wolfgang Bangerth
On 08/20/2018 07:49 AM, Daniel Arndt wrote: Hence, the answer to your question is "No, the FEValuesExtractors objects don't carry any information which FiniteElement they belong to.". In other words, these extractors are just like indices: an index 'i' doesn't know which array it subscripts.

[deal.II] Re: If I define two FESystem , how to use "FEValuesExtractors" separately?

2018-08-20 Thread Daniel Arndt
Chucui, > I have a simple question: if I define two FESystem: > [...] > FESystemfe_1; > FESystemfe_2; > [...] > fe_1 (FE_Q(degree), 1, > FE_Q(degree), 1), > fe_2 (FE_RaviartThomas(degree), 1), > [...] > > when I need to use "FEValuesExtractors" separatel

[deal.II] Re: How do I choose my spaces to enforce gradient continuity across an interface?

2018-08-20 Thread Daniel Arndt
Georgios, I am working on a combined stokes laplace problem (I also attach the code). > Essentially I am solving stokes in one part of the domain and laplace in > another. To this extend, I want my velocity to be both continuous and and > have continuous first derivatives everywhere in my dom

[deal.II] How do I choose my spaces to enforce gradient continuity across an interface?

2018-08-20 Thread georgios . sialounas
Dear all, I am working on a combined stokes laplace problem (I also attach the code). Essentially I am solving stokes in one part of the domain and laplace in another. To this extend, I want my velocity to be both continuous and and have continuous first derivatives everywhere in my domain (