Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Manuals/FDS_User_Guide/FDS_User_Guide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7950,7 +7950,7 @@ \section{Device Location and Orientation}
\begin{lstlisting}
&DEVC XYZ=3.0,5.6,2.3, PROP_ID='Acme Sprinkler 123', ID='Spk_39' /
\end{lstlisting}
The physical coordinates of the device are given by a triplet of real numbers, \ct{XYZ}. FDS uses these coordinates to determine in which gas or wall cell the device is located. Devices are evaluated using cell centered or face centered values of the cell the device is located in; no interpolation is done. The properties of the device are contained on the \ct{PROP} line designated by \ct{PROP_ID}, which will be explained below for each of the special devices included in FDS. The character string \ct{ID} is merely a descriptor to identify the device in the output files, and if any action is tied to its activation.
The physical coordinates of the device are given by a triplet of real numbers, \ct{XYZ}. FDS uses these coordinates to determine in which gas or wall cell the device is located. Devices are evaluated using cell centered or face centered values of the cell the device is located in; no interpolation is done. The properties of the device are contained on the \ct{PROP} line designated by \ct{PROP_ID}, which will be explained below for each of the special devices included in FDS. The character string \ct{ID} is merely a descriptor to identify the device in the output files, and if any action is tied to its activation. There should be no commas in \ct{ID} because commas are used as column separators in the output file.

Not all devices need to be associated with a particular set of properties via the \ct{PROP_ID}. For example, pointwise output quantities are specified with a single \ct{DEVC} line, like
\begin{lstlisting}
Expand Down Expand Up @@ -12269,7 +12269,7 @@ \section{\texorpdfstring{{\tt DUMP}}{DUMP} (Output Parameters)}
\ct{CLIP_RESTART_FILES} & Logical & Section~\ref{info:restart} & & \ct{T} \\ \hline
\ct{COLUMN_DUMP_LIMIT} & Logical & Section~\ref{info:out:DEVC} & & \ct{F} \\ \hline
\ct{CTRL_COLUMN_LIMIT} & Integer & Section~\ref{info:out:DEVC} & & 254 \\ \hline
\ct{DECIMAL_SPECIFIER} & Character & Section~\ref{chapter:output_formats} & & \ct{'PERIOD'} \\ \hline
\ct{DECIMAL_SPECIFIER} & Character & Chapter~\ref{chapter:output_formats} & & \ct{'PERIOD'} \\ \hline
\ct{DEVC_COLUMN_LIMIT} & Integer & Section~\ref{info:out:DEVC} & & 254 \\ \hline
\ct{DIAGNOSTICS_INTERVAL} & Integer & Section~\ref{info:monitoring_progress} & & 100 \\ \hline
\ct{DT_BNDF} & Real & Section~\ref{info:DT_DUMP} & s & $\Delta t$\ct{/NFRAMES} \\ \hline
Expand Down Expand Up @@ -14483,6 +14483,7 @@ \chapter{Error Codes}
896 \> \ct{DEVC ... requires XB for SPATIAL_STATISTIC.} \> Section~\ref{info:statistics} \\
897 \> \ct{DEVC ... NODE 1 = NODE 2.} \> Section~\ref{info:hvacoutputquantities} \\
898 \> \ct{DEVC ... should not use XYZ or XB for an HVAC output QUANTITY.} \> Section~\ref{info:hvacoutputquantities} \\
899 \> \ct{DEVC ... ID should not contain a comma.} \> Section~\ref{info:DEVC} \\
\> \> \\
901 \> \ct{CTRL ... must have a FUNCTION_TYPE.} \> Section~\ref{info:basic_control} \\
902 \> \ct{CTRL ... PID controller must be given a TARGET_VALUE.} \> Section~\ref{info:CONTROL_PID} \\
Expand Down Expand Up @@ -14677,7 +14678,7 @@ \chapter{Output File Formats}

The output from the code consists of the file \ct{CHID.out}, plus various data files that are described below. Most of these output files are written out by the subroutines within \ct{dump.f90}, and can easily be modified to accommodate various plotting packages.

Some FDS results are written to ``comma-separated value'' (\ct{.csv}) files. By default, the decimal point is represented by a period and the column separator by a comma. You can change this so that the decimal point is represented by a comma and the column separator by a semi-colon by setting \ct{DECIMAL_SPPECIFIER='COMMA'} on the \ct{DUMP} line.
Some FDS results are written to ``comma-separated value'' (\ct{.csv}) files. By default, the decimal point is represented by a period and the column separator by a comma. You can change this so that the decimal point is represented by a comma and the column separator by a semi-colon by setting \ct{DECIMAL_SPECIFIER='COMMA'} on the \ct{DUMP} line.

\section{Diagnostic Output ({\tt .out})}
\label{out:file}
Expand Down
10 changes: 9 additions & 1 deletion Source/read.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14898,7 +14898,7 @@ SUBROUTINE PROC_DEVC
USE DEVICE_VARIABLES, ONLY: DEVICE_TYPE,SUBDEVICE_TYPE,DEVICE,N_DEVC,PROPERTY,PROPERTY_TYPE,MAX_HISTOGRAM_NBINS,&
N_HISTOGRAM

INTEGER :: N,NN,NNN,NS,MAXCELLS,I,J,K,NOM,NR,II,JJ,KK
INTEGER :: N,NN,NNN,NS,MAXCELLS,I,J,K,NOM,NR,II,JJ,KK,COMMA_POSITION
REAL(EB) :: XX,YY,ZZ,DISTANCE,SCANDISTANCE,DX,DY,DZ,XI,YJ,ZK,F,DFDD,NU,UU,TOL,RE,ZZ_G(1:N_TRACKED_SPECIES),MU_G,K_G
TYPE (DEVICE_TYPE), POINTER :: DV
TYPE (SUBDEVICE_TYPE), POINTER :: SDV
Expand All @@ -14912,6 +14912,14 @@ SUBROUTINE PROC_DEVC

DV => DEVICE(N)

! Check if the ID has a comma (or semi-colon)

COMMA_POSITION = INDEX(DV%ID,SEPARATOR)
IF (COMMA_POSITION>0) THEN
WRITE(MESSAGE,'(4A)') 'ERROR(899): DEVC ',TRIM(DV%ID),' should not contain a ',SEPARATOR
CALL SHUTDOWN(MESSAGE) ; RETURN
ENDIF

! Check for HVAC outputs with no HVAC inputs

IF ((DV%DUCT_ID/='null' .OR. DV%NODE_ID(1)/='null') .AND. .NOT. HVAC_SOLVE) THEN
Expand Down
Loading