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, 02:43
Default How to create a new patch from an STL file ?
  #1
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 3
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, 03:32
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,067
Rep Power: 26
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 offline   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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
steadyUniversalMRFFoam Tutorial fails in MixingPlane HenrikJohansson OpenFOAM Bugs 0 February 14, 2019 04:48
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 16:26.