Exemplo n.º 1
0
 def test_phaseplot3D(self):
     plot.phasePlot3D(self.model)
Exemplo n.º 2
0
model.state_relations = [state1,state2] # Which state relation we want to use

# We want to solve for 40 seconds at 100Hz
model.time = np.arange(0,40.01,0.01)

# We want to slide at 1 um/s for 10 s, then at 10 um/s for 31
lp_velocity = np.ones_like(model.time)
lp_velocity[10*100:] = 10. # Velocity after 10 seconds is 10 um/s

# Set the model load point velocity, must be same shape as model.model_time
model.loadpoint_velocity = lp_velocity

# Run the model!
model.solve()

# Save the model output
model.savetxt('model_output.txt')

# Make the 2D phase plot
plot.phasePlot(model)

# Make a 3D phase plot
plot.phasePlot3D(model)

# Make a plot in displacement
plot.dispPlot(model)

# Make a plot in time
plot.timePlot(model)
Exemplo n.º 3
0
 def test_phaseplot3D(self):
     plot.phasePlot3D(self.model)
state2 = staterelations.DieterichState()
state2.b = 0.001  # Empirical coefficient for the evolution effect
state2.Dc = 5.  # Critical slip distance

model.state_relations = [state1,state2] # Which state relation we want to use

# We want to solve for 40 seconds at 100Hz
model.time = np.arange(0,40.01,0.01)

# We want to slide at 1 um/s for 10 s, then at 10 um/s for 31
lp_velocity = np.ones_like(model.time)
lp_velocity[10*100:] = 10. # Velocity after 10 seconds is 10 um/s

# Set the model load point velocity, must be same shape as model.model_time
model.loadpoint_velocity = lp_velocity

# Run the model!
model.solve()

# Make the 2D phase plot
plot.phasePlot(model)

# Make a 3D phase plot
plot.phasePlot3D(model)

# Make a plot in displacement
plot.dispPlot(model)

# Make a plot in time
plot.timePlot(model)