parent
2be7201e69
commit
d825aec450
|
@ -77,14 +77,14 @@
|
|||
"file_name = 'shear_keys_base_slab_v20.txt'\n",
|
||||
"\n",
|
||||
"# Read dataset from text file into dataframe, save it as `df`\n",
|
||||
" # <Code here!>\n",
|
||||
"# <Code here!>\n",
|
||||
"\n",
|
||||
"# Extract version number from file name as 'vXX'\n",
|
||||
"# (assume the last 6 characters will always be '...vXX.txt')\n",
|
||||
" # <Code here!>\n",
|
||||
"# <Code here!>\n",
|
||||
"\n",
|
||||
"# Print the head of the dataframe to check it\n",
|
||||
" # <Code here!>\n",
|
||||
"# <Code here!>\n",
|
||||
"\n",
|
||||
"# Construct a dictionary that maps load case numbers to titles (dict auto removes duplicates)\n",
|
||||
"lc_no_to_title_map = dict(zip(df['LC'], df['LC-title'])) \n",
|
||||
|
@ -96,19 +96,19 @@
|
|||
" for lc in df['LC'].unique():\n",
|
||||
"\n",
|
||||
" # Get title of current load case from mapping dictionary\n",
|
||||
" # <Code here!> (see hint 1 below)\n",
|
||||
" # <Code here!> (see hint 1 below)\n",
|
||||
" \n",
|
||||
" # Filter dataframe based on load case and element numbers in shear key\n",
|
||||
" # <Code here!> (see hint 2 below)\n",
|
||||
" # <Code here!> (see hint 2 below)\n",
|
||||
" \n",
|
||||
" # Create figure\n",
|
||||
" # <Code here!> \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Create x-values for plot as numbers running from 1 to length of y-values\n",
|
||||
" # <Code here!> \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Create y-values for plot as shear forces vx\n",
|
||||
" # <Code here!> \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Extract indices where y-values are negative and positive, respectively\n",
|
||||
" idx_neg = np.where(y<0)\n",
|
||||
|
@ -120,16 +120,14 @@
|
|||
" # Extract y-values where y-values are negative and positive, respectively\n",
|
||||
" y_neg, y_pos = np.take(y, idx_neg)[0], np.take(y, idx_pos)[0]\n",
|
||||
" \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Fill between y=0 and the lines where y-values are negative and positive, respectively \n",
|
||||
" # <Code here!> \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Set titles and x- and y-labels\n",
|
||||
" # <Code here!> \n",
|
||||
" # <Code here!> \n",
|
||||
" \n",
|
||||
" # Save figure to png-file with meaningful name that varies in every loop\n",
|
||||
" # <Code here!>\n",
|
||||
" # <Code here!>\n",
|
||||
"~~~\n",
|
||||
"---\n",
|
||||
"### The hints below refer to the comments in the code above.\n",
|
||||
|
|
Loading…
Reference in New Issue