HOHQMesh.jl API
HOHQMesh.add!
— Methodadd!(proj::Project, crv::Dict{String,Any}, boundaryName::String)
Add a curve to the inner boundary named boundaryName
.
HOHQMesh.add!
— Methodadd!(proj::Project, obj::Dict{String,Any})
Add a curve to the outer boundary or a refinement reion to the project
HOHQMesh.addBackgroundGrid!
— MethodaddBackgroundGrid!(proj::Project, x0::Array{Float64}, dx::Array{Float64}, N::Array{Int})
Add the background grid block using the left corner, x0, the grid size dx, and the number of intervals in each direction. Use this when there is no outer boundary defined in the model. This version mimics HOHQMesh's backgroundGrid block, but the version
addBackgroundGrid!(proj::Project, box::Array{Float64}, N::Array{Int} )
is a lot easier to use.
TODO: Change HOHQMesh and delete this way to specify the domain and use the bounding box one instead.
HOHQMesh.addBackgroundGrid!
— MethodaddBackgroundGrid!(proj::Project, box::Array{Float64}, N::Array{Int} )
Add the background grid block with bounding box = [TOP, LEFT, BOTTOM, RIGHT] and the number of intervals in each diredction. Use this when there is no outer boundary defined in the model.
HOHQMesh.addBackgroundGrid!
— MethodaddBackgroundGrid(proj::Project, bgSize::Array{Float64})
Add the background grid block with the grid size to be a 3-vector. Use this when there is an outer boundary defined in the model.
HOHQMesh.addBackgroundGrid!
— MethodaddBackgroundGrid!(proj::Project, dict::Dict{String,Any})
Used only for undo/redo.
HOHQMesh.addCurveToInnerBoundary!
— MethodaddCurveToInnerBoundary!(proj::Project, crv::Dict{String,Any}, boundaryName::String)
Add a curve to the inner boundary with name boundaryName
. If an inner boundary of that name does not exist, one is created.
HOHQMesh.addCurveToOuterBoundary!
— MethodaddCurveToOuterBoundary!(proj::Project, crv::Dict{String,Any})
Add a curve to the outer boundary. The curves must be added in order counter-clockwise
HOHQMesh.addInnerBoundaryWithName!
— MethodaddInnerBoundaryWithName!(proj::Project,name::String)
Create a new empty inner boundary with the given name.
HOHQMesh.addObserver
— MethodaddObserver(observer::Any, note::String, f::Any)
f
is the function to be executed (called) when a notification of name note
is given.
The function called upon notification must have the signature f(observer, sender, args...)
HOHQMesh.addOuterBoundary!
— MethodaddOuterBoundary!(proj::Project, outerBoundary::Dict{String,Any})
Add an empty outer boundary to the project. There can be only one. This function is only used as part of an undo operation removing the outer boundary.
HOHQMesh.addRefinementRegion!
— MethodaddRefinementRegion!(proj::Project,r::Dict{String,Any})
Add the refinement region to the project
HOHQMesh.addRefinementRegionPoints!
— MethodaddRefinementRegionPoints!(proj::Project, r::Dict{String,Any})
Compute and add to the project the plotting points for the refinement region
HOHQMesh.addRunParameters!
— FunctionaddRunParameters!(proj::Project,
plotFormat::String = "skeleton",
meshFileFormat::String = "ISM-V2",
polynomialOrder::Int = 5)
Add a RUN_PARAMETERS block and set all the parameters in one call.
HOHQMesh.addSpringSmoother!
— FunctionaddSpringSmoother!(status::String, type::String, nIterations::Int)
Status is either ON
or OFF
Type is either LinearSpring
or LinearAndCrossbarSpring
HOHQMesh.bboxUnion
— MethodbboxUnion(box1::Array{Float64}, box2::Array{Float64})
Returns the union of two bounding boxes
HOHQMesh.curveBounds
— MethodcurveBounds(crvPoints::Array{Float64,2})
Find the bounds of a single curve, discretized as an array
HOHQMesh.emptyBounds
— MethodemptyBounds()
Returns an array that will always be ignored when unioned with another bounding box.
HOHQMesh.examples_dir
— Methodexamples_dir()
Return the path to the directory with some example mesh setups.
HOHQMesh.extract_mesh_file_format
— Methodextract_mesh_file_format(control_file)
Return a string with the desired output format of the HOHQMesh generated mesh file. This information is given within the RUN_PARAMETERS
of the CONTROL_INPUT
block of the control file. See the HOHQMesh
documentation for details.
HOHQMesh.generate_mesh
— Methodgenerate_mesh(control_file;
output_directory="out",
mesh_filename=nothing, plot_filename=nothing, stats_filename=nothing,
verbose=false, subdivision_maximum=8)
Generate a mesh based on the control_file
with the HOHQMesh mesh generator and store resulting files in output_directory
.
You can set the mesh filename, the plot filename, and the statistics filename using the keyword arguments mesh_filename
, plot_filename
, and stats_filename
, respectively. If set to nothing
, the filenames for the mesh file, plot file, and statistics file are generated automatically from the control file name. For example, path/to/ControlFile.control
will result in output files ControlFile.mesh
, ControlFile.tec
, and ControlFile.txt
.
You can activate verbose output from HOHQMesh that prints additional messages and debugging mesh information with the keyword argument verbose
.
To override the maximum number of allowable subdivisions in the quad tree during meshing adjust the value of subdivision_maximum
. The default value of subdivision_maximum
is 8, meaning that elements can be up to a factor of 2^8
smaller than the background grid. Note, think before doing this! It could be adjusting the boundary curves, background grid size, adding local refinement regions, or some combination may remove the need to adjust the subdivision depth.
This function returns the output to stdout
of the HOHQMesh binary when generating the mesh.
HOHQMesh.generate_mesh
— Methodgenerate_mesh(proj::Project; verbose=false, subdivision_maximum=8)
Generate a mesh from the information stored in a Project
created using the interactive mesh functionality. First a check is made if a background grid exists and all inner/outer boundary curves are valid.
This function will then make a HOHQMesh control file from the control dictionary proj.controlDict
and use it to call the wrapper function that interfaces with HOHQMesh. The resulting mesh and control files will be saved to proj.projectDirectory
. Also, if there is an active plot of the mesh project it will update to display the generated mesh.
With the optional argument verbose
one can activate verbose output from HOHQMesh that prints additional messages and debugging mesh information.
To override the maximum number of allowable subdivisions in the quad tree during meshing adjust the value of subdivision_maximum
. The default value of subdivision_maximum
is 8, meaning that elements can be up to a factor of 2^8
smaller than the background grid. Note, think before doing this! It could be adjusting the boundary curves, background grid size, adding local refinement regions, or some combination may remove the need to adjust the subdivision depth.
This function returns the output to stdout
of the HOHQMesh binary when generating the mesh.
HOHQMesh.getAllRefinementRegions
— MethodgetAllRefinementRegions(proj::Project)
Get the list of refinement regions.
HOHQMesh.getArcCenter
— MethodgetArcCenter(crv::Dict{String,Any}, point::Array{Float64})
Get the center of a circular arc as an array
HOHQMesh.getArcEndAngle
— MethodgetArcEndAngle(arc::Dict{String,Any}, angle::Float64)
HOHQMesh.getArcRadius
— MethodgetArcRadius(arc::Dict{String,Any}, radius::Float64)
HOHQMesh.getArcStartAngle
— MethodgetArcStartAngle(arc::Dict{String,Any}, angle::Float64)
HOHQMesh.getArcUnits
— MethodgetArcUnits(crv::Dict{String,Any}, units::String)
Get the units for the start and end angles of a circular arc curve.
HOHQMesh.getBackgroundGridLowerLeft
— MethodgetBackgroundGridLowerLeft(proj::Project)
Returns the [x,y] of the lower left point of the background grid.
HOHQMesh.getBackgroundGridSize
— MethodgetBackgroundGridSize(proj::Project)
Returns the background grid size array.
HOHQMesh.getBackgroundGridSteps
— MethodgetBackgroundGridSteps(proj::Project)
Returns the [Nx,Ny,Nz] for the background grid.
HOHQMesh.getCurve
— MethodgetCurve(proj::Project, curveName::String, boundaryName::String)
Get the curve named curveName
from the inner boundary named boundaryName
HOHQMesh.getCurve
— MethodgetCurve(proj::Project, curveName::String)
Get the curve with name curveName
from the outer boundary.
HOHQMesh.getCurveName
— MethodgetCurveName(crv::Dict{String,Any})
HOHQMesh.getCurveType
— MethodgetCurveType(crv::Dic{String,Any})
Get the type of the curve, `END_POINTSLINE_CURVE`, `PARAMETRIC_EQUATION_CURVE`,
`SPLINE_CURVE`, or `CIRCULAR_ARC` as a string.
HOHQMesh.getEndPoint
— MethodgetEndPoint(crv::Dict{String,Any}, point::Array{Float64})
Get the end point for a line curve as an array.
HOHQMesh.getInnerBoundary
— MethodgetInnerBoundary(proj::Project, name::String)
Get the chain of curves from the inner boundary with name name
.
HOHQMesh.getInnerBoundaryChainWithName
— MethodgetInnerBoundaryChainWithName(proj::Project, name::String)
Get the inner boundary CHAIN with the given name. If one does not exist, it is created.
HOHQMesh.getInnerBoundaryCurve
— MethodHOHQMesh.getMeshFileFormat
— MethodgetMeshFileFormat(proj::Project)
Returns the format in which the mesh will be written.
HOHQMesh.getName
— MethodgetName(proj::Project)
Returns the filename to be used by the mesh, plot, control, and stats files.
HOHQMesh.getOuterBoundaryChainList
— MethodgetOuterBoundaryChainList(proj::Project)
Get the array of outer boundary curves.
HOHQMesh.getOuterBoundaryCurveWithName
— MethodgetOuterBoundaryCurveWithName(proj::Project, name::String)
HOHQMesh.getPlotFileFormat
— MethodgetPlotFileFormat(proj::Project)
Returns the plot file format.
HOHQMesh.getPolynomialOrder
— MethodgetPolynomialOrder(proj::Project)
Returns the polynomial order for boundary curves in the mesh file.
HOHQMesh.getRefinementEnd
— MethodgetRefinementEnd(r::Dict{String,Any})
Return Array{Float64} of the end location of the refinement line
HOHQMesh.getRefinementGridSize
— MethodgetRefinementGridSize(r::Dict{String,Any})
Returns the grid size,h, as Float64. r
is the dictionary that represents the refinement region.
HOHQMesh.getRefinementLocation
— MethodgetRefinementLocation(r::Dict{String,Any})
Return Array{Float64} of the location of the refinement center.r
is the dictionary that represents the refinement region.
HOHQMesh.getRefinementName
— MethodgetRefinementName(r::Dict{String,Any})
Return name of the refinement. r
is the dictionary that represents the refinement region.
HOHQMesh.getRefinementRegion
— MethodgetRefinementRegion(proj::Project, indx)
Get the refinement region with index, indx from the project. Returns nothing if there is none. The return value is a dictionary that represents the refinement region.
HOHQMesh.getRefinementRegion
— Method(i,r) = getRefinementRegion(project, name)
Get the refinement region with the given name and its location in the list of refinement regions.
HOHQMesh.getRefinementRegionCenter
— MethodgetRefinementRegionCenter(r::Dict{String,Any})
Get, or compute, the center of the given refinement region.
HOHQMesh.getRefinementStart
— MethodgetRefinementStart (r::Dict{String,Any})
Return Array{Float64} of the start location of the refinement line. r
is the dictionary that represents the refinement region.
HOHQMesh.getRefinementType
— MethodgetRefinementType(r::Dict{String,Any})
Return the type of refinement, either "smooth" or "sharp". r
is the dictionary that represents the refinement region.
HOHQMesh.getRefinementWidth
— MethodgetRefinementWidth(r::Dict{String,Any})
Returns the region width,w, as Float64. r
is the dictionary that represents the refinement region.
HOHQMesh.getSmoothingIterations
— MethodgetSmoothingIterations(proj::Project)
Get the number of iterations to smooth the mesh.
HOHQMesh.getSmoothingStatus
— MethodsmoothingStatus(proj::Project)
Returns whether the smoother will be "ON" or "OFF"
HOHQMesh.getSmoothingType
— MethodgetSmoothingType(proj::Project)
Returns either "LinearSpring" or "LinearAndCrossbarSpring"
HOHQMesh.getSplineNKnots
— MethodgetSplineNKnots(spline::Dict{String,Any})
HOHQMesh.getSplinePoints
— MethodgetSplinePoints(spline::Dict{String,Any})
HOHQMesh.getStartPoint
— MethodgetStartPoint(crv::Dict{String,Any}, point::Array{Float64})
Get the start point for a line curve as an array
HOHQMesh.getXEqn
— MethodgetXEqn(crv::Dict{String,Any})
HOHQMesh.getYEqn
— MethodgetYEqn(crv::Dict{String,Any})
HOHQMesh.getZEqn
— MethodgetZEqn(crv::Dict{String,Any})
HOHQMesh.hasBackgroundGrid
— MethodhasBackgroundGrid(proj::Project)
Tests to see if the project has a backgroundGrid dictionary defined.
HOHQMesh.innerBoundaryIndices
— MethodinnerBoundaryIndices(proj::Project, curveName::String)
Returns (curveIndex,chainIndex) for the location of the curve named curveName
in it's inner boundary chain.
HOHQMesh.insertInnerBoundaryAtIndex!
— MethodinsertInnerBoundaryAtIndex!(proj::Project, chainName::String, indx::Int, chain::??)
Insert an entire inner boundary. Primarily meant for undo operation.
HOHQMesh.insertInnerBoundaryCurveAtIndex!
— MethodinsertInnerBoundaryCurveAtIndex!(proj::Project, crv::Dict{String,Any},
indx::Int, boundaryName::String)
Insert a curve crv
into an inner boundary chain boundaryName
at the specified index indx
.
HOHQMesh.insertOuterBoundaryCurveAtIndex!
— MethodinsertOuterBoundaryCurveAtIndex!(proj::Project, crv::Dict{String,Any}, indx::Int)
Insert a curve into the outer boundary chain at the specified index.
HOHQMesh.insertRefinementRegion!
— MethodinsertRefinementRegion!(proj::Project, r::Dict{String,Any}, indx::Int)
Used by undo()
HOHQMesh.modelChainIsOK
— MethodmodelChainIsOK(chain::Vector{Dict{String, Any}}, chainName::String)
Returns true if the chain of curves is contiguous and closed; false otherwise.
HOHQMesh.modelCurvesAreOK
— MethodmodelCurvesAreOK(proj::Project)
Go through all curves in the model and make sure they are connected and closed. Also, remove any empty outer / inner boundary chains.
Returns true if all curves are connected and closed, false otherwise.
HOHQMesh.new
— Functionnew(name::String,
center::Array{Float64},
radius::Float64,
startAngle::Float64,
endAngle::Float64,
units::String)
Create a new circular arc.
HOHQMesh.new
— Functionnew(name::String,
xEqn::String,
yEqn::String,
zEqn::String = "z(t) = 0.0" )
Create a new parametric equation curve.
HOHQMesh.new
— Methodnew(name::String,
xStart::Array{Float64},
xEnd::Array{Float64})
Create a new line defined by its end points.
HOHQMesh.new
— Methodnew(name::String, nKnots::Int, data::Matrix{Float64})
Create a spline curve from an array of knots
HOHQMesh.new
— Methodnew(name::String, dataFile::String)
Create a spline curve from the contents of a data file.
HOHQMesh.newCircularArcCurve
— FunctionnewCircularArcCurve(name::String, center::Array{Float64},
startAngle::Float64, endAngle::Float64,
units::String)
Creates and returns a new circular arc curve in the form of a Dictionary
HOHQMesh.newEndPointsLineCurve
— MethodnewEndPointsLineCurve(name::String, xStart::Array{Float64},xEnd::Array[Float64])
Creates and returns a new curve defined by its end points in the form of a Dictionary
HOHQMesh.newParametricEquationCurve
— FunctionnewParametricEquationCurve(name::String,
xEqn::String,
yEqn::String,
zEqn::String = "z(t) = 0.0" )
Creates and returns a new parametricEquationCurve in the form of a Dictionary
HOHQMesh.newProject
— MethodnewProject(name::String, folder::String)
Create a new project with the given name. That name will be used for the mesh and plot files in the specified folder.
HOHQMesh.newRefinementCenter
— MethodnewRefinementCenter(name, type,
center, meshSize,
width)
Create refinement center of type
"smooth" or "sharp" centered at center = [x,y,z]
with a mesh size meshSize
spread over a radius width
.
HOHQMesh.newRefinementLine
— MethodnewRefinementLine(name, type,
start, end,
meshSize,
width)
Create refinement line of type "smooth" or "sharp" between start
= [x,y,z] and end
= [x,y,z] with a mesh size meshSize
spread over a width width
.
HOHQMesh.newSplineCurve
— MethodnewSplineCurve(name::String, nKnots::Int, data::Array{Float64,4})
Returns a spline curve given the number of knots and the array of knots.
HOHQMesh.newSplineCurve
— MethodnewSplineCurve(name::String, dataFile::String)
Returns a spline curve given a data file that contains the number of knots on the first line, and the spline data following that.
HOHQMesh.openProject
— MethodopenProject(fileName::String, folder::String)
Open existing project described in the control File.
folder = folder the control file is in
fileName = the name of the file
HOHQMesh.plotProject!
— FunctionplotProject!(proj::Project, plotOptions::Int = 0)
Plot objects specified by the plotOptions
. Construct the plotOptions
by the sum of what is to be drawn from the choices MODEL
, GRID
, MESH
, REFINEMENTS
.
Example: To plot the model and the grid, plotOptions = MODEL + GRID
. To plot just the mesh, plotOptions = MESH
.
To plot everything, plotOptions = MODEL + GRID + MESH + REFINEMENTS
Contents are overlaid in the order: GRID
, MESH
, MODEL
, REFINEMENTS
Please note that for this function to work, you need to load Makie.jl in your REPL (e.g., by calling using GLMakie
).
HOHQMesh.postNotificationWithName
— MethodpostNotificationWithName(sender::Any, name::String, userInfo::Tuple)
Executes the function associated with the observer for the notification note
HOHQMesh.refinementRegionPoints
— MethodrefinementRegionPoints(r::Dict{String,Any})
Returns Array{Float64,2} being the plotting points of a refinement region
HOHQMesh.remove!
— Methodremove!(proj::Project, curveName::String, innerBoundaryName::String)
Delete the curve named curveName from the inner boundary named innerBoundaryName
HOHQMesh.remove!
— Methodremove!(proj::Project, curveName::String)
Delete the curve named curveName from the outer boundary
HOHQMesh.removeBackgroundGrid!
— MethodremoveBackgroundGrid!(proj::Project)
Remove the background grid block from the project.
HOHQMesh.removeInnerBoundary!
— MethodremoveInnerBoundary!(proj::Project, chainName::String)
Remove an entire inner boundary.
HOHQMesh.removeInnerBoundaryCurve!
— MethodremoveInnerBoundaryCurve!(proj::Project, name::String, chainName::String)
Remove the curve with name
from an inner boundary chain with chainName
.
HOHQMesh.removeInnerBoundaryCurveAtIndex!
— MethodremoveInnerBoundaryCurveAtIndex!(proj::Project, indx::Int, chainName::String)
Remove the curve at index indx
from an inner boundary chain with chainName
.
HOHQMesh.removeOuterBoundary!
— MethodremoveOuterBoundary!(proj::Project)
Remove the outer boundary curve if it exists.
HOHQMesh.removeOuterBoundaryCurveAtIndex!
— MethodremoveOuterBoundaryCurveAtIndex!(proj::Project, indx::Int)
Remove a curve from the outer boundary chain at the specified index.
HOHQMesh.removeOuterBoundaryCurveWithName!
— MethodremoveOuterBoundaryCurveWithName!(proj::Project, name::String)
Remove the named curve in the outer boundary.
HOHQMesh.removeRefinementRegion!
— MethodremoveRefinementRegion!(proj::Project, name::String)
Delete the named refinement region.
HOHQMesh.removeRunParameters!
— MethodremoveRunParameters!(proj::Project)
Remove the run parameters block from the project. This is not undo-able.
HOHQMesh.removeSpringSmoother!
— MethodremoveSpringSmoother!(proj::Project)
Remove the background grid block from the project.
HOHQMesh.remove_mesh!
— Methodremove_mesh!(proj::Project)
Remove the mesh file, control file, plot file, and stats file from proj.projectDirectory
and delete the mesh from the plot.
HOHQMesh.renameCurve!
— MethodrenameCurve!(proj::Project, oldName::String, newName::String)
Any curve(s) on the outer boundary or in the inner boundary chain(s) with oldName
are renamed with newName
.
HOHQMesh.saveProject
— MethodsaveProject(proj::Project)
proj = Project to be saved
Save a project dictionary to the file path specified when the project was created.
HOHQMesh.setArcCenter!
— MethodsetArcCenter!(crv::Dict{String,Any}, point::Array{Float64})
Set the center of a circular arc.
HOHQMesh.setArcEndAngle!
— MethodsetArcEndAngle!(arc::Dict{String,Any}, angle::Float64)
HOHQMesh.setArcRadius!
— MethodsetArcRadius!(arc::Dict{String,Any}, radius::Float64)
HOHQMesh.setArcStartAngle!
— MethodsetArcStartAngle!(arc::Dict{String,Any}, angle::Float64)
HOHQMesh.setArcUnits!
— MethodsetArcUnits(crv::Dict{String,Any}, units::String)
Set the units for the start and end angles of a circular arc curve.
HOHQMesh.setBackgroundGridLowerLeft!
— MethodsetBackgroundGridLowerLeft!(proj::Project, x0::Array{Float64})
Set the lower left location of the background grid for problems that have no outer boundary.
HOHQMesh.setBackgroundGridSize!
— FunctionsetBackgroundGridSpacing!(proj::Project, dx::Float64, dy::Float64, dz::Float64 = 0.0)
User facing function
HOHQMesh.setBackgroundGridSize!
— MethodsetBackgroundGridSize!(proj::Project, dx::Array{Float64}, key::String)
Set the grid size dx of an existing background grid within proj
. Here, dx
is passed an array.
HOHQMesh.setBackgroundGridSize!
— MethodsetBackgroundGridSize!(proj::Project, dx::Float64, dy::Float64, key::String)
Set the grid size dx of an existing background grid within proj
. Here, the new grid size in either direction is passed individually with dx
and dy
.
HOHQMesh.setBackgroundGridSteps!
— MethodsetBackgroundGridSteps!(proj::Project, N::Array{Int})
Set how many steps of size setBackgroundGridSpacing in each direction the background grid extends from the lower left.
HOHQMesh.setCurveName!
— MethodsetCurveName!(curveDict, name)
Set the name of the curve represented by curveDict.
HOHQMesh.setEndPoint!
— MethodsetEndPoint!(crv::Dict{String,Any}, point::Array{Float64})
Set the end point for a line curve.
HOHQMesh.setMeshFileFormat!
— MethodsetMeshFileFormat(proj::Project, meshFileFormat::String)
Set the file format for the mesh file. Acceptable choices are "ISM", "ISM-V2", or "ABAQUS".
HOHQMesh.setName!
— MethodsetName(proj::Project,name::String)
The name
of the project is the filename to be used by the mesh, plot, and stats files. It is also the name of the control file the tool will produce.
HOHQMesh.setPlotFileFormat!
— MethodsetPlotFileFormat(proj::Project, plotFileFormat::String)
Set the file format for the plot file. Acceptable choices are "sem", which includes interior nodes and boundary nodes and "skeleton", which includes only the corner nodes.
HOHQMesh.setPolynomialOrder!
— MethodsetPolynomialOrder(proj::Project, p::Int)
Set the polynomial order for boundary curves in the mesh file to p
.
HOHQMesh.setRefinementEnd!
— MethodsetRefinementEnd!(refinementRegion, location)
Set the end point location of a refinement line, location = [x, y, z]
.
HOHQMesh.setRefinementGridSize!
— MethodsetRefinementGridSize!(r::Dict{String,Any}, h)
Set the grid size, h
for the refinement region. r
is the dictionary that represents the refinement region.
HOHQMesh.setRefinementLocation!
— MethodsetRefinementLocation!(refinementCenter, location)
Set the location of a refinement center to location = [x,y,z].
HOHQMesh.setRefinementName!
— MethodsetRefinementName!(r::Dict{String,Any}, type)
Set a name for the refinement region.r
is the dictionary that represents the refinement region.
HOHQMesh.setRefinementStart!
— MethodsetRefinementStart!(refinementRegion, location)
Set the start point location of a refinement line, location = [x, y, z]
.
HOHQMesh.setRefinementType!
— MethodsetRefinementType!(refinementRegion, type)
Set the type, either "smooth" or "sharp" for the given refinement region.
HOHQMesh.setRefinementWidth!
— MethodsetRefinementWidth!(r::Dict{String,Any}, width)
Set the width of the refinement region. r
is the dictionary that represents the refinement region.
HOHQMesh.setSmoothingIterations!
— MethodsetSmoothingIterations!(proj::Project, iterations::Int)
Set the number of iterations to smooth the mesh.
HOHQMesh.setSmoothingStatus!
— MethodsetSmoothingStatus(proj:Project, status::String)
Status is either "ON" or "OFF"
HOHQMesh.setSmoothingType!
— MethodsetSmoothingType!(proj:Project, status::String)
Type is either LinearSpring
or LinearAndCrossbarSpring
HOHQMesh.setSplineNKnots!
— MethodsetSplineNKnots!(spline::Dict{String,Any}, nKnots::Int)
HOHQMesh.setSplinePoints!
— MethodsetSplinePoints!(spline::Dict{String,Any},points::Array{Float64,4})
HOHQMesh.setStartPoint!
— MethodsetStartPoint!(crv::Dict{String,Any}, point::Array{Float64})
Set the start point for a line curve.
HOHQMesh.setXEqn!
— MethodsetXEqn!(parametricEquationCurve, eqn)
For a parametric equation, set the x-equation.
HOHQMesh.setYEqn!
— MethodsetYEqn!(parametricEquationCurve, eqn)
For a parametric equation, set the y-equation.
HOHQMesh.setZEqn!
— MethodsetZEqn!(parametricEquationCurve, eqn)
For a parametric equation, set the zEqn-equation.
HOHQMesh.unRegisterForNotification
— MethodunRegisterForNotification(observer::Any, note::String)
Remove the observer from being notified by the notification note
HOHQMesh.updatePlot!
— FunctionupdatePlot!(proj::Project, plotOptions::Int)
Replot with the new plotOptions = combinations (sums) of
GRID, MESH, MODEL, REFINEMENTS
Example: updatePlot!(p, MESH + MODEL)
Please note that for this function to work, you need to load Makie.jl in your REPL (e.g., by calling using GLMakie
).