https://mooseframework.inl.gov
Loading...
Searching...
No Matches
shifted_boundary_method
include
meshmodifiers
InterceptedElementModifier.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#pragma once
11
12
#include "
SBMElementSubdomainModifierBase.h
"
13
14
class
Function
;
15
class
PointInSurfaceCheckInterface
;
16
21
class
InterceptedElementModifier
:
public
SBMElementSubdomainModifierBase
22
{
23
public
:
24
static
InputParameters
validParams
();
25
InterceptedElementModifier
(
const
InputParameters
&
parameters
);
26
27
protected
:
28
virtual
SubdomainID
computeSubdomainID
()
override
;
29
virtual
void
initialSetup
()
override
;
30
32
const
Function
*
_parsed_function
;
33
34
private
:
35
enum class
DistanceType
36
{
37
NONE
= -1,
38
SIGNED_DISTANCE
= 0,
39
GEOMETRY
= 1
40
};
41
44
const
PointInSurfaceCheckInterface
*
getCheckedInOutTest
();
45
47
SubdomainID
_subdomain_id_inside
;
49
SubdomainID
_subdomain_id_outside
;
50
52
Real
_threshold
;
53
57
bool
_is_domain_inside_surface
;
58
60
const
PointInSurfaceCheckInterface
*
_in_out_test_base
;
61
65
DistanceType
_in_out_test_type
=
DistanceType::NONE
;
66
};
SBMElementSubdomainModifierBase.h
Function
InterceptedElementModifier
Modifies element subdomains dynamically based on an analytical signed distance function or a point-in...
Definition
InterceptedElementModifier.h:22
InterceptedElementModifier::_in_out_test_type
DistanceType _in_out_test_type
How to classify the element to be inside or outside.
Definition
InterceptedElementModifier.h:65
InterceptedElementModifier::validParams
static InputParameters validParams()
Definition
InterceptedElementModifier.C:19
InterceptedElementModifier::_in_out_test_base
const PointInSurfaceCheckInterface * _in_out_test_base
user object for in-out test
Definition
InterceptedElementModifier.h:60
InterceptedElementModifier::initialSetup
virtual void initialSetup() override
Validate that exactly one geometry source (signed_dist_function or in_out_test) is set,...
Definition
InterceptedElementModifier.C:83
InterceptedElementModifier::_subdomain_id_outside
SubdomainID _subdomain_id_outside
IDs for subdomain classification (outside)
Definition
InterceptedElementModifier.h:49
InterceptedElementModifier::getCheckedInOutTest
const PointInSurfaceCheckInterface * getCheckedInOutTest()
Fetches the "in_out_test" user object and validates it implements the point-in-surface check interfac...
Definition
InterceptedElementModifier.C:66
InterceptedElementModifier::DistanceType
DistanceType
Definition
InterceptedElementModifier.h:36
InterceptedElementModifier::DistanceType::GEOMETRY
@ GEOMETRY
InterceptedElementModifier::DistanceType::NONE
@ NONE
InterceptedElementModifier::DistanceType::SIGNED_DISTANCE
@ SIGNED_DISTANCE
InterceptedElementModifier::_parsed_function
const Function * _parsed_function
Store the parsed function.
Definition
InterceptedElementModifier.h:32
InterceptedElementModifier::_subdomain_id_inside
SubdomainID _subdomain_id_inside
IDs for subdomain classification (inside)
Definition
InterceptedElementModifier.h:47
InterceptedElementModifier::_threshold
Real _threshold
Threshold value for classification.
Definition
InterceptedElementModifier.h:52
InterceptedElementModifier::computeSubdomainID
virtual SubdomainID computeSubdomainID() override
Definition
InterceptedElementModifier.C:107
InterceptedElementModifier::_is_domain_inside_surface
bool _is_domain_inside_surface
When true, the retained (inside) domain is the region enclosed by the surface (signed distance below ...
Definition
InterceptedElementModifier.h:57
ElementSubdomainModifier::parameters
const InputParameters & parameters() const
PointInSurfaceCheckInterface
SBMElementSubdomainModifierBase
Common partial-element classification parameters for shifted boundary element modifiers.
Definition
SBMElementSubdomainModifierBase.h:20
libMesh::TestClass
InputParameters
Generated on Wed Nov 11 2026 20:26:20 for https://mooseframework.inl.gov by
1.9.8