Skip to main content
Tweeted twitter.com/#!/StackSciComp/status/464653986382233601
added 7 characters in body
Source Link
lorniper
  • 593
  • 4
  • 13

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the following problem 1D,

$$\nabla^2 u + \nabla u= 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two methods are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result ingenerate different results for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the following problem 1D,

$$\nabla^2 u + \nabla u= 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two methods are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the following problem 1D,

$$\nabla^2 u + \nabla u= 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two methods are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may generate different results for some specific case. Could any body give some insight?

added 9 characters in body
Source Link
lorniper
  • 593
  • 4
  • 13

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the poissonfollowing problem in 1D,

$$\nabla^2 u = 0, u_{left}= 1, u_{right}=0$$$$\nabla^2 u + \nabla u= 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two different waysmethods are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the poisson problem in 1D,

$$\nabla^2 u = 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two different ways are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the following problem 1D,

$$\nabla^2 u + \nabla u= 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two methods are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

added 27 characters in body
Source Link
lorniper
  • 593
  • 4
  • 13

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the poisson problem in 1D,

$$\nabla^2 u = 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing at right hand side as above.

these two different ways are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the poisson problem in 1D,

$$\nabla^2 u = 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, do the same thing at right hand side as above.

these two different ways are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

I know the Neumann B.C. is implicit in FEM language. However, I have seen at least two ways to impose Dirichlet B.C.

e.g. for the poisson problem in 1D,

$$\nabla^2 u = 0, u_{left}= 1, u_{right}=0$$

  1. set first and last row of assembled "A" to "0" at left hand side, set A(1,1)=1,A(end,end)=1, and specify the boundary value "1" and "0" in right hand side vector "b".

  2. set first row&column, last row&column of assembled "A" to "0" at left hand side, then do the same thing as above.

these two different ways are different, the first is more intuitive(probably preferred by finite difference user), while the second sounds more rigorous because we are setting the boundary "element".

I know these two ways may result in different for some specific case. Could any body give some insight?

added 11 characters in body
Source Link
lorniper
  • 593
  • 4
  • 13
Loading
Source Link
lorniper
  • 593
  • 4
  • 13
Loading