Cannot use codedFixedValue, Unknown patchField type
#1006
|
I want the inlet and outlet patch to have parabolic velocity profile. But upon debug I found that DAFoam doesn't support
inlet
{
type codedFixedValue;
value uniform (0 0 0);
name myDynamicInlet;
code #{
const scalar t = this->db().time().value();
vector Uin = vector(1.0 + 0.5*sin(2*M_PI*t), 0, 0); // Velocity changes based on defined sine function
operator==(Uin);
#};
}Error occured: Request to provide alternate where I can provide varying profile. |
Answered by
Ananth-Narayan-IITM
Jul 23, 2026
Replies: 1 comment
|
I found a workaround for this, OpenFOAM have Initially I thought of modifying |
0 replies
Answer selected by
Ananth-Narayan-IITM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a workaround for this, OpenFOAM have
setExprBoundaryFieldsDictwhich writes the values described by expression on certain patch, with this DAFoam can proceed further.Initially I thought of modifying
DAField.Cand got this working but not as expected but thissetExprBoundaryFieldsDictis the best work around.