Skip to content

[FXC-342] [FXC-343] Add output classes for imported surfaces #1352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yifan-flex
Copy link
Contributor

No description provided.

@yifan-flex yifan-flex changed the title Add output classes for imported surfaces [FXC-342] [FXC-343] Add output classes for imported surfaces Aug 11, 2025
Copy link
Collaborator

@benflexcompute benflexcompute left a comment

Choose a reason for hiding this comment

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

What is the plan for back end integration? (Submit imported surfaces to cloud)?

def inject_imported_surface_info(entity: ImportedSurface):
"""inject entity info"""
return {
"meshFile": entity.file_name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have we tested this e2e? Will backend normalize the file name after submitted to S3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't test e2e yet. Submission of imported surfaces will be handled by Feilin's view and edit feature.

@@ -816,7 +901,17 @@ def translate_output(input_params: SimulationParams, translated: dict):
input_params, outputs, inject_isosurface_info
)

##:: Step5: Get translated["monitorOutput"]
##:: Step5: Get translated["importedSurfaceOutput"]
if has_instance_in_list(outputs, ImportedSurfaceOutput):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translator unit tests?

@@ -565,6 +565,17 @@ def _will_be_deleted_by_mesher(self, farfield_method: Literal["auto", "quasi-3d"
raise ValueError(f"Unknown auto farfield generation method: {farfield_method}.")


@final
class ImportedSurface(EntityBase):
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the plan to add accessor in class Geometry for referencing ImprotedSurface?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Waiting for Feilin's feature. We will more likely create a class parallel to Geometry. It will look something like project.imported_surfaces["*"].

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.

2 participants