Skip to content

Why surface_mesh does not have a quadratic option #984

Answered by waltersma
hrntsm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hrntsm,

If the objective is to create a volume mesh with quadratic elements where the mid side nodes are on the surface then there are a couple of different routes you could take to achieve this. My recommendation would be to project the mid side nodes to the geometry, however, please note this API is currently at beta and may change in future.

Example code:

import ansys.meshing.prime as prime

prime_client = prime.launch_prime()
model = prime_client.model
mesh_util = prime.lucid.Mesh(model=model)

mesh_util.read(file_name=prime.examples.download_block_model_fmd())

mesh_util.surface_mesh(min_size=5.0)
mesh_util.volume_mesh(quadratic=True)
params = prime.ProjectOnGeometryParams(model,…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hrntsm
Comment options

@waltersma
Comment options

Answer selected by hrntsm
@hrntsm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants