MFC: Pre-Process
High-fidelity multiphase flow simulation
Loading...
Searching...
No Matches
m_model.fpp.f90 File Reference

Functions/Subroutines

program __m_model_fpp_f90__
 
subroutine s_read_stl_binary (filepath, model)
 This procedure reads a binary STL file.
 
subroutine s_read_stl_ascii (filepath, model)
 This procedure reads an ASCII STL file.
 
subroutine s_read_stl (filepath, model)
 This procedure reads an STL file.
 
subroutine s_read_obj (filepath, model)
 This procedure reads an OBJ file.
 
type(t_model) function f_model_read (filepath)
 This procedure reads a mesh from a file.
 
subroutine s_write_stl (filepath, model)
 This procedure writes a binary STL file.
 
subroutine s_write_obj (filepath, model)
 This procedure writes an OBJ file.
 
subroutine s_model_write (filepath, model)
 This procedure writes a binary STL file.
 
subroutine s_model_free (model)
 This procedure frees the memory allocated for an STL mesh.
 
logical function f_read_line (iunit, line)
 
subroutine s_skip_ignored_lines (iunit)
 
real(kind(0d0)) function f_model_is_inside (model, point, spacing, spc)
 This procedure, recursively, finds whether a point is inside an octree.
 
logical function f_intersects_triangle (ray, triangle)
 This procedure checks if a ray intersects a triangle.
 

Function/Subroutine Documentation

◆ __m_model_fpp_f90__()

program __m_model_fpp_f90__
Here is the call graph for this function:

◆ f_intersects_triangle()

logical function __m_model_fpp_f90__::f_intersects_triangle ( type(t_ray), intent(in) ray,
type(t_triangle), intent(in) triangle )
private

This procedure checks if a ray intersects a triangle.

Parameters
rayRay.
triangleTriangle.
Returns
True if the ray intersects the triangle, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_model_is_inside()

real(kind(0d0)) function __m_model_fpp_f90__::f_model_is_inside ( type(t_model), intent(in) model,
intent(in) point,
intent(in) spacing,
integer, intent(in) spc )
private

This procedure, recursively, finds whether a point is inside an octree.

Parameters
modelModel to search in.
pointPoint to test.
spacingSpace around the point to search in (grid spacing).
spcNumber of samples per cell.
Returns
True if the point is inside the octree, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_model_read()

type(t_model) function __m_model_fpp_f90__::f_model_read ( character(len=*), intent(in) filepath)
private

This procedure reads a mesh from a file.

Parameters
filepathPath to the file to read.
Returns
The model read from the file.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_read_line()

logical function __m_model_fpp_f90__::f_read_line ( integer, intent(in) iunit,
character(80), intent(out) line )
private
Here is the caller graph for this function:

◆ s_model_free()

subroutine __m_model_fpp_f90__::s_model_free ( type(t_model), intent(inout) model)
private

This procedure frees the memory allocated for an STL mesh.

Here is the caller graph for this function:

◆ s_model_write()

subroutine __m_model_fpp_f90__::s_model_write ( character(len=*), intent(in) filepath,
type(t_model), intent(in) model )
private

This procedure writes a binary STL file.

Parameters
filepathPath to the file to write.
trianglesTriangles to write.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_obj()

subroutine __m_model_fpp_f90__::s_read_obj ( character(len=*), intent(in) filepath,
type(t_model), intent(out) model )
private

This procedure reads an OBJ file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_stl()

subroutine __m_model_fpp_f90__::s_read_stl ( character(len=*), intent(in) filepath,
type(t_model), intent(out) model )
private

This procedure reads an STL file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_stl_ascii()

subroutine __m_model_fpp_f90__::s_read_stl_ascii ( character(len=*), intent(in) filepath,
type(t_model), intent(out) model )
private

This procedure reads an ASCII STL file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_stl_binary()

subroutine __m_model_fpp_f90__::s_read_stl_binary ( character(len=*), intent(in) filepath,
type(t_model), intent(out) model )
private

This procedure reads a binary STL file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_skip_ignored_lines()

subroutine __m_model_fpp_f90__::s_skip_ignored_lines ( integer, intent(in) iunit)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_write_obj()

subroutine __m_model_fpp_f90__::s_write_obj ( character(len=*), intent(in) filepath,
type(t_model), intent(in) model )
private

This procedure writes an OBJ file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_write_stl()

subroutine __m_model_fpp_f90__::s_write_stl ( character(len=*), intent(in) filepath,
type(t_model), intent(in) model )
private

This procedure writes a binary STL file.

Here is the call graph for this function:
Here is the caller graph for this function: