|
Last change
on this file since 16560 was 16560, checked in by Mathieu Morlighem, 12 years ago |
|
merged trunk-jpl and trunk for revision 16554
|
|
File size:
998 bytes
|
| 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 | /*Compute basal melting rates: */
|
|---|
| 15 | for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 16 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 17 | element->ComputeBasalMeltingrate();
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | /*drain excess water fraction: */
|
|---|
| 21 | /*for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 22 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 23 | element->DrainWaterfraction();
|
|---|
| 24 | }
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 | /*Update basal dirichlet BCs for enthalpy: */
|
|---|
| 28 | for (i=0;i<femmodel->elements->Size();i++){
|
|---|
| 29 | element=dynamic_cast<Element*>(femmodel->elements->GetObjectByOffset(i));
|
|---|
| 30 | element->UpdateBasalConstraintsEnthalpy();
|
|---|
| 31 | }
|
|---|
| 32 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.