From 11b9246489a0a50ff297f28ac6f08153c537179f Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Thu, 1 Feb 2024 11:24:35 -0800 Subject: [PATCH] rm output, plotting dirs --- experiments/ClimaCore/heat-diffusion/run.jl | 3 +- output/README.md | 1 - plotting/README.md | 1 - plotting/plot-field.py | 56 --------------------- 4 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 output/README.md delete mode 100644 plotting/README.md delete mode 100644 plotting/plot-field.py diff --git a/experiments/ClimaCore/heat-diffusion/run.jl b/experiments/ClimaCore/heat-diffusion/run.jl index ce7d1d3cf8..c99985dc0e 100644 --- a/experiments/ClimaCore/heat-diffusion/run.jl +++ b/experiments/ClimaCore/heat-diffusion/run.jl @@ -376,5 +376,4 @@ Plots.png( #src end #src end #src -#src dirname = "heat" -#src linkfig("output/$(dirname)/heat_end.png", "Heat End Simulation") +#src linkfig(ARTIFACTS_DIR * "/heat_end.png", "Heat End Simulation") diff --git a/output/README.md b/output/README.md deleted file mode 100644 index b4eb40088b..0000000000 --- a/output/README.md +++ /dev/null @@ -1 +0,0 @@ -Run generated output directory. diff --git a/plotting/README.md b/plotting/README.md deleted file mode 100644 index 56a1cc6029..0000000000 --- a/plotting/README.md +++ /dev/null @@ -1 +0,0 @@ -Quick plotting utilities diff --git a/plotting/plot-field.py b/plotting/plot-field.py deleted file mode 100644 index d6d6a62dd5..0000000000 --- a/plotting/plot-field.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env python -# coding: utf-8 - -# To set up pyvista use Miniconda and pip e.g. -# -# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -# chmod +x Miniconda3-latest-MacOSX-x86_64.sh -# ./Miniconda3-latest-MacOSX-x86_64.sh -b -p miniconda3 -# source miniconda3/bin/activate -# conda create --name vtk_env python=3.8 -# conda activate vtk_env -# conda install nodejs matplotlib -# pip install jupyter pyvista ipyvtk_simple -# -# can be be run as a script e.g. -# -# python plot-field.py -# -# or in notebook - -# -# jupyter notebook - -import vtk -import pyvista as pv -from matplotlib import cm -import numpy as np - -fcode='θ' -# fcode='state_debug' - -mesh22 = pv.read('Coupler_UnitTest_atmosphere_long_num0004.pvtu') - -xc=mesh22.get_array('xc') -yc=mesh22.get_array('yc') -zc=mesh22.get_array('zc') - - -R=np.sqrt(np.square(xc)+np.square(yc)+np.square(zc)) - -# Mask to surface and "top" half of sphere. -tol=1e-1 -sval=( np.abs(R[0]-R)>tol ) | ( zc>0 ) - -l=np.array(list(range(len( R )))); l[ np.abs(R[0]-R)