An update on this question:
This command:
[code]doc.getParamValue((ifm.Enum.P_AUXDIST_E, "auxRelPerm"),n)[/code]
will retrieve the relative permeability from the element number "n".
My objective, however, was trying to obtain a relative permeability value at an observation point, not element. I have a two-step solution.
First, a small function that calculates the element number at the observation point (my observation points don't fall squarely on mesh nodes):
[code]def nearestElemToObs(obs):
X = doc.getXOfObsId(obs)
Y = doc.getYOfObsId(obs)
Z = doc.getZOfObsId(obs)
Elem = doc.findElementAtXYZ(X,Y,Z)
return Elem[/code]
Then later in the code, I call this function from a loop that runs through all observation points:
[code]for obs in range(obs_nodes):
# other actions here...
relK_value = doc.getParamValue((ifm.Enum.P_AUXDIST_E, "auxRelPerm"),nearestElemToObs(obs))[/code]
Shout out to Sophie from DHI and Peter for helping out.