EXTERNAL_CODE_SURFACE
Specifies a fluid surface that interacts with a solid/structural surface from an external code.
Type
AcuSolve Command
Syntax
EXTERNAL_CODE_SURFACE("name") {parameters...}
Qualifier
User-given name.
Parameters
- shape (enumerated) [no default]
- Shape of the surfaces in this set.
- three_node_triangle or tri3
- Three-node triangle.
- four_node_quad or quad4
- Four-node quadrilateral
- six_node_triangle or tri6
- Six-node triangle.
- element_set or elem_set (string) [no default]
- User-given name of the parent element set.
- surfaces (array) [no default]
- List of element surfaces.
- surface_sets (list) [={}]
- List of surface set names (strings) to use in this command. When using this option, the connectivity, shape, and parent element of the surfaces are provided by the surface set container and it is unnecessary to specify the shape, element_set and surfaces parameters directly to this command. This option is used in place of directly specifying these parameters. In the event that both of the surface_sets and surfaces parameters are provided, the full collection of surface elements is read and a warning message is issued. The surface_sets option is the preferred method to specify the surface elements. This option provides support for mixed element topologies and simplifies pre-processing and post-processing.
- coupling_type (enumerated) [=structural]
- Manner in which the AcuSolve surface is coupled with the external
code.
- structural
- AcuSolve surface is coupled with either a line or surface element set in the external code. This option requires mesh_displacement_type = tied when coupling to line elements.
- line
- AcuSolve surface is coupled with a line element set in the external code. This option requires mesh_displacement_type = tied.
- surface
- AcuSolve surface is coupled with a surface element set in the external code.
- rigid_body
- AcuSolve surface is coupled with a rigid body in the external code.
- coupling_direction (enumerated) [=both]
- External code coupling direction for the surface.
- both
- Exchanges information with the external code object in both directions. AcuSolve sends loading to the external code and the external code sends displacements back to AcuSolve.
- to_external_code
- AcuSolve sends loading information to the external code, but no displacement information is returned.
- from_external_code
- AcuSolve does not send loading information to the external code, but displacement information is provided to AcuSolve at each step.
- rigid_body_name (string) [no default]
- Name of the rigid body the external code surface is coupled with. Used with coupling_type = rigid_body.
- velocity_type (enumerated) [=wall]
- Type of the velocity boundary condition.
- wall
- Fluid follows the solid (no-slip).
- slip
- Fluid slips on the solid.
- temperature_type (enumerated) [=tied]
- Type of the temperature boundary condition.
- none
- No fluid temperature boundary condition (adiabatic).
- tied
- Fluid temperature same as solid wall.
- mesh_displacement_type (enumerated) [=tied]
- Type of the mesh displacement boundary condition.
- tied
- Fluid mesh is fixed to surface.
- slip
- Fluid mesh slides on the solid.
- turbulence_wall_type (enumerated) [=wall_function]
- Type of the turbulence wall modeling. Used with wall velocity type.
- none
- No wall modeling. When this option is set, the surface does not participate in the wall distance calculation for turbulence and no wall modeling is performed.
- low_reynolds_number or low_re
- Low Reynolds number damping functions.
- wall_function or func
- Turbulence wall function. Requires roughness_height.
- running_average_wall_function
- Turbulence wall function based on running average variables. Requires roughness_height.
- roughness_height (real) >=0 [=0]
- Average wall roughness height. Used with low_reynolds_number, wall_function and running_average_wall_function turbulence wall types.
- wall_function_heat_flux_factor >=1 [=1]
- Constant factor used to scale the turbulent thermal conductivity within the first element off the wall. Used with turbulence_wall_type = wall_function and running_average_wall_function.
- external_code_tags (list) [={}]
- Array of strings used to this fluid surface to solid surfaces. The null list matches to all solid surfaces and beams.
- precedence (integer) [=1]
- Precedence of the nodal boundary conditions defined here with respect to others defined elsewhere. Highest value has precedence on a per-variable basis.
- gap_factor (real) >=0 [=1]
- Nondimensional (with respect to the length of an element face) maximum gap allowed for two element faces to be in contact. No maximum if zero.
- gap (real) >=0 [=0]
- Dimensional maximum gap allowed for two element faces to be in contact. No maximum if zero.
Description
EXTERNAL_CODE_SURFACE( "fluid wetted surface" ){
shape = four_node_quad
element_set = "fluid region"
surfaces = { 1, 101, 1, 3, 11, 12 ;
2, 102, 3, 5, 13, 14 ; }
velocity_type = wall
temperature_type = tied
mesh_displacement_type = slip
turbulence_wall_type = wall_function
roughness_height = 0
precedence = 1
gap_factor = 1
gap = 0
}
- Element Shape
- Surface Shape
- four_node_tet
- three_node_triangle
- five_node_pyramid
- three_node_triangle
- five_node_pyramid
- four_node_quad
- six_node_wedge
- three_node_triangle
- six_node_wedge
- four_node_quad
- eight_node_brick
- four_node_quad
- ten_node_tet
- six_node_triangle
The surfaces parameter contains the faces of the element set. This parameter is a multi-column array. The number of columns depends on the shape of the surface. For three_node_triangle, this parameter has five columns, corresponding to the element number (of the parent element set), a unique (within this set) surface number, and the three nodes of the element face. For four_node_quad, surfaces has six columns, corresponding to the element number, a surface number, and the four nodes of the element face. For six_node_triangle, surfaces has eight columns, corresponding to the element number, a surface number, and the six nodes of the element face. One row per surface must be given. The three, four, or six nodes of the surface may be in any arbitrary order, since they are reordered internally based on the parent element definition.
1 101 1 3 11
2 102 3 5 13
EXTERNAL_CODE_SURFACE( "fluid wetted surface" ) {
shape = four_node_quad
element_set = "fluid region"
surfaces = Read( "dcfsi.wet.ebc" )
...
}
SURFACE_SET( "tri faces" ) {
surfaces = { 1, 1, 1, 2, 4 ;
2, 2, 3, 4, 6 ;
3, 3, 5, 6, 8 ; }
shape = three_node_triangle
volume_set = "tetrahedra"
}
SURFACE_SET( "quad faces" ) {
surfaces = { 1, 1, 1, 2, 4, 9 ;
2, 2, 3, 4, 6, 12 ;
3, 3, 5, 6, 8, 15 ; }
shape = four_node_quad
volume_set = "prisms"
EXTERNAL_CODE_SURFACE ( "fluid wetted surface" ) {
surface_sets = {"tri_faces", "quad_faces"}
...
}
tri faces
quad faces
and read using:
EXTERNAL_CODE_SURFACE ( "fluid wetted surface" ) {
surface_sets = Read("surface_sets.srfst")
...
}
The mixed topology version of the EXTERNAL_CODE_SURFACE command is preferred. This version provides support for multiple element topologies within a single instance of the command and simplifies pre-processing and post-processing. In the event that both the surface_sets and surfaces parameters are provided in the same instance of the command, the full collection of surface elements is read and a warning message is issued. Although the single and mixed topology formats of the commands can be combined, it is strongly recommended that they are not.
- The distance between the point and the face is less than gap; and
- The distance between the point and the face, normalized by the length of the face, is less than gap_factor.
Each constraint is ignored if the corresponding parameter is zero. If both parameters are zero, then there are no constraints and each quadrature point is guaranteed to be in contact with another face. Fluid forces are actually applied to the solid model only if the fluid quadrature point is determined to be in contact with a solid face. Similarly, nodal boundary conditions from the solid model are applied only if the solid model node is in contact with the external code surface.
EXTERNAL_CODE_SURFACE( "Drill" ) {
...
external_code_tags = {"0"}
...
}
EXTERNAL_CODE_SURFACE( "Riser" ) {
...
external_code_tags = {}
...
}
The "Drill" surface will be matched only to solid surfaces tagged with "0", while the "Riser" surface will be matched to all solid surfaces.
This EXTERNAL_CODE_SURFACE command determines all the boundary conditions on the wetted surface, that is, all the points that are determined to be in contact, if precedence is sufficiently high. The parameter mesh_displacement_type may be either slip, allowing the mesh to slide against the solid, such as in a half-filled tank,; or tied, where the fluid mesh displacement is tied to the solid. For slip, the solid surface acts just like a guide surface; see the description of guide_surface type in the NODAL_BOUNDARY_CONDITION command for details about the algorithm used. If velocity_type is set to wall, the fluid velocity moves with the solid wall. If viscous effects are not important, it may be set to slip. For the former case, turbulence nodal boundary conditions are set automatically. Wall modeling is also set with turbulence_wall_type and roughness_height.
Temperature is set equal to the solid temperature if temperature_type is tied, otherwise the wetted surface is adiabatic, unless other temperature boundary conditions are specified on the surface.