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

How to create a new patch from an STL file ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2022, 03:43
Default How to create a new patch from an STL file ?
  #1
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
Hi foamers,

I have been struggling to extract a surface as a patch in an STL file in snappyHexMesh.

I explain myself, I am studying a breakwater and I want to compute the force in specific locations in the crownwall which I import as an STL file (crownwall.stl).

I am using the following code to compute the forces and I need to indicate a patch for the pressure integration :
Code:
force1
    {
	type forces ;
	functionObjectLibs ( "libforces.so" );
	patches (SurfaceOfInterest);
	rho rhoInf;
	rhoInf 1;
	CofR (523.5 15 30.693);
	writeControl timeStep;
	writeInterval 1;
	pName p;
	UName U;
	log true;
I don't know if I can do it with just snappyHexMesh or do I have to use TopoSet ?

Iif so I don't know how to use TopoSet, is there a template/model I can use as a basis ?

I have attached the picture of the crownwall with the pink surfaces I want to create to use as a patch for the forces. It's just two squares.

Thanks!
Attached Images
File Type: png crownwall_patches.PNG (2.4 KB, 6 views)
cfd_saad is offline   Reply With Quote

Old   July 12, 2022, 04:32
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,199
Rep Power: 27
Yann will become famous soon enough
Hi,

Just linking the original post, as it is usually not a good idea to duplicate threads: How to create a new patch in an STL file ?

Regards,
Yann
Yann is online now   Reply With Quote

Reply


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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
steadyUniversalMRFFoam Tutorial fails in MixingPlane HenrikJohansson OpenFOAM Bugs 0 February 14, 2019 05:48
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18


All times are GMT -4. The time now is 08:57.