Xiang,

Here is an example on how to do it:
https://github.com/geodynamics/aspect/blob/master/cookbooks/prescribed_velocity/prescribed_velocity.cc#L297-L303
As you can see, you need to know which dof you need to constrain

Best,

Bruno

Le mar. 13 oct. 2020 à 11:02, 孙翔 <shyaan...@gmail.com> a écrit :
>
>
> Hi, Bruno,
>
> Thank you very much. Does the AffineConstraint force the value at the 
> specified DOF? I need to how the node numbers map to the DOF, right?
>
> Best,
>
> Xiang
> On Monday, 12 October 2020 at 06:21:03 UTC-7 bruno.t...@gmail.com wrote:
>>
>> Xiang,
>>
>> You cannot apply a boundary condition on an internal face. You need to use 
>> the AffineConstraint class to impose the constraints yourself. This is what 
>> we use internally to apply Dirichlet boundary condition.
>>
>> Best,
>>
>> Bruno
>>
>>
>>
>> On Monday, October 12, 2020 at 2:10:15 AM UTC-4 shya...@gmail.com wrote:
>>>
>>> Hi, I want to model injecting heat fluid into a tiny fracture which is 
>>> inside a block. The fracture is modeled as an interface which is an 
>>> internal face shared by two hex elements. Is it possible for us to apply 
>>> the Dirichlet boundary condition on the interface? If not, how should I do 
>>> it?
>>>
>>> Best,
>>>
>>> Xiang
>
> --
> 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 a topic in the Google 
> Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/dealii/hv0QjbGuxls/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/dc0e5cab-64c7-4af7-b957-2a51f83ee5f4n%40googlegroups.com.

-- 
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/CAGVt9eP-obzx1%2B0rBq5c9GkP-taGXvPo8dQCRVOM7As%2BsroANw%40mail.gmail.com.

Reply via email to