| Line | |
|---|
| 1 | /*!\file PostprocessingEnthalpyx.cpp
|
|---|
| 2 | * \brief: execute processing of variables after computation: water drainage, subglacial melting rates, update of thermal BCs
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #include "./PostprocessingEnthalpyx.h"
|
|---|
| 6 | #include "../../shared/shared.h"
|
|---|
| 7 | #include "../../toolkits/toolkits.h"
|
|---|
| 8 |
|
|---|
| 9 | void PostprocessingEnthalpyx(FemModel* femmodel){
|
|---|
| 10 | /*Intermediary*/
|
|---|
| 11 | int i;
|
|---|
| 12 | Element* element=NULL;
|
|---|
| 13 |
|
|---|
| 14 | /*drain excess water fraction: */
|
|---|
| 15 | for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 16 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 17 | element->DrainWaterfraction();
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | /*Compute basal melting rates: */
|
|---|
| 21 | for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 22 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 23 | element->ComputeBasalMeltingrate();
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | /*Update basal dirichlet BCs for enthalpy: */
|
|---|
| 27 | for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 28 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 29 | element->UpdateThermalBasalConstraints();
|
|---|
| 30 | }
|
|---|
| 31 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.