Boundary Conditions in different direction #29842
Unanswered
YuanxinXiao
asked this question in
Q&A Modules: Solid mechanics
Replies: 1 comment 2 replies
-
Hello
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @GiudGiud
I want to impose a Dirichlet bc that follows the rod, but the direction of the rod is 45 degrees from the coordinate system x and y axes, so I multiply cos(45) in front of the disp_x of the FunctionDirichletBC, but I get the following error, is there any way can help me to realize it?
code:
[topx]
type = FunctionDirichletBC
variable = cos(45)* disp_x
boundary = 'frontbar_rightside_1'
function = '-1e-3sin(t)'
[]
[botx]
type = FunctionDirichletBC
variable = cos(45) * disp_x
boundary = 'frontbar_leftside_1'
function = '1e-3t'
[]
error:
expected '=' after parameter name '*', got 'd'�
Beta Was this translation helpful? Give feedback.
All reactions