KVSlab / turtleFSI

Monolithic Fluid-Structure Interaction (FSI) solver
https://turtlefsi2.readthedocs.io/en/latest/
GNU General Public License v3.0
63 stars 24 forks source link

Feature/multiple fluid regions #12

Closed dbruneau-mie closed 2 years ago

dbruneau-mie commented 2 years ago

This feature allows you to assign different fluid and solid properties to different regions of the simulation. For example, to assign multiple fluid regions with different viscosity, you can now pass in a list of fluid ids and corresponding viscosity: mu_f=[3.5E-3, 35.0E-3], # Fluid dynamic viscosity [Pa.s] dx_f_id=[1,1001], # ID of marker in the fluid domain.

Likewise, you can pass in multiple solid ids and the corresponding properties: rho_s=[1.0E3,1.0E3], # Solid density [kg/m3] mu_s=[5.0E4,4.0E4], # Solid shear modulus or 2nd Lame Coef. [Pa] nu_s=[0.45,0.40], # Solid Poisson ratio [-] lambda_s=[4.5E5,4.0E5], # Solid 1st Lame Coef. [Pa] dx_s_id=[2,3], # ID of marker in the solid domain

All old problem files will still work because you can still pass in single values for solid and fluid properties.