Reading values of internal faces
Hello World.
I need to read the values on some internal faces. I thought of interpolating the volume field to the surfaces with e.g. surfaceScalarField s = fvc::interpolate(p) After this step I want to read the center value of the surface field for a set of specific faces I declared in faceSet. How can I access this information? Thanks. |
Check how large your surfaceScalarField is (ie, how many faces it has).
Access the ones you want. |
Quote:
I don't know the code! Furthermore: how can I loop through I set of faces I selected with faceSet prior? |
Quote:
The command "git grep HashSet" is a quick way to find them all. |
Hello World.
No that it comes to the implementation of this internal field reading stuff I'm experiencing strange errors with a very simple tryout. This is the code: Code:
for (label i=startTime; i<endTime; i++) Code:
Attempt to cast type patch to type lduInterface#0 Foam::error::printStack(Foam::Ostream&) in "/home/sega/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so" Any ideas? |
Stupid. There were cyclics involved. Who put them there? :mad:
Must have been me... :rolleyes: Sorry. So far it's working, but I bet I'm coming back ... |
Hi all,
I am trying to access and modify a field value on a face using this code Code:
//Create face values from field values Code:
error: assignment of read-only location Thanks, Sugajen |
All times are GMT -4. The time now is 22:53. |