Skip to content

[FL-729] [POC] Dimensioned output #992

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 53 additions & 45 deletions flow360/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,52 @@
Transformation,
)
from flow360.component.simulation.simulation_params import SimulationParams

# from flow360.component.simulation.solver_builtins import (
# CD,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These won't work now.

# CL,
# alphaAngle,
# bet_omega,
# bet_thrust,
# bet_torque,
# betaAngle,
# coordinate,
# forceX,
# forceY,
# forceZ,
# kOmega,
# momentCenterX,
# momentCenterY,
# momentCenterZ,
# momentLengthX,
# momentLengthY,
# momentLengthZ,
# momentX,
# momentY,
# momentZ,
# mu,
# mut,
# nodeNormals,
# nuHat,
# omega,
# omegaDot,
# physicalStep,
# pressureFreestream,
# pseudoStep,
# residualHeatSolver,
# residualNavierStokes,
# residualTransition,
# residualTurbulence,
# solutionHeatSolver,
# solutionNavierStokes,
# solutionTransition,
# solutionTurbulence,
# theta,
# timeStepSize,
# wallFunctionMetric,
# wallShearStress,
# yPlus,
# )
from flow360.component.simulation.time_stepping.time_stepping import (
AdaptiveCFL,
RampCFL,
Expand All @@ -148,51 +194,10 @@
from flow360.component.simulation.user_defined_dynamics.user_defined_dynamics import (
UserDefinedDynamic,
)
from flow360.component.simulation.solver_builtins import (
mut,
mu,
solutionNavierStokes,
residualNavierStokes,
solutionTurbulence,
residualTurbulence,
kOmega,
nuHat,
solutionTransition,
residualTransition,
solutionHeatSolver,
residualHeatSolver,
coordinate,
physicalStep,
pseudoStep,
timeStepSize,
alphaAngle,
betaAngle,
pressureFreestream,
momentLengthX,
momentLengthY,
momentLengthZ,
momentCenterX,
momentCenterY,
momentCenterZ,
bet_thrust,
bet_torque,
bet_omega,
CD,
CL,
forceX,
forceY,
forceZ,
momentX,
momentY,
momentZ,
nodeNormals,
theta,
omega,
omegaDot,
wallFunctionMetric,
wallShearStress,
yPlus,
)
from flow360.component.simulation.variables import control_variables as control
from flow360.component.simulation.variables import solution_variables as solution
from flow360.component.simulation.variables.control_variables import *
from flow360.component.simulation.variables.solution_variables import *
from flow360.component.surface_mesh_v2 import SurfaceMeshV2 as SurfaceMesh
from flow360.component.volume_mesh import VolumeMeshV2 as VolumeMesh
from flow360.environment import Env
Expand Down Expand Up @@ -317,6 +322,9 @@
"PointArray2D",
"StreamlineOutput",
"Transformation",
"MachRef",
"Tref",
"t",
"mut",
"mu",
"solutionNavierStokes",
Expand Down
4 changes: 2 additions & 2 deletions flow360/component/simulation/blueprint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Blueprint: Safe function serialization and visual programming integration."""

from .codegen.generator import model_to_function
from .codegen.parser import function_to_model, expression_to_model
from .codegen.parser import expr_to_model, function_to_model
from .core.function import Function

__all__ = ["Function", "function_to_model", "model_to_function", "expression_to_model"]
__all__ = ["Function", "function_to_model", "model_to_function", "expr_to_model"]
Loading