Role of "x" vector in member function PeriodicBC:apply(A,b,x)
Dear all,
The idea is to define a new boundary condition "u_{master} - u_{slave} = \alpha" in linear or nonlinear cases.
As detailled in the PeriodicBC:
1) adding master and slave rows (matrix and right hand side) and putting in the mater row
2) putting (1,-1) in the slave row of the matrix
3) putting 0 in the slave row of the right hand side.
It works in linear case for a Periodic boundary condition u_{master} = u_{slave} and a change to u_{master} = u_{slave} +\alpha is quite easy.
The question concerns the meaning of the "x" vector. It is not so clear for me because (if I well unsterstand) if "b" and "x" exist, we will have:
tmp = x_{master}
b_{slave} = tmp
Then on the slave row of the linear system, we will solve :
u_{master} - u_{slave} = x_{master}
How, in nonlinear case, is defined this vector "x"? In which context ?
When is called, in nonlinear case, this "apply" function ?
I notice that a change for periodic condition is under development however we have some tests to realize.
Thanks for your answers
Arnaud
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Garth Wells
- Solved:
- Last query:
- Last reply: