Skip to content

Added a utility of mHM2OGS - #96

Merged
wenqing merged 16 commits into
ufz:masterfrom
wenqing:4mHM
Jun 7, 2018
Merged

wenqing merged 16 commits into
ufz:masterfrom
wenqing:4mHM

Conversation

@wenqing

@wenqing wenqing commented Jun 5, 2018 •

Copy link
Copy Markdown
Member

This PR

  1. adds a utility of mHM2OGS (based on an old toolkit, GIS2FEM).
  2. moves some members of CFEMesh to the new class, mHMPreprocessor, for mHM2OGS.
  3. removes unused codes in msh_mesh.h/cpp and removes some other unused files.

@wenqing

wenqing commented Jun 5, 2018

Copy link
Copy Markdown
Member Author

@norihiro-w In this year, I am preparing the last version of ogs5, ogs5.8. The final version includes what are presented in the PR, merging what developed by BGR for decovelax, improvement in the excavation modelling, bugfixing, code cleaning and so on. Your comments are very appreciated!


03/2010 WW
*/
void ReadShapeFile(std::string const& fname, RasterDataGIS& raster_data)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved from msh_mesh.cpp

}

RasterDataGIS mHMPreprocessor::transfromSingle_mHMdataToNodalFlux(
std::string const& fname, std::string const& ofname, double ratio)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved from msh_mesh.cpp and changed the name from Precipitation2NeumannBC

delete _fem;
}

void mHMPreprocessor::transform_mHMData(const std::string& output_path)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved from msh_mesh.cpp and changed the name from mHM2NeumannBC

@wenqing
wenqing force-pushed the 4mHM branch 6 times, most recently from 198469f to 342f7bc Compare June 5, 2018 14:06
Comment thread FEM/rf_pcs.cpp
vector<double> cell_data_p(size);
vector<double> cell_data_v(size);
for (i = 0; i < size; i++)
for (std::size_t i = 0; i < size; i++)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i is used in line 13620. please check if there is any problem

@wenqing wenqing Jun 6, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no problem in computation but this variable name causes confusion. I have changed the source accordingly in the new commit.

Comment thread MSH/msh_mesh.cpp
#endif
}
else
elem->SetMark(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure if the element marks are set true at initial?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the face elements on the top surface are marked by the condition of
n * z >0, where n is the normal vector of an face element, and z=(0, 0, 1)^T. The orientation of the normal vector is guaranteed by a vector from the the center of 3D element to an node of the face.

In this loop over face elements, elements that satisfy n * z >0 are marked as true, and the others are marked as false. Therefore there is no need to set initial status of the face elements.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the new commit, I moved the else if for the bottom surface to the section of #ifdef output_top_z.

@norihiro-w

Copy link
Copy Markdown
Contributor

@wenqing i have only minor comments

@wenqing

wenqing commented Jun 6, 2018

Copy link
Copy Markdown
Member Author

@norihiro-w Thanks for your comments.

@norihiro-w

Copy link
Copy Markdown
Contributor

looks good from my side

@wenqing
wenqing merged commit fd3b038 into ufz:master Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants