Skip to content
Merged
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
17 changes: 14 additions & 3 deletions examples/advanced/generateDFSEMdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
profiles for verification.
"""

###############################################################################
# First create a 1dprofilDFSEM with create1dprofilDFSEM
# -----------------------------------------------------
#
#

from fluidfoam import create1dprofilDFSEM, read1dprofilDFSEM
import os

basepath = "../../output_samples//DFSEM/"
basepath = "../../output_samples/DFSEM/"

case3d = "3D/"
case1d = "1D/"
Expand All @@ -29,11 +35,16 @@

Y, U, L, R, ny = read1dprofilDFSEM(sol3d, boundary_name, "0", axis)


###############################################################################
# Now plot the profiles of the fields
# -----------------------------------
#

import matplotlib.pyplot as plt

dummy, axarr = plt.subplots(1, 3, sharey=True)
fig, axarr = plt.subplots(figsize = (1, 3), sharey=True)
axarr[0].set_ylabel("Y (m)")

axarr[0].plot(U[:], Y)
axarr[0].set_title("U")
axarr[0].set_xlabel("U (m/s)")
Expand Down