floripy.hydrodynamics package#
Submodules#
floripy.hydrodynamics.ellipsoid_rf module#
- floripy.hydrodynamics.ellipsoid_rf.get_force_torque_prolate(a, c, d, u_inf, omega_inf, E_inf)[source]#
floripy.hydrodynamics.ellipsoids module#
- class floripy.hydrodynamics.ellipsoids.Ellipsoids_hydrodynamics(model, flowfield, kwargs)[source]#
Bases:
HydrodynamicsBaseMethods
getrans_gmm_ge(ge[, out])Returns the product A'MA, where A is a matrix, M is the mobility matrix for force and torque, and A' is the transpose of A.
getrans_grm_ge(ge[, out])Returns the product A'RA, where A is a matrix, R is the resistance matrix for force and torque, and A' is the transpose of A.
Returns the Cholesky decomposition of the grand mobility matrix.
gmmvec(vec[, out])Returns the product of the grand mobility matrix with another numpy vector.
gmmvel([out])Returns the product of the grand mobility matrix with the fluid velocity at the given points.
Returns the Cholesky decomposition of the grand resistance matrix.
grmvec(vec[, out])Returns the product of the grand resistance matrix with another numpy vector.
grmvel([out])Returns the product of the grand resistance matrix with the fluid velocity at the given points.
update
- getrans_gmm_ge(ge, out=None)#
Returns the product A’MA, where A is a matrix, M is the mobility matrix for force and torque, and A’ is the transpose of A.
- getrans_grm_ge(ge, out=None)#
Returns the product A’RA, where A is a matrix, R is the resistance matrix for force and torque, and A’ is the transpose of A.
- gmm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand mobility matrix.
- gmmvec(vec, out=None)#
Returns the product of the grand mobility matrix with another numpy vector.
- gmmvel(out=None)#
Returns the product of the grand mobility matrix with the fluid velocity at the given points.
- grm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand resistance matrix.
- grmvec(vec, out=None)#
Returns the product of the grand resistance matrix with another numpy vector.
- grmvel(out=None)#
Returns the product of the grand resistance matrix with the fluid velocity at the given points.
floripy.hydrodynamics.hydrodynamicsbase module#
- class floripy.hydrodynamics.hydrodynamicsbase.HydrodynamicsBase[source]#
Bases:
objectMethods
getrans_gmm_ge(ge[, out])Returns the product A'MA, where A is a matrix, M is the mobility matrix for force and torque, and A' is the transpose of A.
getrans_grm_ge(ge[, out])Returns the product A'RA, where A is a matrix, R is the resistance matrix for force and torque, and A' is the transpose of A.
Returns the Cholesky decomposition of the grand mobility matrix.
gmmvec(vec[, out])Returns the product of the grand mobility matrix with another numpy vector.
gmmvel([out])Returns the product of the grand mobility matrix with the fluid velocity at the given points.
Returns the Cholesky decomposition of the grand resistance matrix.
grmvec(vec[, out])Returns the product of the grand resistance matrix with another numpy vector.
grmvel([out])Returns the product of the grand resistance matrix with the fluid velocity at the given points.
update
- grmvec(vec, out=None)[source]#
Returns the product of the grand resistance matrix with another numpy vector.
- gmmvec(vec, out=None)[source]#
Returns the product of the grand mobility matrix with another numpy vector.
- grmvel(out=None)[source]#
Returns the product of the grand resistance matrix with the fluid velocity at the given points.
- gmmvel(out=None)[source]#
Returns the product of the grand mobility matrix with the fluid velocity at the given points.
- getrans_grm_ge(ge, out=None)[source]#
Returns the product A’RA, where A is a matrix, R is the resistance matrix for force and torque, and A’ is the transpose of A.
floripy.hydrodynamics.oblates module#
- class floripy.hydrodynamics.oblates.Oblates_hydrodynamics(model, flowfield, kwargs)[source]#
Bases:
HydrodynamicsBaseMethods
getrans_gmm_ge(ge[, out])Returns the product A'MA, where A is a matrix, M is the mobility matrix for force and torque, and A' is the transpose of A.
getrans_grm_ge(ge[, out])Returns the product A'RA, where A is a matrix, R is the resistance matrix for force and torque, and A' is the transpose of A.
Returns the Cholesky decomposition of the grand mobility matrix.
gmmvec(vec[, out])Returns the product of the grand mobility matrix with another numpy vector.
gmmvel([out])Returns the product of the grand mobility matrix with the fluid velocity at the given points.
Returns the Cholesky decomposition of the grand resistance matrix.
grmvec(vec[, out])Returns the product of the grand resistance matrix with another numpy vector.
grmvel([out])Returns the product of the grand resistance matrix with the fluid velocity at the given points.
update
- getrans_gmm_ge(ge, out=None)#
Returns the product A’MA, where A is a matrix, M is the mobility matrix for force and torque, and A’ is the transpose of A.
- getrans_grm_ge(ge, out=None)#
Returns the product A’RA, where A is a matrix, R is the resistance matrix for force and torque, and A’ is the transpose of A.
- gmm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand mobility matrix.
- gmmvec(vec, out=None)#
Returns the product of the grand mobility matrix with another numpy vector.
- gmmvel(out=None)#
Returns the product of the grand mobility matrix with the fluid velocity at the given points.
- grm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand resistance matrix.
- grmvec(vec, out=None)#
Returns the product of the grand resistance matrix with another numpy vector.
- grmvel(out=None)#
Returns the product of the grand resistance matrix with the fluid velocity at the given points.
floripy.hydrodynamics.prolates module#
floripy.hydrodynamics.spheres module#
- class floripy.hydrodynamics.spheres.Spheres_hydrodynamics(model, flowfield, kwargs)[source]#
Bases:
HydrodynamicsBaseMethods
getrans_gmm_ge(ge[, out])Returns the product A'MA, where A is a matrix, M is the mobility matrix for force and torque, and A' is the transpose of A.
getrans_grm_ge(ge[, out])Returns the product A'RA, where A is a matrix, R is the resistance matrix for force and torque, and A' is the transpose of A.
Returns the Cholesky decomposition of the grand mobility matrix.
gmmvec(vec[, out])Returns the product of the grand mobility matrix with another numpy vector.
gmmvel([out])Returns the product of the grand mobility matrix with the fluid velocity at the given points.
Returns the Cholesky decomposition of the grand resistance matrix.
grmvec(vec[, out])Returns the product of the grand resistance matrix with another numpy vector.
grmvel([out])Returns the product of the grand resistance matrix with the fluid velocity at the given points.
update(time)Update the flowfield if required.
- getrans_gmm_ge(ge, out=None)#
Returns the product A’MA, where A is a matrix, M is the mobility matrix for force and torque, and A’ is the transpose of A.
- getrans_grm_ge(ge, out=None)#
Returns the product A’RA, where A is a matrix, R is the resistance matrix for force and torque, and A’ is the transpose of A.
- gmm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand mobility matrix.
- gmmvec(vec, out=None)#
Returns the product of the grand mobility matrix with another numpy vector.
- gmmvel(out=None)#
Returns the product of the grand mobility matrix with the fluid velocity at the given points.
- grm_cholesky_decomp()#
Returns the Cholesky decomposition of the grand resistance matrix.
- grmvec(vec, out=None)#
Returns the product of the grand resistance matrix with another numpy vector.
- grmvel(out=None)#
Returns the product of the grand resistance matrix with the fluid velocity at the given points.