Cannot use codedFixedValue, Unknown patchField type
#1006
Unanswered
Ananth-Narayan-IITM
asked this question in
Bug
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want the inlet and outlet patch to have parabolic velocity profile. But upon debug I found that DAFoam doesn't support
codedFixedValue. To confirm this, here are the debug stepssimpleFoamusing OF2406 using the code (refer below), which ran cleanly.fixedValuewhich workedcodedFixedValueand crashes. Note that the profile given here is for demonstration, but actual profile varies along y directioninlet { 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.
Beta Was this translation helpful? Give feedback.
All reactions