From a4c5725fdb3f62c08e8cdf0619b7eb0513584c61 Mon Sep 17 00:00:00 2001 From: Meissam L Bahlali Date: Sat, 3 Aug 2024 12:12:34 +0100 Subject: [PATCH] Metal exchange: Add the option to add a copied field of the metal field BEFORE the exchange happens. --- ICFERST/schemas/multiphase.rnc | 17 +++++++++++++++++ ICFERST/schemas/multiphase.rng | 23 +++++++++++++++++++++++ ICFERST/src/Multiphase_TimeLoop.F90 | 3 +++ ICFERST/src/multi_eos.F90 | 28 ++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) diff --git a/ICFERST/schemas/multiphase.rnc b/ICFERST/schemas/multiphase.rnc index c0878ddff..c8f123db3 100755 --- a/ICFERST/schemas/multiphase.rnc +++ b/ICFERST/schemas/multiphase.rnc @@ -3403,6 +3403,23 @@ scalar_field_choice = generic_aliased_field } ) + }| + ## Copied Field of the Metal Field BEFORE the exchange steps happen (dissolution or precipitation). + ## Name has to start with CopiedField_Metal (e.g., CopiedField_Metal_Cu). + element scalar_field { + attribute rank { "0" }, + attribute name { xsd:string }, + ( + element diagnostic { + internal_algorithm, + attribute metal_field_name { string }, + pressure_mesh_choice, + diagnostic_scalar_field + }| + element aliased { + generic_aliased_field + } + ) } # Insert new diagnostic scalar fields here using the template: # element scalar_field { diff --git a/ICFERST/schemas/multiphase.rng b/ICFERST/schemas/multiphase.rng index 362d385c7..82759befd 100755 --- a/ICFERST/schemas/multiphase.rng +++ b/ICFERST/schemas/multiphase.rng @@ -4178,6 +4178,29 @@ Adapting to this field is not recommended + + Copied Field of the Metal Field BEFORE the exchange steps happen (dissolution or precipitation). + Name has to start with CopiedField_Metal (e.g., CopiedField_Metal_Cu). + + 0 + + + CopiedField_Metal + + + + + + + + + + + + + + +