I am always thank you for all guys here in this community.
I have a question on the use of VectorTools::interpolate_boundary_values
Typically we use this function in when we set-up system as in the form
The red lined functions are usually declared out side of main class.
One problem I am interested in now is to (Part A) solve stokes flow with no
slip boundary condition on every boundary one time (as step-22), -
and then to (Part B) solve same system again with slightly different
boundary condition comes from the straight problem
If I finish Part A, i have numerical solution of (u,p) linked with dot
In (Part B), I post process solutions part A, e.g. I calculated stress
value and I calculated tangential velocity of a boundary using Navier slip
So, I need to use
New_VelBndValues<dim>::value (constPoint<dim> &p,
Assert (component < this->n_components,
ExcIndexRange (component, 0, this->n_components));
if(component == 0)
*return calc_tangential_velocity (); (Error Here!!)*
where '*calc_tangential_velocity ();' *is declared in main class, since I
should have information of dot_handler and solution vectors.
*double calc_tangential_velocity ();*
Obviously, this method does not work, I mean I cannot compile the code and
it shows 'use of undeclared identifier 'calc_tangential_velocity' on the
line *(Error Here!!)*
I would appreciate any one who comment it. It seems that complier has to
know what is that before.
Will this be possible in a certain way? How can I go around this problem ?
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
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
For more options, visit https://groups.google.com/d/optout.