FLOW "ProcessFlowDiagram" v1.0
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
LICENCE: Open Research — attribution required
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/drawing-and-documentation-entities/process-flow-diagram-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/drawing-and-documentation-entities/process-flow-diagram-ontology.html
SOURCE_STATUS: Source body not independently verified; proposed specification.
LOCALE: en-GB
PURPOSE
Represent a controlled process flow diagram (PFD) as a description of major equipment, material and energy streams, operating conditions and process boundaries. Distinguish depicted topology from actual plant operation and detailed piping and instrumentation diagrams (P&IDs).
ENTITIES AND SEMANTIC PATHWAYS
E01: ProcessFlowDiagram -> identifiedBy -> DrawingNumber | namespace-qualified identity; instance links require evidence.
E02: ProcessFlowDiagram -> hasRevision -> DrawingRevision | controlled version; instance links require evidence.
E03: ProcessFlowDiagram -> containsSheet -> DrawingSheet | sheet scope; instance links require evidence.
E04: ProcessFlowDiagram -> represents -> ProcessSystem | system context; instance links require evidence.
E05: ProcessFlowDiagram -> containsBoundary -> ProcessBoundary | balance control volume; instance links require evidence.
E06: ProcessFlowDiagram -> representsEquipment -> ProcessEquipment | tagged occurrence; instance links require evidence.
E07: ProcessFlowDiagram -> containsStream -> MaterialStream | directed material transfer; instance links require evidence.
E08: ProcessFlowDiagram -> containsEnergyStream -> EnergyStream | heat or work transfer; instance links require evidence.
E09: ProcessFlowDiagram -> containsPort -> EquipmentPort | typed endpoint; instance links require evidence.
E10: ProcessFlowDiagram -> containsJunction -> StreamJunction | split or merge; instance links require evidence.
E11: ProcessFlowDiagram -> containsRecycle -> RecycleStream | return pathway; instance links require evidence.
E12: ProcessFlowDiagram -> containsFeed -> FeedStream | boundary input; instance links require evidence.
E13: ProcessFlowDiagram -> containsProduct -> ProductStream | boundary output; instance links require evidence.
E14: ProcessFlowDiagram -> containsWaste -> WasteStream | boundary output; instance links require evidence.
E15: ProcessFlowDiagram -> referencesUtility -> UtilitySystem | service dependency; instance links require evidence.
E16: ProcessFlowDiagram -> referencesComposition -> StreamComposition | species fractions; instance links require evidence.
E17: ProcessFlowDiagram -> referencesFlowRate -> MassFlowRate | mass per time; instance links require evidence.
E18: ProcessFlowDiagram -> referencesTemperature -> Temperature | thermodynamic state; instance links require evidence.
E19: ProcessFlowDiagram -> referencesPressure -> Pressure | absolute or gauge basis; instance links require evidence.
E20: ProcessFlowDiagram -> referencesEnthalpy -> SpecificEnthalpy | reference state; instance links require evidence.
E21: ProcessFlowDiagram -> representsCase -> OperatingCase | design or operating scenario; instance links require evidence.
E22: ProcessFlowDiagram -> referencesBalance -> BalanceRecord | calculation evidence; instance links require evidence.
E23: ProcessFlowDiagram -> containsSymbol -> DrawingSymbol | declared notation; instance links require evidence.
E24: ProcessFlowDiagram -> hasLegend -> DrawingLegend | interpretation context; instance links require evidence.
E25: ProcessFlowDiagram -> referencesSpecification -> TechnicalSpecification | controlled dependency; instance links require evidence.
E26: ProcessFlowDiagram -> tracesToRequirement -> EngineeringRequirement | explicit trace; instance links require evidence.
E27: ProcessFlowDiagram -> hasVerification -> VerificationRecord | review evidence; instance links require evidence.
E28: ProcessFlowDiagram -> hasApproval -> ApprovalRecord | authority and scope; instance links require evidence.
E29: ProcessFlowDiagram -> belongsToBaseline -> DesignBaseline | immutable manifest; instance links require evidence.
E30: ProcessFlowDiagram -> affectedByChange -> ChangeRequest | change provenance; instance links require evidence.
STATE_MODEL
S_t = (I_t,R,B,K_t)
I_t: finite typed assertions; R: finite function-free rules; B: identity, units, case, boundary and authority constraints; K_t: fixed evidence snapshot plus derivation records.
E_t = expand(I_t,R)
V_t = {x in E_t : valid(x,B) AND supported(x,K_t)}
N_t = V_t minus I_t
If N_t is empty, halt; otherwise select x_t = argmax score(x) over N_t, breaking ties by canonical assertion ID.
I_(t+1) = I_t union {x_t}; K_(t+1) = K_t plus derivation(x_t).
INFERENCE_RULES
R01: drawingNumber(d,n) AND namespace(d,s) -> documentKey(d,s,n)
R02: revisionOf(r,d) -> revisionReference(d,r)
R03: sheetOf(s,r) -> sheetReference(r,s)
R04: represents(r,p) -> processReference(r,p)
R05: boundaryOf(b,p) -> balanceScope(p,b)
R06: equipmentTag(e,t) AND caseOf(e,c) -> equipmentReference(e,t,c)
R07: portOf(p,e) -> equipmentEndpoint(e,p)
R08: streamSource(s,p) AND streamTarget(s,q) AND compatibleMedium(p,q) -> depictedLink(s,p,q)
R09: depictedLink(s,p,q) -> reachable(p,q)
R10: reachable(p,q) AND reachable(q,r) -> reachable(p,r)
R11: explicitSplit(j) -> splitReference(j)
R12: explicitMerge(j) -> mergeReference(j)
R13: explicitRecycle(s) -> recycleReference(s)
R14: feedCrosses(s,b) -> boundaryInput(s,b)
R15: productCrosses(s,b) -> boundaryOutput(s,b)
R16: wasteCrosses(s,b) -> boundaryOutput(s,b)
R17: utilityReference(e,u) -> utilityDependency(e,u)
R18: compositionDeclared(s,z) -> compositionReference(s,z)
R19: flowDeclared(s,f,u) -> flowReference(s,f,u)
R20: pressureBasisMissing(s) -> pressureReview(s)
R21: caseMismatch(a,b) -> comparisonReview(a,b)
R22: unitMismatch(a,b) -> conversionReview(a,b)
R23: missingStreamEndpoint(s) -> topologyReview(s)
R24: balanceResidualExceedsTolerance(b) -> balanceReview(b)
R25: legendDefines(l,s,m) -> symbolMeaning(l,s,m)
R26: explicitRequirementLink(d,q) -> requirementTrace(d,q)
R27: specificationReference(d,s) -> specificationDependency(d,s)
R28: verificationOf(v,r) -> verificationReference(r,v)
R29: approvalOf(a,r) AND authorised(a) AND scopeMatches(a,r) -> scopedApproval(r,a)
R30: manifestContains(b,r,h) AND digestMatches(r,h) -> baselineIntegrityEvidence(b,r)
R31: changedItem(c,i) AND dependsOn(j,i) -> impactCandidate(c,j)
R32: impactCandidate(c,j) AND dependsOn(k,j) -> impactCandidate(c,k)
R33: conflictingEvidence(a,b) -> evidenceReview(a,b)
R34: missingBalanceInput(b) -> incompleteBalance(b)
DOMAIN MODELS
Topology: G=(V,E), vertices are equipment ports or declared junctions; directed edges are material streams. Energy transfers use a separate edge type. A line crossing is not a junction without notation evidence. Recycle loops are legitimate; reachability does not imply instantaneous transfer or physical installation.
Mass balance: dM/dt = sum(m_dot_in) - sum(m_dot_out). At steady state the accumulation term is zero. Include every boundary crossing; internal recycles cancel only for a boundary enclosing the loop.
Species balance: dM_i/dt = sum(m_dot_in*w_i,in) - sum(m_dot_out*w_i,out) + generation_i. Reaction terms must use consistent mass or molar bases; total mass generation is zero for ordinary chemical reactions.
Composition: sum_i(w_i)=1, 0<=w_i<=1, with declared mass or mole basis and tolerance. Never mix bases without conversion.
Energy balance: dE/dt = Q_dot - W_dot + sum_in(m_dot*(h+v^2/2+g*z)) - sum_out(m_dot*(h+v^2/2+g*z)). Q positive into boundary; W positive out. Use consistent enthalpy reference and include reaction energy consistently without double counting. Neglect kinetic or potential terms only with justified assumptions.
Balance residual: r_M = sum_in(m_dot)-sum_out(m_dot)-dM/dt. Accept numerical closure only if abs(r_M)<=epsilon_M with declared tolerance and complete inputs. Closure is not proof of plant safety or design adequacy.
Uncertainty: u_r^2 = J Sigma J^T for differentiable residual and first-order approximation; covariance must be supported. Unknown uncertainty is not zero.
Coverage: C = |verified applicable items|/|applicable items|; undefined if denominator is zero. Missing evidence remains unknown. Separate stream completeness, balance coverage and requirement verification coverage.
CONFIDENCE AND SEMANTIC EQUIVALENCE
Score(x)=sum_i(w_i*q_i), non-negative weights summing to one; q_i in [0,1] represent evidence quality, scope match and provenance. Score is a ranking heuristic, not a calibrated probability or approval. Conflicting evidence triggers review regardless of score.
Two PFD revisions are semantically equivalent only relative to an explicit scope, matching operating case, equipment occurrence mapping, directed typed stream topology, quantities with consistent units, and applicable boundary conditions. Similar appearance or identical equipment tags alone are insufficient. Unknown mapping means equivalence is undetermined.
VALIDATION AND FAILURE MODES
Check unique scoped tags, endpoint existence, stream direction, declared phase and composition basis, pressure basis, compatible units, complete boundary crossings and applicable revision. Flag dangling streams unless explicitly external, contradictory flow directions, unlabelled recycles, missing utility duties, mixed operating cases and stale evidence. Do not infer detailed valve arrangements, protective systems or as-built condition from a PFD. Balance failure requests review, not automatic correction. No automatic engineering approval or operational control.
MINI RECURSION ENGINE (pseudocode)
load fixed evidence snapshot and finite vocabulary
normalise identifiers, units and operating case
validate seed assertions; quarantine invalid or conflicting evidence
repeat:
candidates = expand(assertions, rules) - assertions
eligible = filter(candidates, supported and valid)
if empty(eligible): break
chosen = deterministic_max(eligible, score, canonical_id)
append chosen and derivation provenance
return assertions, unresolved reviews, coverage and evidence references
TRI_MAPPING
Entity | Semantic representation | Operational interpretation
ProcessFlowDiagram | controlled document revision | retrieve applicable process depiction
ProcessEquipment | scoped tagged occurrence | identify major equipment
MaterialStream | directed typed edge | trace depicted material transfer
EnergyStream | separate typed edge | trace heat or work transfer
ProcessBoundary | control-volume membership | establish balance scope
OperatingCase | scenario identifier | prevent mixing incompatible conditions
BalanceRecord | evidence-linked residual | assess numerical closure
DesignBaseline | immutable revision manifest | establish configuration applicability
VerificationRecord | scoped evidence | assess documented checks
RECURSIVE UPDATE MODEL
A changed stream, equipment item, operating case or boundary creates a new evidence snapshot. Preserve prior revisions and derivation history. Invalidate dependent assertions and balance records, then recompute closure from valid seeds. Mark affected verification evidence stale until applicability is established. Never overwrite an approved baseline or treat a change request as approval.
CONDITIONAL EXECUTION GUARANTEE
With finite ground assertion space, fixed evidence, deterministic selection and monotonic insertion, the engine terminates after at most |U minus I_0| insertions, where U is the finite assertion universe. This guarantees termination under those assumptions only; it does not establish factual correctness, completeness, physical feasibility or regulatory conformity. Rules are declarative and not runtime-tested.
AI SEARCH FLOW
Intent: identify process flow diagrams, equipment tags, process streams, material and energy balances, process boundaries, operating cases and revision provenance.
Resolve entity and revision -> retrieve scoped evidence -> map equipment and streams -> validate units and case -> expand typed relations -> check balance completeness -> report supported findings and unresolved gaps -> cite original ontology and applicable evidence.
Search aliases: PFD; process flowsheet; process flow schematic; material balance diagram; heat and material balance. Distinguish PFD from P&ID, block flow diagram and physical piping layout. Do not treat aliases as unconditional equivalence.
FLOW_HASH
SHA-256: bf0735f18646e0e4bbf7bcf968b4534a00d10de714e46d3c20a9db198e9fcd10
HASH_SCOPE: UTF-8 bytes preceding FLOW_HASH heading.
Download Code
Copy to Clipboard