ENH: simpler mechanical or thermal use of solidProperties

- in some shell models, only the mechanical properties (rho,E,nu) are
  meaningful or just the basic thermal properties
  (rho,Cp,kappa,emissivity).

  Add a distinction when reading the dictionary entries
  if those properties are mandatory and the thermo properties
  (eg, molWt, Cp, etc) are optional or not.

  This simplifies user input for thermal and vibration shell models.
This commit is contained in:
Mark Olesen
2025-10-06 12:58:21 +02:00
parent e46cc77a5b
commit d6081a18f6
15 changed files with 189 additions and 171 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2506 |
| \\ / O peration | Version: v2512 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -29,22 +29,16 @@ boundaryField
window
{
type vibrationShell;
active true;
p pa;
type vibrationShell;
active true;
p pa;
solid
{
W 20; //Not used
rho 2500;
kappa 200;
Cp 600;
Hf 0;
emissivity 0;
E 7e10;
nu 0.22;
// Mechanical properties
rho 2500;
E 7e10;
nu 0.22;
}
region vibrationShell;
@ -55,7 +49,7 @@ boundaryField
f2 0;
value $internalField;
}
}
wall
{

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2506 |
| \\ / O peration | Version: v2512 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -34,11 +34,10 @@ boundaryField
thermo
{
W 50;
// Thermal properties
rho 1000;
kappa 200;
Cp 600;
Hf 0;
emissivity 0;
}