Skip to content

Conversation

@angranl-flex
Copy link
Contributor

No description provided.

@benflexcompute benflexcompute marked this pull request as draft October 22, 2025 15:46
@angranl-flex angranl-flex force-pushed the angran/forceOutput branch 4 times, most recently from 0c3f55f to 48ac55a Compare October 28, 2025 16:03
@angranl-flex angranl-flex changed the base branch from main to develop October 30, 2025 14:26
@angranl-flex angranl-flex marked this pull request as ready for review October 30, 2025 14:26
]

ForceOutputCoefficientNames = Literal[
"CD",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we somehow unify this with the ones in results_utils.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@angranl-flex angranl-flex changed the base branch from develop to main November 10, 2025 19:11
description="List of force coefficients. Including CL, CD, CFx, CFy, CFz, CMx, CMy, CMz. "
"For surface forces, their SkinFriction/Pressure is also supported, such as CLSkinFriction and CLPressure."
)
models: List[Union[ForceOutputModelType, str]] = pd.Field(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we try removing these string in schemas? The ID string should not be able to reach here.

description="List of surface/volume models whose force contribution will be calculated.",
)
moving_statistic: Optional[MovingStatistic] = pd.Field(
None, description="The moving statistics used to monitor the output."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the description here? (and other moving_statistic)

Suggested change
None, description="The moving statistics used to monitor the output."
None, description="When specified, report moving statistics of the fields instead."

return value
model_ids = []
for model in value:
if isinstance(model, get_args(get_args(ForceOutputModelType)[0])):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the isinstance check here?

Also can we wrap this and share with other places that serializes to id instead of models?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants