Adding solutions to vlm_systems #31
-
I'm trying to use the
Perhaps I'm missing some flag or initialization for my custom fields? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are doing things correctly, however, the issue is in the architecture of FLOWVLM. THE ISSUE THE SOLUTION vlm.FIELDS["Vz"] = [[], "scalar"] # NOTE: The empty array means that it has no dependencies
vlm._addsolution(vlm_system, "Vz", Vz, t=PFIELD.t) That should do the trick. |
Beta Was this translation helpful? Give feedback.
You are doing things correctly, however, the issue is in the architecture of FLOWVLM.
THE ISSUE
In order to catch the potential bug of having the user request FLOWVLM to calculate a field with incomplete information (e.g., request calculating aerodynamic forces without an existing circulation solution), I hardcoded the data structures that are allowed as solution field through the module-wide variable
FIELDS
in FLOWVLM, defined in Line 43 here LINK. This dictionary states the necessary dependencies (for instance,CL
requires an existingGamma
solution field in Line 53), and also whether the solution field is a scalar or vector field. Because of the need of knowing whether it's a scalar or…