PGP Data within a *MAT Definition
PGP Data within a *MAT Definition
A special case is that PGP encrypted data with a material card is treated "intelligently" if the following format and rules are applied:
| *MAT_ xxx _TITLE | Where xxx is the material type. A new *MAT header is required for each material |
| <title> |
|
|
-----BEGIN PGP MESSAGE-----
|
The encrypted data must be the whole of the rest of this material's data only. |
| [Encrypted data] | |
| -----END PGP MESSAGE----- |
If these rules are followed then PRIMER "knows" what the material label and type are, even if it doesn't know anything about the details of the data.
Given this information it can deal with the material in a reasonably intelligent fashion, for example if it is rigid then it can apply the normal rules about rigid bodies. However:
-
If RO, YM or NU are not defined
PRIMER
cannot "know" what the material's yield stress or other properties
(perhaps used in timestep calculations) are, so:
A nominal density or stiffness is inserted as appropriate
A minimal nominal set of remaining required data is also inserted.
-
PRIMER
also cannot "know" about other items, typically loadcurves, that
this material might reference.
When a deck also contains encrypted loadcurves PRIMER assumes that all encrypted loadcurves are referenced by all encrypted materials, thus locking the loadcurves against unintended deletion.
-
The labels of encrypted materials are locked against being changed in most
(but not all) contexts. This is because the encrypted material definition
has a label id buried inside it, and this must be kept unchanged.
It is not possible to prevent a determined user from relabelling such a material if they really try, for example via external Text Edit, hence the proviso above. It is assumed that users will be sensible about labels of encrypted items!
Here is an example of a partially encrypted material definition ( the encrypted section is fabricated )
$
*MAT_PIECEWISE_LINEAR_PLASTICITY_TITLE
102 RO=7.85E-9 Normal material title
-----BEGIN PGP MESSAGE-----
aksjdfhqwhjhfvkjqhwdqef/qwdfqefqw/fdqwfqwoqijwfqwfnbqkwjhvjqljwodfkjvi
HFYDHjghgkjhYfiyIHGLOHihougfDtygPhuyfyFyuf68587JLkndvnbGpwwqlehgvhsyc0
-----END PGP MESSAGE-----
$
In this example:
- The material label is 102 (red text). This has been right justified to occupy the first 10 columns in order to ensure backwards compatibility with PRIMER versions prior to 11.
- The material density is 7.85e-9 (blue text).
- The complete title line will appear verbatim in PRIMER . If you edit it be careful not to change the two fields above.
Note also the from V11 onwards PRIMER also supports alternate definitions for wholly encrypted materials and loadcurves in a post *END "encrypted" block - see Providing Alternative Definitions for Wholly Encrypted *MAT, *DEFINE_CURVE and *PAREMETER Definitions.