CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Splitting a patch into lower and upper surfaces

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2025, 08:38
Default Splitting a patch into lower and upper surfaces
  #1
New Member
 
Join Date: May 2025
Posts: 7
Rep Power: 2
dankam is on a distinguished road
Hello everyone,

I have a fluid domain (box) with a tilted rectangular panel that is cut out of the fluid domain. I have imported my mesh from SALOME with all the necessary named selections for my boundaries.

For automation purposes, however, I want to split the upper and lower surfaces of my tilted panel patches, and I'm struggling. Using topoSet, I have created faceSets for my panels, but when I try to split them based on the normal vector, and even when I specify in the source info that I want my panel to be the source faceSet, it just takes eveything that corrsponds to the normal, including internal surfaces.

Any help is much appreciated!

Code:
actions
(

	{
		name	solarPanel1;
		type	faceSet;
		action	new;
		source	patchToFace;

		patch solarPanel1;
	}

	{
		name	upper1;
		type	faceSet;
		action	new;
		source	normalToFace;
		
		sourceInfo
		{
			faceSet	solarPanel1;
			normal	(.49999961698725573916 0 .86602562491683672008);
			cos	0.01;
		}
	}
);
dankam is offline   Reply With Quote

Old   July 29, 2025, 04:29
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 360
Rep Power: 29
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Yes, the behaviour you describe is exactly what topoSet is supposed to do.


Create a faceSet from the patch, and create a faceSet from the face-normals.


You seem to be under the impression, that providing faceSet solarPanel1 in the sourceInfo of your second definition implicitely results in a Boolean operation. Your observations imply that this is not the case, and I am not sure whether this is supposed to happen anyway. The annotated topoSetDict of OpenFOAM-12 does not contain anything that might suggest something like this could work. Is this a hallucination of ChatGPT?


What you need, is to explicitly perform a Boolean operation with the action subset.
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
boundaries, createpatch, toposet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 13:16
chtMultiRegionFoam speed up qwertz OpenFOAM Running, Solving & CFD 8 September 18, 2021 07:16
Different upper and lower bound for different design variables for shape optimization bikalpa10 SU2 0 December 14, 2020 17:27
ANSYS: Design of Experiments and Optimization - Upper and Lower Bounds mrswordf1sh ANSYS 0 April 5, 2018 08:33
[snappyHexMesh] upper and lower patch for a 0_thick Membrane in a wind tunnel hfs OpenFOAM Meshing & Mesh Conversion 7 October 15, 2013 17:41


All times are GMT -4. The time now is 07:37.