The Open FUSION Toolkit 1.0.0-beta5
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
Data Types | Functions/Subroutines
fem_composite Module Reference

Detailed Description

Classes and infrastructure for composite FE representations.

Authors
Chris Hansen
Date
April 2014

Data Types

type  oft_fem_comp_ptr
 Base FE type. More...
 
type  oft_fem_comp_type
 Composite FE type. More...
 
type  oft_ml_fem_comp_type
 Base FE type. More...
 

Functions/Subroutines

subroutine fem_mat_add_local (self, mat, mloc, iloc, tlocks)
 Add local contributions to full matrix.
 
subroutine fem_mat_create (self, new, mask)
 Create weight vector for FE representation.
 
subroutine fem_mat_destroy_local (self, mloc)
 Create weight vector for FE representation.
 
subroutine fem_mat_setup_local (self, mloc, mask)
 Create weight vector for FE representation.
 
subroutine fem_mat_zero_local (self, mloc)
 Create weight vector for FE representation.
 
subroutine fem_mat_zero_local_rows (self, mloc, flag, irow)
 Zero local contributions.
 
subroutine fem_vec_create (self, new, cache, native)
 Create weight vector for FE representation.
 
subroutine fem_vec_load (self, source, filename, path)
 Load a Lagrange scalar field from a HDF5 restart file.
 
subroutine fem_vec_save (self, source, filename, path, append)
 Save a Lagrange scalar field to a HDF5 restart file.
 
subroutine ml_fem_build_interp (self, minlev)
 Set the current level for lagrange finite elements.
 
subroutine ml_fem_set_level (self, level)
 Set the current level for a ML Compsite-FE structure.
 
subroutine ml_fem_setup (self)
 Create weight vector for FE representation.
 
subroutine ml_fem_vec_create (self, new, level, cache, native)
 Create weight vector for FE representation.
 

Function/Subroutine Documentation

◆ fem_mat_add_local()

subroutine fem_mat_add_local ( class(oft_fem_comp_type), intent(inout)  self,
class(oft_matrix), intent(inout)  mat,
type(oft_local_mat), dimension(:,:), intent(in)  mloc,
type(oft_1d_int), dimension(:), intent(in)  iloc,
integer(kind=omp_lock_kind), dimension(:), intent(inout)  tlocks 
)

Add local contributions to full matrix.

Parameters
[in,out]matFull matrix
[in]mlocLocal matrix
[in]ilocLocal FE entries
[in,out]tlocksOpenMP row thread locks

◆ fem_mat_create()

subroutine fem_mat_create ( class(oft_fem_comp_type), intent(inout)  self,
class(oft_matrix), intent(out), pointer  new,
integer(i4), dimension(:,:), intent(in), optional  mask 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_mat_destroy_local()

subroutine fem_mat_destroy_local ( class(oft_fem_comp_type), intent(inout)  self,
type(oft_local_mat), dimension(:,:), intent(inout)  mloc 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_mat_setup_local()

subroutine fem_mat_setup_local ( class(oft_fem_comp_type), intent(inout)  self,
type(oft_local_mat), dimension(:,:), intent(inout)  mloc,
integer(i4), dimension(:,:), intent(in), optional  mask 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_mat_zero_local()

subroutine fem_mat_zero_local ( class(oft_fem_comp_type), intent(inout)  self,
type(oft_local_mat), dimension(:,:), intent(inout)  mloc 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_mat_zero_local_rows()

subroutine fem_mat_zero_local_rows ( class(oft_fem_comp_type), intent(inout)  self,
type(oft_local_mat), dimension(:,:), intent(inout)  mloc,
logical, dimension(:), intent(in)  flag,
integer(i4), intent(in)  irow 
)

Zero local contributions.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_vec_create()

subroutine fem_vec_create ( class(oft_fem_comp_type), intent(inout)  self,
class(oft_vector), intent(out), pointer  new,
logical, intent(in), optional  cache,
logical, intent(in), optional  native 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ fem_vec_load()

subroutine fem_vec_load ( class(oft_fem_comp_type), intent(inout)  self,
class(oft_vector), intent(inout), target  source,
character(len=*), intent(in)  filename,
character(len=*), intent(in)  path 
)

Load a Lagrange scalar field from a HDF5 restart file.

Parameters
[in,out]sourceDestination field
[in]filenName of source file
[in]pathField path in file

◆ fem_vec_save()

subroutine fem_vec_save ( class(oft_fem_comp_type), intent(inout)  self,
class(oft_vector), intent(inout), target  source,
character(len=*), intent(in)  filename,
character(len=*), intent(in)  path,
logical, intent(in), optional  append 
)

Save a Lagrange scalar field to a HDF5 restart file.

Parameters
[in]sourceSource field
[in]filenName of destination file
[in]tagField label in file

◆ ml_fem_build_interp()

subroutine ml_fem_build_interp ( class(oft_ml_fem_comp_type), intent(inout)  self,
integer(i4), intent(in), optional  minlev 
)

Set the current level for lagrange finite elements.

Parameters
[in]levelDesired level

◆ ml_fem_set_level()

subroutine ml_fem_set_level ( class(oft_ml_fem_comp_type), intent(inout)  self,
integer(i4), intent(in)  level 
)

Set the current level for a ML Compsite-FE structure.

Parameters
[in]levelDesired level

◆ ml_fem_setup()

subroutine ml_fem_setup ( class(oft_ml_fem_comp_type), intent(inout)  self)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)

◆ ml_fem_vec_create()

subroutine ml_fem_vec_create ( class(oft_ml_fem_comp_type), intent(inout)  self,
class(oft_vector), intent(out), pointer  new,
integer(i4), intent(in), optional  level,
logical, intent(in), optional  cache,
logical, intent(in), optional  native 
)

Create weight vector for FE representation.

Parameters
[out]newfield to create
[in]levelFE level for init (optional)
[in]cacheAllow caching (optional)
[in]nativeForce native representation (optional)