Skip to content

CFAST Source: raise material ID limit to 64 characters and print full… - #2554

Merged
rmcdermo merged 2 commits into
firemodels:masterfrom
bewygs:input-limits
Oct 12, 2026
Merged

rmcdermo merged 2 commits into
firemodels:masterfrom
bewygs:input-limits

Conversation

@bewygs

@bewygs bewygs commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Fix #2553

Align the User Guide, Cedit and CeditQt with the input limits CFAST already accepts:

  • Title up to 128 characters
  • No maximum simulation time
  • Material IDs up to 64 characters (same length used for &MATL, &COMP and target MATL_ID), with a new CeditQt test check_material_id_length (I used Claude Code to help me follow the style of the existing tests)

In the THERMAL PROPERTIES table of the .out file, material names were cut to 8 characters. Now they are fully printed. As far as I can tell, nothing in the repo parses the .out file (cfastbot and the scripts use the .csv files) so it shouldn't break anything.

Before:

Name    Conductivity      Specific Heat     Density        Thickness     Emissivity
        (kW/(m  C))       (kJ/(m  C))       (kg/m^3)       (m)
-----------------------------------------------------------------------------------
SwMCCCon     1.60            750.           2.400E+03       0.600           0.900
SwMCCSte     54.0            465.           7.850E+03       1.500E-03       0.900

After (Name first, column sized to the longest name):

Name           Conductivity      Specific Heat     Density        Thickness     Emissivity
               (kW/(m  C))       (kJ/(m  C))       (kg/m^3)       (m)
--------------------------------------------------------------------------------------------
SwMCCConcrete       1.60            750.           2.400E+03       0.600           0.900
SwMCCSteel          54.0            465.           7.850E+03       1.500E-03       0.900

I also updated the outdated example in Output_Chapter.tex.

Note that keeping Name first can make the code a bit harder to read. So if you prefer simpler code, I can put Name last instead, as in the COMPARTMENT MATERIALS table (and I will update Output_Chapter.tex to be aligned):

With Name in the last column:

Conductivity      Specific Heat     Density        Thickness     Emissivity       Name
(kW/(m  C))       (kJ/(m  C))       (kg/m^3)       (m)
--------------------------------------------------------------------------------------
     1.60            750.           2.400E+03       0.600           0.900         SwMCCConcrete
     54.0            465.           7.850E+03       1.500E-03       0.900         SwMCCSteel

Let me know which one you prefer.

… names

- Raise the material ID limit from 16 to 64 characters in Cedit and CeditQt
- Add CeditQt test check_material_id_length
- Print full material names in the THERMAL PROPERTIES table of the .out file
- User Guide: update ID, title and simulation time limits, and the outdated THERMAL PROPERTIES output example

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rmcdermo

Copy link
Copy Markdown
Contributor

I think I prefer name first. Please double check the units for Conductivity and Specific Heat. This may have been wrong previously.

@rmcdermo
rmcdermo merged commit f12fc8a into firemodels:master Oct 12, 2026
5 checks passed
@bewygs

bewygs commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for noticing this. Should I use K instead of C in units like W/(m C) ? I kept C to match the other tables. Also the User Guide gives CONDUCTIVITY in kW/(m·K), but the code uses W/(m·K). I can fix both in another PR if needed.

@rmcdermo

Copy link
Copy Markdown
Contributor

The CeditQt I think uses C for it "engineering units". So, that might be good to keep it all consistent.

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

Successfully merging this pull request may close these issues.

User's Guide and source code disagree on input limits

2 participants