public class PressureForce extends Object implements ExternalEnergy
Constructor and Description |
---|
PressureForce(DeformableMesh3D mesh,
double pressure) |
Modifier and Type | Method and Description |
---|---|
double |
getEnergy(double[] pos) |
double |
getMaxMixedArea() |
void |
setMaxMixedArea(double m) |
void |
updateForces(double[] positions,
double[] fx,
double[] fy,
double[] fz) |
public PressureForce(DeformableMesh3D mesh, double pressure)
public void setMaxMixedArea(double m)
public void updateForces(double[] positions, double[] fx, double[] fy, double[] fz)
updateForces
in interface ExternalEnergy
public double getEnergy(double[] pos)
getEnergy
in interface ExternalEnergy
public double getMaxMixedArea()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.