On 2/3/24 09:10, Sanghyun Lee wrote:

1. Is there any way to get or access to the reference element basis functions?
e.g \hat{phi}_i  (\hat{x}) where \hat{x} \in \hat{K}

This is what the finite element itself provides. Take a look at
  FiniteElement::shape_value()
  FiniteElement::shape_grad()
etc.


2. In the other direction, I calculated the reference element basis functions with hand, and I want to use the "transform" (https://www.dealii.org/current/doxygen/deal.II/classMapping.html)

virtual void Mapping< dim, spacedim >::transform
(const ArrayView< const Tensor< 1, dim > > & input,
const MappingKind kind,
const typename Mapping< dim, spacedim >::InternalDataBase & internal,
const ArrayView< Tensor< 1, spacedim > > & output
)

But, I don't think we have public acces to "const typename Mapping< dim, spacedim >::InternalDataBase & internal," so I am keep failing.

Yes, the Mapping member functions are really only meant to be used as a black box together with FEValues and related classes. Why do you need this function? What kind of functions do you want to transform from the reference to the real cell?

Best
 Wolfgang

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/d044e136-ee4a-4c4b-9796-f498cb70e16c%40colostate.edu.

Reply via email to