From 6f422217df2f422f10cb48099e6038eb515bb2f2 Mon Sep 17 00:00:00 2001 From: Paul Dechamps <paul.dechamps@uliege.be> Date: Wed, 22 Jan 2025 14:45:43 +0100 Subject: [PATCH] (doc) Added header doc to tests --- blast/mdao/opti_NACA.py | 26 ++++++++++++++++++++++---- blast/mdao/opti_subsonic.py | 26 ++++++++++++++++++++++---- blast/mdao/opti_transonic.py | 26 ++++++++++++++++++++++---- blast/tests/dart/adjoint_2D.py | 2 +- blast/tests/dart/rae2822_3D.py | 4 ++-- blast/validation/highlift_2D.py | 2 +- blast/validation/lann_3D.py | 4 ++-- blast/validation/oneraM6_3D.py | 4 ++-- blast/validation/rae2822_2D.py | 4 ++++ 9 files changed, 78 insertions(+), 20 deletions(-) diff --git a/blast/mdao/opti_NACA.py b/blast/mdao/opti_NACA.py index 7a8729a..88c185d 100644 --- a/blast/mdao/opti_NACA.py +++ b/blast/mdao/opti_NACA.py @@ -1,5 +1,24 @@ -import blast.utils as vutils -import numpy as np +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright 2024 University of Liège +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# @author Paul Dechamps +# @date 2024 +# Optimization case using NACA parametrization from fwk.wutils import parseargs import fwk @@ -9,10 +28,9 @@ from fwk.coloring import ccolors from blast.api.mda_api import BlasterSolver from blast.api.mda_api import BlasterModeUpdater +import numpy as np import openmdao.api as om -import math - def cfgInviscid(nthrds, verb): import os.path # Parameters diff --git a/blast/mdao/opti_subsonic.py b/blast/mdao/opti_subsonic.py index a5f86f6..cccdc9b 100644 --- a/blast/mdao/opti_subsonic.py +++ b/blast/mdao/opti_subsonic.py @@ -1,5 +1,24 @@ -import blast.utils as vutils -import numpy as np +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright 2024 University of Liège +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# @author Paul Dechamps +# @date 2024 +# Optimization for a subsonic case from fwk.wutils import parseargs import fwk @@ -9,10 +28,9 @@ from fwk.coloring import ccolors from blast.api.mda_api import BlasterSolver from blast.api.mda_api import BlasterModeUpdater +import numpy as np import openmdao.api as om -import math - def cfgInviscid(nthrds, verb): import os.path # Parameters diff --git a/blast/mdao/opti_transonic.py b/blast/mdao/opti_transonic.py index b886609..7ca7ffe 100644 --- a/blast/mdao/opti_transonic.py +++ b/blast/mdao/opti_transonic.py @@ -1,5 +1,24 @@ -import blast.utils as vutils -import numpy as np +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright 2024 University of Liège +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# @author Paul Dechamps +# @date 2024 +# Optimization for a transonic case from fwk.wutils import parseargs import fwk @@ -9,10 +28,9 @@ from fwk.coloring import ccolors from blast.api.mda_api import BlasterSolver from blast.api.mda_api import BlasterModeUpdater +import numpy as np import openmdao.api as om -import math - def cfgInviscid(nthrds, verb): import os.path # Parameters diff --git a/blast/tests/dart/adjoint_2D.py b/blast/tests/dart/adjoint_2D.py index 049a421..604019f 100644 --- a/blast/tests/dart/adjoint_2D.py +++ b/blast/tests/dart/adjoint_2D.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 University of Liège +# Copyright 2024 University of Liège # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/blast/tests/dart/rae2822_3D.py b/blast/tests/dart/rae2822_3D.py index f61bc9f..40e3d06 100644 --- a/blast/tests/dart/rae2822_3D.py +++ b/blast/tests/dart/rae2822_3D.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 University of Liège +# Copyright 2023 University of Liège # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ # @author Paul Dechamps -# @date 2022 +# @date 2023 # Test the blaster 3D implementation. # Tested functionalities; # - Fully turbulent 3D compressible flow. diff --git a/blast/validation/highlift_2D.py b/blast/validation/highlift_2D.py index 09ec1bd..71003c7 100644 --- a/blast/validation/highlift_2D.py +++ b/blast/validation/highlift_2D.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 University of Liège +# Copyright 2024 University of Liège # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/blast/validation/lann_3D.py b/blast/validation/lann_3D.py index 290502f..f1bd808 100644 --- a/blast/validation/lann_3D.py +++ b/blast/validation/lann_3D.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 University of Liège +# Copyright 2023 University of Liège # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ # @author Paul Dechamps -# @date 2022 +# @date 2023 # Test the blast implementation on the 3D LANN wing. # Imports. diff --git a/blast/validation/oneraM6_3D.py b/blast/validation/oneraM6_3D.py index 2819db8..8e2924f 100644 --- a/blast/validation/oneraM6_3D.py +++ b/blast/validation/oneraM6_3D.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 University of Liège +# Copyright 2023 University of Liège # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ # @author Paul Dechamps -# @date 2022 +# @date 2023 # Test the blast implementation on the 3D ONERA M6 wing. # Imports. diff --git a/blast/validation/rae2822_2D.py b/blast/validation/rae2822_2D.py index 5753d61..dfc077b 100644 --- a/blast/validation/rae2822_2D.py +++ b/blast/validation/rae2822_2D.py @@ -18,6 +18,10 @@ # @author Paul Dechamps # @date 2022 +# This test case comes from Cook,P. et al published in +# AGARD Report AR, Vol. 138, 1979, p. 47. +# Experimental conditions (AoA and Mach) are corrected in NPARC +# alliance verification and validation archive 2000. # Farfield mesh size is 4.547 which corresponds to a growth ratio of 1.1 # Imports. -- GitLab