Skip to content
Snippets Groups Projects
Commit 3062ad3a authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[doc] Update parameter names in comments.

parent d471bc50
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ public: ...@@ -56,7 +56,7 @@ public:
/// Constructs project data by parsing provided configuration. /// Constructs project data by parsing provided configuration.
/// ///
/// \param config_tree Configuration as read from the prj file. /// \param project_config Configuration as read from the prj file.
/// \param project_directory Where to look for files referenced in the /// \param project_directory Where to look for files referenced in the
/// \c config_tree. /// \c config_tree.
/// \param output_directory Where to write simulation output files to. /// \param output_directory Where to write simulation output files to.
......
...@@ -44,9 +44,10 @@ public: ...@@ -44,9 +44,10 @@ public:
void markSharedSegments(); void markSharedSegments();
/** /**
* If the station point is inside the polygon, the method inserts the station into * If the station point is inside the polygon, the method inserts the
* the internal vector of stations. This method works recursive! * station into the internal vector of stations. This method works
* @param pnt the station point * recursive!
* @param station the station point
* @return true if the station is inside the polygon * @return true if the station is inside the polygon
*/ */
bool insertStation(GeoLib::Point const* station); bool insertStation(GeoLib::Point const* station);
......
...@@ -104,9 +104,10 @@ private: ...@@ -104,9 +104,10 @@ private:
/** /**
* Method reads the nodes from stream and stores them in a node vector. * Method reads the nodes from stream and stores them in a node vector.
* For this purpose it uses methods parseNodesFileHeader() and parseNodes(). * For this purpose it uses methods parseNodesFileHeader() and parseNodes().
* @param input the input stream * @param ins the input stream
* @param nodes output vector of nodes. * @param nodes output vector of nodes.
* @return true, if all information is read, false if the method detects an error * @return true, if all information is read, false if the method detects an
* error
*/ */
bool readNodesFromStream(std::ifstream& ins, bool readNodesFromStream(std::ifstream& ins,
std::vector<MeshLib::Node*>& nodes); std::vector<MeshLib::Node*>& nodes);
...@@ -139,13 +140,15 @@ private: ...@@ -139,13 +140,15 @@ private:
std::size_t dim); std::size_t dim);
/** /**
* Method reads the elements from stream and stores them in an element vector. * Method reads the elements from stream and stores them in an element
* For this purpose it uses methods parseElementsFileHeader() and parseElements(). * vector. For this purpose it uses methods parseElementsFileHeader() and
* @param input the input stream * parseElements().
* @param ins the input stream
* @param elements the elements vector to be filled * @param elements the elements vector to be filled
* @param materials the vector containing material ids to be filled * @param materials the vector containing material ids to be filled
* @param nodes the node information needed for creating elements * @param nodes the node information needed for creating elements
* @return true, if all information is read, false if the method detects an error * @return true, if all information is read, false if the method detects an
* error
*/ */
bool readElementsFromStream(std::ifstream& ins, bool readElementsFromStream(std::ifstream& ins,
std::vector<MeshLib::Element*>& elements, std::vector<MeshLib::Element*>& elements,
......
...@@ -105,11 +105,6 @@ std::vector<T> readBinaryArray(std::string const& filename, std::size_t const n) ...@@ -105,11 +105,6 @@ std::vector<T> readBinaryArray(std::string const& filename, std::size_t const n)
return std::vector<T>(); return std::vector<T>();
} }
/**
* \brief truncate a file
*
* \param file_path the file name
*/
void truncateFile(std::string const& filename); void truncateFile(std::string const& filename);
/** /**
......
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
* Adds a vector of points with the given name to GEOObjects. * Adds a vector of points with the given name to GEOObjects.
* @param points vector of pointers to points * @param points vector of pointers to points
* @param name the project name * @param name the project name
* @param pnt_names vector of the names corresponding to the points * @param pnt_id_name_map names corresponding to the points
* @param eps relative tolerance value for testing of point uniqueness * @param eps relative tolerance value for testing of point uniqueness
*/ */
void addPointVec(std::unique_ptr<std::vector<Point*>> points, void addPointVec(std::unique_ptr<std::vector<Point*>> points,
......
...@@ -156,7 +156,7 @@ public: ...@@ -156,7 +156,7 @@ public:
* @param w fracture displacement at current time step * @param w fracture displacement at current time step
* @param sigma_prev stress at previous time step * @param sigma_prev stress at previous time step
* @param sigma stress at current time step * @param sigma stress at current time step
* @param Kep tangent matrix for stress and fracture displacements * @param C tangent matrix for stress and fracture displacements
* @param material_state_variables material state variables * @param material_state_variables material state variables
*/ */
void computeConstitutiveRelation( void computeConstitutiveRelation(
......
...@@ -107,12 +107,12 @@ bool isPointInTriangle( ...@@ -107,12 +107,12 @@ bool isPointInTriangle(
MathLib::TriangleTest algorithm = MathLib::GAUSS); MathLib::TriangleTest algorithm = MathLib::GAUSS);
/** /**
* Tests if the given point p is within the triangle, defined by its edge nodes * Tests if the given point q is within the triangle, defined by its edge nodes
* a, b and c. * a, b and c.
* Using two eps-values it is possible to test an 'epsilon' neighbourhood around * Using two eps-values it is possible to test an 'epsilon' neighbourhood around
* the triangle * the triangle
* as well as an 'epsilon' outside the triangles plane. * as well as an 'epsilon' outside the triangles plane.
* @param p test point * @param q test point
* @param a edge node of triangle * @param a edge node of triangle
* @param b edge node of triangle * @param b edge node of triangle
* @param c edge node of triangle * @param c edge node of triangle
......
...@@ -71,7 +71,8 @@ public: ...@@ -71,7 +71,8 @@ public:
/** /**
* generate boundary elements on the given polyline. * generate boundary elements on the given polyline.
* @param ply the GeoLib::Polyline the nearest mesh nodes are searched for * @param polyline the GeoLib::Polyline the nearest mesh nodes are searched
* for
* @return a vector of boundary element objects * @return a vector of boundary element objects
*/ */
std::vector<MeshLib::Element*> const& getBoundaryElementsAlongPolyline( std::vector<MeshLib::Element*> const& getBoundaryElementsAlongPolyline(
...@@ -79,7 +80,8 @@ public: ...@@ -79,7 +80,8 @@ public:
/** /**
* generate boundary elements on the given surface. * generate boundary elements on the given surface.
* @param sfc the GeoLib::Surface the nearest mesh nodes are searched for * @param surface the GeoLib::Surface the nearest mesh nodes are searched
* for
* @return a vector of boundary element objects * @return a vector of boundary element objects
*/ */
std::vector<MeshLib::Element*> const& getBoundaryElementsOnSurface( std::vector<MeshLib::Element*> const& getBoundaryElementsOnSurface(
......
...@@ -31,8 +31,7 @@ class Mesh2MeshPropertyInterpolation final ...@@ -31,8 +31,7 @@ class Mesh2MeshPropertyInterpolation final
public: public:
/** /**
* Constructor taking the source or input mesh and properties. * Constructor taking the source or input mesh and properties.
* @param source_mesh the mesh the given property information is * @param src_mesh the mesh the given property information is assigned to.
* assigned to.
* @param property_name is the name of a PropertyVector in the \c * @param property_name is the name of a PropertyVector in the \c
* source_mesh * source_mesh
*/ */
...@@ -58,9 +57,11 @@ private: ...@@ -58,9 +57,11 @@ private:
MeshLib::PropertyVector<double>& dest_properties) const; MeshLib::PropertyVector<double>& dest_properties) const;
/** /**
* Method interpolates the element wise given properties to the nodes of the element * Method interpolates the element wise given properties to the nodes of the
* @param interpolated_node_properties the vector must have the same number of entries as * element
* the source mesh has number of nodes, the content of the particular entries will be overwritten * @param interpolated_properties the vector must have the same number of
* entries as the source mesh has number of nodes, the content of the
* particular entries will be overwritten
*/ */
void interpolateElementPropertiesToNodeProperties( void interpolateElementPropertiesToNodeProperties(
std::vector<double>& interpolated_properties) const; std::vector<double>& interpolated_properties) const;
......
...@@ -28,9 +28,10 @@ MeshLib::Mesh* removeElements(const MeshLib::Mesh& mesh, ...@@ -28,9 +28,10 @@ MeshLib::Mesh* removeElements(const MeshLib::Mesh& mesh,
const std::vector<std::size_t> &removed_element_ids, const std::string &new_mesh_name); const std::vector<std::size_t> &removed_element_ids, const std::string &new_mesh_name);
/** /**
* Removes the mesh nodes (and connected elements) given in the nodes-list from the mesh. * Removes the mesh nodes (and connected elements) given in the nodes-list from
* the mesh.
* @param mesh an original mesh whose elements are removed * @param mesh an original mesh whose elements are removed
* @param removed_node_ids a vector of node indices to be removed * @param del_nodes_idx a vector of node indices to be removed
* @param new_mesh_name a new mesh name * @param new_mesh_name a new mesh name
* @return a new mesh object * @return a new mesh object
*/ */
......
...@@ -33,12 +33,12 @@ public: ...@@ -33,12 +33,12 @@ public:
* A user provides a single time step size \f$\Delta t\f$. Total number of * A user provides a single time step size \f$\Delta t\f$. Total number of
* time steps is calculated by * time steps is calculated by
* \f[ * \f[
* n=\frac{t_{\rm end} - t_{\rm initial}}{\Delta t} * n=\frac{t_{\rm n} - t_0}{\Delta t}
* \f]. * \f].
* *
* @param t_initial start time * @param t0 start time
* @param t_end finish time * @param tn finish time
* @param dt uniform time step size * @param dt uniform time step size
*/ */
FixedTimeStepping(double t0, double tn, double dt); FixedTimeStepping(double t0, double tn, double dt);
...@@ -48,12 +48,12 @@ public: ...@@ -48,12 +48,12 @@ public:
* A user can specify \f$\Delta t\f$ for each time step (i.e. \f$\Delta t_1, * A user can specify \f$\Delta t\f$ for each time step (i.e. \f$\Delta t_1,
* \Delta t_2, ..., \Delta t_n\f$). Time at \f$m\f$ th step is given as * \Delta t_2, ..., \Delta t_n\f$). Time at \f$m\f$ th step is given as
* \f[ * \f[
* t_{m}=\sum_{i=1}^m \Delta t_i + t_{\rm initial} * t_{m}=\sum_{i=1}^m \Delta t_i + t_0
* \f]. * \f].
* *
* @param t_initial start time * @param t0 start time
* @param t_end finish time * @param tn finish time
* @param vec_all_dt a vector of all time steps * @param vec_all_dt a vector of all time steps
*/ */
FixedTimeStepping(double t0, double tn, FixedTimeStepping(double t0, double tn,
const std::vector<double>& vec_all_dt); const std::vector<double>& vec_all_dt);
......
...@@ -40,7 +40,7 @@ std::vector<double> uGlobalEnrichments( ...@@ -40,7 +40,7 @@ std::vector<double> uGlobalEnrichments(
/// Remarks: /// Remarks:
/// * branch/junction intersections of two fractures are supported in 2D /// * branch/junction intersections of two fractures are supported in 2D
/// ///
/// @param this_fracID the fracture ID /// @param this_frac_id the fracture ID
/// @param frac_props fracture properties /// @param frac_props fracture properties
/// @param junction_props junction properties /// @param junction_props junction properties
/// @param fracID_to_local a mapping table from a fracture ID to a local index /// @param fracID_to_local a mapping table from a fracture ID to a local index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment