NDSolve::femnodpbc
NDSolveValue::femnodpbc
ParametricNDSolve::femnodpbc
ParametricNDSolveValue::femnodpbc
NDEigensystem::femnodpbc
NDEigenvalues::femnodpbc
NDSolve`ProcessEquations::femnodpbc
DirichletCondition cannot be present on the target boundary:
V[x_] := Cos[x];
ufun = NDSolveValue[{u''[x] + (V''[x] - V'[x] ^ 2) u[x] == -1,
DirichletCondition[u[x] == 0, x == 2π],
PeriodicBoundaryCondition[u[x], x == 2π, TranslationTransform[{-2 π}]]}, u, {x, 0, 2π}]Moving the DirichletCondition to the source boundary works:
V[x_] := Cos[x];
ufun = NDSolveValue[{u''[x] + (V''[x] - V'[x] ^ 2) u[x] == -1,
DirichletCondition[u[x] == 0, x == 0],
PeriodicBoundaryCondition[u[x], x == 2π, TranslationTransform[{-2 π}]]}, u, {x, 0, 2π}, Method -> "FiniteElement"]