Dear Sir,
For the reactive transport coupled with PHREEQC, I want to create a mesh file (.vtu
) with bulk_node_ids
and bulk_element_ids
.
But, I couldn’t produce such a .vtu
file with both bulk_node_ids
and bulk_element_ids
from the .msh
file generated from Gmsh. I used msh2vtu
to do so.
Please let me know how to create a .vtu
file with both bulk_node_ids
and bulk_element_ids
for the reactive domain through the command lines.
I am attaching the files for your reference.
Thanks
Pavan.
KineticReactant2_2d.zip (712.1 KB)
lurpi
May 16, 2023, 8:28am
#2
Check the answer given here
Dears
Hi
Please help me How can I convert GMSH meshs to OGS meshs with the tool GMSH2OGS?
Best Regards
Dear lurpi,
I know how to convert .vtu
from .msh
files using msh2vtu
command. But, my question is specifically about generating a .vtu
file that has bulk_node_ids
and bulk_element_ids
.
Anyhow I even tried the command that you suggested GMSH2OGS
, but couldn’t fulfil my requirement.
Let me know how to create such a file.
Thanks
Pavan.
lurpi
May 16, 2023, 9:22am
#4
use the OGS tool identifySubdomains
identifySubdomains -m mesh.vtu -o numbered_ mesh.vtu
then you obtain a numbered_mesh.vtu with what you need .
See Identify subdomains in bulk mesh. for further informations.
Dear lurpi,
I could notice that the identifySubdomains
command creates a boundary mesh with bulk_node_ids
and bulk_element_ids
. But, in my case, I need those ids for the entire domain not just for the boundaries.
Please go to Tests/Data/Parabolic/ComponentTransport/ReactiveTransport
, and you can see that all the examples in that folder needed a reactive domain mesh file. I need to generate a similar mesh file that has all the ids (bulk_node_ids
and bulk_element_ids
).
Thanks
Pavan.
lurpi
May 17, 2023, 7:18am
#6
In the command
identifySubdomains -m mesh.vtu -o numbered_ mesh.vtu
replace ‘mesh.vtu’ with whatever vtu you need to process. A domain is a subdomain of itself, it will work.
Thanks, Lurpi. It worked.
I have another question, how to assign a random distribution of material parameters to the mesh (e.g., porosity and permeability)?
lurpi
May 17, 2023, 5:03pm
#8
I have no direct experience. Check
I think it is easier to do it in python.
With VTUinterface you need to basically adapt this example:
With less confusing code as in the notebook before;-)
as well as the publication Hydro-mechanical continuum modelling of fluid percolation through rock salt - ScienceDirect
I suggest you to open a different question, related to the definition of random fields: OGS: [case] RandomFieldMeshElementParameter