plot_stress_strain: plot_stress_strain

View source: R/plot_stress_strain.R

plot_stress_strainR Documentation

plot_stress_strain

Description

Draws a stress strain plot from compression data as read by read_texture_analyzer_tab and typically smoothened by smooth_texture_analyzer_data

Usage

plot_stress_strain(compression_data, analysis,start_height_mm, plot_evaluation=TRUE,pressure_column="pressure",distance_column="Distance",direction_column="direction",
title="stress-strain")

Arguments

compression_data

Compression data as read by read_texture_analyzer_tab

analysis

Analyzed data as evaluated by foam_mechanical_analysis

start_height_mm

Starting height for the compression test, a priori in mm. Needs to be recorded when doing the test as the textureAnalyzer saves the data with starting Distance 0 at the beginning of the test, regardless of the absolute height

plot_evaluation

Indicates whether analysis data should be indicated directly in the plot

pressure_column

Possibility to indicate an alternative pressure column, for instance when correcting for buoyancy

distance_column

Possibility to indicate an alternative distance column

direction_column

Possibility to indicate an alternative direction column

title

Title of the graphic

Details

Converts the distance values to strain values by using the start_height_mm information and the touchpoint information contained in the analysis argument. Together with the pressure column in compression_data, a stress-strain plot is drawn. In addition, if plot_evaluation is TRUE, detailed data from the analysis variable is included. In text form, the Young moduli at compression (direction "down") and relaxation (direction "up") are provided, both for the elastic and plateau segement. The touchpoint, central elastic point and central plateau points are marked with red circles, and the relevant slopes for the Young modulus calculation are indicated as red lines.

Value

None

Author(s)

Thomas Braschler

Examples

path = system.file('sampleData', package = 'textureAnalyzerGels');
sampleGel = smooth_texture_analyzer_data(read_texture_analyzer_tab(paste(path,"sampleGel.tab",sep="/"),chuck_diameter=4e-3),sd = 0.05,lm_region_upper_mm=0.05)
start_height_mm=2.5

analysis=foam_mechanical_analysis(
	sampleGel,start_height=start_height_mm,approximate_gel_touch_point=0.15)
	
plot_stress_strain(sampleGel, analysis,start_height_mm, title="Sample plot stress-strain")	


tbgitoo/textureAnalyzerGels documentation built on March 30, 2022, 4:53 a.m.