What is boundary conditions provider operator and how to use it #542
-
I have a simple question, code from ansys.dpf import core as dpf
from ansys.dpf.core import operators as ops
from ansys.dpf.core import examples
fp = examples.download_hemisphere()
model = dpf.Model(fp)
ds = dpf.DataSources(model)
st_op = ops.metadata.streams_provider() # operator instantiation
st_op.inputs.data_sources.connect(ds)
my_streams_container = st_op.outputs.streams_container
op = dpf.operators.metadata.boundary_condition_provider() # operator instantiation
op.inputs.data_sources.connect(ds)
print(op.outputs.results_info) output is
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
can any one shed light on this operator? thank you |
Beta Was this translation helpful? Give feedback.
-
Hi @kmahajan-cadfem, Sorry for the delay. Your question regarding the operator
TLDR; this operator is for retrieving the |
Beta Was this translation helpful? Give feedback.
Hi @kmahajan-cadfem,
Sorry for the delay. Your question regarding the operator
boundary_condition_provider
requires multiple answers:results_info_as_field
andresults_info_as_fields_container
. This is a remnant of an old logic used when constructing operator outputs, where if the output type does not exist in the Python API, several outputs are generated based on possible translations to compatible PyDPF-Core types.