Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The usage of the porosity model #226

Open
CalLightmanCode opened this issue Jun 25, 2023 · 0 comments
Open

The usage of the porosity model #226

CalLightmanCode opened this issue Jun 25, 2023 · 0 comments

Comments

@CalLightmanCode
Copy link

Dear LLNL/spheral:
I have used the spheral to simulate an impact scenario where an aluminum box impacts the basalt box. The Equations of State is TillotsonEquationOfState and the strength model is ConstantStrength. How can I use the Porosity Models in Spheral? For example, the strain-based porosity model (spheral/src/SolidMaterial/PorousStrengthModel.hh, spheral/src/SolidMaterial/PorousEquationOfState.hh). Thanks for your kindness helping.

My code is illustrated as follows:

eosAl = TillotsonEquationOfState(materialName = "aluminum",
                                etamin = etamin,
                                etamax = etamax,
                                units = units)
strengthAl = ConstantStrength(materialName = "aluminum",
                              units = units)
rho0Al = eosAl.referenceDensity

 porositystrengthAl= PorousStrengthModel(strengthAl)
 porosityeosAl= PorousEquationOfState(eosAl)

porositymodel = StrainPorosity(porosityeosAl,porositystrengthAl,AsteroidNode,
                                         phi0 = porosity,                 # Initial porosity
                                         epsE = 0.0,                 # Elastic-plastic transition strain
                                         epsX = -0.4,                # Threshold strain between compaction regimes
                                         kappa = 0.8,                # Compaction rate
                                        gammaS0 = 2.7,              # Reference gamma at full density
                                         cS0 = 0.522,                # Reference sound speed at full density
                                         c0 = 0.522 * 1.0)           # Reference sound speed at initial porosity
 output("porositymodel")
integrator = CheapSynchronousRK2Integrator(db)
integrator.appendPhysicsPackage(hydro)
integrator.appendPhysicsPackage(damageModel)
integrator.appendPhysicsPackage(porositymodel)

Although the porosity parameters can be read in VISIT, the crater has no difference between varied Initial porosity. I wonder if I have any mistakes in the usage of the porosity model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant