Cohomology: influencing which basis is created
Hi,
We're computing a cohomology basis for pancake coils in order to use an H-phi formulation. This is the coil geometry (no cracked meshes or any other things that we sometimes play with ;-)):
The cuts that we'd like to have in order to excite the problem would be
- one between the two current leads but NOT in the "donut hole", exciting non-zero current or voltage
- one strictly in the "donut hole", imposing zero voltage
However, the Cohomology plugin does not always give us these cuts as illustrated below. Is there a way to influence which Cohomology basis the plugin finds?
Here's the mesh file:
And the code snippet for the cohomology computation, I can send the whole script via mail:
gmsh.plugin.setString("HomologyComputation", "DomainPhysicalGroups", "AirDomainPhysicalRegion")
gmsh.plugin.setString("HomologyComputation", "SubdomainPhysicalGroups", "")
gmsh.plugin.setString("HomologyComputation", "ReductionImmunePhysicalGroups", "")
gmsh.plugin.setString("HomologyComputation", "DimensionOfChainsToSave", "1")
gmsh.plugin.setString("HomologyComputation", "Filename", "Homology")
gmsh.plugin.setNumber("HomologyComputation", "ComputeHomology", 0)
gmsh.plugin.setNumber("HomologyComputation", "ComputeCohomology", 1)
gmsh.plugin.setNumber("HomologyComputation", "CreatePostProcessingViews", 1)
gmsh.plugin.run("HomologyComputation")
Many thanks!
Erik