Hello Timo,
yes, you are right that it is not explicitly stated in the documentation
itself, but it is discussed in the corresponding tutorial step-15.
Best Regards,
Markus
Am 03.09.10 11:15, schrieb Timo Heister:
Hey,
my guess would be, that the 1d hyper_cube is "colored" and has the
boundary indicator of 0 at the left end and of 1 at the right end.
Could you please try adding
VectorTools::interpolate_boundary_values (dof_handler,
1,
BoundaryValues<dim>(),
boundary_values);
after the other interpolate_boundary_values(..) call?
@others: The documentation isn't great here but hyper_cube uses
hyper_rect with colorize=false. 1D is somewhat special in this case.
--
Timo Heister
http://num.math.uni-goettingen.de/~heister
2010/9/3 崔峰<[email protected]>:
Deal all,
I am a beginner for deal.II, and have studied some examples in tutorial.
I tried to solve the laplace equation in 1D, but I could not get the correct
reuslt.
Especially, the right boundary value doesn`t conform to the value in
boundary function.
The source code is put in the attached file.
Thanks in advance.
Best
Feng Cui
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii