Hello,
For example inside template <int dim> void
WeightedResidual<dim>::output_solution () const I want to have a loop over
cells and in each cell I want to calculate the stresses.
Already in step-14, similar thing has been done in template <int dim> void
WeightedResidual<dim>::integrate_over_cell (...).
But inside integrate_over_cell it is possible to access fe_values by
cell_data.fe_values because cell_data is passed to this method.
I want to know if it is possible to access cell fe_values by this pointer
inside WeightedResidual<dim>::output_solution () method?
Best regards.
Elena
On Friday, November 25, 2016 at 12:45:41 AM UTC+1, Wolfgang Bangerth wrote:
>
> On 11/24/2016 04:35 PM, Elena Greco wrote:
> >
> > Moreover I have another problem. I want to loop over cells and calculate
> > stress at each cell.
> > so I write below lined in stress_strain_nodal_values method:
> >
> > const PrimalSolver<dim> &primal_solver = *this;
> >
> > typename DoFHandler<dim>::active_cell_iterator
> > cell =
> > primal_solver.dof_handler.begin_active(),
> > endc =
> primal_solver.dof_handler.end();
> > for (; cell!=endc; ++cell)
> > {
> > .....
> > }
> >
> > Inside loop how can access fe_values from this pointer to reinit(cell)
> it for
> > each cell.
>
> It's hard to tell since you don't show us the whole function. *Which*
> fe_values object do you want to access?
>
> Best
> W.
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> <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 [email protected].
For more options, visit https://groups.google.com/d/optout.