Description
Before submitting the issue
- I have checked for Compatibility issues
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
Hello,
When trying to load a .db or .cdb then I get an error saying:
DPFServerException: MeshProvider:39<-meshes_provider:40<-Operator(s) (mapdl::cdb::MeshProvider) does not exists in the registry !
I would like to get the named selections out of the .db file to show the model/mesh prior to solve.
If I solve a model then load the .rst or .rth for the model, there are no issues.
Steps To Reproduce
This is not a solved model solution but gives the example for meshed_region error
from ansys.mapdl.core import launch_mapdl
from ansys.dpf import core as dpf
import os
curdir = os.getcwd()
workdir = os.path.join(curdir, 'model')
mapdl = launch_mapdl(override=True, run_location=workdir, nproc=1, verbose=True, license_type="preppost")
### Create CDB Example
mapdl.prep7()
vnum0 = mapdl.block(0, 1, 0, 1, 0, 0.5)
mapdl.et(1, 187)
mapdl.esize(0.1)
mapdl.vmesh(vnum0)
mapdl.eplot()
mapdl.cdwrite('db', 'box', 'cdb')
### Read created CDB
curdir = os.getcwd()
filename = os.path.join(curdir, 'model','box.cdb' )
# ds = dpf.DataSources()
# ds.set_result_file_path(filename)
model = dpf.Model(filename)
meshed_region = model.metadata.meshed_region
Which Operating System are you using?
Windows
Which DPF/Ansys version are you using?
Ansys 2022 R2
Which Python version are you using?
3.10
Installed packages
aesara 2.8.9
aiohttp 3.8.3
aiosignal 1.3.1
altgraph 0.17.3
ansys-api-fluent 0.3.5
ansys-api-mapdl 0.5.1
ansys-api-platform-instancemanagement 1.0.0b3
ansys-dpf-core 0.6.0
ansys-dpf-gate 0.2.1
ansys-dpf-gatebin 0.3.0
ansys-dpf-post 0.2.5
ansys-fluent-core 0.11.0
ansys-grantami-bomanalytics 1.0.1
ansys-grantami-bomanalytics-openapi 1.0.0
ansys-grpc-dpf 0.7.0
ansys-mapdl-core 0.63.2
ansys-mapdl-reader 0.52.6
ansys-openapi-common 1.1.1
ansys-platform-instancemanagement 1.0.2
appdirs 1.4.4
arviz 0.14.0
async-timeout 4.0.2
attrs 22.2.0
brotlipy 0.7.0
cachetools 5.2.1
certifi 2022.12.7
cffi 1.15.1
cftime 1.6.2
charset-normalizer 2.1.1
cloudpickle 2.2.0
clr-loader 0.2.5
colorama 0.4.6
conda 22.11.1
conda-package-handling 2.0.2
conda_package_streaming 0.7.0
cons 0.4.5
contourpy 1.0.6
cryptography 39.0.0
cycler 0.11.0
distlib 0.3.6
etuples 0.3.8
fastprogress 1.0.3
filelock 3.9.0
fonttools 4.38.0
frozenlist 1.3.3
future 0.18.2
geomdl 5.3.1
google-api-core 2.10.1
google-api-python-client 2.71.0
google-auth 2.15.0
google-auth-httplib2 0.1.0
googleapis-common-protos 1.56.4
grpcio 1.51.1
h5py 3.7.0
httplib2 0.21.0
idna 3.4
imageio 2.24.0
importlib-metadata 6.0.0
Jinja2 3.1.2
kiwisolver 1.4.4
ldap3 2.9.1
libmambapy 1.1.0
logical-unification 0.4.5
lxml 4.9.2
mamba 1.1.0
MarkupSafe 2.1.1
matplotlib 3.6.2
menuinst 1.4.19
miniKanren 1.0.3
mkl-service 2.4.0
multidict 6.0.4
multipledispatch 0.6.0
munkres 1.1.4
netCDF4 1.6.2
ntlm-auth 1.5.0
numpy 1.24.1
packaging 23.0
pandas 1.5.2
pefile 2022.5.30
Pillow 9.4.0
pip 22.3.1
platformdirs 2.6.2
pluggy 1.0.0
plumbum 1.8.1
pooch 1.6.0
protobuf 3.20.1
protoc-gen-swagger 0.1.0
psutil 5.9.4
pyaedt 0.6.3
pyansys 2023.1.1
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycosat 0.6.4
pycparser 2.21
pyiges 0.2.1
pyinstaller 5.7.0
pyinstaller-hooks-contrib 2022.14
pymc 5.0.1
pyOpenSSL 23.0.0
pyparsing 3.0.9
pypiwin32 223
PySide6 6.3.2
PySide6-Addons 6.3.2
PySide6-Essentials 6.3.2
PySocks 1.7.1
pytensor 2.8.11
python-dateutil 2.8.2
pythonnet 3.0.0rc6
pytz 2022.7
pyvista 0.37.0
pywin32 305
pywin32-ctypes 0.2.0
PyYAML 6.0
qt-material 2.8
requests 2.28.1
requests-negotiate-sspi 0.5.2
requests-ntlm 1.1.0
rpyc 5.0.1
rsa 4.9
ruamel.yaml 0.17.21
ruamel.yaml.clib 0.2.7
scipy 1.10.0
scooby 0.7.0
setuptools 65.6.3
shiboken6 6.3.2
six 1.16.0
toolz 0.12.0
tqdm 4.64.1
trame 2.2.5
trame-client 2.4.0
trame-components 2.0.4
trame-deckgl 2.0.1
trame-markdown 2.0.2
trame-matplotlib 2.0.1
trame-plotly 2.1.0
trame-rca 0.3.0
trame-router 2.0.1
trame-server 2.6.1
trame-simput 2.2.4
trame-tauri 0.2.0
trame-vega 2.0.2
trame-vtk 2.0.12
trame-vuetify 2.0.2
typing_extensions 4.4.0
unicodedata2 15.0.0
uritemplate 4.1.1
urllib3 1.26.14
virtualenv 20.17.1
vtk 9.2.5
wheel 0.38.4
win-inet-pton 1.1.0
wslink 1.10.0
xarray 2022.12.0
xarray-einstats 0.4.0
yarl 1.8.2
zipp 3.11.0
zstandard 0.19.0